From bf966c05654c490ec8f4db8e5ab2bf9b7e64a006 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Wed, 2 Aug 2023 09:53:17 -0700 Subject: [PATCH] Fix broken CI due to rake-compiler error on Ruby < 2.6 The recently released rake-compiler 1.2.4 breaks compatibility with Ruby 2.5 and below. It is causing concurrent-ruby CI jobs to fail with errors like this: ``` NoMethodError: undefined method `cleanpath' for "tmp/x86_64-linux/concurrent_ruby_ext/2.3.8":String ``` The rake-compiler regression has been reported here: https://github.com/rake-compiler/rake-compiler/issues/224 As a workaround, this PR updates the ruby-concurrent Gemfile to avoid rake-compiler 1.2.4. This should fix the broken CI jobs. --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index b336031b7..f10dc8eba 100644 --- a/Gemfile +++ b/Gemfile @@ -12,7 +12,7 @@ gem 'concurrent-ruby-ext', Concurrent::VERSION, options.merge(platform: :mri) group :development do gem 'rake', '~> 13.0' - gem 'rake-compiler', '~> 1.0', '>= 1.0.7' + gem 'rake-compiler', '~> 1.0', '>= 1.0.7', '!= 1.2.4' gem 'rake-compiler-dock', '~> 1.0' gem 'pry', '~> 0.11', platforms: :mri end