mongo_mapper-rails3 0.7.0.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. data/README.rdoc +8 -37
  2. metadata +16 -284
  3. data/.gitignore +0 -10
  4. data/Gemfile +0 -15
  5. data/LICENSE +0 -20
  6. data/Rakefile +0 -58
  7. data/VERSION +0 -1
  8. data/bin/mmconsole +0 -60
  9. data/lib/mongo_mapper.rb +0 -131
  10. data/lib/mongo_mapper/document.rb +0 -439
  11. data/lib/mongo_mapper/embedded_document.rb +0 -68
  12. data/lib/mongo_mapper/plugins.rb +0 -30
  13. data/lib/mongo_mapper/plugins/associations.rb +0 -106
  14. data/lib/mongo_mapper/plugins/associations/base.rb +0 -123
  15. data/lib/mongo_mapper/plugins/associations/belongs_to_polymorphic_proxy.rb +0 -30
  16. data/lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb +0 -25
  17. data/lib/mongo_mapper/plugins/associations/collection.rb +0 -21
  18. data/lib/mongo_mapper/plugins/associations/embedded_collection.rb +0 -50
  19. data/lib/mongo_mapper/plugins/associations/in_array_proxy.rb +0 -141
  20. data/lib/mongo_mapper/plugins/associations/many_documents_as_proxy.rb +0 -28
  21. data/lib/mongo_mapper/plugins/associations/many_documents_proxy.rb +0 -120
  22. data/lib/mongo_mapper/plugins/associations/many_embedded_polymorphic_proxy.rb +0 -31
  23. data/lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb +0 -23
  24. data/lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb +0 -13
  25. data/lib/mongo_mapper/plugins/associations/one_proxy.rb +0 -68
  26. data/lib/mongo_mapper/plugins/associations/proxy.rb +0 -119
  27. data/lib/mongo_mapper/plugins/callbacks.rb +0 -87
  28. data/lib/mongo_mapper/plugins/clone.rb +0 -14
  29. data/lib/mongo_mapper/plugins/descendants.rb +0 -17
  30. data/lib/mongo_mapper/plugins/dirty.rb +0 -120
  31. data/lib/mongo_mapper/plugins/equality.rb +0 -24
  32. data/lib/mongo_mapper/plugins/identity_map.rb +0 -124
  33. data/lib/mongo_mapper/plugins/inspect.rb +0 -15
  34. data/lib/mongo_mapper/plugins/keys.rb +0 -310
  35. data/lib/mongo_mapper/plugins/logger.rb +0 -19
  36. data/lib/mongo_mapper/plugins/pagination.rb +0 -26
  37. data/lib/mongo_mapper/plugins/pagination/proxy.rb +0 -72
  38. data/lib/mongo_mapper/plugins/protected.rb +0 -46
  39. data/lib/mongo_mapper/plugins/rails.rb +0 -46
  40. data/lib/mongo_mapper/plugins/serialization.rb +0 -50
  41. data/lib/mongo_mapper/plugins/validations.rb +0 -88
  42. data/lib/mongo_mapper/query.rb +0 -130
  43. data/lib/mongo_mapper/support.rb +0 -217
  44. data/lib/mongo_mapper/support/descendant_appends.rb +0 -46
  45. data/lib/mongo_mapper/support/find.rb +0 -77
  46. data/mongo_mapper-rails3.gemspec +0 -208
  47. data/performance/read_write.rb +0 -52
  48. data/specs.watchr +0 -51
  49. data/test/NOTE_ON_TESTING +0 -1
  50. data/test/functional/associations/test_belongs_to_polymorphic_proxy.rb +0 -63
  51. data/test/functional/associations/test_belongs_to_proxy.rb +0 -101
  52. data/test/functional/associations/test_in_array_proxy.rb +0 -321
  53. data/test/functional/associations/test_many_documents_as_proxy.rb +0 -229
  54. data/test/functional/associations/test_many_documents_proxy.rb +0 -453
  55. data/test/functional/associations/test_many_embedded_polymorphic_proxy.rb +0 -176
  56. data/test/functional/associations/test_many_embedded_proxy.rb +0 -256
  57. data/test/functional/associations/test_many_polymorphic_proxy.rb +0 -302
  58. data/test/functional/associations/test_one_proxy.rb +0 -161
  59. data/test/functional/test_associations.rb +0 -44
  60. data/test/functional/test_binary.rb +0 -27
  61. data/test/functional/test_callbacks.rb +0 -81
  62. data/test/functional/test_dirty.rb +0 -163
  63. data/test/functional/test_document.rb +0 -1244
  64. data/test/functional/test_embedded_document.rb +0 -125
  65. data/test/functional/test_identity_map.rb +0 -508
  66. data/test/functional/test_logger.rb +0 -20
  67. data/test/functional/test_modifiers.rb +0 -252
  68. data/test/functional/test_pagination.rb +0 -93
  69. data/test/functional/test_protected.rb +0 -161
  70. data/test/functional/test_string_id_compatibility.rb +0 -67
  71. data/test/functional/test_validations.rb +0 -329
  72. data/test/models.rb +0 -232
  73. data/test/support/custom_matchers.rb +0 -55
  74. data/test/support/timing.rb +0 -16
  75. data/test/test_helper.rb +0 -59
  76. data/test/unit/associations/test_base.rb +0 -207
  77. data/test/unit/associations/test_proxy.rb +0 -105
  78. data/test/unit/serializers/test_json_serializer.rb +0 -189
  79. data/test/unit/test_descendant_appends.rb +0 -71
  80. data/test/unit/test_document.rb +0 -231
  81. data/test/unit/test_dynamic_finder.rb +0 -123
  82. data/test/unit/test_embedded_document.rb +0 -663
  83. data/test/unit/test_keys.rb +0 -169
  84. data/test/unit/test_lint.rb +0 -8
  85. data/test/unit/test_mongo_mapper.rb +0 -125
  86. data/test/unit/test_pagination.rb +0 -160
  87. data/test/unit/test_plugins.rb +0 -51
  88. data/test/unit/test_query.rb +0 -334
  89. data/test/unit/test_rails.rb +0 -123
  90. data/test/unit/test_rails_compatibility.rb +0 -57
  91. data/test/unit/test_serialization.rb +0 -51
  92. data/test/unit/test_support.rb +0 -362
  93. data/test/unit/test_time_zones.rb +0 -39
  94. data/test/unit/test_validations.rb +0 -557
