custom_fields 2.4.0.rc8 → 2.5.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/custom_fields/source.rb +2 -2
- data/lib/custom_fields/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c407ee56f46487ddf4bb6743341873b13ca536fd
|
4
|
+
data.tar.gz: e432e54bf0b6644c4b3e5addf0ca547497ca7e84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c37d81b652ad51cfaba9c6ff82c4232d68f2ba4846b4cbeee75dee829504b0faa6b98adc1ffc36976bd7f9260e57ad45aa509a691d98fbdb503e8011e2331028
|
7
|
+
data.tar.gz: 4e7c92b44298774eef34097501deb50c7c5e59dda31dd9c109cc9dffed366fe35265313d16584df1b0578deae23c8c7937c6cab1f1e2ac6b199adf42b69462a2
|
data/lib/custom_fields/source.rb
CHANGED
@@ -180,7 +180,7 @@ module CustomFields
|
|
180
180
|
next if _fields.empty?
|
181
181
|
|
182
182
|
_operation = { "$#{operation_name}" => _fields }
|
183
|
-
collection.find(selector).
|
183
|
+
collection.find(selector).update_many _operation
|
184
184
|
end
|
185
185
|
end
|
186
186
|
|
@@ -214,7 +214,7 @@ module CustomFields
|
|
214
214
|
next if updates.empty?
|
215
215
|
|
216
216
|
collection = self.send(name).collection
|
217
|
-
collection.find(record.atomic_selector).
|
217
|
+
collection.find(record.atomic_selector).update_one({ '$set' => updates })
|
218
218
|
end
|
219
219
|
end
|
220
220
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custom_fields
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.0.1
|
20
20
|
type: :runtime
|
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: 5.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: carrierwave-mongoid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.8.1
|
34
34
|
type: :runtime
|
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: 0.
|
40
|
+
version: 0.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.2.
|
47
|
+
version: 4.2.5
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.2.
|
54
|
+
version: 4.2.5
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: monetize
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
version: '2.4'
|
266
266
|
requirements: []
|
267
267
|
rubyforge_project:
|
268
|
-
rubygems_version: 2.
|
268
|
+
rubygems_version: 2.5.0
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: Custom fields extension for Mongoid.
|