mm_dirtier 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,12 @@ module MongoMapper
38
38
  end
39
39
  end
40
40
 
41
+ class ManyDocumentsProxy
42
+ def save_to_collection(options={})
43
+ @target.each { |doc| doc.save(options) if doc.changed? } if @target
44
+ end
45
+ end
46
+
41
47
  end
42
48
  end
43
49
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  module MongoMapper
3
3
  module Dirtier
4
- Version = '0.1.1'
4
+ Version = '0.1.2'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mm_dirtier
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathan Stults
@@ -15,11 +15,14 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-23 00:00:00 -07:00
18
+ date: 2010-12-08 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
22
+ type: :runtime
23
+ name: observables
24
+ prerelease: false
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
26
  none: false
24
27
  requirements:
25
28
  - - ~>
@@ -30,12 +33,12 @@ dependencies:
30
33
  - 1
31
34
  - 2
32
35
  version: 0.1.2
33
- type: :runtime
34
- name: observables
35
- prerelease: false
36
- version_requirements: *id001
36
+ requirement: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- requirement: &id002 !ruby/object:Gem::Requirement
38
+ type: :development
39
+ name: rake
40
+ prerelease: false
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
42
  none: false
40
43
  requirements:
41
44
  - - ">="
@@ -44,12 +47,12 @@ dependencies:
44
47
  segments:
45
48
  - 0
46
49
  version: "0"
50
+ requirement: *id002
51
+ - !ruby/object:Gem::Dependency
47
52
  type: :development
48
- name: rake
53
+ name: log_buddy
49
54
  prerelease: false
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- requirement: &id003 !ruby/object:Gem::Requirement
55
+ version_requirements: &id003 !ruby/object:Gem::Requirement
53
56
  none: false
54
57
  requirements:
55
58
  - - ">="
@@ -58,12 +61,12 @@ dependencies:
58
61
  segments:
59
62
  - 0
60
63
  version: "0"
64
+ requirement: *id003
65
+ - !ruby/object:Gem::Dependency
61
66
  type: :development
62
- name: log_buddy
67
+ name: jnunemaker-matchy
63
68
  prerelease: false
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- requirement: &id004 !ruby/object:Gem::Requirement
69
+ version_requirements: &id004 !ruby/object:Gem::Requirement
67
70
  none: false
68
71
  requirements:
69
72
  - - ~>
@@ -74,12 +77,12 @@ dependencies:
74
77
  - 4
75
78
  - 0
76
79
  version: 0.4.0
80
+ requirement: *id004
81
+ - !ruby/object:Gem::Dependency
77
82
  type: :development
78
- name: jnunemaker-matchy
83
+ name: shoulda
79
84
  prerelease: false
80
- version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
82
- requirement: &id005 !ruby/object:Gem::Requirement
85
+ version_requirements: &id005 !ruby/object:Gem::Requirement
83
86
  none: false
84
87
  requirements:
85
88
  - - ~>
@@ -89,10 +92,7 @@ dependencies:
89
92
  - 2
90
93
  - 11
91
94
  version: "2.11"
92
- type: :development
93
- name: shoulda
94
- prerelease: false
95
- version_requirements: *id005
95
+ requirement: *id005
96
96
  description:
97
97
  email:
98
98
  - hereiam@sonic.net
@@ -103,22 +103,22 @@ extensions: []
103
103
  extra_rdoc_files: []
104
104
 
105
105
  files:
106
- - lib/mm_dirtier/in_array_proxy_listener.rb
106
+ - lib/mm_dirtier/plugins/dirtier.rb
107
107
  - lib/mm_dirtier/extensions.rb
108
+ - lib/mm_dirtier/in_array_proxy_listener.rb
109
+ - lib/mm_dirtier/many_embedded_proxy_listener.rb
110
+ - lib/mm_dirtier/one_proxy_listener.rb
108
111
  - lib/mm_dirtier/one_embedded_proxy_listener.rb
109
- - lib/mm_dirtier/plugins/dirtier.rb
110
112
  - lib/mm_dirtier/version.rb
111
- - lib/mm_dirtier/one_proxy_listener.rb
112
- - lib/mm_dirtier/many_embedded_proxy_listener.rb
113
113
  - lib/mm_dirtier.rb
114
- - test/test_helper.rb
115
- - test/test_mm_dirtier.rb
116
- - test/functional/test_many_embedded_polymorphic_proxy.rb
114
+ - test/functional/test_many_embedded_proxy.rb
115
+ - test/functional/test_non_embedded_proxies.rb
117
116
  - test/functional/test_one_embedded_proxy.rb
118
117
  - test/functional/test_observable_keys.rb
119
- - test/functional/test_many_embedded_proxy.rb
120
118
  - test/functional/test_in_array_proxy.rb
121
- - test/functional/test_non_embedded_proxies.rb
119
+ - test/functional/test_many_embedded_polymorphic_proxy.rb
120
+ - test/test_helper.rb
121
+ - test/test_mm_dirtier.rb
122
122
  - LICENSE
123
123
  - README.rdoc
124
124
  has_rdoc: true