@@ -1,41 +1,10 @@
1
- = MongoMapper (Rails 3 Fork)
1
+ = MongoMapper
2
2
 
3
- == Updated to work on Rails3
4
-
5
- === To Install
6
-
7
- This project is a fork of MongoMapper that works with Rails3. To install the gem run:
8
-
9
- gem install `mongo_mapper-rails3`
10
-
11
- To use with Rails3 / Bundler, add this to your Gemfile:
12
-
13
- gem "mongo_mapper-rails3", :require => "mongo_mapper"
14
-
15
- Then run:
16
-
17
- bundle install
18
-
19
-
20
- If not using bundler, you can just clone it to your projects vendor/plugins folder.
21
-
22
-
23
- === Bugs / Issues
24
-
25
- Please report all Rails 3 bugs via the Github Issue tracker associated with this fork (merbjedi/mongomapper).
26
-
27
- === Commit access
28
-
29
- Want to make changes? Either fork this repo or just msg me for direct commit access to my fork.
30
-
31
- Would greatly appreciate your help. Thanks!
32
-
33
-
34
- == Original README
3
+ A Ruby Object Mapper for Mongo.
35
4
 
36
5
  Releases are tagged on github and released on gemcutter. Master is pushed to whenever I add a patch or a new feature, but I do not release a new gem version each time I push.
37
6
 
38
- === Note on Patches/Pull Requests
7
+ == Note on Patches/Pull Requests
39
8
 
40
9
  * Fork the project.
41
10
  * Make your feature addition or bug fix.
@@ -43,11 +12,11 @@ Releases are tagged on github and released on gemcutter. Master is pushed to whe
43
12
  * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)
44
13
  * Send me a pull request. Bonus points for topic branches.
45
14
 
46
- === Install
15
+ == Install
47
16
 
48
17
  $ gem install mongo_mapper
49
18
 
50
- === Problems or Questions?
19
+ == Problems or Questions?
51
20
 
52
21
  Hit up the google group.
53
22
  http://groups.google.com/group/mongomapper
@@ -55,6 +24,8 @@ http://groups.google.com/group/mongomapper
55
24
  To see if the problem you are having is a verified issue, you can see the MM pivotal tracker project:
56
25
  http://www.pivotaltracker.com/projects/33576
57
26
 
