novelys_mongo_mapper 0.6.10

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