mongoid-history 0.4.7 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +34 -21
- data/.travis.yml +2 -0
- data/CHANGELOG.md +65 -58
- data/Gemfile +3 -1
- data/README.md +27 -8
- data/Rakefile +0 -1
- data/lib/mongoid/history.rb +1 -2
- data/lib/mongoid/history/trackable.rb +30 -14
- data/lib/mongoid/history/tracker.rb +4 -4
- data/lib/mongoid/history/version.rb +1 -1
- data/mongoid-history.gemspec +2 -1
- data/spec/integration/embedded_in_polymorphic_spec.rb +21 -21
- data/spec/integration/integration_spec.rb +37 -17
- data/spec/integration/multi_relation_spec.rb +1 -1
- data/spec/integration/nested_embedded_documents_spec.rb +5 -5
- data/spec/integration/nested_embedded_polymorphic_documents_spec.rb +6 -6
- data/spec/spec_helper.rb +3 -5
- data/spec/unit/trackable_spec.rb +50 -4
- metadata +46 -33
- data/lib/mongoid/history/mongoid.rb +0 -7
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-history
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Qian
|
@@ -10,90 +10,104 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: easy_diff
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: mongoid
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '3.0'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '3.0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: mongoid-compatibility
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
43
57
|
- !ruby/object:Gem::Dependency
|
44
58
|
name: activesupport
|
45
59
|
requirement: !ruby/object:Gem::Requirement
|
46
60
|
requirements:
|
47
|
-
- -
|
61
|
+
- - ">="
|
48
62
|
- !ruby/object:Gem::Version
|
49
63
|
version: '0'
|
50
64
|
type: :runtime
|
51
65
|
prerelease: false
|
52
66
|
version_requirements: !ruby/object:Gem::Requirement
|
53
67
|
requirements:
|
54
|
-
- -
|
68
|
+
- - ">="
|
55
69
|
- !ruby/object:Gem::Version
|
56
70
|
version: '0'
|
57
71
|
- !ruby/object:Gem::Dependency
|
58
72
|
name: rake
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
60
74
|
requirements:
|
61
|
-
- -
|
75
|
+
- - ">="
|
62
76
|
- !ruby/object:Gem::Version
|
63
77
|
version: '0'
|
64
78
|
type: :development
|
65
79
|
prerelease: false
|
66
80
|
version_requirements: !ruby/object:Gem::Requirement
|
67
81
|
requirements:
|
68
|
-
- -
|
82
|
+
- - ">="
|
69
83
|
- !ruby/object:Gem::Version
|
70
84
|
version: '0'
|
71
85
|
- !ruby/object:Gem::Dependency
|
72
86
|
name: rspec
|
73
87
|
requirement: !ruby/object:Gem::Requirement
|
74
88
|
requirements:
|
75
|
-
- - ~>
|
89
|
+
- - "~>"
|
76
90
|
- !ruby/object:Gem::Version
|
77
91
|
version: '3.1'
|
78
92
|
type: :development
|
79
93
|
prerelease: false
|
80
94
|
version_requirements: !ruby/object:Gem::Requirement
|
81
95
|
requirements:
|
82
|
-
- - ~>
|
96
|
+
- - "~>"
|
83
97
|
- !ruby/object:Gem::Version
|
84
98
|
version: '3.1'
|
85
99
|
- !ruby/object:Gem::Dependency
|
86
100
|
name: bundler
|
87
101
|
requirement: !ruby/object:Gem::Requirement
|
88
102
|
requirements:
|
89
|
-
- -
|
103
|
+
- - ">="
|
90
104
|
- !ruby/object:Gem::Version
|
91
105
|
version: '0'
|
92
106
|
type: :development
|
93
107
|
prerelease: false
|
94
108
|
version_requirements: !ruby/object:Gem::Requirement
|
95
109
|
requirements:
|
96
|
-
- -
|
110
|
+
- - ">="
|
97
111
|
- !ruby/object:Gem::Version
|
98
112
|
version: '0'
|
99
113
|
- !ruby/object:Gem::Dependency
|
@@ -102,54 +116,54 @@ dependencies:
|
|
102
116
|
requirements:
|
103
117
|
- - '='
|
104
118
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
119
|
+
version: 0.34.1
|
106
120
|
type: :development
|
107
121
|
prerelease: false
|
108
122
|
version_requirements: !ruby/object:Gem::Requirement
|
109
123
|
requirements:
|
110
124
|
- - '='
|
111
125
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.
|
126
|
+
version: 0.34.1
|
113
127
|
- !ruby/object:Gem::Dependency
|
114
128
|
name: yard
|
115
129
|
requirement: !ruby/object:Gem::Requirement
|
116
130
|
requirements:
|
117
|
-
- -
|
131
|
+
- - ">="
|
118
132
|
- !ruby/object:Gem::Version
|
119
133
|
version: '0'
|
120
134
|
type: :development
|
121
135
|
prerelease: false
|
122
136
|
version_requirements: !ruby/object:Gem::Requirement
|
123
137
|
requirements:
|
124
|
-
- -
|
138
|
+
- - ">="
|
125
139
|
- !ruby/object:Gem::Version
|
126
140
|
version: '0'
|
127
141
|
- !ruby/object:Gem::Dependency
|
128
142
|
name: gem-release
|
129
143
|
requirement: !ruby/object:Gem::Requirement
|
130
144
|
requirements:
|
131
|
-
- -
|
145
|
+
- - ">="
|
132
146
|
- !ruby/object:Gem::Version
|
133
147
|
version: '0'
|
134
148
|
type: :development
|
135
149
|
prerelease: false
|
136
150
|
version_requirements: !ruby/object:Gem::Requirement
|
137
151
|
requirements:
|
138
|
-
- -
|
152
|
+
- - ">="
|
139
153
|
- !ruby/object:Gem::Version
|
140
154
|
version: '0'
|
141
155
|
- !ruby/object:Gem::Dependency
|
142
156
|
name: coveralls
|
143
157
|
requirement: !ruby/object:Gem::Requirement
|
144
158
|
requirements:
|
145
|
-
- -
|
159
|
+
- - ">="
|
146
160
|
- !ruby/object:Gem::Version
|
147
161
|
version: '0'
|
148
162
|
type: :development
|
149
163
|
prerelease: false
|
150
164
|
version_requirements: !ruby/object:Gem::Requirement
|
151
165
|
requirements:
|
152
|
-
- -
|
166
|
+
- - ">="
|
153
167
|
- !ruby/object:Gem::Version
|
154
168
|
version: '0'
|
155
169
|
description: This library tracks historical changes for any document, including embedded
|
@@ -169,13 +183,13 @@ executables: []
|
|
169
183
|
extensions: []
|
170
184
|
extra_rdoc_files: []
|
171
185
|
files:
|
172
|
-
- .coveralls.yml
|
173
|
-
- .document
|
174
|
-
- .gitignore
|
175
|
-
- .rspec
|
176
|
-
- .rubocop.yml
|
177
|
-
- .rubocop_todo.yml
|
178
|
-
- .travis.yml
|
186
|
+
- ".coveralls.yml"
|
187
|
+
- ".document"
|
188
|
+
- ".gitignore"
|
189
|
+
- ".rspec"
|
190
|
+
- ".rubocop.yml"
|
191
|
+
- ".rubocop_todo.yml"
|
192
|
+
- ".travis.yml"
|
179
193
|
- CHANGELOG.md
|
180
194
|
- CONTRIBUTING.md
|
181
195
|
- Gemfile
|
@@ -184,7 +198,6 @@ files:
|
|
184
198
|
- Rakefile
|
185
199
|
- lib/mongoid-history.rb
|
186
200
|
- lib/mongoid/history.rb
|
187
|
-
- lib/mongoid/history/mongoid.rb
|
188
201
|
- lib/mongoid/history/trackable.rb
|
189
202
|
- lib/mongoid/history/tracker.rb
|
190
203
|
- lib/mongoid/history/version.rb
|
@@ -210,17 +223,17 @@ require_paths:
|
|
210
223
|
- lib
|
211
224
|
required_ruby_version: !ruby/object:Gem::Requirement
|
212
225
|
requirements:
|
213
|
-
- -
|
226
|
+
- - ">="
|
214
227
|
- !ruby/object:Gem::Version
|
215
228
|
version: '0'
|
216
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
230
|
requirements:
|
218
|
-
- -
|
231
|
+
- - ">="
|
219
232
|
- !ruby/object:Gem::Version
|
220
233
|
version: '0'
|
221
234
|
requirements: []
|
222
235
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.
|
236
|
+
rubygems_version: 2.2.2
|
224
237
|
signing_key:
|
225
238
|
specification_version: 4
|
226
239
|
summary: Track and audit, undo and redo changes on Mongoid documents.
|