58
- === Copyright
27
+ There is no need to request to join the Pivotal Tracker project as I am only granting access to a select few (easier to keep things organized). If you have a problem, please use the mailing list. If I confirm it to be a bug, I am happy to add it to PT. Thanks!
28
+
29
+ == Copyright
59
30
 
60
31
  Copyright (c) 2009 John Nunemaker. See LICENSE for details.
metadata CHANGED
@@ -5,267 +5,43 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- - 1
10
- version: 0.7.0.1
8
+ - 2
9
+ version: 0.7.2
11
10
  platform: ruby
12
11
  authors:
13
- - Mike Harris
14
- - Paul Bowsher
15
12
  - Jacques Crocker
16
- - John Nunemaker
17
13
  autorequire:
18
14
  bindir: bin
19
15
  cert_chain: []
20
16
 
21
- date: 2010-03-01 00:00:00 -08:00
22
- default_executable: mmconsole
17
+ date: 2010-03-30 00:00:00 -07:00
18
+ default_executable:
23
19
  dependencies:
24
20
  - !ruby/object:Gem::Dependency
25
- name: activesupport
21
+ name: mongoid
26
22
  prerelease: false
27
23
  requirement: &id001 !ruby/object:Gem::Requirement
28
24
  requirements:
29
25
  - - ">="
30
26
  - !ruby/object:Gem::Version
31
27
  segments:
32
- - 3
28
+ - 2
33
29
  - 0
34
30
  - 0
35
- - beta
36
- version: 3.0.0.beta
31
+ - beta1
32
+ version: 2.0.0.beta1
37
33
  type: :runtime
38
34
  version_requirements: *id001
39
- - !ruby/object:Gem::Dependency
40
- name: activemodel
41
- prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- segments:
47
- - 3
48
- - 0
49
- - 0
50
- - beta
51
- version: 3.0.0.beta
52
- type: :runtime
53
- version_requirements: *id002
54
- - !ruby/object:Gem::Dependency
55
- name: bundler
56
- prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- segments:
62
- - 0
63
- - 9
64
- - 7
65
- version: 0.9.7
66
- type: :runtime
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: mongo
70
- prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- segments:
76
- - 0
77
- - 18
78
- - 3
79
- version: 0.18.3
80
- type: :runtime
81
- version_requirements: *id004
82
- - !ruby/object:Gem::Dependency
83
- name: jnunemaker-matchy
84
- prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "="
88
- - !ruby/object:Gem::Version
89
- segments:
90
- - 0
91
- - 4
92
- - 0
93
- version: 0.4.0
94
- type: :development
95
- version_requirements: *id005
96
- - !ruby/object:Gem::Dependency
97
- name: shoulda
98
- prerelease: false
99
- requirement: &id006 !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "="
102
- - !ruby/object:Gem::Version
103
- segments:
104
- - 2
105
- - 10
106
- - 2
107
- version: 2.10.2
108
- type: :development
109
- version_requirements: *id006
110
- - !ruby/object:Gem::Dependency
111
- name: timecop
112
- prerelease: false
113
- requirement: &id007 !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "="
116
- - !ruby/object:Gem::Version
117
- segments:
118
- - 0
119
- - 3
120
- - 1
121
- version: 0.3.1
122
- type: :development
123
- version_requirements: *id007
124
- - !ruby/object:Gem::Dependency
125
- name: mocha
126
- prerelease: false
127
- requirement: &id008 !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "="
130
- - !ruby/object:Gem::Version
131
- segments:
132
- - 0
133
- - 9
134
- - 8
135
- version: 0.9.8
136
- type: :development
137
- version_requirements: *id008
138
- - !ruby/object:Gem::Dependency
139
- name: yard
140
- prerelease: false
141
- requirement: &id009 !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- segments:
146
- - 0
147
- - 5
148
- - 3
149
- version: 0.5.3
150
- type: :development
151
- version_requirements: *id009
152
- - !ruby/object:Gem::Dependency
153
- name: jeweler
154
- prerelease: false
155
- requirement: &id010 !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- segments:
160
- - 1
161
- - 4
162
- - 0
163
- version: 1.4.0
164
- type: :development
165
- version_requirements: *id010
166
35
  description:
167
- email: merbjedi@gmail.com
168
- executables:
169
- - mmconsole
36
+ email: railsjedi@gmail.com
37
+ executables: []
38
+
170
39
  extensions: []
171
40
 
