denormalize_mm 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MzkyNjZiMWNmNzg2NDk0NGZiZmJiMWQ2MWUzNzJhM2MzZTA5OWY3Zg==
5
- data.tar.gz: !binary |-
6
- ZDY4MzA2MTU1YjNiNjM2MmFkYzY4MWNkODk3NWY1OTk4NTczNTM3ZQ==
2
+ SHA256:
3
+ metadata.gz: bf1db10ff517e44686a15dcf6bace3ca0d2acb24754f926cb3cd415a21220709
4
+ data.tar.gz: 5177ab282baba767bd3f65778d33611e1862b66e5dfe5ee9693f7bdb19504300
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YTNjOGQ5MjkwMjBmNWMxZDY5NjQ2YmJiZWFkODFlYjQxZmRmYzNjNWQwZmFi
10
- YTk4OGFjMDdhNDk5M2JmZTZiZWM2MjE1MWM1YjlkOWQyZTM3YjA4Zjc4ZWM2
11
- NDg0OWFjYWU2MzI2YjI0NjgzOThjZTMzZmQyZmM2M2NlZmUzNzA=
12
- data.tar.gz: !binary |-
13
- YjM0MTAzNWRhMGMwOGI0MzRkM2VlZGI5NjA4NjBjNWNiNDk0MzM1Y2U1OGNj
14
- NzA2YTg2ZjVkMjkzM2U5ODdjODdkNTZhMzQxMjFiYTQ0MWI2NWIzMmQwNGY4
15
- YWY3NmYzNTY1MmE3OTg1OGMzZWE3YzhkNTUzMDNmYWE1OTQ4ZmU=
6
+ metadata.gz: e618a1cab3b3be5d2bdca176764615d5e504c65b1e4f7925215735f3a003c01d349981e54bd9debfe9b93d8aee955535187ee0110785eece5f78f907ea967068
7
+ data.tar.gz: 02d943a65ce25b05b177d52b0dd2c7bf16eb0090f90e68b992d43b71278dfaaa8fc3dd1113b164dbe3f0bdf24ae15a5b96a2acad105649c387c97de1a4ff50ef
@@ -63,7 +63,7 @@ module MongoMapper::Denormalization
63
63
  collection_name = self.collection_name
64
64
  reverse_denormalization_method_name = "_denormalize__#{collection_name}__#{association}__#{field}".gsub(/[^A-Za-z0-9_]/, '_')
65
65
 
66
- klass.class_eval(<<-CODE, __FILE__, __LINE__)
66
+ klass.class_eval(<<-CODE, __FILE__, __LINE__ + 1)
67
67
  after_update :#{reverse_denormalization_method_name}
68
68
 
69
69
  def #{reverse_denormalization_method_name}
@@ -84,7 +84,7 @@ module MongoMapper::Denormalization
84
84
  }
85
85
  }
86
86
 
87
- db["#{collection_name}"].update(find_query, update_query, :multi => true)
87
+ db["#{collection_name}"].update_many(find_query, update_query)
88
88
  end
89
89
 
90
90
  true
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: denormalize_mm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Taylor
8
8
  - Andrew Pariser
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-08 00:00:00.000000000 Z
12
+ date: 2020-09-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Helpers to denormalize fields easily on mongo mapper models
15
15
  email: scott@railsnewbie.com
@@ -18,28 +18,27 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/mongo_mapper/denormalization.rb
21
- homepage: http://github.com/GoLearnUp/denormalize_mm
21
+ homepage: http://github.com/smtlaissezfaire/denormalize_mm
22
22
  licenses:
23
23
  - MIT
24
24
  metadata: {}
25
- post_install_message:
25
+ post_install_message:
26
26
  rdoc_options: []
27
27
  require_paths:
28
28
  - lib
29
29
  required_ruby_version: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  required_rubygems_version: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - ! '>='
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  requirements: []
40
- rubyforge_project:
41
- rubygems_version: 2.4.2
42
- signing_key:
40
+ rubygems_version: 3.1.4
41
+ signing_key:
43
42
  specification_version: 4
44
43
  summary: Denormalize fields easily in mongo mapper
45
44
  test_files: []