mongoid-with-auth 1.9.4

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 (104) hide show
  1. data/MIT_LICENSE +20 -0
  2. data/README.rdoc +49 -0
  3. data/lib/mongoid.rb +122 -0
  4. data/lib/mongoid/associations.rb +300 -0
  5. data/lib/mongoid/associations/belongs_to_related.rb +58 -0
  6. data/lib/mongoid/associations/embedded_in.rb +72 -0
  7. data/lib/mongoid/associations/embeds_many.rb +254 -0
  8. data/lib/mongoid/associations/embeds_one.rb +96 -0
  9. data/lib/mongoid/associations/has_many_related.rb +181 -0
  10. data/lib/mongoid/associations/has_one_related.rb +85 -0
  11. data/lib/mongoid/associations/meta_data.rb +29 -0
  12. data/lib/mongoid/associations/options.rb +57 -0
  13. data/lib/mongoid/associations/proxy.rb +24 -0
  14. data/lib/mongoid/attributes.rb +204 -0
  15. data/lib/mongoid/callbacks.rb +23 -0
  16. data/lib/mongoid/collection.rb +120 -0
  17. data/lib/mongoid/collections.rb +41 -0
  18. data/lib/mongoid/collections/cyclic_iterator.rb +34 -0
  19. data/lib/mongoid/collections/master.rb +29 -0
  20. data/lib/mongoid/collections/operations.rb +41 -0
  21. data/lib/mongoid/collections/slaves.rb +45 -0
  22. data/lib/mongoid/components.rb +27 -0
  23. data/lib/mongoid/concern.rb +31 -0
  24. data/lib/mongoid/config.rb +205 -0
  25. data/lib/mongoid/contexts.rb +25 -0
  26. data/lib/mongoid/contexts/enumerable.rb +151 -0
  27. data/lib/mongoid/contexts/ids.rb +25 -0
  28. data/lib/mongoid/contexts/mongo.rb +285 -0
  29. data/lib/mongoid/contexts/paging.rb +50 -0
  30. data/lib/mongoid/criteria.rb +239 -0
  31. data/lib/mongoid/criterion/complex.rb +21 -0
  32. data/lib/mongoid/criterion/exclusion.rb +65 -0
  33. data/lib/mongoid/criterion/inclusion.rb +110 -0
  34. data/lib/mongoid/criterion/optional.rb +136 -0
  35. data/lib/mongoid/cursor.rb +81 -0
  36. data/lib/mongoid/deprecation.rb +22 -0
  37. data/lib/mongoid/dirty.rb +253 -0
  38. data/lib/mongoid/document.rb +311 -0
  39. data/lib/mongoid/errors.rb +108 -0
  40. data/lib/mongoid/extensions.rb +101 -0
  41. data/lib/mongoid/extensions/array/accessors.rb +17 -0
  42. data/lib/mongoid/extensions/array/aliasing.rb +4 -0
  43. data/lib/mongoid/extensions/array/assimilation.rb +26 -0
  44. data/lib/mongoid/extensions/array/conversions.rb +29 -0
  45. data/lib/mongoid/extensions/array/parentization.rb +13 -0
  46. data/lib/mongoid/extensions/big_decimal/conversions.rb +19 -0
  47. data/lib/mongoid/extensions/binary/conversions.rb +17 -0
  48. data/lib/mongoid/extensions/boolean/conversions.rb +22 -0
  49. data/lib/mongoid/extensions/date/conversions.rb +24 -0
  50. data/lib/mongoid/extensions/datetime/conversions.rb +12 -0
  51. data/lib/mongoid/extensions/float/conversions.rb +20 -0
  52. data/lib/mongoid/extensions/hash/accessors.rb +38 -0
  53. data/lib/mongoid/extensions/hash/assimilation.rb +39 -0
  54. data/lib/mongoid/extensions/hash/conversions.rb +45 -0
  55. data/lib/mongoid/extensions/hash/criteria_helpers.rb +20 -0
  56. data/lib/mongoid/extensions/hash/scoping.rb +12 -0
  57. data/lib/mongoid/extensions/integer/conversions.rb +20 -0
  58. data/lib/mongoid/extensions/nil/assimilation.rb +17 -0
  59. data/lib/mongoid/extensions/object/conversions.rb +33 -0
  60. data/lib/mongoid/extensions/objectid/conversions.rb +15 -0
  61. data/lib/mongoid/extensions/proc/scoping.rb +12 -0
  62. data/lib/mongoid/extensions/string/conversions.rb +15 -0
  63. data/lib/mongoid/extensions/string/inflections.rb +97 -0
  64. data/lib/mongoid/extensions/symbol/inflections.rb +36 -0
  65. data/lib/mongoid/extensions/time_conversions.rb +35 -0
  66. data/lib/mongoid/extras.rb +61 -0
  67. data/lib/mongoid/factory.rb +20 -0
  68. data/lib/mongoid/field.rb +59 -0
  69. data/lib/mongoid/fields.rb +65 -0
  70. data/lib/mongoid/finders.rb +136 -0
  71. data/lib/mongoid/identity.rb +39 -0
  72. data/lib/mongoid/indexes.rb +30 -0
  73. data/lib/mongoid/javascript.rb +21 -0
  74. data/lib/mongoid/javascript/functions.yml +37 -0
  75. data/lib/mongoid/matchers.rb +36 -0
  76. data/lib/mongoid/matchers/all.rb +11 -0
  77. data/lib/mongoid/matchers/default.rb +26 -0
  78. data/lib/mongoid/matchers/exists.rb +13 -0
  79. data/lib/mongoid/matchers/gt.rb +11 -0
  80. data/lib/mongoid/matchers/gte.rb +11 -0
  81. data/lib/mongoid/matchers/in.rb +11 -0
  82. data/lib/mongoid/matchers/lt.rb +11 -0
  83. data/lib/mongoid/matchers/lte.rb +11 -0
  84. data/lib/mongoid/matchers/ne.rb +11 -0
  85. data/lib/mongoid/matchers/nin.rb +11 -0
  86. data/lib/mongoid/matchers/size.rb +11 -0
  87. data/lib/mongoid/memoization.rb +33 -0
  88. data/lib/mongoid/named_scope.rb +37 -0
  89. data/lib/mongoid/observable.rb +30 -0
  90. data/lib/mongoid/paths.rb +62 -0
  91. data/lib/mongoid/persistence.rb +222 -0
  92. data/lib/mongoid/persistence/command.rb +39 -0
  93. data/lib/mongoid/persistence/insert.rb +50 -0
  94. data/lib/mongoid/persistence/insert_embedded.rb +38 -0
  95. data/lib/mongoid/persistence/remove.rb +39 -0
  96. data/lib/mongoid/persistence/remove_all.rb +37 -0
  97. data/lib/mongoid/persistence/remove_embedded.rb +50 -0
  98. data/lib/mongoid/persistence/update.rb +63 -0
  99. data/lib/mongoid/scope.rb +75 -0
  100. data/lib/mongoid/state.rb +39 -0
  101. data/lib/mongoid/timestamps.rb +27 -0
  102. data/lib/mongoid/version.rb +4 -0
  103. data/lib/mongoid/versioning.rb +27 -0
  104. metadata +284 -0
