mongoid_enumerable 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -7
- data/Gemfile.lock +50 -52
- data/lib/mongoid_enumerable.rb +1 -1
- data/lib/mongoid_enumerable/version.rb +1 -1
- data/mongoid_enumerable.gemspec +2 -2
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18e17dfe853d6105ee28629168235d887a48e3c4bbb3c664e12fbbf498fecd29
|
4
|
+
data.tar.gz: c8098cd06f3564632e66b2b3215364ccd7e4b3f76abfd7b38bc68ca906e8e793
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 968163534163961a35c1fae3d38aa4d9c8df4540a8fda3748173abd7712ea789453ed79732c110b6d8fdf2d1d89bf273ec4b44387edc97fa394aad679d79034a
|
7
|
+
data.tar.gz: d934f50160025fc5361f90fc8a7c4d6321ae958f5adec90d0cb15093845530c233e0d1a87d7a9a02c396b52c94e0dadde6b56d80b3e76ab4a90043447e226419
|
data/.travis.yml
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
sudo: false
|
2
1
|
language: ruby
|
3
2
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- 2.3.6
|
8
|
-
- 2.2.9
|
9
|
-
before_install: gem install bundler -v 1.16.1
|
3
|
+
- 2.7.1
|
4
|
+
- 2.6.6
|
5
|
+
- 2.5.8
|
10
6
|
env:
|
11
7
|
global:
|
12
8
|
- CC_TEST_REPORTER_ID=049baa35735ad9587a7ff016745e67eb057ef79958cb31113d4a19cc504c0216
|
data/Gemfile.lock
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mongoid_enumerable (0.4.
|
4
|
+
mongoid_enumerable (0.4.1)
|
5
5
|
mongoid (>= 4.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (
|
11
|
-
activesupport (=
|
12
|
-
activesupport (
|
10
|
+
activemodel (6.0.2.2)
|
11
|
+
activesupport (= 6.0.2.2)
|
12
|
+
activesupport (6.0.2.2)
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
14
|
i18n (>= 0.7, < 2)
|
15
15
|
minitest (~> 5.1)
|
16
16
|
tzinfo (~> 1.1)
|
17
|
-
|
18
|
-
|
17
|
+
zeitwerk (~> 2.2)
|
18
|
+
bson (4.8.2)
|
19
|
+
byebug (11.1.1)
|
19
20
|
coderay (1.1.2)
|
20
|
-
concurrent-ruby (1.
|
21
|
+
concurrent-ruby (1.1.6)
|
21
22
|
diff-lcs (1.3)
|
22
|
-
docile (1.3.
|
23
|
-
ffi (1.
|
23
|
+
docile (1.3.2)
|
24
|
+
ffi (1.12.2)
|
24
25
|
formatador (0.2.5)
|
25
|
-
guard (2.
|
26
|
+
guard (2.16.2)
|
26
27
|
formatador (>= 0.2.4)
|
27
28
|
listen (>= 2.7, < 4.0)
|
28
29
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -36,75 +37,72 @@ GEM
|
|
36
37
|
guard (~> 2.1)
|
37
38
|
guard-compat (~> 1.1)
|
38
39
|
rspec (>= 2.99.0, < 4.0)
|
39
|
-
i18n (1.
|
40
|
+
i18n (1.8.2)
|
40
41
|
concurrent-ruby (~> 1.0)
|
41
|
-
|
42
|
-
|
43
|
-
rb-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
activemodel (>= 5.1, < 6.0.0)
|
53
|
-
mongo (>= 2.5.1, < 3.0.0)
|
42
|
+
listen (3.2.1)
|
43
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
44
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
45
|
+
lumberjack (1.2.4)
|
46
|
+
method_source (1.0.0)
|
47
|
+
minitest (5.14.0)
|
48
|
+
mongo (2.11.4)
|
49
|
+
bson (>= 4.4.2, < 5.0.0)
|
50
|
+
mongoid (7.1.0)
|
51
|
+
activemodel (>= 5.1, < 6.1)
|
52
|
+
mongo (>= 2.7.0, < 3.0.0)
|
54
53
|
nenv (0.3.0)
|
55
|
-
notiffany (0.1.
|
54
|
+
notiffany (0.1.3)
|
56
55
|
nenv (~> 0.1)
|
57
56
|
shellany (~> 0.0)
|
58
|
-
pry (0.
|
59
|
-
coderay (~> 1.1
|
60
|
-
method_source (~>
|
61
|
-
rake (
|
57
|
+
pry (0.13.1)
|
58
|
+
coderay (~> 1.1)
|
59
|
+
method_source (~> 1.0)
|
60
|
+
rake (13.0.1)
|
62
61
|
rb-fsevent (0.10.3)
|
63
|
-
rb-inotify (0.
|
64
|
-
ffi (
|
65
|
-
rspec (3.
|
66
|
-
rspec-core (~> 3.
|
67
|
-
rspec-expectations (~> 3.
|
68
|
-
rspec-mocks (~> 3.
|
69
|
-
rspec-core (3.
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-expectations (3.
|
62
|
+
rb-inotify (0.10.1)
|
63
|
+
ffi (~> 1.0)
|
64
|
+
rspec (3.9.0)
|
65
|
+
rspec-core (~> 3.9.0)
|
66
|
+
rspec-expectations (~> 3.9.0)
|
67
|
+
rspec-mocks (~> 3.9.0)
|
68
|
+
rspec-core (3.9.1)
|
69
|
+
rspec-support (~> 3.9.1)
|
70
|
+
rspec-expectations (3.9.1)
|
72
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
-
rspec-support (~> 3.
|
74
|
-
rspec-mocks (3.
|
72
|
+
rspec-support (~> 3.9.0)
|
73
|
+
rspec-mocks (3.9.1)
|
75
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
76
|
-
rspec-support (~> 3.
|
75
|
+
rspec-support (~> 3.9.0)
|
77
76
|
rspec-nc (0.3.0)
|
78
77
|
rspec (>= 3)
|
79
78
|
terminal-notifier (>= 1.4)
|
80
|
-
rspec-support (3.
|
81
|
-
ruby_dep (1.5.0)
|
79
|
+
rspec-support (3.9.2)
|
82
80
|
shellany (0.0.1)
|
83
|
-
simplecov (0.
|
81
|
+
simplecov (0.18.5)
|
84
82
|
docile (~> 1.1)
|
85
|
-
|
86
|
-
|
87
|
-
simplecov-html (0.10.2)
|
83
|
+
simplecov-html (~> 0.11)
|
84
|
+
simplecov-html (0.12.2)
|
88
85
|
terminal-notifier (2.0.0)
|
89
|
-
thor (0.
|
86
|
+
thor (1.0.1)
|
90
87
|
thread_safe (0.3.6)
|
91
|
-
tzinfo (1.2.
|
88
|
+
tzinfo (1.2.7)
|
92
89
|
thread_safe (~> 0.1)
|
90
|
+
zeitwerk (2.3.0)
|
93
91
|
|
94
92
|
PLATFORMS
|
95
93
|
ruby
|
96
94
|
|
97
95
|
DEPENDENCIES
|
98
|
-
bundler
|
96
|
+
bundler
|
99
97
|
byebug
|
100
98
|
guard
|
101
99
|
guard-rspec
|
102
100
|
mongoid
|
103
101
|
mongoid_enumerable!
|
104
|
-
rake (~>
|
102
|
+
rake (~> 13.0)
|
105
103
|
rspec (~> 3.0)
|
106
104
|
rspec-nc
|
107
105
|
simplecov
|
108
106
|
|
109
107
|
BUNDLED WITH
|
110
|
-
1.
|
108
|
+
2.1.4
|
data/lib/mongoid_enumerable.rb
CHANGED
@@ -44,7 +44,7 @@ module MongoidEnumerable
|
|
44
44
|
def self.define_value_methods(model:, value:, field_name:, prefix:, before_change:, after_change:)
|
45
45
|
method_name = "#{prefix}#{value}"
|
46
46
|
|
47
|
-
define_method("#{method_name}!") do
|
47
|
+
model.define_method("#{method_name}!") do
|
48
48
|
value_before = send(field_name)
|
49
49
|
value_after = value
|
50
50
|
|
data/mongoid_enumerable.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler"
|
24
|
-
spec.add_development_dependency "rake", "~>
|
23
|
+
spec.add_development_dependency "bundler"
|
24
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
26
26
|
spec.add_development_dependency "rspec-nc"
|
27
27
|
spec.add_development_dependency "mongoid"
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_enumerable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Lise
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,8 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
|
-
|
192
|
-
rubygems_version: 2.7.6
|
191
|
+
rubygems_version: 3.1.2
|
193
192
|
signing_key:
|
194
193
|
specification_version: 4
|
195
194
|
summary: Mongoid Enumerable
|