From 1dbb077e2ed654018789370fac52dc6733919562 Mon Sep 17 00:00:00 2001 From: Marco Costa Date: Tue, 6 Apr 2021 11:35:08 -0700 Subject: [PATCH 1/2] Pin mimemagic to working version for Ruby 2.2 --- Appraisals | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Appraisals b/Appraisals index 8b8f63b553f..aeed5137447 100644 --- a/Appraisals +++ b/Appraisals @@ -339,6 +339,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \ gem 'mysql2', '< 1', platform: :ruby gem 'sprockets', '< 4' gem 'lograge' + gem 'mimemagic', '0.3.9' # Pinned until https://github.com/mimemagicrb/mimemagic/issues/142 is resolved. end appraise 'rails5-postgres' do @@ -346,6 +347,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \ gem 'pg', '< 1.0', platform: :ruby gem 'sprockets', '< 4' gem 'lograge' + gem 'mimemagic', '0.3.9' # Pinned until https://github.com/mimemagicrb/mimemagic/issues/142 is resolved. end appraise 'rails5-postgres-redis' do @@ -354,6 +356,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \ gem 'redis', '>= 4.0.1' gem 'sprockets', '< 4' gem 'lograge' + gem 'mimemagic', '0.3.9' # Pinned until https://github.com/mimemagicrb/mimemagic/issues/142 is resolved. end appraise 'rails5-postgres-redis-activesupport' do @@ -362,6 +365,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \ gem 'redis', '>= 4.0.1' gem 'sprockets', '< 4' gem 'lograge' + gem 'mimemagic', '0.3.9' # Pinned until https://github.com/mimemagicrb/mimemagic/issues/142 is resolved. end appraise 'rails5-postgres-sidekiq' do @@ -371,6 +375,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \ gem 'activejob' gem 'sprockets', '< 4' gem 'lograge' + gem 'mimemagic', '0.3.9' # Pinned until https://github.com/mimemagicrb/mimemagic/issues/142 is resolved. end appraise 'contrib' do From bf15bce6ae7ac278119514048168610d527838fa Mon Sep 17 00:00:00 2001 From: Marco Costa Date: Tue, 6 Apr 2021 12:09:08 -0700 Subject: [PATCH 2/2] Pin rexml for old rubies --- Gemfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index 726b1f7fc04..a41c3a4d007 100644 --- a/Gemfile +++ b/Gemfile @@ -44,6 +44,9 @@ else end gem 'warning', '~> 1' if RUBY_VERSION >= '2.5.0' gem 'webmock', '>= 3.10.0' +if RUBY_VERSION < '2.3.0' + gem 'rexml', '< 3.2.5' # Pinned due to https://github.com/ruby/rexml/issues/69 +end gem 'webrick', '>= 1.7.0' if RUBY_VERSION >= '3.0.0' # No longer bundled by default since Ruby 3.0 gem 'yard', '~> 0.9'