@@ -0,0 +1,63 @@
1
+ # encoding: utf-8
2
+ module Mongoid #:nodoc:
3
+ module Persistence #:nodoc:
4
+ # Update is a persistence command responsible for taking a document that
5
+ # has already been saved to the database and saving it, depending on
6
+ # whether or not the document has been modified.
7
+ #
8
+ # Before persisting the command will check via dirty attributes if the
9
+ # document has changed, if not, it will simply return true. If it has it
10
+ # will go through the validation steps, run callbacks, and set the changed
11
+ # fields atomically on the document. The underlying query resembles the
12
+ # following MongoDB query:
13
+ #
14
+ # collection.update(
15
+ # { "_id" : 1,
16
+ # { "$set" : { "field" : "value" },
17
+ # false,
18
+ # false
19
+ # );
20
+ #
21
+ # For embedded documents it will use the positional locator:
22
+ #
23
+ # collection.update(
24
+ # { "_id" : 1, "addresses._id" : 2 },
25
+ # { "$set" : { "addresses.$.field" : "value" },
26
+ # false,
27
+ # false
28
+ # );
29
+ #
30
+ class Update < Command
31
+ # Persist the document that is to be updated to the database. This will
32
+ # only write changed fields via MongoDB's $set modifier operation.
33
+ #
34
+ # Example:
35
+ #
36
+ # <tt>Update.persist</tt>
37
+ #
38
+ # Returns:
39
+ #
40
+ # +true+ or +false+, depending on validation.
41
+ def persist
42
+ return false if validate && !@document.valid?
43
+ @document.run_callbacks(:before_save)
44
+ @document.run_callbacks(:before_update)
45
+ if update
46
+ @document.move_changes
47
+ @document.run_callbacks(:after_save)
48
+ @document.run_callbacks(:after_update)
49
+ else
50
+ return false
51
+ end; true
52
+ end
53
+
54
+ protected
55
+ # Update the document in the database atomically.
56
+ def update
57
+ if @document.changed?
58
+ @collection.update(@document._selector, { "$set" => @document.setters }, @options.merge(:multi => false))
59
+ end; true
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,75 @@
1
+ # encoding: utf-8
2
+ module Mongoid #:nodoc:
3
+ class Scope #:nodoc:
4
+
5
+ delegate :scopes, :to => :parent
6
+
7
+ attr_reader :parent, :conditions
8
+
9
+ # If the other is a scope then compare the parent and conditions, otherwise
10
+ # if its enumerable collect and compare.
11
+ def ==(other)
12
+ case other
13
+ when Scope
14
+ @parent == other.parent && @conditions == other.conditions
15
+ when Enumerable
16
+ @collection ||= entries
17
+ return (@collection == other)
18
+ else
19
+ return false
20
+ end
21
+ end
22
+
23
+ # Create the new +Scope+. If a block is passed in, this Scope will extend
24
+ # the block.
25
+ #
26
+ # Options:
27
+ #
28
+ # parent: The class the scope belongs to, or a parent +Scope+.
29
+ # conditions: A +Hash+ of conditions.
30
+ #
31
+ # Example:
32
+ #
33
+ # Mongoid::Scope.new(Person, { :title => "Sir" }) do
34
+ # def knighted?
35
+ # title == "Sir"
36
+ # end
37
+ # end
38
+ def initialize(parent, conditions, &block)
39
+ @parent, @conditions = parent, conditions
40
+ extend Module.new(&block) if block_given?
41
+ end
42
+
43
+ # Return the class for the +Scope+. This will be the parent if the parent
44
+ # is a class, otherwise will be nil.
45
+ def klass
46
+ @klass ||= @parent unless @parent.is_a?(Scope)
47
+ end
48
+
49
+ # Chaining is supported through method_missing. If a scope is already
50
+ # defined with the method name the call will be passed there, otherwise it
51
+ # will be passed to the target or parent.
52
+ def method_missing(name, *args, &block)
53
+ if scopes.include?(name)
54
+ scopes[name].call(self, *args)
55
+ elsif klass
56
+ target.send(name, *args, &block)
57
+ else
58
+ @parent.fuse(@conditions); @parent.send(name, *args, &block)
59
+ end
60
+ end
61
+
62
+ # The +Scope+ must respond like a +Criteria+ object. If this is a parent
63
+ # criteria delegate to the target, otherwise bubble up to the parent.
64
+ def respond_to?(name)
65
+ super || (klass ? target.respond_to?(name) : @parent.respond_to?(name))
66
+ end
67
+
68
+ # Returns the target criteria if it has already been set or creates a new
69
+ # criteria from the parent class.
70
+ def target
71
+ @target ||= klass.criteria.fuse(@conditions)
72
+ end
73
+ end
74
+ end
75
+
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+ module Mongoid #:nodoc:
3
+ module State #:nodoc:
4
+ extend ActiveSupport::Concern
5
+ included do
6
+ attr_reader :new_record
7
+ end
8
+
9
+ module InstanceMethods
10
+ # Returns true if the +Document+ has not been persisted to the database,
11
+ # false if it has. This is determined by the variable @new_record
12
+ # and NOT if the object has an id.
13
+ def new_record?
14
+ !!@new_record
15
+ end
16
+
17
+ # Sets the new_record boolean - used after document is saved.
18
+ def new_record=(saved)
19
+ @new_record = saved
20
+ end
21
+
22
+ # Checks if the document has been saved to the database.
23
+ def persisted?
24
+ !new_record?
25
+ end
26
+
27
+ # Returns true if the +Document+ has been succesfully destroyed, and false if it hasn't.
28
+ # This is determined by the variable @destroyed and NOT by checking the database.
29
+ def destroyed?
30
+ @destroyed == true
31
+ end
32
+
33
+ # Sets the destroyed boolean - used after document is destroyed.
34
+ def destroyed=(destroyed)
35
+ @destroyed = destroyed && true
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,27 @@
1
+ # encoding: utf-8
2
+ module Mongoid
3
+ module Timestamps
4
+ extend ActiveSupport::Concern
5
+ included do
6
+ field :created_at, :type => Time
7
+ field :updated_at, :type => Time
8
+ before_save :set_created_at, :set_updated_at
9
+ end
10
+
11
+ module InstanceMethods
12
+
13
+ # Update the created_at field on the Document to the current time. This is
14
+ # only called on create.
15
+ def set_created_at
16
+ self.created_at = Time.now.utc if !created_at
17
+ end
18
+
19
+ # Update the updated_at field on the Document to the current time.
20
+ # This is only called on create and on save.
21
+ def set_updated_at
22
+ self.updated_at = Time.now.utc
23
+ end
24
+ end
25
+
26
+ end
27
+ end
@@ -0,0 +1,4 @@
1
+ # encoding: utf-8
2
+ module Mongoid #:nodoc
3
+ VERSION = "1.9.4"
4
+ end
@@ -0,0 +1,27 @@
1
+ # encoding: utf-8
2
+ module Mongoid #:nodoc:
3
+ # Include this module to get automatic versioning of root level documents.
4
+ # This will add a version field to the +Document+ and a has_many association
5
+ # with all the versions contained in it.
6
+ module Versioning
7
+ extend ActiveSupport::Concern
8
+ included do
9
+ field :version, :type => Integer, :default => 1
10
+ embeds_many :versions, :class_name => self.name
11
+ before_save :revise
12
+ end
13
+ module InstanceMethods
14
+ # Create a new version of the +Document+. This will load the previous
15
+ # document from the database and set it as the next version before saving
16
+ # the current document. It then increments the version number.
17
+ def revise
18
+ last_version = self.class.first(:conditions => { :_id => id, :version => version })
19
+ if last_version
20
+ self.versions << last_version.clone
21
+ self.version = version + 1
22
+ @modifications["versions"] = [ nil, @attributes["versions"] ] if @modifications
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
metadata ADDED
@@ -0,0 +1,284 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mongoid-with-auth
3
+ version: !ruby/object:Gem::Version
4
+ hash: 59
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 9
9
+ - 4
10
+ version: 1.9.4
11
+ platform: ruby
12
+ authors:
13
+ - Durran Jordan
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-12-12 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: activesupport
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - <
28
+ - !ruby/object:Gem::Version
29
+ hash: 7
30
+ segments:
31
+ - 3
32
+ - 0
33
+ - 0
34
+ version: 3.0.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: durran-validatable
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 13
46
+ segments:
47
+ - 2
48
+ - 0
49
+ - 1
50
+ version: 2.0.1
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: will_paginate
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - <
60
+ - !ruby/object:Gem::Version
61
+ hash: 17
62
+ segments:
63
+ - 2
64
+ - 9
65
+ version: "2.9"
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
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ hash: 21
77
+ segments:
78
+ - 1
79
+ - 0
80
+ - 1
81
+ version: 1.0.1
82
+ type: :runtime
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
85
+ name: bson
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ~>
91
+ - !ruby/object:Gem::Version
92
+ hash: 21
93
+ segments:
94
+ - 1
95
+ - 0
96
+ - 1
97
+ version: 1.0.1
98
+ type: :runtime
99
+ version_requirements: *id005
100
+ - !ruby/object:Gem::Dependency
101
+ name: rspec
102
+ prerelease: false
103
+ requirement: &id006 !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - "="
107
+ - !ruby/object:Gem::Version
108
+ hash: 27
109
+ segments:
110
+ - 1
111
+ - 3
112
+ - 0
113
+ version: 1.3.0
114
+ type: :development
115
+ version_requirements: *id006
116
+ - !ruby/object:Gem::Dependency
117
+ name: mocha
118
+ prerelease: false
119
+ requirement: &id007 !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - "="
123
+ - !ruby/object:Gem::Version
124
+ hash: 43
125
+ segments:
126
+ - 0
127
+ - 9
128
+ - 8
129
+ version: 0.9.8
130
+ type: :development
131
+ version_requirements: *id007
132
+ description: |-
133
+ Mongoid is an ODM (Object Document Mapper) Framework for MongoDB, written in Ruby.
134
+ This version supports authentication to MongoDB with username and password
135
+ email:
136
+ - durran@gmail.com
137
+ executables: []
138
+
139
+ extensions: []
140
+
141
+ extra_rdoc_files: []
142
+
143
+ files:
144
+ - lib/mongoid/associations/belongs_to_related.rb
145
+ - lib/mongoid/associations/embedded_in.rb
146
+ - lib/mongoid/associations/embeds_many.rb
147
+ - lib/mongoid/associations/embeds_one.rb
148
+ - lib/mongoid/associations/has_many_related.rb
149
+ - lib/mongoid/associations/has_one_related.rb
150
+ - lib/mongoid/associations/meta_data.rb
151
+ - lib/mongoid/associations/options.rb
152
+ - lib/mongoid/associations/proxy.rb
153
+ - lib/mongoid/associations.rb
154
+ - lib/mongoid/attributes.rb
155
+ - lib/mongoid/callbacks.rb
156
+ - lib/mongoid/collection.rb
157
+ - lib/mongoid/collections/cyclic_iterator.rb
158
+ - lib/mongoid/collections/master.rb
159
+ - lib/mongoid/collections/operations.rb
160
+ - lib/mongoid/collections/slaves.rb
161
+ - lib/mongoid/collections.rb
162
+ - lib/mongoid/components.rb
163
+ - lib/mongoid/concern.rb
164
+ - lib/mongoid/config.rb
165
+ - lib/mongoid/contexts/enumerable.rb
166
+ - lib/mongoid/contexts/ids.rb
167
+ - lib/mongoid/contexts/mongo.rb
168
+ - lib/mongoid/contexts/paging.rb
169
+ - lib/mongoid/contexts.rb
170
+ - lib/mongoid/criteria.rb
171
+ - lib/mongoid/criterion/complex.rb
172
+ - lib/mongoid/criterion/exclusion.rb
173
+ - lib/mongoid/criterion/inclusion.rb
174
+ - lib/mongoid/criterion/optional.rb
175
+ - lib/mongoid/cursor.rb
176
+ - lib/mongoid/deprecation.rb
177
+ - lib/mongoid/dirty.rb
178
+ - lib/mongoid/document.rb
179
+ - lib/mongoid/errors.rb
180
+ - lib/mongoid/extensions/array/accessors.rb
181
+ - lib/mongoid/extensions/array/aliasing.rb
182
+ - lib/mongoid/extensions/array/assimilation.rb
183
+ - lib/mongoid/extensions/array/conversions.rb
184
+ - lib/mongoid/extensions/array/parentization.rb
185
+ - lib/mongoid/extensions/big_decimal/conversions.rb
186
+ - lib/mongoid/extensions/binary/conversions.rb
187
+ - lib/mongoid/extensions/boolean/conversions.rb
188
+ - lib/mongoid/extensions/date/conversions.rb
189
+ - lib/mongoid/extensions/datetime/conversions.rb
190
+ - lib/mongoid/extensions/float/conversions.rb
191
+ - lib/mongoid/extensions/hash/accessors.rb
192
+ - lib/mongoid/extensions/hash/assimilation.rb
193
+ - lib/mongoid/extensions/hash/conversions.rb
194
+ - lib/mongoid/extensions/hash/criteria_helpers.rb
195
+ - lib/mongoid/extensions/hash/scoping.rb
196
+ - lib/mongoid/extensions/integer/conversions.rb
197
+ - lib/mongoid/extensions/nil/assimilation.rb
198
+ - lib/mongoid/extensions/object/conversions.rb
199
+ - lib/mongoid/extensions/objectid/conversions.rb
200
+ - lib/mongoid/extensions/proc/scoping.rb
201
+ - lib/mongoid/extensions/string/conversions.rb
202
+ - lib/mongoid/extensions/string/inflections.rb
203
+ - lib/mongoid/extensions/symbol/inflections.rb
204
+ - lib/mongoid/extensions/time_conversions.rb
205
+ - lib/mongoid/extensions.rb
206
+ - lib/mongoid/extras.rb
207
+ - lib/mongoid/factory.rb
208
+ - lib/mongoid/field.rb
209
+ - lib/mongoid/fields.rb
210
+ - lib/mongoid/finders.rb
211
+ - lib/mongoid/identity.rb
212
+ - lib/mongoid/indexes.rb
213
+ - lib/mongoid/javascript/functions.yml
214
+ - lib/mongoid/javascript.rb
215
+ - lib/mongoid/matchers/all.rb
216
+ - lib/mongoid/matchers/default.rb
217
+ - lib/mongoid/matchers/exists.rb
218
+ - lib/mongoid/matchers/gt.rb
219
+ - lib/mongoid/matchers/gte.rb
220
+ - lib/mongoid/matchers/in.rb
221
+ - lib/mongoid/matchers/lt.rb
222
+ - lib/mongoid/matchers/lte.rb
223
+ - lib/mongoid/matchers/ne.rb
224
+ - lib/mongoid/matchers/nin.rb
225
+ - lib/mongoid/matchers/size.rb
226
+ - lib/mongoid/matchers.rb
227
+ - lib/mongoid/memoization.rb
228
+ - lib/mongoid/named_scope.rb
229
+ - lib/mongoid/observable.rb
230
+ - lib/mongoid/paths.rb
231
+ - lib/mongoid/persistence/command.rb
232
+ - lib/mongoid/persistence/insert.rb
233
+ - lib/mongoid/persistence/insert_embedded.rb
234
+ - lib/mongoid/persistence/remove.rb
235
+ - lib/mongoid/persistence/remove_all.rb
236
+ - lib/mongoid/persistence/remove_embedded.rb
237
+ - lib/mongoid/persistence/update.rb
238
+ - lib/mongoid/persistence.rb
239
+ - lib/mongoid/scope.rb
240
+ - lib/mongoid/state.rb
241
+ - lib/mongoid/timestamps.rb
242
+ - lib/mongoid/version.rb
243
+ - lib/mongoid/versioning.rb
244
+ - lib/mongoid.rb
245
+ - MIT_LICENSE
246
+ - README.rdoc
247
+ has_rdoc: true
248
+ homepage: http://mongoid.org
249
+ licenses: []
250
+
251
+ post_install_message:
252
+ rdoc_options: []
253
+
254
+ require_paths:
255
+ - lib
256
+ required_ruby_version: !ruby/object:Gem::Requirement
257
+ none: false
258
+ requirements:
259
+ - - ">="
260
+ - !ruby/object:Gem::Version
261
+ hash: 3
262
+ segments:
263
+ - 0
264
+ version: "0"
265
+ required_rubygems_version: !ruby/object:Gem::Requirement
266
+ none: false
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ hash: 23
271
+ segments:
272
+ - 1
273
+ - 3
274
+ - 6
275
+ version: 1.3.6
276
+ requirements: []
277
+
278
+ rubyforge_project: mongoid
279
+ rubygems_version: 1.3.7
280
+ signing_key:
281
+ specification_version: 3
282
+ summary: Elegent Persistance in Ruby for MongoDB.
283
+ test_files: []
284
+