djsun-mongomapper 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/History +51 -0
- data/LICENSE +20 -0
- data/README.rdoc +39 -0
- data/Rakefile +71 -0
- data/VERSION +1 -0
- data/bin/mmconsole +56 -0
- data/lib/mongomapper.rb +96 -0
- data/lib/mongomapper/associations.rb +61 -0
- data/lib/mongomapper/associations/base.rb +71 -0
- data/lib/mongomapper/associations/belongs_to_polymorphic_proxy.rb +32 -0
- data/lib/mongomapper/associations/belongs_to_proxy.rb +22 -0
- data/lib/mongomapper/associations/many_documents_proxy.rb +85 -0
- data/lib/mongomapper/associations/many_embedded_polymorphic_proxy.rb +33 -0
- data/lib/mongomapper/associations/many_embedded_proxy.rb +17 -0
- data/lib/mongomapper/associations/many_polymorphic_proxy.rb +11 -0
- data/lib/mongomapper/associations/many_proxy.rb +6 -0
- data/lib/mongomapper/associations/proxy.rb +67 -0
- data/lib/mongomapper/callbacks.rb +106 -0
- data/lib/mongomapper/document.rb +278 -0
- data/lib/mongomapper/embedded_document.rb +237 -0
- data/lib/mongomapper/finder_options.rb +96 -0
- data/lib/mongomapper/key.rb +80 -0
- data/lib/mongomapper/observing.rb +50 -0
- data/lib/mongomapper/pagination.rb +52 -0
- data/lib/mongomapper/rails_compatibility/document.rb +15 -0
- data/lib/mongomapper/rails_compatibility/embedded_document.rb +25 -0
- data/lib/mongomapper/save_with_validation.rb +19 -0
- data/lib/mongomapper/serialization.rb +55 -0
- data/lib/mongomapper/serializers/json_serializer.rb +79 -0
- data/lib/mongomapper/validations.rb +47 -0
- data/mongomapper.gemspec +139 -0
- data/test/NOTE_ON_TESTING +1 -0
- data/test/functional/associations/test_belongs_to_polymorphic_proxy.rb +39 -0
- data/test/functional/associations/test_belongs_to_proxy.rb +35 -0
- data/test/functional/associations/test_many_embedded_polymorphic_proxy.rb +131 -0
- data/test/functional/associations/test_many_embedded_proxy.rb +106 -0
- data/test/functional/associations/test_many_polymorphic_proxy.rb +267 -0
- data/test/functional/associations/test_many_proxy.rb +236 -0
- data/test/functional/test_associations.rb +40 -0
- data/test/functional/test_callbacks.rb +85 -0
- data/test/functional/test_document.rb +691 -0
- data/test/functional/test_pagination.rb +81 -0
- data/test/functional/test_rails_compatibility.rb +31 -0
- data/test/functional/test_validations.rb +172 -0
- data/test/models.rb +108 -0
- data/test/test_helper.rb +67 -0
- data/test/unit/serializers/test_json_serializer.rb +103 -0
- data/test/unit/test_association_base.rb +136 -0
- data/test/unit/test_document.rb +125 -0
- data/test/unit/test_embedded_document.rb +370 -0
- data/test/unit/test_finder_options.rb +214 -0
- data/test/unit/test_key.rb +217 -0
- data/test/unit/test_mongo_id.rb +35 -0
- data/test/unit/test_mongomapper.rb +28 -0
- data/test/unit/test_observing.rb +101 -0
- data/test/unit/test_pagination.rb +113 -0
- data/test/unit/test_rails_compatibility.rb +34 -0
- data/test/unit/test_serializations.rb +52 -0
- data/test/unit/test_validations.rb +259 -0
- 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
|