Skip to content

Commit 29a0f93

Browse files
committed
Fix Ruby 2.2 builds
1 parent d50d527 commit 29a0f93

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Gemfile-rails-dependencies

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ when nil, false, ""
2020
gem 'activerecord-jdbcsqlite3-adapter', platforms: [:jruby]
2121
gem 'selenium-webdriver', require: false
2222
else
23+
rails_version = version.split(' ').last
24+
2325
gem "rails", version
26+
27+
if rails_version < '6.0' && RUBY_VERSION < '2.3'
28+
gem "activesupport", "~> 5.2", "!= 5.2.6.1", "!= 5.2.6.2"
29+
end
30+
2431
gem "sprockets", '~> 3.0' if RUBY_VERSION < '2.5'
2532
gem "puma"
2633
gem 'activerecord-jdbcsqlite3-adapter', platforms: [:jruby]
@@ -31,7 +38,7 @@ else
3138
# automatically included. This issue was fixed on the Rails
3239
# side in Rails 7.0.1, but is not yet fixed in the Rails 6.1.x
3340
# branch. Discussion can be found here - https://github.com/mikel/mail/pull/1439
34-
if RUBY_VERSION >= '3.1' && version.split(' ').last < '7.0'
41+
if RUBY_VERSION >= '3.1' && rails_version < '7.0'
3542
gem 'net-smtp', require: false
3643
gem 'net-imap', require: false
3744
gem 'net-pop', require: false

0 commit comments

Comments
 (0)