Skip to content

Commit a7d6203

Browse files
Merge pull request #19 from powerhome/rails-5-2
Compatability with Rails 5.2's ActiveModel::Dirty
2 parents 4de54f4 + e4694da commit a7d6203

14 files changed

+79
-33
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ AllCops:
22
Exclude:
33
- modis.gemspec
44
- vendor/**/*
5+
- gemfiles/**/*
56

67
LineLength:
78
Enabled: false

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.5.3

.travis.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
language: ruby
2+
13
sudo: false
4+
5+
cache: bundler
6+
27
services:
3-
- redis-server
4-
language: ruby
8+
- redis-server
9+
510
rvm:
6-
- 2.2.4
7-
- 2.3.0
8-
- 2.4.0
9-
- jruby-9.1.9.0
11+
- 2.3.8
12+
- 2.4.5
13+
- 2.5.3
14+
- jruby-9.1.17.0
15+
- jruby-9.2.5.0
16+
17+
gemfile:
18+
- gemfiles/rails_42.gemfile
19+
- gemfiles/rails_50.gemfile
20+
- gemfiles/rails_51.gemfile
21+
- gemfiles/rails_52.gemfile
22+
1023
env:
1124
global:
1225
secure: LrTz0Pq2ibNZuKDhdzcrvEUSNxUpPopEq9aJeCxy3UpV0v4vpHBtWV0S6zofvf98g/RkZ6cGI1u+0H578dHgE6pWTo+iR8LAwqPKofrFIWRkeo+M77Vs5swahb3mQyPOcig1hfVWDm25MsojePYm70eBIcBU55NWImtdePXfiU0=

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Unreleased
2+
3+
- Drop support for any Ruby < 2.3 and Rails < 4.2.
4+
- Add support for Rails 5.2
5+
- Resolve some Rubocop lint violations
6+
- Test combinations of Ruby and Rails versions in CI
7+
18
## v2.1.0
29

310
- Add `enable_all_index` option to allow disabling the `all` keys. [#7](https://github.com/ileitch/modis/pull/7)

Gemfile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,4 @@
22

33
source 'https://rubygems.org'
44

5-
gem 'rake'
6-
gem 'rspec'
7-
8-
platform :mri do
9-
gem 'cane'
10-
gem 'codeclimate-test-reporter', require: nil
11-
gem 'rubocop', '0.61.1', require: false
12-
gem 'simplecov', require: false
13-
end
14-
15-
platform :mri_21 do
16-
gem 'stackprof'
17-
end
18-
195
gemspec

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ActiveModel + Redis with the aim to mimic ActiveRecord where possible.
88

99
## Requirements
1010

11-
Modis supports CRuby 2.2.2+ and jRuby 9k+
11+
Modis supports any actively supported Ruby and Ruby on Rails versions. As of 2018-12-19, that means CRuby 2.3+ and jRuby 9k+, as well as Rails 4.2+.
1212

1313
## Installation
1414

gemfiles/rails_42.gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gem 'activemodel', '~> 4.2.0'
6+
gem 'activesupport', '~> 4.2.0'
7+
8+
gemspec path: '../'

gemfiles/rails_50.gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gem 'activemodel', '~> 5.0.0'
6+
gem 'activesupport', '~> 5.0.0'
7+
8+
gemspec path: '../'

gemfiles/rails_51.gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gem 'activemodel', '~> 5.1.0'
6+
gem 'activesupport', '~> 5.1.0'
7+
8+
gemspec path: '../'

gemfiles/rails_52.gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gem 'activemodel', '~> 5.2.0'
6+
gem 'activesupport', '~> 5.2.0'
7+
8+
gemspec path: '../'

0 commit comments

Comments
 (0)