mongo_mapper_ign 0.7.4 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/mongo_mapper.rb +5 -8
- data/lib/mongo_mapper/document.rb +24 -53
- data/lib/mongo_mapper/embedded_document.rb +1 -0
- data/lib/mongo_mapper/plugins.rb +1 -0
- data/lib/mongo_mapper/plugins/associations.rb +2 -1
- data/lib/mongo_mapper/plugins/associations/base.rb +5 -4
- data/lib/mongo_mapper/plugins/associations/belongs_to_polymorphic_proxy.rb +2 -1
- data/lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb +2 -1
- data/lib/mongo_mapper/plugins/associations/collection.rb +1 -0
- data/lib/mongo_mapper/plugins/associations/embedded_collection.rb +1 -0
- data/lib/mongo_mapper/plugins/associations/in_array_proxy.rb +1 -0
- data/lib/mongo_mapper/plugins/associations/many_documents_as_proxy.rb +1 -0
- data/lib/mongo_mapper/plugins/associations/many_documents_proxy.rb +2 -1
- data/lib/mongo_mapper/plugins/associations/many_embedded_polymorphic_proxy.rb +1 -0
- data/lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb +1 -0
- data/lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb +1 -0
- data/lib/mongo_mapper/plugins/associations/one_embedded_proxy.rb +1 -0
- data/lib/mongo_mapper/plugins/associations/one_proxy.rb +2 -1
- data/lib/mongo_mapper/plugins/associations/proxy.rb +1 -0
- data/lib/mongo_mapper/plugins/callbacks.rb +1 -0
- data/lib/mongo_mapper/plugins/clone.rb +1 -0
- data/lib/mongo_mapper/plugins/descendants.rb +1 -0
- data/lib/mongo_mapper/plugins/dirty.rb +1 -0
- data/lib/mongo_mapper/plugins/equality.rb +4 -3
- data/lib/mongo_mapper/plugins/identity_map.rb +9 -7
- data/lib/mongo_mapper/plugins/inspect.rb +1 -0
- data/lib/mongo_mapper/plugins/keys.rb +50 -73
- data/lib/mongo_mapper/plugins/keys/key.rb +54 -0
- data/lib/mongo_mapper/plugins/logger.rb +1 -0
- data/lib/mongo_mapper/plugins/modifiers.rb +10 -5
- data/lib/mongo_mapper/plugins/pagination.rb +1 -0
- data/lib/mongo_mapper/plugins/pagination/proxy.rb +4 -3
- data/lib/mongo_mapper/plugins/persistence.rb +1 -0
- data/lib/mongo_mapper/plugins/protected.rb +1 -0
- data/lib/mongo_mapper/plugins/rails.rb +1 -0
- data/lib/mongo_mapper/plugins/serialization.rb +4 -3
- data/lib/mongo_mapper/plugins/timestamps.rb +2 -1
- data/lib/mongo_mapper/plugins/userstamps.rb +1 -0
- data/lib/mongo_mapper/plugins/validations.rb +3 -2
- data/lib/mongo_mapper/query.rb +10 -129
- data/lib/mongo_mapper/support.rb +18 -39
- data/lib/mongo_mapper/support/descendant_appends.rb +1 -0
- data/lib/mongo_mapper/support/find.rb +1 -0
- data/lib/mongo_mapper/version.rb +2 -1
- metadata +32 -134
- data/.gitignore +0 -10
- data/Rakefile +0 -37
- data/mongo_mapper.gemspec +0 -214
- data/mongo_mapper_ign.gemspec +0 -217
- data/performance/read_write.rb +0 -52
- data/specs.watchr +0 -51
- data/test/NOTE_ON_TESTING +0 -1
- data/test/active_model_lint_test.rb +0 -13
- data/test/functional/associations/test_belongs_to_polymorphic_proxy.rb +0 -63
- data/test/functional/associations/test_belongs_to_proxy.rb +0 -101
- data/test/functional/associations/test_in_array_proxy.rb +0 -325
- data/test/functional/associations/test_many_documents_as_proxy.rb +0 -229
- data/test/functional/associations/test_many_documents_proxy.rb +0 -536
- data/test/functional/associations/test_many_embedded_polymorphic_proxy.rb +0 -176
- data/test/functional/associations/test_many_embedded_proxy.rb +0 -256
- data/test/functional/associations/test_many_polymorphic_proxy.rb +0 -302
- data/test/functional/associations/test_one_embedded_proxy.rb +0 -68
- data/test/functional/associations/test_one_proxy.rb +0 -196
- data/test/functional/test_associations.rb +0 -44
- data/test/functional/test_binary.rb +0 -27
- data/test/functional/test_callbacks.rb +0 -151
- data/test/functional/test_dirty.rb +0 -163
- data/test/functional/test_document.rb +0 -1219
- data/test/functional/test_embedded_document.rb +0 -210
- data/test/functional/test_identity_map.rb +0 -507
- data/test/functional/test_indexing.rb +0 -44
- data/test/functional/test_logger.rb +0 -20
- data/test/functional/test_modifiers.rb +0 -394
- data/test/functional/test_pagination.rb +0 -93
- data/test/functional/test_protected.rb +0 -163
- data/test/functional/test_string_id_compatibility.rb +0 -67
- data/test/functional/test_timestamps.rb +0 -64
- data/test/functional/test_userstamps.rb +0 -28
- data/test/functional/test_validations.rb +0 -342
- data/test/models.rb +0 -227
- data/test/support/custom_matchers.rb +0 -37
- data/test/support/timing.rb +0 -16
- data/test/test_helper.rb +0 -64
- data/test/unit/associations/test_base.rb +0 -212
- data/test/unit/associations/test_proxy.rb +0 -105
- data/test/unit/serializers/test_json_serializer.rb +0 -202
- data/test/unit/test_descendant_appends.rb +0 -71
- data/test/unit/test_document.rb +0 -225
- data/test/unit/test_dynamic_finder.rb +0 -123
- data/test/unit/test_embedded_document.rb +0 -657
- data/test/unit/test_keys.rb +0 -185
- data/test/unit/test_mongo_mapper.rb +0 -118
- data/test/unit/test_pagination.rb +0 -160
- data/test/unit/test_plugins.rb +0 -50
- data/test/unit/test_query.rb +0 -374
- data/test/unit/test_rails.rb +0 -181
- data/test/unit/test_rails_compatibility.rb +0 -52
- data/test/unit/test_serialization.rb +0 -51
- data/test/unit/test_support.rb +0 -382
- data/test/unit/test_time_zones.rb +0 -39
- data/test/unit/test_validations.rb +0 -544
data/mongo_mapper.gemspec
DELETED
@@ -1,214 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{mongo_mapper}
|
8
|
-
s.version = "0.7.4"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["John Nunemaker"]
|
12
|
-
s.date = %q{2010-04-18}
|
13
|
-
s.default_executable = %q{mmconsole}
|
14
|
-
s.email = %q{nunemaker@gmail.com}
|
15
|
-
s.executables = ["mmconsole"]
|
16
|
-
s.extra_rdoc_files = [
|
17
|
-
"LICENSE",
|
18
|
-
"README.rdoc"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".gitignore",
|
22
|
-
"LICENSE",
|
23
|
-
"README.rdoc",
|
24
|
-
"Rakefile",
|
25
|
-
"bin/mmconsole",
|
26
|
-
"lib/mongo_mapper.rb",
|
27
|
-
"lib/mongo_mapper/document.rb",
|
28
|
-
"lib/mongo_mapper/embedded_document.rb",
|
29
|
-
"lib/mongo_mapper/plugins.rb",
|
30
|
-
"lib/mongo_mapper/plugins/associations.rb",
|
31
|
-
"lib/mongo_mapper/plugins/associations/base.rb",
|
32
|
-
"lib/mongo_mapper/plugins/associations/belongs_to_polymorphic_proxy.rb",
|
33
|
-
"lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb",
|
34
|
-
"lib/mongo_mapper/plugins/associations/collection.rb",
|
35
|
-
"lib/mongo_mapper/plugins/associations/embedded_collection.rb",
|
36
|
-
"lib/mongo_mapper/plugins/associations/in_array_proxy.rb",
|
37
|
-
"lib/mongo_mapper/plugins/associations/many_documents_as_proxy.rb",
|
38
|
-
"lib/mongo_mapper/plugins/associations/many_documents_proxy.rb",
|
39
|
-
"lib/mongo_mapper/plugins/associations/many_embedded_polymorphic_proxy.rb",
|
40
|
-
"lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb",
|
41
|
-
"lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb",
|
42
|
-
"lib/mongo_mapper/plugins/associations/one_embedded_proxy.rb",
|
43
|
-
"lib/mongo_mapper/plugins/associations/one_proxy.rb",
|
44
|
-
"lib/mongo_mapper/plugins/associations/proxy.rb",
|
45
|
-
"lib/mongo_mapper/plugins/callbacks.rb",
|
46
|
-
"lib/mongo_mapper/plugins/clone.rb",
|
47
|
-
"lib/mongo_mapper/plugins/descendants.rb",
|
48
|
-
"lib/mongo_mapper/plugins/dirty.rb",
|
49
|
-
"lib/mongo_mapper/plugins/equality.rb",
|
50
|
-
"lib/mongo_mapper/plugins/identity_map.rb",
|
51
|
-
"lib/mongo_mapper/plugins/inspect.rb",
|
52
|
-
"lib/mongo_mapper/plugins/keys.rb",
|
53
|
-
"lib/mongo_mapper/plugins/logger.rb",
|
54
|
-
"lib/mongo_mapper/plugins/modifiers.rb",
|
55
|
-
"lib/mongo_mapper/plugins/pagination.rb",
|
56
|
-
"lib/mongo_mapper/plugins/pagination/proxy.rb",
|
57
|
-
"lib/mongo_mapper/plugins/persistence.rb",
|
58
|
-
"lib/mongo_mapper/plugins/protected.rb",
|
59
|
-
"lib/mongo_mapper/plugins/rails.rb",
|
60
|
-
"lib/mongo_mapper/plugins/serialization.rb",
|
61
|
-
"lib/mongo_mapper/plugins/timestamps.rb",
|
62
|
-
"lib/mongo_mapper/plugins/userstamps.rb",
|
63
|
-
"lib/mongo_mapper/plugins/validations.rb",
|
64
|
-
"lib/mongo_mapper/query.rb",
|
65
|
-
"lib/mongo_mapper/support.rb",
|
66
|
-
"lib/mongo_mapper/support/descendant_appends.rb",
|
67
|
-
"lib/mongo_mapper/support/find.rb",
|
68
|
-
"lib/mongo_mapper/version.rb",
|
69
|
-
"mongo_mapper.gemspec",
|
70
|
-
"performance/read_write.rb",
|
71
|
-
"specs.watchr",
|
72
|
-
"test/NOTE_ON_TESTING",
|
73
|
-
"test/active_model_lint_test.rb",
|
74
|
-
"test/functional/associations/test_belongs_to_polymorphic_proxy.rb",
|
75
|
-
"test/functional/associations/test_belongs_to_proxy.rb",
|
76
|
-
"test/functional/associations/test_in_array_proxy.rb",
|
77
|
-
"test/functional/associations/test_many_documents_as_proxy.rb",
|
78
|
-
"test/functional/associations/test_many_documents_proxy.rb",
|
79
|
-
"test/functional/associations/test_many_embedded_polymorphic_proxy.rb",
|
80
|
-
"test/functional/associations/test_many_embedded_proxy.rb",
|
81
|
-
"test/functional/associations/test_many_polymorphic_proxy.rb",
|
82
|
-
"test/functional/associations/test_one_embedded_proxy.rb",
|
83
|
-
"test/functional/associations/test_one_proxy.rb",
|
84
|
-
"test/functional/test_associations.rb",
|
85
|
-
"test/functional/test_binary.rb",
|
86
|
-
"test/functional/test_callbacks.rb",
|
87
|
-
"test/functional/test_dirty.rb",
|
88
|
-
"test/functional/test_document.rb",
|
89
|
-
"test/functional/test_embedded_document.rb",
|
90
|
-
"test/functional/test_identity_map.rb",
|
91
|
-
"test/functional/test_indexing.rb",
|
92
|
-
"test/functional/test_logger.rb",
|
93
|
-
"test/functional/test_modifiers.rb",
|
94
|
-
"test/functional/test_pagination.rb",
|
95
|
-
"test/functional/test_protected.rb",
|
96
|
-
"test/functional/test_string_id_compatibility.rb",
|
97
|
-
"test/functional/test_timestamps.rb",
|
98
|
-
"test/functional/test_userstamps.rb",
|
99
|
-
"test/functional/test_validations.rb",
|
100
|
-
"test/models.rb",
|
101
|
-
"test/support/custom_matchers.rb",
|
102
|
-
"test/support/timing.rb",
|
103
|
-
"test/test_helper.rb",
|
104
|
-
"test/unit/associations/test_base.rb",
|
105
|
-
"test/unit/associations/test_proxy.rb",
|
106
|
-
"test/unit/serializers/test_json_serializer.rb",
|
107
|
-
"test/unit/test_descendant_appends.rb",
|
108
|
-
"test/unit/test_document.rb",
|
109
|
-
"test/unit/test_dynamic_finder.rb",
|
110
|
-
"test/unit/test_embedded_document.rb",
|
111
|
-
"test/unit/test_keys.rb",
|
112
|
-
"test/unit/test_mongo_mapper.rb",
|
113
|
-
"test/unit/test_pagination.rb",
|
114
|
-
"test/unit/test_plugins.rb",
|
115
|
-
"test/unit/test_query.rb",
|
116
|
-
"test/unit/test_rails.rb",
|
117
|
-
"test/unit/test_rails_compatibility.rb",
|
118
|
-
"test/unit/test_serialization.rb",
|
119
|
-
"test/unit/test_support.rb",
|
120
|
-
"test/unit/test_time_zones.rb",
|
121
|
-
"test/unit/test_validations.rb"
|
122
|
-
]
|
123
|
-
s.homepage = %q{http://github.com/jnunemaker/mongomapper}
|
124
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
125
|
-
s.require_paths = ["lib"]
|
126
|
-
s.rubygems_version = %q{1.3.6}
|
127
|
-
s.summary = %q{A Ruby Object Mapper for Mongo}
|
128
|
-
s.test_files = [
|
129
|
-
"test/active_model_lint_test.rb",
|
130
|
-
"test/functional/associations/test_belongs_to_polymorphic_proxy.rb",
|
131
|
-
"test/functional/associations/test_belongs_to_proxy.rb",
|
132
|
-
"test/functional/associations/test_in_array_proxy.rb",
|
133
|
-
"test/functional/associations/test_many_documents_as_proxy.rb",
|
134
|
-
"test/functional/associations/test_many_documents_proxy.rb",
|
135
|
-
"test/functional/associations/test_many_embedded_polymorphic_proxy.rb",
|
136
|
-
"test/functional/associations/test_many_embedded_proxy.rb",
|
137
|
-
"test/functional/associations/test_many_polymorphic_proxy.rb",
|
138
|
-
"test/functional/associations/test_one_embedded_proxy.rb",
|
139
|
-
"test/functional/associations/test_one_proxy.rb",
|
140
|
-
"test/functional/test_associations.rb",
|
141
|
-
"test/functional/test_binary.rb",
|
142
|
-
"test/functional/test_callbacks.rb",
|
143
|
-
"test/functional/test_dirty.rb",
|
144
|
-
"test/functional/test_document.rb",
|
145
|
-
"test/functional/test_embedded_document.rb",
|
146
|
-
"test/functional/test_identity_map.rb",
|
147
|
-
"test/functional/test_indexing.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_timestamps.rb",
|
154
|
-
"test/functional/test_userstamps.rb",
|
155
|
-
"test/functional/test_validations.rb",
|
156
|
-
"test/models.rb",
|
157
|
-
"test/support/custom_matchers.rb",
|
158
|
-
"test/support/timing.rb",
|
159
|
-
"test/test_helper.rb",
|
160
|
-
"test/unit/associations/test_base.rb",
|
161
|
-
"test/unit/associations/test_proxy.rb",
|
162
|
-
"test/unit/serializers/test_json_serializer.rb",
|
163
|
-
"test/unit/test_descendant_appends.rb",
|
164
|
-
"test/unit/test_document.rb",
|
165
|
-
"test/unit/test_dynamic_finder.rb",
|
166
|
-
"test/unit/test_embedded_document.rb",
|
167
|
-
"test/unit/test_keys.rb",
|
168
|
-
"test/unit/test_mongo_mapper.rb",
|
169
|
-
"test/unit/test_pagination.rb",
|
170
|
-
"test/unit/test_plugins.rb",
|
171
|
-
"test/unit/test_query.rb",
|
172
|
-
"test/unit/test_rails.rb",
|
173
|
-
"test/unit/test_rails_compatibility.rb",
|
174
|
-
"test/unit/test_serialization.rb",
|
175
|
-
"test/unit/test_support.rb",
|
176
|
-
"test/unit/test_time_zones.rb",
|
177
|
-
"test/unit/test_validations.rb"
|
178
|
-
]
|
179
|
-
|
180
|
-
if s.respond_to? :specification_version then
|
181
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
182
|
-
s.specification_version = 3
|
183
|
-
|
184
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
185
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.4"])
|
186
|
-
s.add_runtime_dependency(%q<mongo>, ["= 0.20.1"])
|
187
|
-
s.add_runtime_dependency(%q<jnunemaker-validatable>, ["= 1.8.4"])
|
188
|
-
s.add_development_dependency(%q<json>, [">= 1.2.3"])
|
189
|
-
s.add_development_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
190
|
-
s.add_development_dependency(%q<shoulda>, ["= 2.10.2"])
|
191
|
-
s.add_development_dependency(%q<timecop>, ["= 0.3.1"])
|
192
|
-
s.add_development_dependency(%q<mocha>, ["= 0.9.8"])
|
193
|
-
else
|
194
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
|
195
|
-
s.add_dependency(%q<mongo>, ["= 0.20.1"])
|
196
|
-
s.add_dependency(%q<jnunemaker-validatable>, ["= 1.8.4"])
|
197
|
-
s.add_dependency(%q<json>, [">= 1.2.3"])
|
198
|
-
s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
199
|
-
s.add_dependency(%q<shoulda>, ["= 2.10.2"])
|
200
|
-
s.add_dependency(%q<timecop>, ["= 0.3.1"])
|
201
|
-
s.add_dependency(%q<mocha>, ["= 0.9.8"])
|
202
|
-
end
|
203
|
-
else
|
204
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
|
205
|
-
s.add_dependency(%q<mongo>, ["= 0.20.1"])
|
206
|
-
s.add_dependency(%q<jnunemaker-validatable>, ["= 1.8.4"])
|
207
|
-
s.add_dependency(%q<json>, [">= 1.2.3"])
|
208
|
-
s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
209
|
-
s.add_dependency(%q<shoulda>, ["= 2.10.2"])
|
210
|
-
s.add_dependency(%q<timecop>, ["= 0.3.1"])
|
211
|
-
s.add_dependency(%q<mocha>, ["= 0.9.8"])
|
212
|
-
end
|
213
|
-
end
|
214
|
-
|
data/mongo_mapper_ign.gemspec
DELETED
@@ -1,217 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{mongo_mapper_ign}
|
8
|
-
s.version = "0.7.4"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["John Nunemaker", "Chandra Patni", "Thomas Nguyen"]
|
12
|
-
s.date = %q{2010-04-29}
|
13
|
-
s.default_executable = %q{mmconsole}
|
14
|
-
s.email = %q{nunemaker@gmail.com,cpatni@ign.com,thnguyen@ign.com}
|
15
|
-
s.executables = ["mmconsole"]
|
16
|
-
s.extra_rdoc_files = [
|
17
|
-
"LICENSE",
|
18
|
-
"README.rdoc"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".gitignore",
|
22
|
-
"LICENSE",
|
23
|
-
"README.rdoc",
|
24
|
-
"Rakefile",
|
25
|
-
"bin/mmconsole",
|
26
|
-
"lib/mongo_mapper.rb",
|
27
|
-
"lib/mongo_mapper/document.rb",
|
28
|
-
"lib/mongo_mapper/embedded_document.rb",
|
29
|
-
"lib/mongo_mapper/plugins.rb",
|
30
|
-
"lib/mongo_mapper/plugins/associations.rb",
|
31
|
-
"lib/mongo_mapper/plugins/associations/base.rb",
|
32
|
-
"lib/mongo_mapper/plugins/associations/belongs_to_polymorphic_proxy.rb",
|
33
|
-
"lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb",
|
34
|
-
"lib/mongo_mapper/plugins/associations/collection.rb",
|
35
|
-
"lib/mongo_mapper/plugins/associations/embedded_collection.rb",
|
36
|
-
"lib/mongo_mapper/plugins/associations/in_array_proxy.rb",
|
37
|
-
"lib/mongo_mapper/plugins/associations/many_documents_as_proxy.rb",
|
38
|
-
"lib/mongo_mapper/plugins/associations/many_documents_proxy.rb",
|
39
|
-
"lib/mongo_mapper/plugins/associations/many_embedded_polymorphic_proxy.rb",
|
40
|
-
"lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb",
|
41
|
-
"lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb",
|
42
|
-
"lib/mongo_mapper/plugins/associations/one_embedded_proxy.rb",
|
43
|
-
"lib/mongo_mapper/plugins/associations/one_proxy.rb",
|
44
|
-
"lib/mongo_mapper/plugins/associations/proxy.rb",
|
45
|
-
"lib/mongo_mapper/plugins/callbacks.rb",
|
46
|
-
"lib/mongo_mapper/plugins/clone.rb",
|
47
|
-
"lib/mongo_mapper/plugins/descendants.rb",
|
48
|
-
"lib/mongo_mapper/plugins/dirty.rb",
|
49
|
-
"lib/mongo_mapper/plugins/equality.rb",
|
50
|
-
"lib/mongo_mapper/plugins/identity_map.rb",
|
51
|
-
"lib/mongo_mapper/plugins/inspect.rb",
|
52
|
-
"lib/mongo_mapper/plugins/keys.rb",
|
53
|
-
"lib/mongo_mapper/plugins/logger.rb",
|
54
|
-
"lib/mongo_mapper/plugins/modifiers.rb",
|
55
|
-
"lib/mongo_mapper/plugins/pagination.rb",
|
56
|
-
"lib/mongo_mapper/plugins/pagination/proxy.rb",
|
57
|
-
"lib/mongo_mapper/plugins/persistence.rb",
|
58
|
-
"lib/mongo_mapper/plugins/protected.rb",
|
59
|
-
"lib/mongo_mapper/plugins/rails.rb",
|
60
|
-
"lib/mongo_mapper/plugins/serialization.rb",
|
61
|
-
"lib/mongo_mapper/plugins/serialization/array.rb",
|
62
|
-
"lib/mongo_mapper/plugins/serialization/xml_serializer.rb",
|
63
|
-
"lib/mongo_mapper/plugins/timestamps.rb",
|
64
|
-
"lib/mongo_mapper/plugins/userstamps.rb",
|
65
|
-
"lib/mongo_mapper/plugins/validations.rb",
|
66
|
-
"lib/mongo_mapper/query.rb",
|
67
|
-
"lib/mongo_mapper/support.rb",
|
68
|
-
"lib/mongo_mapper/support/descendant_appends.rb",
|
69
|
-
"lib/mongo_mapper/support/find.rb",
|
70
|
-
"lib/mongo_mapper/version.rb",
|
71
|
-
"mongo_mapper.gemspec",
|
72
|
-
"mongo_mapper_ign.gemspec",
|
73
|
-
"performance/read_write.rb",
|
74
|
-
"specs.watchr",
|
75
|
-
"test/NOTE_ON_TESTING",
|
76
|
-
"test/active_model_lint_test.rb",
|
77
|
-
"test/functional/associations/test_belongs_to_polymorphic_proxy.rb",
|
78
|
-
"test/functional/associations/test_belongs_to_proxy.rb",
|
79
|
-
"test/functional/associations/test_in_array_proxy.rb",
|
80
|
-
"test/functional/associations/test_many_documents_as_proxy.rb",
|
81
|
-
"test/functional/associations/test_many_documents_proxy.rb",
|
82
|
-
"test/functional/associations/test_many_embedded_polymorphic_proxy.rb",
|
83
|
-
"test/functional/associations/test_many_embedded_proxy.rb",
|
84
|
-
"test/functional/associations/test_many_polymorphic_proxy.rb",
|
85
|
-
"test/functional/associations/test_one_embedded_proxy.rb",
|
86
|
-
"test/functional/associations/test_one_proxy.rb",
|
87
|
-
"test/functional/test_associations.rb",
|
88
|
-
"test/functional/test_binary.rb",
|
89
|
-
"test/functional/test_callbacks.rb",
|
90
|
-
"test/functional/test_dirty.rb",
|
91
|
-
"test/functional/test_document.rb",
|
92
|
-
"test/functional/test_embedded_document.rb",
|
93
|
-
"test/functional/test_identity_map.rb",
|
94
|
-
"test/functional/test_indexing.rb",
|
95
|
-
"test/functional/test_logger.rb",
|
96
|
-
"test/functional/test_modifiers.rb",
|
97
|
-
"test/functional/test_pagination.rb",
|
98
|
-
"test/functional/test_protected.rb",
|
99
|
-
"test/functional/test_string_id_compatibility.rb",
|
100
|
-
"test/functional/test_timestamps.rb",
|
101
|
-
"test/functional/test_userstamps.rb",
|
102
|
-
"test/functional/test_validations.rb",
|
103
|
-
"test/models.rb",
|
104
|
-
"test/support/custom_matchers.rb",
|
105
|
-
"test/support/timing.rb",
|
106
|
-
"test/test_helper.rb",
|
107
|
-
"test/unit/associations/test_base.rb",
|
108
|
-
"test/unit/associations/test_proxy.rb",
|
109
|
-
"test/unit/serializers/test_json_serializer.rb",
|
110
|
-
"test/unit/test_descendant_appends.rb",
|
111
|
-
"test/unit/test_document.rb",
|
112
|
-
"test/unit/test_dynamic_finder.rb",
|
113
|
-
"test/unit/test_embedded_document.rb",
|
114
|
-
"test/unit/test_keys.rb",
|
115
|
-
"test/unit/test_mongo_mapper.rb",
|
116
|
-
"test/unit/test_pagination.rb",
|
117
|
-
"test/unit/test_plugins.rb",
|
118
|
-
"test/unit/test_query.rb",
|
119
|
-
"test/unit/test_rails.rb",
|
120
|
-
"test/unit/test_rails_compatibility.rb",
|
121
|
-
"test/unit/test_serialization.rb",
|
122
|
-
"test/unit/test_support.rb",
|
123
|
-
"test/unit/test_time_zones.rb",
|
124
|
-
"test/unit/test_validations.rb"
|
125
|
-
]
|
126
|
-
s.homepage = %q{http://github.com/rubyorchard/mongomapper}
|
127
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
128
|
-
s.require_paths = ["lib"]
|
129
|
-
s.rubygems_version = %q{1.3.6}
|
130
|
-
s.summary = %q{A Ruby Object Mapper for Mongo including support for XML serialization}
|
131
|
-
s.test_files = [
|
132
|
-
"test/active_model_lint_test.rb",
|
133
|
-
"test/functional/associations/test_belongs_to_polymorphic_proxy.rb",
|
134
|
-
"test/functional/associations/test_belongs_to_proxy.rb",
|
135
|
-
"test/functional/associations/test_in_array_proxy.rb",
|
136
|
-
"test/functional/associations/test_many_documents_as_proxy.rb",
|
137
|
-
"test/functional/associations/test_many_documents_proxy.rb",
|
138
|
-
"test/functional/associations/test_many_embedded_polymorphic_proxy.rb",
|
139
|
-
"test/functional/associations/test_many_embedded_proxy.rb",
|
140
|
-
"test/functional/associations/test_many_polymorphic_proxy.rb",
|
141
|
-
"test/functional/associations/test_one_embedded_proxy.rb",
|
142
|
-
"test/functional/associations/test_one_proxy.rb",
|
143
|
-
"test/functional/test_associations.rb",
|
144
|
-
"test/functional/test_binary.rb",
|
145
|
-
"test/functional/test_callbacks.rb",
|
146
|
-
"test/functional/test_dirty.rb",
|
147
|
-
"test/functional/test_document.rb",
|
148
|
-
"test/functional/test_embedded_document.rb",
|
149
|
-
"test/functional/test_identity_map.rb",
|
150
|
-
"test/functional/test_indexing.rb",
|
151
|
-
"test/functional/test_logger.rb",
|
152
|
-
"test/functional/test_modifiers.rb",
|
153
|
-
"test/functional/test_pagination.rb",
|
154
|
-
"test/functional/test_protected.rb",
|
155
|
-
"test/functional/test_string_id_compatibility.rb",
|
156
|
-
"test/functional/test_timestamps.rb",
|
157
|
-
"test/functional/test_userstamps.rb",
|
158
|
-
"test/functional/test_validations.rb",
|
159
|
-
"test/models.rb",
|
160
|
-
"test/support/custom_matchers.rb",
|
161
|
-
"test/support/timing.rb",
|
162
|
-
"test/test_helper.rb",
|
163
|
-
"test/unit/associations/test_base.rb",
|
164
|
-
"test/unit/associations/test_proxy.rb",
|
165
|
-
"test/unit/serializers/test_json_serializer.rb",
|
166
|
-
"test/unit/test_descendant_appends.rb",
|
167
|
-
"test/unit/test_document.rb",
|
168
|
-
"test/unit/test_dynamic_finder.rb",
|
169
|
-
"test/unit/test_embedded_document.rb",
|
170
|
-
"test/unit/test_keys.rb",
|
171
|
-
"test/unit/test_mongo_mapper.rb",
|
172
|
-
"test/unit/test_pagination.rb",
|
173
|
-
"test/unit/test_plugins.rb",
|
174
|
-
"test/unit/test_query.rb",
|
175
|
-
"test/unit/test_rails.rb",
|
176
|
-
"test/unit/test_rails_compatibility.rb",
|
177
|
-
"test/unit/test_serialization.rb",
|
178
|
-
"test/unit/test_support.rb",
|
179
|
-
"test/unit/test_time_zones.rb",
|
180
|
-
"test/unit/test_validations.rb"
|
181
|
-
]
|
182
|
-
|
183
|
-
if s.respond_to? :specification_version then
|
184
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
185
|
-
s.specification_version = 3
|
186
|
-
|
187
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
188
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.4"])
|
189
|
-
s.add_runtime_dependency(%q<mongo>, ["= 0.20.1"])
|
190
|
-
s.add_runtime_dependency(%q<jnunemaker-validatable>, ["= 1.8.4"])
|
191
|
-
s.add_development_dependency(%q<json>, [">= 1.2.3"])
|
192
|
-
s.add_development_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
193
|
-
s.add_development_dependency(%q<shoulda>, ["= 2.10.2"])
|
194
|
-
s.add_development_dependency(%q<timecop>, ["= 0.3.1"])
|
195
|
-
s.add_development_dependency(%q<mocha>, ["= 0.9.8"])
|
196
|
-
else
|
197
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
|
198
|
-
s.add_dependency(%q<mongo>, ["= 0.20.1"])
|
199
|
-
s.add_dependency(%q<jnunemaker-validatable>, ["= 1.8.4"])
|
200
|
-
s.add_dependency(%q<json>, [">= 1.2.3"])
|
201
|
-
s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
202
|
-
s.add_dependency(%q<shoulda>, ["= 2.10.2"])
|
203
|
-
s.add_dependency(%q<timecop>, ["= 0.3.1"])
|
204
|
-
s.add_dependency(%q<mocha>, ["= 0.9.8"])
|
205
|
-
end
|
206
|
-
else
|
207
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
|
208
|
-
s.add_dependency(%q<mongo>, ["= 0.20.1"])
|
209
|
-
s.add_dependency(%q<jnunemaker-validatable>, ["= 1.8.4"])
|
210
|
-
s.add_dependency(%q<json>, [">= 1.2.3"])
|
211
|
-
s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
212
|
-
s.add_dependency(%q<shoulda>, ["= 2.10.2"])
|
213
|
-
s.add_dependency(%q<timecop>, ["= 0.3.1"])
|
214
|
-
s.add_dependency(%q<mocha>, ["= 0.9.8"])
|
215
|
-
end
|
216
|
-
end
|
217
|
-
|
data/performance/read_write.rb
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
# The purpose of this is to check finding, initializing,
|
2
|
-
# and creating objects (typecasting times/dates and booleans).
|
3
|
-
|
4
|
-
require 'pp'
|
5
|
-
require 'benchmark'
|
6
|
-
require 'rubygems'
|
7
|
-
|
8
|
-
# to test with slow version just do this:
|
9
|
-
# gem 'mongo_mapper', '0.6.10'
|
10
|
-
# and comment out this:
|
11
|
-
$:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
|
12
|
-
|
13
|
-
require 'mongo_mapper'
|
14
|
-
|
15
|
-
MongoMapper.database = 'testing'
|
16
|
-
|
17
|
-
class Foo
|
18
|
-
include MongoMapper::Document
|
19
|
-
key :approved, Boolean
|
20
|
-
key :count, Integer
|
21
|
-
key :approved_at, Time
|
22
|
-
key :expire_on, Date
|
23
|
-
timestamps!
|
24
|
-
end
|
25
|
-
Foo.collection.remove
|
26
|
-
|
27
|
-
Benchmark.bm(5) do |x|
|
28
|
-
ids = []
|
29
|
-
x.report("write") do
|
30
|
-
1000.times { |i| ids << Foo.create(:count => 0, :approved => true, :approved_at => Time.now, :expire_on => Date.today).id }
|
31
|
-
end
|
32
|
-
|
33
|
-
x.report("read ") do
|
34
|
-
ids.each { |id| Foo.first(:id => id) }
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
# I was get something like this on my puny macbook air:
|
39
|
-
# user system total real
|
40
|
-
# write 4.810000 0.090000 4.900000 ( 5.039949)
|
41
|
-
# read 2.730000 0.070000 2.800000 ( 2.990749)
|
42
|
-
#
|
43
|
-
#
|
44
|
-
# After these commits:
|
45
|
-
#
|
46
|
-
# * http://github.com/jnunemaker/mongomapper/commit/e5091fa140d5fae2721017b53027092233694ee5
|
47
|
-
# * http://github.com/jnunemaker/mongomapper/commit/c22bbde4fa1cfbc310d79cb0e50203310ffb03d1
|
48
|
-
#
|
49
|
-
# I'm now getting something like this:
|
50
|
-
# user system total real
|
51
|
-
# write 1.660000 0.050000 1.710000 ( 1.752676)
|
52
|
-
# read 1.060000 0.050000 1.110000 ( 1.263429)
|