modis 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.ruby-version +1 -1
- data/.travis.yml +4 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +96 -0
- data/benchmark/persistence.rb +1 -1
- data/lib/modis/persistence.rb +1 -1
- data/lib/modis/version.rb +1 -1
- data/spec/persistence_spec.rb +4 -0
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a3bc55800857e6cd1042d6ae44ba41f53470bf1d73aaa9d3f7b32c3e2590615
|
|
4
|
+
data.tar.gz: 9697070b178e1b337eb136edfd54b1c45ffd239858d5f34fe8a02fe42b3e4632
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbc0e35df71570b4dd3d4049865537d24d3b10c10dfd0914b481f5add04ced5e663764720bebf63fad7a29e11227aea9ba4a75c27bcec9061ce5a3f496f33fda
|
|
7
|
+
data.tar.gz: d5bb456a24915dd363c0ecb3af827907b4962fa39f45d9fdd8b72aa36bfc090b921272243379786b444462a3c2dd3f6b516da038d3f2ec2ac812b1f21331fd0f
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.6.
|
|
1
|
+
2.6.5
|
data/.travis.yml
CHANGED
|
@@ -12,6 +12,7 @@ rvm:
|
|
|
12
12
|
- 2.4
|
|
13
13
|
- 2.5
|
|
14
14
|
- 2.6
|
|
15
|
+
- 2.7
|
|
15
16
|
- jruby-9.1.17.0
|
|
16
17
|
- jruby-9.2.8.0
|
|
17
18
|
|
|
@@ -25,6 +26,9 @@ gemfile:
|
|
|
25
26
|
matrix:
|
|
26
27
|
fast_finish: true
|
|
27
28
|
exclude:
|
|
29
|
+
# Rails 4.2 uses BigDecimal.new which was removed in Ruby 2.7
|
|
30
|
+
- gemfile: gemfiles/rails_4.2.gemfile
|
|
31
|
+
rvm: 2.7
|
|
28
32
|
# Rails 6 requires Ruby 2.5 or higher
|
|
29
33
|
- gemfile: gemfiles/rails_6.0.gemfile
|
|
30
34
|
rvm: 2.3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
## Unreleased
|
|
2
2
|
|
|
3
|
+
## v3.3.0 - 2020-07-07
|
|
4
|
+
|
|
5
|
+
- Fix deprecation warnings when using Ruby >= 2.7, `activemodel` >= 6.0.3, or `redis` >= 4.2.0. [#30](https://github.com/rpush/modis/pull/30) by [@rofreg](https://github.com/rofreg).
|
|
6
|
+
|
|
3
7
|
## v3.2.0 - 2019-12-12
|
|
4
8
|
|
|
5
9
|
- Add missing `#update` and `#update!`. [#27](https://github.com/rpush/modis/pull/27) by [@dsantosmerino](https://github.com/dsantosmerino).
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
modis (3.3.0)
|
|
5
|
+
activemodel (>= 4.2)
|
|
6
|
+
activesupport (>= 4.2)
|
|
7
|
+
connection_pool (>= 2)
|
|
8
|
+
hiredis (>= 0.5)
|
|
9
|
+
msgpack (>= 0.5)
|
|
10
|
+
redis (>= 3.0)
|
|
11
|
+
|
|
12
|
+
GEM
|
|
13
|
+
remote: https://rubygems.org/
|
|
14
|
+
specs:
|
|
15
|
+
activemodel (6.0.3.2)
|
|
16
|
+
activesupport (= 6.0.3.2)
|
|
17
|
+
activesupport (6.0.3.2)
|
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
19
|
+
i18n (>= 0.7, < 2)
|
|
20
|
+
minitest (~> 5.1)
|
|
21
|
+
tzinfo (~> 1.1)
|
|
22
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
|
23
|
+
appraisal (2.3.0)
|
|
24
|
+
bundler
|
|
25
|
+
rake
|
|
26
|
+
thor (>= 0.14.0)
|
|
27
|
+
ast (2.4.1)
|
|
28
|
+
cane (3.0.0)
|
|
29
|
+
parallel
|
|
30
|
+
codeclimate-test-reporter (1.0.7)
|
|
31
|
+
simplecov
|
|
32
|
+
concurrent-ruby (1.1.6)
|
|
33
|
+
connection_pool (2.2.3)
|
|
34
|
+
diff-lcs (1.4.4)
|
|
35
|
+
docile (1.3.2)
|
|
36
|
+
hiredis (0.6.3)
|
|
37
|
+
i18n (1.8.3)
|
|
38
|
+
concurrent-ruby (~> 1.0)
|
|
39
|
+
jaro_winkler (1.5.4)
|
|
40
|
+
minitest (5.14.1)
|
|
41
|
+
msgpack (1.3.3)
|
|
42
|
+
parallel (1.19.2)
|
|
43
|
+
parser (2.7.1.4)
|
|
44
|
+
ast (~> 2.4.1)
|
|
45
|
+
powerpack (0.1.2)
|
|
46
|
+
rainbow (3.0.0)
|
|
47
|
+
rake (13.0.1)
|
|
48
|
+
redis (4.2.1)
|
|
49
|
+
rspec (3.9.0)
|
|
50
|
+
rspec-core (~> 3.9.0)
|
|
51
|
+
rspec-expectations (~> 3.9.0)
|
|
52
|
+
rspec-mocks (~> 3.9.0)
|
|
53
|
+
rspec-core (3.9.2)
|
|
54
|
+
rspec-support (~> 3.9.3)
|
|
55
|
+
rspec-expectations (3.9.2)
|
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
57
|
+
rspec-support (~> 3.9.0)
|
|
58
|
+
rspec-mocks (3.9.1)
|
|
59
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
60
|
+
rspec-support (~> 3.9.0)
|
|
61
|
+
rspec-support (3.9.3)
|
|
62
|
+
rubocop (0.61.1)
|
|
63
|
+
jaro_winkler (~> 1.5.1)
|
|
64
|
+
parallel (~> 1.10)
|
|
65
|
+
parser (>= 2.5, != 2.5.1.1)
|
|
66
|
+
powerpack (~> 0.1)
|
|
67
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
68
|
+
ruby-progressbar (~> 1.7)
|
|
69
|
+
unicode-display_width (~> 1.4.0)
|
|
70
|
+
ruby-progressbar (1.10.1)
|
|
71
|
+
simplecov (0.18.5)
|
|
72
|
+
docile (~> 1.1)
|
|
73
|
+
simplecov-html (~> 0.11)
|
|
74
|
+
simplecov-html (0.12.2)
|
|
75
|
+
thor (1.0.1)
|
|
76
|
+
thread_safe (0.3.6)
|
|
77
|
+
tzinfo (1.2.7)
|
|
78
|
+
thread_safe (~> 0.1)
|
|
79
|
+
unicode-display_width (1.4.1)
|
|
80
|
+
zeitwerk (2.3.1)
|
|
81
|
+
|
|
82
|
+
PLATFORMS
|
|
83
|
+
ruby
|
|
84
|
+
|
|
85
|
+
DEPENDENCIES
|
|
86
|
+
appraisal
|
|
87
|
+
cane
|
|
88
|
+
codeclimate-test-reporter
|
|
89
|
+
modis!
|
|
90
|
+
rake
|
|
91
|
+
rspec
|
|
92
|
+
rubocop (= 0.61.1)
|
|
93
|
+
simplecov
|
|
94
|
+
|
|
95
|
+
BUNDLED WITH
|
|
96
|
+
2.1.4
|
data/benchmark/persistence.rb
CHANGED
data/lib/modis/persistence.rb
CHANGED
|
@@ -185,7 +185,7 @@ module Modis
|
|
|
185
185
|
validate(args)
|
|
186
186
|
future = persist
|
|
187
187
|
|
|
188
|
-
if future && (future == :unchanged || future.value == 'OK')
|
|
188
|
+
if future && ((future.is_a?(Symbol) && future == :unchanged) || future.value == 'OK')
|
|
189
189
|
changes_applied
|
|
190
190
|
@new_record = false
|
|
191
191
|
true
|
data/lib/modis/version.rb
CHANGED
data/spec/persistence_spec.rb
CHANGED
|
@@ -277,6 +277,8 @@ describe Modis::Persistence do
|
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
describe 'update_attributes!' do
|
|
280
|
+
around(:each) { |example| ActiveSupport::Deprecation.silence { example.run } }
|
|
281
|
+
|
|
280
282
|
it 'updates the given attributes' do
|
|
281
283
|
model.update_attributes!(name: 'Derp', age: 29)
|
|
282
284
|
model.reload
|
|
@@ -329,6 +331,8 @@ describe Modis::Persistence do
|
|
|
329
331
|
end
|
|
330
332
|
|
|
331
333
|
describe 'update_attributes' do
|
|
334
|
+
around(:each) { |example| ActiveSupport::Deprecation.silence { example.run } }
|
|
335
|
+
|
|
332
336
|
it 'updates the given attributes' do
|
|
333
337
|
model.update_attributes(name: 'Derp', age: 29)
|
|
334
338
|
model.reload
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: modis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ian Leitch
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-07-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -206,6 +206,7 @@ files:
|
|
|
206
206
|
- Appraisals
|
|
207
207
|
- CHANGELOG.md
|
|
208
208
|
- Gemfile
|
|
209
|
+
- Gemfile.lock
|
|
209
210
|
- LICENSE.txt
|
|
210
211
|
- README.md
|
|
211
212
|
- Rakefile
|
|
@@ -244,7 +245,7 @@ homepage: https://github.com/rpush/modis
|
|
|
244
245
|
licenses:
|
|
245
246
|
- MIT
|
|
246
247
|
metadata: {}
|
|
247
|
-
post_install_message:
|
|
248
|
+
post_install_message:
|
|
248
249
|
rdoc_options: []
|
|
249
250
|
require_paths:
|
|
250
251
|
- lib
|
|
@@ -259,8 +260,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
259
260
|
- !ruby/object:Gem::Version
|
|
260
261
|
version: '0'
|
|
261
262
|
requirements: []
|
|
262
|
-
rubygems_version: 3.
|
|
263
|
-
signing_key:
|
|
263
|
+
rubygems_version: 3.1.3
|
|
264
|
+
signing_key:
|
|
264
265
|
specification_version: 4
|
|
265
266
|
summary: ActiveModel + Redis
|
|
266
267
|
test_files:
|