drogus-mongo_mapper 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +10 -0
- data/LICENSE +20 -0
- data/README.rdoc +29 -0
- data/Rakefile +55 -0
- data/VERSION +1 -0
- data/bin/mmconsole +60 -0
- data/lib/mongo_mapper.rb +131 -0
- data/lib/mongo_mapper/document.rb +417 -0
- data/lib/mongo_mapper/embedded_document.rb +55 -0
- data/lib/mongo_mapper/finder_options.rb +127 -0
- data/lib/mongo_mapper/plugins.rb +30 -0
- data/lib/mongo_mapper/plugins/associations.rb +104 -0
- data/lib/mongo_mapper/plugins/associations/base.rb +121 -0
- data/lib/mongo_mapper/plugins/associations/belongs_to_polymorphic_proxy.rb +30 -0
- data/lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb +25 -0
- data/lib/mongo_mapper/plugins/associations/collection.rb +21 -0
- data/lib/mongo_mapper/plugins/associations/embedded_collection.rb +50 -0
- data/lib/mongo_mapper/plugins/associations/in_array_proxy.rb +139 -0
- data/lib/mongo_mapper/plugins/associations/many_documents_as_proxy.rb +28 -0
- data/lib/mongo_mapper/plugins/associations/many_documents_proxy.rb +117 -0
- data/lib/mongo_mapper/plugins/associations/many_embedded_polymorphic_proxy.rb +31 -0
- data/lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb +23 -0
- data/lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb +13 -0
- data/lib/mongo_mapper/plugins/associations/one_proxy.rb +68 -0
- data/lib/mongo_mapper/plugins/associations/proxy.rb +118 -0
- data/lib/mongo_mapper/plugins/callbacks.rb +134 -0
- data/lib/mongo_mapper/plugins/clone.rb +13 -0
- data/lib/mongo_mapper/plugins/descendants.rb +16 -0
- data/lib/mongo_mapper/plugins/dirty.rb +119 -0
- data/lib/mongo_mapper/plugins/equality.rb +23 -0
- data/lib/mongo_mapper/plugins/identity_map.rb +122 -0
- data/lib/mongo_mapper/plugins/inspect.rb +14 -0
- data/lib/mongo_mapper/plugins/keys.rb +324 -0
- data/lib/mongo_mapper/plugins/logger.rb +17 -0
- data/lib/mongo_mapper/plugins/pagination.rb +85 -0
- data/lib/mongo_mapper/plugins/protected.rb +45 -0
- data/lib/mongo_mapper/plugins/rails.rb +45 -0
- data/lib/mongo_mapper/plugins/serialization.rb +105 -0
- data/lib/mongo_mapper/plugins/validations.rb +57 -0
- data/lib/mongo_mapper/support.rb +217 -0
- data/lib/mongo_mapper/support/descendant_appends.rb +46 -0
- data/lib/mongo_mapper/support/find.rb +77 -0
- data/mongo_mapper.gemspec +195 -0
- data/performance/read_write.rb +52 -0
- data/specs.watchr +51 -0
- data/test/NOTE_ON_TESTING +1 -0
- data/test/functional/associations/test_belongs_to_polymorphic_proxy.rb +63 -0
- data/test/functional/associations/test_belongs_to_proxy.rb +101 -0
- data/test/functional/associations/test_in_array_proxy.rb +309 -0
- data/test/functional/associations/test_many_documents_as_proxy.rb +229 -0
- data/test/functional/associations/test_many_documents_proxy.rb +431 -0
- data/test/functional/associations/test_many_embedded_polymorphic_proxy.rb +176 -0
- data/test/functional/associations/test_many_embedded_proxy.rb +256 -0
- data/test/functional/associations/test_many_polymorphic_proxy.rb +302 -0
- data/test/functional/associations/test_one_proxy.rb +161 -0
- data/test/functional/test_associations.rb +44 -0
- data/test/functional/test_binary.rb +27 -0
- data/test/functional/test_callbacks.rb +81 -0
- data/test/functional/test_dirty.rb +163 -0
- data/test/functional/test_document.rb +1264 -0
- data/test/functional/test_embedded_document.rb +125 -0
- data/test/functional/test_identity_map.rb +508 -0
- data/test/functional/test_logger.rb +20 -0
- data/test/functional/test_modifiers.rb +252 -0
- data/test/functional/test_pagination.rb +93 -0
- data/test/functional/test_protected.rb +155 -0
- data/test/functional/test_string_id_compatibility.rb +67 -0
- data/test/functional/test_validations.rb +329 -0
- data/test/models.rb +232 -0
- data/test/support/custom_matchers.rb +55 -0
- data/test/support/timing.rb +16 -0
- data/test/test_helper.rb +60 -0
- data/test/unit/associations/test_base.rb +207 -0
- data/test/unit/associations/test_proxy.rb +105 -0
- data/test/unit/serializers/test_json_serializer.rb +189 -0
- data/test/unit/test_descendant_appends.rb +71 -0
- data/test/unit/test_document.rb +231 -0
- data/test/unit/test_dynamic_finder.rb +123 -0
- data/test/unit/test_embedded_document.rb +663 -0
- data/test/unit/test_finder_options.rb +329 -0
- data/test/unit/test_keys.rb +169 -0
- data/test/unit/test_mongo_mapper.rb +65 -0
- data/test/unit/test_pagination.rb +127 -0
- data/test/unit/test_plugins.rb +50 -0
- data/test/unit/test_rails.rb +123 -0
- data/test/unit/test_rails_compatibility.rb +52 -0
- data/test/unit/test_serialization.rb +51 -0
- data/test/unit/test_support.rb +354 -0
- data/test/unit/test_time_zones.rb +39 -0
- data/test/unit/test_validations.rb +544 -0
- metadata +290 -0
metadata
ADDED
@@ -0,0 +1,290 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: drogus-mongo_mapper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 6
|
8
|
+
- 10
|
9
|
+
version: 0.6.10
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- John Nunemaker
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-03-02 00:00:00 +01:00
|
18
|
+
default_executable: mmconsole
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: activesupport
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 3
|
30
|
+
version: "2.3"
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: mongo
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 0
|
42
|
+
- 19
|
43
|
+
version: "0.19"
|
44
|
+
type: :runtime
|
45
|
+
version_requirements: *id002
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: jnunemaker-validatable
|
48
|
+
prerelease: false
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 1
|
55
|
+
- 8
|
56
|
+
- 1
|
57
|
+
version: 1.8.1
|
58
|
+
type: :runtime
|
59
|
+
version_requirements: *id003
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: jnunemaker-matchy
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
- 4
|
70
|
+
- 0
|
71
|
+
version: 0.4.0
|
72
|
+
type: :development
|
73
|
+
version_requirements: *id004
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: shoulda
|
76
|
+
prerelease: false
|
77
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
segments:
|
82
|
+
- 2
|
83
|
+
- 10
|
84
|
+
- 2
|
85
|
+
version: 2.10.2
|
86
|
+
type: :development
|
87
|
+
version_requirements: *id005
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: timecop
|
90
|
+
prerelease: false
|
91
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
- 3
|
98
|
+
- 1
|
99
|
+
version: 0.3.1
|
100
|
+
type: :development
|
101
|
+
version_requirements: *id006
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: mocha
|
104
|
+
prerelease: false
|
105
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
- 9
|
112
|
+
- 8
|
113
|
+
version: 0.9.8
|
114
|
+
type: :development
|
115
|
+
version_requirements: *id007
|
116
|
+
description:
|
117
|
+
email: nunemaker@gmail.com
|
118
|
+
executables:
|
119
|
+
- mmconsole
|
120
|
+
extensions: []
|
121
|
+
|
122
|
+
extra_rdoc_files:
|
123
|
+
- LICENSE
|
124
|
+
- README.rdoc
|
125
|
+
files:
|
126
|
+
- .gitignore
|
127
|
+
- LICENSE
|
128
|
+
- README.rdoc
|
129
|
+
- Rakefile
|
130
|
+
- VERSION
|
131
|
+
- bin/mmconsole
|
132
|
+
- lib/mongo_mapper.rb
|
133
|
+
- lib/mongo_mapper/document.rb
|
134
|
+
- lib/mongo_mapper/embedded_document.rb
|
135
|
+
- lib/mongo_mapper/finder_options.rb
|
136
|
+
- lib/mongo_mapper/plugins.rb
|
137
|
+
- lib/mongo_mapper/plugins/associations.rb
|
138
|
+
- lib/mongo_mapper/plugins/associations/base.rb
|
139
|
+
- lib/mongo_mapper/plugins/associations/belongs_to_polymorphic_proxy.rb
|
140
|
+
- lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb
|
141
|
+
- lib/mongo_mapper/plugins/associations/collection.rb
|
142
|
+
- lib/mongo_mapper/plugins/associations/embedded_collection.rb
|
143
|
+
- lib/mongo_mapper/plugins/associations/in_array_proxy.rb
|
144
|
+
- lib/mongo_mapper/plugins/associations/many_documents_as_proxy.rb
|
145
|
+
- lib/mongo_mapper/plugins/associations/many_documents_proxy.rb
|
146
|
+
- lib/mongo_mapper/plugins/associations/many_embedded_polymorphic_proxy.rb
|
147
|
+
- lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb
|
148
|
+
- lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
|
149
|
+
- lib/mongo_mapper/plugins/associations/one_proxy.rb
|
150
|
+
- lib/mongo_mapper/plugins/associations/proxy.rb
|
151
|
+
- lib/mongo_mapper/plugins/callbacks.rb
|
152
|
+
- lib/mongo_mapper/plugins/clone.rb
|
153
|
+
- lib/mongo_mapper/plugins/descendants.rb
|
154
|
+
- lib/mongo_mapper/plugins/dirty.rb
|
155
|
+
- lib/mongo_mapper/plugins/equality.rb
|
156
|
+
- lib/mongo_mapper/plugins/identity_map.rb
|
157
|
+
- lib/mongo_mapper/plugins/inspect.rb
|
158
|
+
- lib/mongo_mapper/plugins/keys.rb
|
159
|
+
- lib/mongo_mapper/plugins/logger.rb
|
160
|
+
- lib/mongo_mapper/plugins/pagination.rb
|
161
|
+
- lib/mongo_mapper/plugins/protected.rb
|
162
|
+
- lib/mongo_mapper/plugins/rails.rb
|
163
|
+
- lib/mongo_mapper/plugins/serialization.rb
|
164
|
+
- lib/mongo_mapper/plugins/validations.rb
|
165
|
+
- lib/mongo_mapper/support.rb
|
166
|
+
- lib/mongo_mapper/support/descendant_appends.rb
|
167
|
+
- lib/mongo_mapper/support/find.rb
|
168
|
+
- mongo_mapper.gemspec
|
169
|
+
- performance/read_write.rb
|
170
|
+
- specs.watchr
|
171
|
+
- test/NOTE_ON_TESTING
|
172
|
+
- test/functional/associations/test_belongs_to_polymorphic_proxy.rb
|
173
|
+
- test/functional/associations/test_belongs_to_proxy.rb
|
174
|
+
- test/functional/associations/test_in_array_proxy.rb
|
175
|
+
- test/functional/associations/test_many_documents_as_proxy.rb
|
176
|
+
- test/functional/associations/test_many_documents_proxy.rb
|
177
|
+
- test/functional/associations/test_many_embedded_polymorphic_proxy.rb
|
178
|
+
- test/functional/associations/test_many_embedded_proxy.rb
|
179
|
+
- test/functional/associations/test_many_polymorphic_proxy.rb
|
180
|
+
- test/functional/associations/test_one_proxy.rb
|
181
|
+
- test/functional/test_associations.rb
|
182
|
+
- test/functional/test_binary.rb
|
183
|
+
- test/functional/test_callbacks.rb
|
184
|
+
- test/functional/test_dirty.rb
|
185
|
+
- test/functional/test_document.rb
|
186
|
+
- test/functional/test_embedded_document.rb
|
187
|
+
- test/functional/test_identity_map.rb
|
188
|
+
- test/functional/test_logger.rb
|
189
|
+
- test/functional/test_modifiers.rb
|
190
|
+
- test/functional/test_pagination.rb
|
191
|
+
- test/functional/test_protected.rb
|
192
|
+
- test/functional/test_string_id_compatibility.rb
|
193
|
+
- test/functional/test_validations.rb
|
194
|
+
- test/models.rb
|
195
|
+
- test/support/custom_matchers.rb
|
196
|
+
- test/support/timing.rb
|
197
|
+
- test/test_helper.rb
|
198
|
+
- test/unit/associations/test_base.rb
|
199
|
+
- test/unit/associations/test_proxy.rb
|
200
|
+
- test/unit/serializers/test_json_serializer.rb
|
201
|
+
- test/unit/test_descendant_appends.rb
|
202
|
+
- test/unit/test_document.rb
|
203
|
+
- test/unit/test_dynamic_finder.rb
|
204
|
+
- test/unit/test_embedded_document.rb
|
205
|
+
- test/unit/test_finder_options.rb
|
206
|
+
- test/unit/test_keys.rb
|
207
|
+
- test/unit/test_mongo_mapper.rb
|
208
|
+
- test/unit/test_pagination.rb
|
209
|
+
- test/unit/test_plugins.rb
|
210
|
+
- test/unit/test_rails.rb
|
211
|
+
- test/unit/test_rails_compatibility.rb
|
212
|
+
- test/unit/test_serialization.rb
|
213
|
+
- test/unit/test_support.rb
|
214
|
+
- test/unit/test_time_zones.rb
|
215
|
+
- test/unit/test_validations.rb
|
216
|
+
has_rdoc: true
|
217
|
+
homepage: http://github.com/jnunemaker/mongomapper
|
218
|
+
licenses: []
|
219
|
+
|
220
|
+
post_install_message:
|
221
|
+
rdoc_options:
|
222
|
+
- --charset=UTF-8
|
223
|
+
require_paths:
|
224
|
+
- lib
|
225
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
segments:
|
230
|
+
- 0
|
231
|
+
version: "0"
|
232
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
segments:
|
237
|
+
- 0
|
238
|
+
version: "0"
|
239
|
+
requirements: []
|
240
|
+
|
241
|
+
rubyforge_project:
|
242
|
+
rubygems_version: 1.3.6
|
243
|
+
signing_key:
|
244
|
+
specification_version: 3
|
245
|
+
summary: Awesome gem for modeling your domain and storing it in mongo
|
246
|
+
test_files:
|
247
|
+
- test/functional/associations/test_belongs_to_polymorphic_proxy.rb
|
248
|
+
- test/functional/associations/test_belongs_to_proxy.rb
|
249
|
+
- test/functional/associations/test_in_array_proxy.rb
|
250
|
+
- test/functional/associations/test_many_documents_as_proxy.rb
|
251
|
+
- test/functional/associations/test_many_documents_proxy.rb
|
252
|
+
- test/functional/associations/test_many_embedded_polymorphic_proxy.rb
|
253
|
+
- test/functional/associations/test_many_embedded_proxy.rb
|
254
|
+
- test/functional/associations/test_many_polymorphic_proxy.rb
|
255
|
+
- test/functional/associations/test_one_proxy.rb
|
256
|
+
- test/functional/test_associations.rb
|
257
|
+
- test/functional/test_binary.rb
|
258
|
+
- test/functional/test_callbacks.rb
|
259
|
+
- test/functional/test_dirty.rb
|
260
|
+
- test/functional/test_document.rb
|
261
|
+
- test/functional/test_embedded_document.rb
|
262
|
+
- test/functional/test_identity_map.rb
|
263
|
+
- test/functional/test_logger.rb
|
264
|
+
- test/functional/test_modifiers.rb
|
265
|
+
- test/functional/test_pagination.rb
|
266
|
+
- test/functional/test_protected.rb
|
267
|
+
- test/functional/test_string_id_compatibility.rb
|
268
|
+
- test/functional/test_validations.rb
|
269
|
+
- test/models.rb
|
270
|
+
- test/support/custom_matchers.rb
|
271
|
+
- test/support/timing.rb
|
272
|
+
- test/test_helper.rb
|
273
|
+
- test/unit/associations/test_base.rb
|
274
|
+
- test/unit/associations/test_proxy.rb
|
275
|
+
- test/unit/serializers/test_json_serializer.rb
|
276
|
+
- test/unit/test_descendant_appends.rb
|
277
|
+
- test/unit/test_document.rb
|
278
|
+
- test/unit/test_dynamic_finder.rb
|
279
|
+
- test/unit/test_embedded_document.rb
|
280
|
+
- test/unit/test_finder_options.rb
|
281
|
+
- test/unit/test_keys.rb
|
282
|
+
- test/unit/test_mongo_mapper.rb
|
283
|
+
- test/unit/test_pagination.rb
|
284
|
+
- test/unit/test_plugins.rb
|
285
|
+
- test/unit/test_rails.rb
|
286
|
+
- test/unit/test_rails_compatibility.rb
|
287
|
+
- test/unit/test_serialization.rb
|
288
|
+
- test/unit/test_support.rb
|
289
|
+
- test/unit/test_time_zones.rb
|
290
|
+
- test/unit/test_validations.rb
|