From 4ed6a75cee3942fadc0fd272e42c41d7567ce86a Mon Sep 17 00:00:00 2001 From: Brian Shand Date: Fri, 7 Nov 2025 11:07:51 +0000 Subject: [PATCH] GitHub Actions gem installation fix for sass-embedded on ruby 3.1 --- ndr_ui.gemspec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ndr_ui.gemspec b/ndr_ui.gemspec index c54f1c0..004b4a3 100644 --- a/ndr_ui.gemspec +++ b/ndr_ui.gemspec @@ -42,6 +42,13 @@ Gem::Specification.new do |spec| # https://bugs.ruby-lang.org/issues/19371 spec.add_development_dependency 'psych', '< 5' + # Workaround build issue on GitHub Actions with ruby <= 3.1 when installing sass-embedded + # Versions 1.77.0 and above require ruby >= 3.2 for packaged x86_64-linux binaries + # but say they're compatible with ruby 3.1. + # 1.76.0 has a bug that was fixed in 1.77.1, which we can't use yet. + # https://github.com/sass/dart-sass/issues/2239 + spec.add_development_dependency 'sass-embedded', '~> 1.75.0' if RUBY_VERSION.start_with?('3.1') # rubocop:disable Gemspec/RubyVersionGlobalsUsage + spec.add_development_dependency 'mocha', '~> 2.0' spec.add_development_dependency 'ndr_dev_support', '>= 6.0' spec.add_development_dependency 'net-smtp'