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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ba2aeae230edf053fc45cbda55706005ea32d70
4
- data.tar.gz: 8a8fc2cf5e76048ef5929fa407fab0a2a93ba9bd
3
+ metadata.gz: c407ee56f46487ddf4bb6743341873b13ca536fd
4
+ data.tar.gz: e432e54bf0b6644c4b3e5addf0ca547497ca7e84
5
5
  SHA512:
6
- metadata.gz: 1273ea64be5da4bf7ebc5a663db3732704ac2c0d6a05cb93376f01a9dc8983c074825f7ffdd515caab1d60a1d5559c007bbc78cb8a5d496309d6003522b615ee
7
- data.tar.gz: 8012984eeb350f8a438317193adb2a7bfefcaa9959fe4243de7caf0dc0e64684444d0e791f3a56815c4bb34fcb03960f993768b772bea9e110ad1f014d602f1f
6
+ metadata.gz: c37d81b652ad51cfaba9c6ff82c4232d68f2ba4846b4cbeee75dee829504b0faa6b98adc1ffc36976bd7f9260e57ad45aa509a691d98fbdb503e8011e2331028
7
+ data.tar.gz: 4e7c92b44298774eef34097501deb50c7c5e59dda31dd9c109cc9dffed366fe35265313d16584df1b0578deae23c8c7937c6cab1f1e2ac6b199adf42b69462a2
@@ -180,7 +180,7 @@ module CustomFields
180
180
  next if _fields.empty?
181
181
 
182
182
  _operation = { "$#{operation_name}" => _fields }
183
- collection.find(selector).update _operation, multi: true
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).update({ '$set' => updates })
217
+ collection.find(record.atomic_selector).update_one({ '$set' => updates })
218
218
  end
219
219
  end
220
220
 
@@ -1,5 +1,5 @@
1
1
  module CustomFields #:nodoc
2
2
 
3
- VERSION = '2.4.0.rc8'
3
+ VERSION = '2.5.0.rc1'
4
4
 
5
5
  end
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.0.rc8
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-10-26 00:00:00.000000000 Z
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: 4.0.2
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: 4.0.2
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.7.1
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.7.1
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.1
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.1
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.4.5
268
+ rubygems_version: 2.5.0
269
269
  signing_key:
270
270
  specification_version: 4
271
271
  summary: Custom fields extension for Mongoid.