djsun-mongomapper 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/.gitignore +7 -0
  2. data/History +51 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +39 -0
  5. data/Rakefile +71 -0
  6. data/VERSION +1 -0
  7. data/bin/mmconsole +56 -0
  8. data/lib/mongomapper.rb +96 -0
  9. data/lib/mongomapper/associations.rb +61 -0
  10. data/lib/mongomapper/associations/base.rb +71 -0
  11. data/lib/mongomapper/associations/belongs_to_polymorphic_proxy.rb +32 -0
  12. data/lib/mongomapper/associations/belongs_to_proxy.rb +22 -0
  13. data/lib/mongomapper/associations/many_documents_proxy.rb +85 -0
  14. data/lib/mongomapper/associations/many_embedded_polymorphic_proxy.rb +33 -0
  15. data/lib/mongomapper/associations/many_embedded_proxy.rb +17 -0
  16. data/lib/mongomapper/associations/many_polymorphic_proxy.rb +11 -0
  17. data/lib/mongomapper/associations/many_proxy.rb +6 -0
  18. data/lib/mongomapper/associations/proxy.rb +67 -0
  19. data/lib/mongomapper/callbacks.rb +106 -0
  20. data/lib/mongomapper/document.rb +278 -0
  21. data/lib/mongomapper/embedded_document.rb +237 -0
  22. data/lib/mongomapper/finder_options.rb +96 -0
  23. data/lib/mongomapper/key.rb +80 -0
  24. data/lib/mongomapper/observing.rb +50 -0
  25. data/lib/mongomapper/pagination.rb +52 -0
  26. data/lib/mongomapper/rails_compatibility/document.rb +15 -0
  27. data/lib/mongomapper/rails_compatibility/embedded_document.rb +25 -0
  28. data/lib/mongomapper/save_with_validation.rb +19 -0
  29. data/lib/mongomapper/serialization.rb +55 -0
  30. data/lib/mongomapper/serializers/json_serializer.rb +79 -0
  31. data/lib/mongomapper/validations.rb +47 -0
  32. data/mongomapper.gemspec +139 -0
  33. data/test/NOTE_ON_TESTING +1 -0
  34. data/test/functional/associations/test_belongs_to_polymorphic_proxy.rb +39 -0
  35. data/test/functional/associations/test_belongs_to_proxy.rb +35 -0
  36. data/test/functional/associations/test_many_embedded_polymorphic_proxy.rb +131 -0
  37. data/test/functional/associations/test_many_embedded_proxy.rb +106 -0
  38. data/test/functional/associations/test_many_polymorphic_proxy.rb +267 -0
  39. data/test/functional/associations/test_many_proxy.rb +236 -0
  40. data/test/functional/test_associations.rb +40 -0
  41. data/test/functional/test_callbacks.rb +85 -0
  42. data/test/functional/test_document.rb +691 -0
  43. data/test/functional/test_pagination.rb +81 -0
  44. data/test/functional/test_rails_compatibility.rb +31 -0
  45. data/test/functional/test_validations.rb +172 -0
  46. data/test/models.rb +108 -0
  47. data/test/test_helper.rb +67 -0
  48. data/test/unit/serializers/test_json_serializer.rb +103 -0
  49. data/test/unit/test_association_base.rb +136 -0
  50. data/test/unit/test_document.rb +125 -0
  51. data/test/unit/test_embedded_document.rb +370 -0
  52. data/test/unit/test_finder_options.rb +214 -0
  53. data/test/unit/test_key.rb +217 -0
  54. data/test/unit/test_mongo_id.rb +35 -0
  55. data/test/unit/test_mongomapper.rb +28 -0
  56. data/test/unit/test_observing.rb +101 -0
  57. data/test/unit/test_pagination.rb +113 -0
  58. data/test/unit/test_rails_compatibility.rb +34 -0
  59. data/test/unit/test_serializations.rb +52 -0
  60. data/test/unit/test_validations.rb +259 -0
  61. metadata +189 -0
