From 87517809d706f8be15b4d6900002faa581fe87d9 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Wed, 3 Dec 2025 17:21:07 +0530 Subject: [PATCH 1/5] fixing pipeline error Signed-off-by: nikhil2611 --- Gemfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 7461ea33..f5e66bad 100644 --- a/Gemfile +++ b/Gemfile @@ -4,6 +4,9 @@ gemspec gem "logger", "< 1.6" # 1.6 causes errors with mixlib-log < 3.1.1 +# Avoid psych build issues on Windows Ruby 3.3 by using the default gem +gem "psych", "< 5.2", platforms: [:mingw, :x64_mingw, :mswin] + group :test do gem "rake" gem "rspec", "~> 3.8" @@ -17,7 +20,7 @@ end group :development do gem "pry" - gem "pry-byebug" + gem "pry-byebug", platforms: :ruby # byebug doesn't work on Windows gem "rb-readline" end From b541804cafa15f32276c980c419832423657f082 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Wed, 3 Dec 2025 17:50:16 +0530 Subject: [PATCH 2/5] fixing pipeline error Signed-off-by: nikhil2611 --- Gemfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Gemfile b/Gemfile index f5e66bad..d8cea651 100644 --- a/Gemfile +++ b/Gemfile @@ -4,9 +4,6 @@ gemspec gem "logger", "< 1.6" # 1.6 causes errors with mixlib-log < 3.1.1 -# Avoid psych build issues on Windows Ruby 3.3 by using the default gem -gem "psych", "< 5.2", platforms: [:mingw, :x64_mingw, :mswin] - group :test do gem "rake" gem "rspec", "~> 3.8" From 93811fd3c21e6b0464bbde6758d439f3ea836e05 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Wed, 3 Dec 2025 18:01:28 +0530 Subject: [PATCH 3/5] added back psych to fix build Signed-off-by: nikhil2611 --- Gemfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index d8cea651..f5e66bad 100644 --- a/Gemfile +++ b/Gemfile @@ -4,6 +4,9 @@ gemspec gem "logger", "< 1.6" # 1.6 causes errors with mixlib-log < 3.1.1 +# Avoid psych build issues on Windows Ruby 3.3 by using the default gem +gem "psych", "< 5.2", platforms: [:mingw, :x64_mingw, :mswin] + group :test do gem "rake" gem "rspec", "~> 3.8" From d5d8121687df033ec745058b9a7f0010722f6e08 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Wed, 3 Dec 2025 18:10:52 +0530 Subject: [PATCH 4/5] added ruby version condition Signed-off-by: nikhil2611 --- Gemfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index f5e66bad..098169f0 100644 --- a/Gemfile +++ b/Gemfile @@ -4,8 +4,9 @@ gemspec gem "logger", "< 1.6" # 1.6 causes errors with mixlib-log < 3.1.1 -# Avoid psych build issues on Windows Ruby 3.3 by using the default gem -gem "psych", "< 5.2", platforms: [:mingw, :x64_mingw, :mswin] +# Pin psych < 5.2 to avoid build issues on Windows Ruby 3.3 where libyaml headers are unavailable +# Ruby 3.3 ships with psych 5.1.2, Ruby 3.4+ will handle 5.2+ correctly +gem "psych", "< 5.2" if RUBY_VERSION.start_with?("3.3") group :test do gem "rake" From 2bc085b3b64277335015d07e45ede7f1b4d8bce2 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Wed, 3 Dec 2025 18:29:06 +0530 Subject: [PATCH 5/5] added ruby version condition and platform condition Signed-off-by: nikhil2611 --- Gemfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 098169f0..d5c40033 100644 --- a/Gemfile +++ b/Gemfile @@ -5,8 +5,7 @@ gemspec gem "logger", "< 1.6" # 1.6 causes errors with mixlib-log < 3.1.1 # Pin psych < 5.2 to avoid build issues on Windows Ruby 3.3 where libyaml headers are unavailable -# Ruby 3.3 ships with psych 5.1.2, Ruby 3.4+ will handle 5.2+ correctly -gem "psych", "< 5.2" if RUBY_VERSION.start_with?("3.3") +gem "psych", "< 5.2" if RUBY_PLATFORM.match?(/mingw|mswin/) && RUBY_VERSION.start_with?("3.3") group :test do gem "rake"