Skip to content

Commit

Permalink
Revert "Support only active Ruby and Rails versions"
Browse files Browse the repository at this point in the history
This reverts commit 132e2b7.
  • Loading branch information
benlangfeld committed Jan 17, 2023
1 parent 1c76f0b commit 9ef5fd8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,29 @@ jobs:

strategy:
matrix:
gemfile: ['rails_6.0', 'rails_6.1', 'rails_7.0']
gemfile: ['rails_5.2', 'rails_6.0', 'rails_6.1', 'rails_7.0']

ruby: ['2.7', '3.0', '3.1', '3.2']
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1']

exclude:
# Rails 5.2 requires Ruby < 3.0
# https://github.com/rails/rails/issues/40938
- ruby: '3.0'
gemfile: 'rails_5.2'
- ruby: '3.1'
gemfile: 'rails_5.2'
# Rails >= 6 requires Ruby >= 2.5
- ruby: '2.4'
gemfile: 'rails_6.0'
- ruby: '2.4'
gemfile: 'rails_6.1'
# Rails >= 7 requires Ruby >= 2.7
- ruby: '2.4'
gemfile: 'rails_7.0'
- ruby: '2.5'
gemfile: 'rails_7.0'
- ruby: '2.6'
gemfile: 'rails_7.0'

env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0
2.6.5
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ ActiveModel + Redis with the aim to mimic ActiveRecord where possible.

## Requirements

Modis policy is to support only those versions of Ruby and Rails which are not yet End of Life.

Modis 4.0+ supports Rails 6.0 and higher, as well as Ruby 2.7 and above. Tests are also being run with JRuby. For details please check the current CI setup.
Modis 4.0+ supports Rails 5.2 and higher, including Rails 6.1, as well as Ruby 2.3 and above, including Ruby 3.0. Tests are also being run with JRuby. For details please check the current CI setup.

For releases supporting older Rails versions such as 4.2-5.1 please check out the 3.x releases.

Expand Down
6 changes: 3 additions & 3 deletions modis.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]

gem.required_ruby_version = ">= 2.7.0"
gem.required_ruby_version = ">= 2.3.0"

gem.add_runtime_dependency 'activemodel', '>= 6.0'
gem.add_runtime_dependency 'activesupport', '>= 6.0'
gem.add_runtime_dependency 'activemodel', '>= 5.2'
gem.add_runtime_dependency 'activesupport', '>= 5.2'
gem.add_runtime_dependency 'redis', '>= 3.0'
gem.add_runtime_dependency 'connection_pool', '>= 2'

Expand Down

0 comments on commit 9ef5fd8

Please sign in to comment.