Skip to content

Commit c4cfd1b

Browse files
committed
Require Ruby version 2.6 or greater
Older versions are EOL'd
1 parent 2af39fe commit c4cfd1b

4 files changed

Lines changed: 17 additions & 27 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
ruby:
20-
- 2.4
21-
- 2.5
2220
- 2.6
2321
- 2.7
2422
- jruby

Appraisals

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,22 @@ appraise 'rails-5.2' do
3636
gem 'sqlite3', '< 1.4.0', platform: :ruby
3737
end
3838

39-
# Rails 6.x requires Ruby >= 2.5.0
40-
if (RUBY_ENGINE == 'ruby' && RUBY_VERSION >= '2.5.0') || RUBY_ENGINE != 'ruby'
41-
appraise 'rails-6.0' do
42-
gem 'activerecord-jdbcsqlite3-adapter', '~> 60.1', platform: :jruby
43-
gem 'bootsnap', '~> 1.4'
44-
gem 'rails', '6.0.3.1'
45-
gem 'rspec-rails', '~> 3.7'
46-
gem 'sqlite3', '~> 1.4.0', platform: :ruby
47-
end
48-
else
49-
puts 'Skipping rails-6.0 for Ruby < 2.5'
39+
appraise 'rails-6.0' do
40+
gem 'activerecord-jdbcsqlite3-adapter', '~> 60.1', platform: :jruby
41+
gem 'bootsnap', '~> 1.4'
42+
gem 'rails', '6.0.3.1'
43+
gem 'rspec-rails', '~> 3.7'
44+
gem 'sqlite3', '~> 1.4.0', platform: :ruby
5045
end
5146

5247
# Test rails 6.1 with psych >= 4
53-
# Rails 6.x requires Ruby >= 2.5.0
54-
if (RUBY_ENGINE == 'ruby' && RUBY_VERSION >= '2.5.0') || RUBY_ENGINE != 'ruby'
55-
appraise 'rails-6.1' do
56-
gem 'activerecord-jdbcsqlite3-adapter', '~> 61.1', platform: :jruby
57-
gem 'bootsnap', '>= 1.4.4'
58-
gem 'rails', '6.1.4'
59-
gem 'rspec-rails', '~> 5.0'
60-
gem 'sqlite3', '~> 1.4', platform: :ruby
61-
gem 'psych', '>= 4'
62-
end
63-
else
64-
puts 'Skipping rails-6.1 for Ruby < 2.5'
48+
appraise 'rails-6.1' do
49+
gem 'activerecord-jdbcsqlite3-adapter', '~> 61.1', platform: :jruby
50+
gem 'bootsnap', '>= 1.4.4'
51+
gem 'rails', '6.1.4'
52+
gem 'rspec-rails', '~> 5.0'
53+
gem 'sqlite3', '~> 1.4', platform: :ruby
54+
gem 'psych', '>= 4'
6555
end
6656

6757
appraise 'sinatra' do

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Config helps you easily manage environment specific settings in an easy and usab
2424
Current version supports and is [tested](.github/workflows/tests.yml#L19) for the following interpreters and frameworks:
2525

2626
* Interpreters
27-
* [Ruby](https://www.ruby-lang.org) `>= 2.4`
27+
* [Ruby](https://www.ruby-lang.org) `>= 2.6`
2828
* [JRuby](https://www.jruby.org) `>= 9.2`
2929
* [TruffleRuby](https://github.com/oracle/truffleruby) `>= 19.3`
3030
* Application frameworks
@@ -34,6 +34,8 @@ Current version supports and is [tested](.github/workflows/tests.yml#L19) for th
3434

3535
For Ruby `2.0` to `2.3` or Rails `3` to `4.1` use version `1.x` of this gem. For older versions of Rails or Ruby use [AppConfig](http://github.com/fredwu/app_config).
3636

37+
For Ruby `2.4` or `2.5`, use version `3.x` of this gem.
38+
3739
## Installing
3840

3941
### Installing on Rails

config.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Donate: \e[34mhttps://opencollective.com/rubyconfig/donate\e[0m\n"
2424
s.files.select! { |file| /(^lib\/|^\w+.md$|\.gemspec$)/ =~ file }
2525

2626
s.require_paths = ['lib']
27-
s.required_ruby_version = '>= 2.4.0'
27+
s.required_ruby_version = '>= 2.6.0'
2828

2929
s.add_dependency 'deep_merge', '~> 1.2', '>= 1.2.1'
3030
s.add_dependency 'dry-validation', '~> 1.0', '>= 1.0.0'

0 commit comments

Comments
 (0)