mongo_mapper_ign 0.7.4 → 0.7.6
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.
- 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/lib/mongo_mapper/support.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
class Array
|
2
3
|
def self.to_mongo(value)
|
3
4
|
value = value.respond_to?(:lines) ? value.lines : value
|
4
5
|
value.to_a
|
5
6
|
end
|
6
|
-
|
7
|
+
|
7
8
|
def self.from_mongo(value)
|
8
9
|
value || []
|
9
10
|
end
|
@@ -28,7 +29,7 @@ class Boolean
|
|
28
29
|
true => true, 'true' => true, 'TRUE' => true, 'True' => true, 't' => true, 'T' => true, '1' => true, 1 => true, 1.0 => true,
|
29
30
|
false => false, 'false' => false, 'FALSE' => false, 'False' => false, 'f' => false, 'F' => false, '0' => false, 0 => false, 0.0 => false, nil => nil
|
30
31
|
}
|
31
|
-
|
32
|
+
|
32
33
|
def self.to_mongo(value)
|
33
34
|
if value.is_a?(Boolean)
|
34
35
|
value
|
@@ -53,7 +54,7 @@ class Date
|
|
53
54
|
rescue
|
54
55
|
nil
|
55
56
|
end
|
56
|
-
|
57
|
+
|
57
58
|
def self.from_mongo(value)
|
58
59
|
value.to_date if value.present?
|
59
60
|
end
|
@@ -61,7 +62,7 @@ end
|
|
61
62
|
|
62
63
|
class Float
|
63
64
|
def self.to_mongo(value)
|
64
|
-
value.to_f
|
65
|
+
value.nil? ? nil : value.to_f
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
@@ -69,7 +70,7 @@ class Hash
|
|
69
70
|
def self.from_mongo(value)
|
70
71
|
HashWithIndifferentAccess.new(value || {})
|
71
72
|
end
|
72
|
-
|
73
|
+
|
73
74
|
def to_mongo
|
74
75
|
self
|
75
76
|
end
|
@@ -90,7 +91,7 @@ class NilClass
|
|
90
91
|
def to_mongo(value)
|
91
92
|
value
|
92
93
|
end
|
93
|
-
|
94
|
+
|
94
95
|
def from_mongo(value)
|
95
96
|
value
|
96
97
|
end
|
@@ -115,11 +116,11 @@ class Object
|
|
115
116
|
def class_def(name, &blk)
|
116
117
|
class_eval { define_method(name, &blk) }
|
117
118
|
end
|
118
|
-
|
119
|
+
|
119
120
|
def self.to_mongo(value)
|
120
121
|
value
|
121
122
|
end
|
122
|
-
|
123
|
+
|
123
124
|
def self.from_mongo(value)
|
124
125
|
value
|
125
126
|
end
|
@@ -127,15 +128,9 @@ end
|
|
127
128
|
|
128
129
|
class ObjectId
|
129
130
|
def self.to_mongo(value)
|
130
|
-
|
131
|
-
nil
|
132
|
-
elsif value.is_a?(BSON::ObjectID)
|
133
|
-
value
|
134
|
-
else
|
135
|
-
BSON::ObjectID.from_string(value.to_s)
|
136
|
-
end
|
131
|
+
Plucky.to_object_id(value)
|
137
132
|
end
|
138
|
-
|
133
|
+
|
139
134
|
def self.from_mongo(value)
|
140
135
|
value
|
141
136
|
end
|
@@ -145,7 +140,7 @@ class Set
|
|
145
140
|
def self.to_mongo(value)
|
146
141
|
value.to_a
|
147
142
|
end
|
148
|
-
|
143
|
+
|
149
144
|
def self.from_mongo(value)
|
150
145
|
Set.new(value || [])
|
151
146
|
end
|
@@ -155,28 +150,12 @@ class String
|
|
155
150
|
def self.to_mongo(value)
|
156
151
|
value.nil? ? nil : value.to_s
|
157
152
|
end
|
158
|
-
|
153
|
+
|
159
154
|
def self.from_mongo(value)
|
160
155
|
value.nil? ? nil : value.to_s
|
161
156
|
end
|
162
157
|
end
|
163
158
|
|
164
|
-
class SymbolOperator
|
165
|
-
attr_reader :field, :operator
|
166
|
-
|
167
|
-
def initialize(field, operator, options={})
|
168
|
-
@field, @operator = field, operator
|
169
|
-
end unless method_defined?(:initialize)
|
170
|
-
end
|
171
|
-
|
172
|
-
class Symbol
|
173
|
-
%w(gt lt gte lte ne in nin mod all size where exists asc desc).each do |operator|
|
174
|
-
define_method(operator) do
|
175
|
-
SymbolOperator.new(self, operator)
|
176
|
-
end unless method_defined?(operator)
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
159
|
class Time
|
181
160
|
def self.to_mongo(value)
|
182
161
|
if value.nil? || value == ''
|
@@ -184,11 +163,11 @@ class Time
|
|
184
163
|
else
|
185
164
|
time_class = Time.try(:zone).present? ? Time.zone : Time
|
186
165
|
time = value.is_a?(Time) ? value : time_class.parse(value.to_s)
|
187
|
-
#
|
188
|
-
|
166
|
+
# strip milliseconds as Ruby does micro and bson does milli and rounding rounded wrong
|
167
|
+
at(time.to_i).utc if time
|
189
168
|
end
|
190
169
|
end
|
191
|
-
|
170
|
+
|
192
171
|
def self.from_mongo(value)
|
193
172
|
if Time.try(:zone).present? && value.present?
|
194
173
|
value.in_time_zone(Time.zone)
|
@@ -200,11 +179,11 @@ end
|
|
200
179
|
|
201
180
|
class BSON::ObjectID
|
202
181
|
alias_method :original_to_json, :to_json
|
203
|
-
|
182
|
+
|
204
183
|
def as_json(options=nil)
|
205
184
|
to_s
|
206
185
|
end
|
207
|
-
|
186
|
+
|
208
187
|
def to_json(options = nil)
|
209
188
|
as_json.to_json
|
210
189
|
end
|
data/lib/mongo_mapper/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 6
|
9
|
+
version: 0.7.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- John Nunemaker
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-05-19 00:00:00 -07:00
|
20
20
|
default_executable: mmconsole
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -34,31 +34,31 @@ dependencies:
|
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
37
|
+
name: jnunemaker-validatable
|
38
38
|
prerelease: false
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - "="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
segments:
|
44
|
-
- 0
|
45
|
-
- 20
|
46
44
|
- 1
|
47
|
-
|
45
|
+
- 8
|
46
|
+
- 4
|
47
|
+
version: 1.8.4
|
48
48
|
type: :runtime
|
49
49
|
version_requirements: *id002
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
|
-
name:
|
51
|
+
name: plucky
|
52
52
|
prerelease: false
|
53
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - "="
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
segments:
|
58
|
+
- 0
|
58
59
|
- 1
|
59
|
-
-
|
60
|
-
|
61
|
-
version: 1.8.4
|
60
|
+
- 2
|
61
|
+
version: 0.1.2
|
62
62
|
type: :runtime
|
63
63
|
version_requirements: *id003
|
64
64
|
- !ruby/object:Gem::Dependency
|
@@ -137,20 +137,12 @@ executables:
|
|
137
137
|
- mmconsole
|
138
138
|
extensions: []
|
139
139
|
|
140
|
-
extra_rdoc_files:
|
141
|
-
|
142
|
-
- README.rdoc
|
140
|
+
extra_rdoc_files: []
|
141
|
+
|
143
142
|
files:
|
144
|
-
- .gitignore
|
145
|
-
- LICENSE
|
146
|
-
- README.rdoc
|
147
|
-
- Rakefile
|
148
143
|
- bin/mmconsole
|
149
|
-
- lib/mongo_mapper.rb
|
150
144
|
- lib/mongo_mapper/document.rb
|
151
145
|
- lib/mongo_mapper/embedded_document.rb
|
152
|
-
- lib/mongo_mapper/plugins.rb
|
153
|
-
- lib/mongo_mapper/plugins/associations.rb
|
154
146
|
- lib/mongo_mapper/plugins/associations/base.rb
|
155
147
|
- lib/mongo_mapper/plugins/associations/belongs_to_polymorphic_proxy.rb
|
156
148
|
- lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb
|
@@ -165,6 +157,7 @@ files:
|
|
165
157
|
- lib/mongo_mapper/plugins/associations/one_embedded_proxy.rb
|
166
158
|
- lib/mongo_mapper/plugins/associations/one_proxy.rb
|
167
159
|
- lib/mongo_mapper/plugins/associations/proxy.rb
|
160
|
+
- lib/mongo_mapper/plugins/associations.rb
|
168
161
|
- lib/mongo_mapper/plugins/callbacks.rb
|
169
162
|
- lib/mongo_mapper/plugins/clone.rb
|
170
163
|
- lib/mongo_mapper/plugins/descendants.rb
|
@@ -172,86 +165,37 @@ files:
|
|
172
165
|
- lib/mongo_mapper/plugins/equality.rb
|
173
166
|
- lib/mongo_mapper/plugins/identity_map.rb
|
174
167
|
- lib/mongo_mapper/plugins/inspect.rb
|
168
|
+
- lib/mongo_mapper/plugins/keys/key.rb
|
175
169
|
- lib/mongo_mapper/plugins/keys.rb
|
176
170
|
- lib/mongo_mapper/plugins/logger.rb
|
177
171
|
- lib/mongo_mapper/plugins/modifiers.rb
|
178
|
-
- lib/mongo_mapper/plugins/pagination.rb
|
179
172
|
- lib/mongo_mapper/plugins/pagination/proxy.rb
|
173
|
+
- lib/mongo_mapper/plugins/pagination.rb
|
180
174
|
- lib/mongo_mapper/plugins/persistence.rb
|
181
175
|
- lib/mongo_mapper/plugins/protected.rb
|
182
176
|
- lib/mongo_mapper/plugins/rails.rb
|
183
|
-
- lib/mongo_mapper/plugins/serialization.rb
|
184
177
|
- lib/mongo_mapper/plugins/serialization/array.rb
|
185
178
|
- lib/mongo_mapper/plugins/serialization/xml_serializer.rb
|
179
|
+
- lib/mongo_mapper/plugins/serialization.rb
|
186
180
|
- lib/mongo_mapper/plugins/timestamps.rb
|
187
181
|
- lib/mongo_mapper/plugins/userstamps.rb
|
188
182
|
- lib/mongo_mapper/plugins/validations.rb
|
183
|
+
- lib/mongo_mapper/plugins.rb
|
189
184
|
- lib/mongo_mapper/query.rb
|
190
|
-
- lib/mongo_mapper/support.rb
|
191
185
|
- lib/mongo_mapper/support/descendant_appends.rb
|
192
186
|
- lib/mongo_mapper/support/find.rb
|
187
|
+
- lib/mongo_mapper/support.rb
|
193
188
|
- lib/mongo_mapper/version.rb
|
194
|
-
- mongo_mapper.
|
195
|
-
-
|
196
|
-
-
|
197
|
-
- specs.watchr
|
198
|
-
- test/NOTE_ON_TESTING
|
199
|
-
- test/active_model_lint_test.rb
|
200
|
-
- test/functional/associations/test_belongs_to_polymorphic_proxy.rb
|
201
|
-
- test/functional/associations/test_belongs_to_proxy.rb
|
202
|
-
- test/functional/associations/test_in_array_proxy.rb
|
203
|
-
- test/functional/associations/test_many_documents_as_proxy.rb
|
204
|
-
- test/functional/associations/test_many_documents_proxy.rb
|
205
|
-
- test/functional/associations/test_many_embedded_polymorphic_proxy.rb
|
206
|
-
- test/functional/associations/test_many_embedded_proxy.rb
|
207
|
-
- test/functional/associations/test_many_polymorphic_proxy.rb
|
208
|
-
- test/functional/associations/test_one_embedded_proxy.rb
|
209
|
-
- test/functional/associations/test_one_proxy.rb
|
210
|
-
- test/functional/test_associations.rb
|
211
|
-
- test/functional/test_binary.rb
|
212
|
-
- test/functional/test_callbacks.rb
|
213
|
-
- test/functional/test_dirty.rb
|
214
|
-
- test/functional/test_document.rb
|
215
|
-
- test/functional/test_embedded_document.rb
|
216
|
-
- test/functional/test_identity_map.rb
|
217
|
-
- test/functional/test_indexing.rb
|
218
|
-
- test/functional/test_logger.rb
|
219
|
-
- test/functional/test_modifiers.rb
|
220
|
-
- test/functional/test_pagination.rb
|
221
|
-
- test/functional/test_protected.rb
|
222
|
-
- test/functional/test_string_id_compatibility.rb
|
223
|
-
- test/functional/test_timestamps.rb
|
224
|
-
- test/functional/test_userstamps.rb
|
225
|
-
- test/functional/test_validations.rb
|
226
|
-
- test/models.rb
|
227
|
-
- test/support/custom_matchers.rb
|
228
|
-
- test/support/timing.rb
|
229
|
-
- test/test_helper.rb
|
230
|
-
- test/unit/associations/test_base.rb
|
231
|
-
- test/unit/associations/test_proxy.rb
|
232
|
-
- test/unit/serializers/test_json_serializer.rb
|
233
|
-
- test/unit/test_descendant_appends.rb
|
234
|
-
- test/unit/test_document.rb
|
235
|
-
- test/unit/test_dynamic_finder.rb
|
236
|
-
- test/unit/test_embedded_document.rb
|
237
|
-
- test/unit/test_keys.rb
|
238
|
-
- test/unit/test_mongo_mapper.rb
|
239
|
-
- test/unit/test_pagination.rb
|
240
|
-
- test/unit/test_plugins.rb
|
241
|
-
- test/unit/test_query.rb
|
242
|
-
- test/unit/test_rails.rb
|
243
|
-
- test/unit/test_rails_compatibility.rb
|
244
|
-
- test/unit/test_serialization.rb
|
245
|
-
- test/unit/test_support.rb
|
246
|
-
- test/unit/test_time_zones.rb
|
247
|
-
- test/unit/test_validations.rb
|
189
|
+
- lib/mongo_mapper.rb
|
190
|
+
- LICENSE
|
191
|
+
- README.rdoc
|
248
192
|
has_rdoc: true
|
249
|
-
homepage: http://github.com/
|
193
|
+
homepage: http://github.com/jnunemaker/mongomapper
|
250
194
|
licenses: []
|
251
195
|
|
252
196
|
post_install_message:
|
253
|
-
rdoc_options:
|
254
|
-
|
197
|
+
rdoc_options: []
|
198
|
+
|
255
199
|
require_paths:
|
256
200
|
- lib
|
257
201
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -266,62 +210,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
210
|
- - ">="
|
267
211
|
- !ruby/object:Gem::Version
|
268
212
|
segments:
|
269
|
-
-
|
270
|
-
|
213
|
+
- 1
|
214
|
+
- 3
|
215
|
+
- 6
|
216
|
+
version: 1.3.6
|
271
217
|
requirements: []
|
272
218
|
|
273
219
|
rubyforge_project:
|
274
220
|
rubygems_version: 1.3.6
|
275
221
|
signing_key:
|
276
222
|
specification_version: 3
|
277
|
-
summary: A Ruby Object Mapper for Mongo
|
278
|
-
test_files:
|
279
|
-
|
280
|
-
- test/functional/associations/test_belongs_to_polymorphic_proxy.rb
|
281
|
-
- test/functional/associations/test_belongs_to_proxy.rb
|
282
|
-
- test/functional/associations/test_in_array_proxy.rb
|
283
|
-
- test/functional/associations/test_many_documents_as_proxy.rb
|
284
|
-
- test/functional/associations/test_many_documents_proxy.rb
|
285
|
-
- test/functional/associations/test_many_embedded_polymorphic_proxy.rb
|
286
|
-
- test/functional/associations/test_many_embedded_proxy.rb
|
287
|
-
- test/functional/associations/test_many_polymorphic_proxy.rb
|
288
|
-
- test/functional/associations/test_one_embedded_proxy.rb
|
289
|
-
- test/functional/associations/test_one_proxy.rb
|
290
|
-
- test/functional/test_associations.rb
|
291
|
-
- test/functional/test_binary.rb
|
292
|
-
- test/functional/test_callbacks.rb
|
293
|
-
- test/functional/test_dirty.rb
|
294
|
-
- test/functional/test_document.rb
|
295
|
-
- test/functional/test_embedded_document.rb
|
296
|
-
- test/functional/test_identity_map.rb
|
297
|
-
- test/functional/test_indexing.rb
|
298
|
-
- test/functional/test_logger.rb
|
299
|
-
- test/functional/test_modifiers.rb
|
300
|
-
- test/functional/test_pagination.rb
|
301
|
-
- test/functional/test_protected.rb
|
302
|
-
- test/functional/test_string_id_compatibility.rb
|
303
|
-
- test/functional/test_timestamps.rb
|
304
|
-
- test/functional/test_userstamps.rb
|
305
|
-
- test/functional/test_validations.rb
|
306
|
-
- test/models.rb
|
307
|
-
- test/support/custom_matchers.rb
|
308
|
-
- test/support/timing.rb
|
309
|
-
- test/test_helper.rb
|
310
|
-
- test/unit/associations/test_base.rb
|
311
|
-
- test/unit/associations/test_proxy.rb
|
312
|
-
- test/unit/serializers/test_json_serializer.rb
|
313
|
-
- test/unit/test_descendant_appends.rb
|
314
|
-
- test/unit/test_document.rb
|
315
|
-
- test/unit/test_dynamic_finder.rb
|
316
|
-
- test/unit/test_embedded_document.rb
|
317
|
-
- test/unit/test_keys.rb
|
318
|
-
- test/unit/test_mongo_mapper.rb
|
319
|
-
- test/unit/test_pagination.rb
|
320
|
-
- test/unit/test_plugins.rb
|
321
|
-
- test/unit/test_query.rb
|
322
|
-
- test/unit/test_rails.rb
|
323
|
-
- test/unit/test_rails_compatibility.rb
|
324
|
-
- test/unit/test_serialization.rb
|
325
|
-
- test/unit/test_support.rb
|
326
|
-
- test/unit/test_time_zones.rb
|
327
|
-
- test/unit/test_validations.rb
|
223
|
+
summary: A Ruby Object Mapper for Mongo
|
224
|
+
test_files: []
|
225
|
+
|
data/.gitignore
DELETED
data/Rakefile
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'jeweler'
|
4
|
-
|
5
|
-
require File.dirname(__FILE__) + '/lib/mongo_mapper/version'
|
6
|
-
|
7
|
-
Jeweler::Tasks.new do |gem|
|
8
|
-
gem.name = "mongo_mapper_ign"
|
9
|
-
gem.summary = %Q{A Ruby Object Mapper for Mongo including support for XML serialization}
|
10
|
-
gem.email = "nunemaker@gmail.com,cpatni@ign.com,thnguyen@ign.com"
|
11
|
-
gem.homepage = "http://github.com/rubyorchard/mongomapper"
|
12
|
-
gem.authors = ["John Nunemaker", "Chandra Patni", "Thomas Nguyen"]
|
13
|
-
gem.version = MongoMapper::Version
|
14
|
-
|
15
|
-
gem.add_dependency('activesupport', '>= 2.3.4')
|
16
|
-
gem.add_dependency('mongo', '0.20.1')
|
17
|
-
gem.add_dependency('jnunemaker-validatable', '1.8.4')
|
18
|
-
|
19
|
-
gem.add_development_dependency('json', '>= 1.2.3')
|
20
|
-
gem.add_development_dependency('jnunemaker-matchy', '0.4.0')
|
21
|
-
gem.add_development_dependency('shoulda', '2.10.2')
|
22
|
-
gem.add_development_dependency('timecop', '0.3.1')
|
23
|
-
gem.add_development_dependency('mocha', '0.9.8')
|
24
|
-
end
|
25
|
-
|
26
|
-
Jeweler::GemcutterTasks.new
|
27
|
-
|
28
|
-
require 'rake/testtask'
|
29
|
-
Rake::TestTask.new(:test) do |test|
|
30
|
-
test.libs << 'test'
|
31
|
-
test.ruby_opts << '-rubygems'
|
32
|
-
test.pattern = 'test/**/test_*.rb'
|
33
|
-
test.verbose = true
|
34
|
-
end
|
35
|
-
|
36
|
-
task :default => :test
|
37
|
-
task :test => :check_dependencies
|