172
- extra_rdoc_files:
173
- - LICENSE
174
- - README.rdoc
41
+ extra_rdoc_files: []
42
+
175
43
  files:
176
- - .gitignore
177
- - Gemfile
178
- - LICENSE
179
44
  - README.rdoc
180
- - Rakefile
181
- - VERSION
182
- - bin/mmconsole
183
- - lib/mongo_mapper.rb
184
- - lib/mongo_mapper/document.rb
185
- - lib/mongo_mapper/embedded_document.rb
186
- - lib/mongo_mapper/plugins.rb
187
- - lib/mongo_mapper/plugins/associations.rb
188
- - lib/mongo_mapper/plugins/associations/base.rb
189
- - lib/mongo_mapper/plugins/associations/belongs_to_polymorphic_proxy.rb
190
- - lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb
191
- - lib/mongo_mapper/plugins/associations/collection.rb
192
- - lib/mongo_mapper/plugins/associations/embedded_collection.rb
193
- - lib/mongo_mapper/plugins/associations/in_array_proxy.rb
194
- - lib/mongo_mapper/plugins/associations/many_documents_as_proxy.rb
195
- - lib/mongo_mapper/plugins/associations/many_documents_proxy.rb
196
- - lib/mongo_mapper/plugins/associations/many_embedded_polymorphic_proxy.rb
197
- - lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb
198
- - lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
199
- - lib/mongo_mapper/plugins/associations/one_proxy.rb
200
- - lib/mongo_mapper/plugins/associations/proxy.rb
201
- - lib/mongo_mapper/plugins/callbacks.rb
202
- - lib/mongo_mapper/plugins/clone.rb
203
- - lib/mongo_mapper/plugins/descendants.rb
204
- - lib/mongo_mapper/plugins/dirty.rb
205
- - lib/mongo_mapper/plugins/equality.rb
206
- - lib/mongo_mapper/plugins/identity_map.rb
207
- - lib/mongo_mapper/plugins/inspect.rb
208
- - lib/mongo_mapper/plugins/keys.rb
209
- - lib/mongo_mapper/plugins/logger.rb
210
- - lib/mongo_mapper/plugins/pagination.rb
211
- - lib/mongo_mapper/plugins/pagination/proxy.rb
212
- - lib/mongo_mapper/plugins/protected.rb
213
- - lib/mongo_mapper/plugins/rails.rb
214
- - lib/mongo_mapper/plugins/serialization.rb
215
- - lib/mongo_mapper/plugins/validations.rb
216
- - lib/mongo_mapper/query.rb
217
- - lib/mongo_mapper/support.rb
218
- - lib/mongo_mapper/support/descendant_appends.rb
219
- - lib/mongo_mapper/support/find.rb
220
- - mongo_mapper-rails3.gemspec
221
- - performance/read_write.rb
222
- - specs.watchr
223
- - test/NOTE_ON_TESTING
224
- - test/functional/associations/test_belongs_to_polymorphic_proxy.rb
225
- - test/functional/associations/test_belongs_to_proxy.rb
226
- - test/functional/associations/test_in_array_proxy.rb
227
- - test/functional/associations/test_many_documents_as_proxy.rb
228
- - test/functional/associations/test_many_documents_proxy.rb
229
- - test/functional/associations/test_many_embedded_polymorphic_proxy.rb
230
- - test/functional/associations/test_many_embedded_proxy.rb
231
- - test/functional/associations/test_many_polymorphic_proxy.rb
232
- - test/functional/associations/test_one_proxy.rb
233
- - test/functional/test_associations.rb
234
- - test/functional/test_binary.rb
235
- - test/functional/test_callbacks.rb
236
- - test/functional/test_dirty.rb
237
- - test/functional/test_document.rb
238
- - test/functional/test_embedded_document.rb
239
- - test/functional/test_identity_map.rb
240
- - test/functional/test_logger.rb
241
- - test/functional/test_modifiers.rb
242
- - test/functional/test_pagination.rb
243
- - test/functional/test_protected.rb
244
- - test/functional/test_string_id_compatibility.rb
245
- - test/functional/test_validations.rb
246
- - test/models.rb
247
- - test/support/custom_matchers.rb
248
- - test/support/timing.rb
249
- - test/test_helper.rb
250
- - test/unit/associations/test_base.rb
251
- - test/unit/associations/test_proxy.rb
252
- - test/unit/serializers/test_json_serializer.rb
253
- - test/unit/test_descendant_appends.rb
254
- - test/unit/test_document.rb
255
- - test/unit/test_dynamic_finder.rb
256
- - test/unit/test_embedded_document.rb
257
- - test/unit/test_keys.rb
258
- - test/unit/test_lint.rb
259
- - test/unit/test_mongo_mapper.rb
260
- - test/unit/test_pagination.rb
261
- - test/unit/test_plugins.rb
262
- - test/unit/test_query.rb
263
- - test/unit/test_rails.rb
264
- - test/unit/test_rails_compatibility.rb
265
- - test/unit/test_serialization.rb
266
- - test/unit/test_support.rb
267
- - test/unit/test_time_zones.rb
268
- - test/unit/test_validations.rb
269
45
  has_rdoc: true