metadata ADDED
@@ -0,0 +1,189 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: djsun-mongomapper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ platform: ruby
6
+ authors:
7
+ - John Nunemaker
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-08-04 00:00:00 -07:00
13
+ default_executable: mmconsole
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activesupport
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: mongodb-mongo
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.10.1
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: jnunemaker-validatable
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.7.2
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: mocha
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.9.4
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: jnunemaker-matchy
57
+ type: :development
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "="
62
+ - !ruby/object:Gem::Version
63
+ version: 0.4.0
64
+ version:
65
+ description:
66
+ email: nunemaker@gmail.com
67
+ executables:
68
+ - mmconsole
69
+ extensions: []
70
+
71
+ extra_rdoc_files:
72
+ - LICENSE
73
+ - README.rdoc
74
+ files:
75
+ - .gitignore
76
+ - History
77
+ - LICENSE
78
+ - README.rdoc
79
+ - Rakefile
80
+ - VERSION
81
+ - bin/mmconsole
82
+ - lib/mongomapper.rb
83
+ - lib/mongomapper/associations.rb
84
+ - lib/mongomapper/associations/base.rb
85
+ - lib/mongomapper/associations/belongs_to_polymorphic_proxy.rb
86
+ - lib/mongomapper/associations/belongs_to_proxy.rb
87
+ - lib/mongomapper/associations/many_documents_proxy.rb
88
+ - lib/mongomapper/associations/many_embedded_polymorphic_proxy.rb
89
+ - lib/mongomapper/associations/many_embedded_proxy.rb
90
+ - lib/mongomapper/associations/many_polymorphic_proxy.rb
91
+ - lib/mongomapper/associations/many_proxy.rb
92
+ - lib/mongomapper/associations/proxy.rb
93
+ - lib/mongomapper/callbacks.rb
94
+ - lib/mongomapper/document.rb
95
+ - lib/mongomapper/embedded_document.rb
96
+ - lib/mongomapper/finder_options.rb
97
+ - lib/mongomapper/key.rb
98
+ - lib/mongomapper/observing.rb
99
+ - lib/mongomapper/pagination.rb
100
+ - lib/mongomapper/rails_compatibility/document.rb
101
+ - lib/mongomapper/rails_compatibility/embedded_document.rb
102
+ - lib/mongomapper/save_with_validation.rb
103
+ - lib/mongomapper/serialization.rb
104
+ - lib/mongomapper/serializers/json_serializer.rb
105
+ - lib/mongomapper/validations.rb
106
+ - mongomapper.gemspec
107
+ - test/NOTE_ON_TESTING
108
+ - test/functional/associations/test_belongs_to_polymorphic_proxy.rb
109
+ - test/functional/associations/test_belongs_to_proxy.rb
110
+ - test/functional/associations/test_many_embedded_polymorphic_proxy.rb
111
+ - test/functional/associations/test_many_embedded_proxy.rb
112
+ - test/functional/associations/test_many_polymorphic_proxy.rb
113
+ - test/functional/associations/test_many_proxy.rb
114
+ - test/functional/test_associations.rb
115
+ - test/functional/test_callbacks.rb
116
+ - test/functional/test_document.rb
117
+ - test/functional/test_pagination.rb
118
+ - test/functional/test_rails_compatibility.rb
119
+ - test/functional/test_validations.rb
120
+ - test/models.rb
121
+ - test/test_helper.rb
122
+ - test/unit/serializers/test_json_serializer.rb
123
+ - test/unit/test_association_base.rb
124
+ - test/unit/test_document.rb
125
+ - test/unit/test_embedded_document.rb
126
+ - test/unit/test_finder_options.rb
127
+ - test/unit/test_key.rb
128
+ - test/unit/test_mongo_id.rb
129
+ - test/unit/test_mongomapper.rb
130
+ - test/unit/test_observing.rb
131
+ - test/unit/test_pagination.rb
132
+ - test/unit/test_rails_compatibility.rb
133
+ - test/unit/test_serializations.rb
134
+ - test/unit/test_validations.rb
135
+ has_rdoc: false
136
+ homepage: http://github.com/jnunemaker/mongomapper
137
+ licenses:
138
+ post_install_message:
139
+ rdoc_options:
140
+ - --charset=UTF-8
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: "0"
148
+ version:
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: "0"
154
+ version:
155
+ requirements: []
156
+
157
+ rubyforge_project: mongomapper
158
+ rubygems_version: 1.3.5
159
+ signing_key:
160
+ specification_version: 3
161
+ summary: Awesome gem for modeling your domain and storing it in mongo
162
+ test_files:
163
+ - test/functional/associations/test_belongs_to_polymorphic_proxy.rb
164
+ - test/functional/associations/test_belongs_to_proxy.rb
165
+ - test/functional/associations/test_many_embedded_polymorphic_proxy.rb
166
+ - test/functional/associations/test_many_embedded_proxy.rb
167
+ - test/functional/associations/test_many_polymorphic_proxy.rb
168
+ - test/functional/associations/test_many_proxy.rb
169
+ - test/functional/test_associations.rb
170
+ - test/functional/test_callbacks.rb
171
+ - test/functional/test_document.rb
172
+ - test/functional/test_pagination.rb
173
+ - test/functional/test_rails_compatibility.rb
174
+ - test/functional/test_validations.rb
175
+ - test/models.rb
176
+ - test/test_helper.rb
177
+ - test/unit/serializers/test_json_serializer.rb
178
+ - test/unit/test_association_base.rb
179
+ - test/unit/test_document.rb
180
+ - test/unit/test_embedded_document.rb
181
+ - test/unit/test_finder_options.rb
182
+ - test/unit/test_key.rb
183
+ - test/unit/test_mongo_id.rb
184
+ - test/unit/test_mongomapper.rb
185
+ - test/unit/test_observing.rb
186
+ - test/unit/test_pagination.rb
187
+ - test/unit/test_rails_compatibility.rb
188
+ - test/unit/test_serializations.rb
189
+ - test/unit/test_validations.rb