270
46
  homepage: http://github.com/merbjedi/mongomapper
271
47
  licenses: []
@@ -295,50 +71,6 @@ rubyforge_project:
295
71
  rubygems_version: 1.3.6
296
72
  signing_key:
297
73
  specification_version: 3
298
- summary: Rails3 / ActiveModel compatible fork of MongoMapper.
299
- test_files:
300
- - test/functional/associations/test_belongs_to_polymorphic_proxy.rb
301
- - test/functional/associations/test_belongs_to_proxy.rb
302
- - test/functional/associations/test_in_array_proxy.rb
303
- - test/functional/associations/test_many_documents_as_proxy.rb
304
- - test/functional/associations/test_many_documents_proxy.rb
305
- - test/functional/associations/test_many_embedded_polymorphic_proxy.rb
306
- - test/functional/associations/test_many_embedded_proxy.rb
307
- - test/functional/associations/test_many_polymorphic_proxy.rb
308
- - test/functional/associations/test_one_proxy.rb
309
- - test/functional/test_associations.rb
310
- - test/functional/test_binary.rb
311
- - test/functional/test_callbacks.rb
312
- - test/functional/test_dirty.rb
313
- - test/functional/test_document.rb
314
- - test/functional/test_embedded_document.rb
315
- - test/functional/test_identity_map.rb
316
- - test/functional/test_logger.rb
317
- - test/functional/test_modifiers.rb
318
- - test/functional/test_pagination.rb
319
- - test/functional/test_protected.rb
320
- - test/functional/test_string_id_compatibility.rb
321
- - test/functional/test_validations.rb
322
- - test/models.rb
323
- - test/support/custom_matchers.rb
324
- - test/support/timing.rb
325
- - test/test_helper.rb
326
- - test/unit/associations/test_base.rb
327
- - test/unit/associations/test_proxy.rb
328
- - test/unit/serializers/test_json_serializer.rb
329
- - test/unit/test_descendant_appends.rb
330
- - test/unit/test_document.rb
331
- - test/unit/test_dynamic_finder.rb
332
- - test/unit/test_embedded_document.rb
333
- - test/unit/test_keys.rb
334
- - test/unit/test_lint.rb
335
- - test/unit/test_mongo_mapper.rb
336
- - test/unit/test_pagination.rb
337
- - test/unit/test_plugins.rb
338
- - test/unit/test_query.rb
339
- - test/unit/test_rails.rb
340
- - test/unit/test_rails_compatibility.rb
341
- - test/unit/test_serialization.rb
342
- - test/unit/test_support.rb
343
- - test/unit/test_time_zones.rb
344
- - test/unit/test_validations.rb
74
+ summary: A Ruby Object Mapper for Mongo
75
+ test_files: []
76
+
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- *.sw?
2
- .DS_Store
3
- coverage
4
- rdoc
5
- pkg
6
- *~
7
- *.gem
8
- tmp
9
- .yardoc
10
- doc/*
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source :gemcutter
2
-
3
- gem 'activesupport', '>= 3.0.0.beta'
4
- gem "activemodel", ">= 3.0.0.beta"
5
- gem "mongo", ">= 0.18.2"
6
- gem "mongo_ext", ">= 0.18.2"
7
- gem "yard", ">= 0.5.0"
8
- gem "jeweler", ">= 1.4.0"
9
-
10
- group :test do
11
- gem 'jnunemaker-matchy', '0.4.0'
12
- gem 'shoulda', '2.10.2'
13
- gem 'timecop', '0.3.1'
14
- gem 'mocha', '0.9.8'
15
- end
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2009 John Nunemaker
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.