mongoid-pre 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/.watchr +24 -0
- data/MIT_LICENSE +20 -0
- data/README.rdoc +49 -0
- data/Rakefile +52 -0
- data/VERSION +1 -0
- data/caliper.yml +4 -0
- data/lib/mongoid.rb +135 -0
- data/lib/mongoid/associations.rb +263 -0
- data/lib/mongoid/associations/belongs_to_related.rb +59 -0
- data/lib/mongoid/associations/embedded_in.rb +64 -0
- data/lib/mongoid/associations/embeds_many.rb +193 -0
- data/lib/mongoid/associations/embeds_one.rb +95 -0
- data/lib/mongoid/associations/has_many_related.rb +133 -0
- data/lib/mongoid/associations/has_one_related.rb +81 -0
- data/lib/mongoid/associations/meta_data.rb +28 -0
- data/lib/mongoid/associations/options.rb +52 -0
- data/lib/mongoid/associations/proxy.rb +31 -0
- data/lib/mongoid/attributes.rb +185 -0
- data/lib/mongoid/callbacks.rb +18 -0
- data/lib/mongoid/collection.rb +119 -0
- data/lib/mongoid/collections/cyclic_iterator.rb +34 -0
- data/lib/mongoid/collections/master.rb +28 -0
- data/lib/mongoid/collections/mimic.rb +46 -0
- data/lib/mongoid/collections/operations.rb +41 -0
- data/lib/mongoid/collections/slaves.rb +44 -0
- data/lib/mongoid/commands.rb +161 -0
- data/lib/mongoid/commands/create.rb +19 -0
- data/lib/mongoid/commands/delete.rb +16 -0
- data/lib/mongoid/commands/delete_all.rb +25 -0
- data/lib/mongoid/commands/deletion.rb +18 -0
- data/lib/mongoid/commands/destroy.rb +17 -0
- data/lib/mongoid/commands/destroy_all.rb +25 -0
- data/lib/mongoid/commands/save.rb +30 -0
- data/lib/mongoid/components.rb +31 -0
- data/lib/mongoid/config.rb +86 -0
- data/lib/mongoid/contexts.rb +25 -0
- data/lib/mongoid/contexts/enumerable.rb +151 -0
- data/lib/mongoid/contexts/ids.rb +25 -0
- data/lib/mongoid/contexts/mongo.rb +285 -0
- data/lib/mongoid/contexts/paging.rb +42 -0
- data/lib/mongoid/criteria.rb +239 -0
- data/lib/mongoid/criterion/complex.rb +21 -0
- data/lib/mongoid/criterion/exclusion.rb +65 -0
- data/lib/mongoid/criterion/inclusion.rb +93 -0
- data/lib/mongoid/criterion/optional.rb +136 -0
- data/lib/mongoid/cursor.rb +82 -0
- data/lib/mongoid/deprecation.rb +22 -0
- data/lib/mongoid/dirty.rb +203 -0
- data/lib/mongoid/document.rb +306 -0
- data/lib/mongoid/errors.rb +77 -0
- data/lib/mongoid/extensions.rb +99 -0
- data/lib/mongoid/extensions/array/accessors.rb +17 -0
- data/lib/mongoid/extensions/array/aliasing.rb +4 -0
- data/lib/mongoid/extensions/array/assimilation.rb +26 -0
- data/lib/mongoid/extensions/array/conversions.rb +27 -0
- data/lib/mongoid/extensions/array/parentization.rb +13 -0
- data/lib/mongoid/extensions/big_decimal/conversions.rb +19 -0
- data/lib/mongoid/extensions/binary/conversions.rb +17 -0
- data/lib/mongoid/extensions/boolean/conversions.rb +16 -0
- data/lib/mongoid/extensions/date/conversions.rb +15 -0
- data/lib/mongoid/extensions/datetime/conversions.rb +17 -0
- data/lib/mongoid/extensions/float/conversions.rb +16 -0
- data/lib/mongoid/extensions/hash/accessors.rb +38 -0
- data/lib/mongoid/extensions/hash/assimilation.rb +30 -0
- data/lib/mongoid/extensions/hash/conversions.rb +15 -0
- data/lib/mongoid/extensions/hash/criteria_helpers.rb +20 -0
- data/lib/mongoid/extensions/hash/scoping.rb +12 -0
- data/lib/mongoid/extensions/integer/conversions.rb +16 -0
- data/lib/mongoid/extensions/nil/assimilation.rb +13 -0
- data/lib/mongoid/extensions/object/conversions.rb +27 -0
- data/lib/mongoid/extensions/objectid/conversions.rb +15 -0
- data/lib/mongoid/extensions/proc/scoping.rb +12 -0
- data/lib/mongoid/extensions/string/conversions.rb +15 -0
- data/lib/mongoid/extensions/string/inflections.rb +97 -0
- data/lib/mongoid/extensions/symbol/inflections.rb +36 -0
- data/lib/mongoid/extensions/time/conversions.rb +18 -0
- data/lib/mongoid/extras.rb +61 -0
- data/lib/mongoid/factory.rb +19 -0
- data/lib/mongoid/field.rb +52 -0
- data/lib/mongoid/fields.rb +62 -0
- data/lib/mongoid/finders.rb +136 -0
- data/lib/mongoid/identity.rb +39 -0
- data/lib/mongoid/indexes.rb +27 -0
- data/lib/mongoid/javascript.rb +21 -0
- data/lib/mongoid/javascript/functions.yml +37 -0
- data/lib/mongoid/matchers.rb +36 -0
- data/lib/mongoid/matchers/all.rb +11 -0
- data/lib/mongoid/matchers/default.rb +26 -0
- data/lib/mongoid/matchers/exists.rb +13 -0
- data/lib/mongoid/matchers/gt.rb +11 -0
- data/lib/mongoid/matchers/gte.rb +11 -0
- data/lib/mongoid/matchers/in.rb +11 -0
- data/lib/mongoid/matchers/lt.rb +11 -0
- data/lib/mongoid/matchers/lte.rb +11 -0
- data/lib/mongoid/matchers/ne.rb +11 -0
- data/lib/mongoid/matchers/nin.rb +11 -0
- data/lib/mongoid/matchers/size.rb +11 -0
- data/lib/mongoid/memoization.rb +27 -0
- data/lib/mongoid/named_scope.rb +42 -0
- data/lib/mongoid/observable.rb +30 -0
- data/lib/mongoid/paths.rb +54 -0
- data/lib/mongoid/persistence.rb +27 -0
- data/lib/mongoid/persistence/command.rb +20 -0
- data/lib/mongoid/persistence/insert.rb +71 -0
- data/lib/mongoid/persistence/update.rb +78 -0
- data/lib/mongoid/scope.rb +75 -0
- data/lib/mongoid/state.rb +32 -0
- data/lib/mongoid/timestamps.rb +27 -0
- data/lib/mongoid/validations.rb +51 -0
- data/lib/mongoid/validations/associated.rb +32 -0
- data/lib/mongoid/validations/locale/en.yml +4 -0
- data/lib/mongoid/validations/uniqueness.rb +22 -0
- data/lib/mongoid/versioning.rb +26 -0
- data/mongoid.gemspec +413 -0
- data/perf/benchmark.rb +77 -0
- data/spec/integration/mongoid/associations_spec.rb +340 -0
- data/spec/integration/mongoid/attributes_spec.rb +22 -0
- data/spec/integration/mongoid/commands_spec.rb +230 -0
- data/spec/integration/mongoid/contexts/enumerable_spec.rb +33 -0
- data/spec/integration/mongoid/criteria_spec.rb +272 -0
- data/spec/integration/mongoid/dirty_spec.rb +70 -0
- data/spec/integration/mongoid/document_spec.rb +650 -0
- data/spec/integration/mongoid/extensions_spec.rb +22 -0
- data/spec/integration/mongoid/finders_spec.rb +119 -0
- data/spec/integration/mongoid/inheritance_spec.rb +137 -0
- data/spec/integration/mongoid/named_scope_spec.rb +46 -0
- data/spec/integration/mongoid/persistence/update_spec.rb +46 -0
- data/spec/models/address.rb +39 -0
- data/spec/models/animal.rb +6 -0
- data/spec/models/callbacks.rb +18 -0
- data/spec/models/comment.rb +8 -0
- data/spec/models/country_code.rb +6 -0
- data/spec/models/employer.rb +5 -0
- data/spec/models/game.rb +7 -0
- data/spec/models/inheritance.rb +56 -0
- data/spec/models/location.rb +5 -0
- data/spec/models/mixed_drink.rb +4 -0
- data/spec/models/name.rb +13 -0
- data/spec/models/namespacing.rb +11 -0
- data/spec/models/patient.rb +6 -0
- data/spec/models/person.rb +99 -0
- data/spec/models/pet.rb +7 -0
- data/spec/models/pet_owner.rb +6 -0
- data/spec/models/phone.rb +7 -0
- data/spec/models/post.rb +15 -0
- data/spec/models/translation.rb +5 -0
- data/spec/models/vet_visit.rb +5 -0
- data/spec/spec.opts +3 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/unit/mongoid/associations/belongs_to_related_spec.rb +145 -0
- data/spec/unit/mongoid/associations/embedded_in_spec.rb +193 -0
- data/spec/unit/mongoid/associations/embeds_many_spec.rb +516 -0
- data/spec/unit/mongoid/associations/embeds_one_spec.rb +282 -0
- data/spec/unit/mongoid/associations/has_many_related_spec.rb +418 -0
- data/spec/unit/mongoid/associations/has_one_related_spec.rb +179 -0
- data/spec/unit/mongoid/associations/meta_data_spec.rb +88 -0
- data/spec/unit/mongoid/associations/options_spec.rb +192 -0
- data/spec/unit/mongoid/associations_spec.rb +595 -0
- data/spec/unit/mongoid/attributes_spec.rb +507 -0
- data/spec/unit/mongoid/callbacks_spec.rb +55 -0
- data/spec/unit/mongoid/collection_spec.rb +187 -0
- data/spec/unit/mongoid/collections/cyclic_iterator_spec.rb +75 -0
- data/spec/unit/mongoid/collections/master_spec.rb +41 -0
- data/spec/unit/mongoid/collections/mimic_spec.rb +43 -0
- data/spec/unit/mongoid/collections/slaves_spec.rb +81 -0
- data/spec/unit/mongoid/commands/create_spec.rb +31 -0
- data/spec/unit/mongoid/commands/delete_all_spec.rb +59 -0
- data/spec/unit/mongoid/commands/delete_spec.rb +38 -0
- data/spec/unit/mongoid/commands/destroy_all_spec.rb +21 -0
- data/spec/unit/mongoid/commands/destroy_spec.rb +51 -0
- data/spec/unit/mongoid/commands/save_spec.rb +107 -0
- data/spec/unit/mongoid/commands_spec.rb +270 -0
- data/spec/unit/mongoid/config_spec.rb +176 -0
- data/spec/unit/mongoid/contexts/enumerable_spec.rb +421 -0
- data/spec/unit/mongoid/contexts/mongo_spec.rb +682 -0
- data/spec/unit/mongoid/contexts_spec.rb +25 -0
- data/spec/unit/mongoid/criteria_spec.rb +824 -0
- data/spec/unit/mongoid/criterion/complex_spec.rb +19 -0
- data/spec/unit/mongoid/criterion/exclusion_spec.rb +91 -0
- data/spec/unit/mongoid/criterion/inclusion_spec.rb +219 -0
- data/spec/unit/mongoid/criterion/optional_spec.rb +319 -0
- data/spec/unit/mongoid/cursor_spec.rb +74 -0
- data/spec/unit/mongoid/deprecation_spec.rb +24 -0
- data/spec/unit/mongoid/dirty_spec.rb +286 -0
- data/spec/unit/mongoid/document_spec.rb +818 -0
- data/spec/unit/mongoid/errors_spec.rb +103 -0
- data/spec/unit/mongoid/extensions/array/accessors_spec.rb +50 -0
- data/spec/unit/mongoid/extensions/array/assimilation_spec.rb +24 -0
- data/spec/unit/mongoid/extensions/array/conversions_spec.rb +35 -0
- data/spec/unit/mongoid/extensions/array/parentization_spec.rb +20 -0
- data/spec/unit/mongoid/extensions/big_decimal/conversions_spec.rb +22 -0
- data/spec/unit/mongoid/extensions/binary/conversions_spec.rb +22 -0
- data/spec/unit/mongoid/extensions/boolean/conversions_spec.rb +49 -0
- data/spec/unit/mongoid/extensions/date/conversions_spec.rb +102 -0
- data/spec/unit/mongoid/extensions/datetime/conversions_spec.rb +67 -0
- data/spec/unit/mongoid/extensions/float/conversions_spec.rb +61 -0
- data/spec/unit/mongoid/extensions/hash/accessors_spec.rb +184 -0
- data/spec/unit/mongoid/extensions/hash/assimilation_spec.rb +46 -0
- data/spec/unit/mongoid/extensions/hash/conversions_spec.rb +21 -0
- data/spec/unit/mongoid/extensions/hash/criteria_helpers_spec.rb +17 -0
- data/spec/unit/mongoid/extensions/hash/scoping_spec.rb +14 -0
- data/spec/unit/mongoid/extensions/integer/conversions_spec.rb +61 -0
- data/spec/unit/mongoid/extensions/nil/assimilation_spec.rb +24 -0
- data/spec/unit/mongoid/extensions/object/conversions_spec.rb +57 -0
- data/spec/unit/mongoid/extensions/proc/scoping_spec.rb +34 -0
- data/spec/unit/mongoid/extensions/string/conversions_spec.rb +17 -0
- data/spec/unit/mongoid/extensions/string/inflections_spec.rb +208 -0
- data/spec/unit/mongoid/extensions/symbol/inflections_spec.rb +91 -0
- data/spec/unit/mongoid/extensions/time/conversions_spec.rb +70 -0
- data/spec/unit/mongoid/extras_spec.rb +102 -0
- data/spec/unit/mongoid/factory_spec.rb +31 -0
- data/spec/unit/mongoid/field_spec.rb +143 -0
- data/spec/unit/mongoid/fields_spec.rb +181 -0
- data/spec/unit/mongoid/finders_spec.rb +404 -0
- data/spec/unit/mongoid/identity_spec.rb +109 -0
- data/spec/unit/mongoid/indexes_spec.rb +93 -0
- data/spec/unit/mongoid/javascript_spec.rb +48 -0
- data/spec/unit/mongoid/matchers/all_spec.rb +27 -0
- data/spec/unit/mongoid/matchers/default_spec.rb +27 -0
- data/spec/unit/mongoid/matchers/exists_spec.rb +56 -0
- data/spec/unit/mongoid/matchers/gt_spec.rb +39 -0
- data/spec/unit/mongoid/matchers/gte_spec.rb +49 -0
- data/spec/unit/mongoid/matchers/in_spec.rb +27 -0
- data/spec/unit/mongoid/matchers/lt_spec.rb +39 -0
- data/spec/unit/mongoid/matchers/lte_spec.rb +49 -0
- data/spec/unit/mongoid/matchers/ne_spec.rb +27 -0
- data/spec/unit/mongoid/matchers/nin_spec.rb +27 -0
- data/spec/unit/mongoid/matchers/size_spec.rb +27 -0
- data/spec/unit/mongoid/matchers_spec.rb +329 -0
- data/spec/unit/mongoid/memoization_spec.rb +75 -0
- data/spec/unit/mongoid/named_scope_spec.rb +123 -0
- data/spec/unit/mongoid/observable_spec.rb +46 -0
- data/spec/unit/mongoid/paths_spec.rb +124 -0
- data/spec/unit/mongoid/persistence/insert_spec.rb +175 -0
- data/spec/unit/mongoid/persistence/update_spec.rb +148 -0
- data/spec/unit/mongoid/persistence_spec.rb +40 -0
- data/spec/unit/mongoid/scope_spec.rb +240 -0
- data/spec/unit/mongoid/state_spec.rb +83 -0
- data/spec/unit/mongoid/timestamps_spec.rb +25 -0
- data/spec/unit/mongoid/validations/associated_spec.rb +103 -0
- data/spec/unit/mongoid/validations/uniqueness_spec.rb +47 -0
- data/spec/unit/mongoid/validations_spec.rb +190 -0
- data/spec/unit/mongoid/versioning_spec.rb +41 -0
- data/spec/unit/mongoid_spec.rb +46 -0
- metadata +476 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Mongoid #:nodoc:
|
3
|
+
module State #:nodoc:
|
4
|
+
# Returns true if the +Document+ has not been persisted to the database,
|
5
|
+
# false if it has. This is determined by the variable @new_record
|
6
|
+
# and NOT if the object has an id.
|
7
|
+
def new_record?
|
8
|
+
@new_record == true
|
9
|
+
end
|
10
|
+
|
11
|
+
# Sets the new_record boolean - used after document is saved.
|
12
|
+
def new_record=(saved)
|
13
|
+
@new_record = saved
|
14
|
+
end
|
15
|
+
|
16
|
+
# Checks if the document has been saved to the database.
|
17
|
+
def persisted?
|
18
|
+
!new_record?
|
19
|
+
end
|
20
|
+
|
21
|
+
# Returns true if the +Document+ has been succesfully destroyed, and false if it hasn't.
|
22
|
+
# This is determined by the variable @destroyed and NOT by checking the database.
|
23
|
+
def destroyed?
|
24
|
+
@destroyed == true
|
25
|
+
end
|
26
|
+
|
27
|
+
# Sets the destroyed boolean - used after document is destroyed.
|
28
|
+
def destroyed=(destroyed)
|
29
|
+
@destroyed = destroyed && true
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Mongoid #:nodoc:
|
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,51 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "mongoid/validations/associated"
|
3
|
+
require "mongoid/validations/uniqueness"
|
4
|
+
|
5
|
+
I18n.load_path << File.join(
|
6
|
+
File.dirname(__FILE__), "validations", "locale", "en.yml"
|
7
|
+
)
|
8
|
+
|
9
|
+
module Mongoid #:nodoc:
|
10
|
+
# This module provides additional validations that ActiveModel does not
|
11
|
+
# provide: validates_associated and validates_uniqueness_of
|
12
|
+
module Validations
|
13
|
+
extend ActiveSupport::Concern
|
14
|
+
included do
|
15
|
+
include ActiveModel::Validations
|
16
|
+
end
|
17
|
+
|
18
|
+
module ClassMethods #:nodoc:
|
19
|
+
# Validates whether or not an association is valid or not. Will correctly
|
20
|
+
# handle has one and has many associations.
|
21
|
+
#
|
22
|
+
# Example:
|
23
|
+
#
|
24
|
+
# class Person
|
25
|
+
# include Mongoid::Document
|
26
|
+
# embeds_one :name
|
27
|
+
# embeds_many :addresses
|
28
|
+
#
|
29
|
+
# validates_associated :name, :addresses
|
30
|
+
# end
|
31
|
+
def validates_associated(*args)
|
32
|
+
validates_with(AssociatedValidator, _merge_attributes(args))
|
33
|
+
end
|
34
|
+
|
35
|
+
# Validates whether or not a field is unique against the documents in the
|
36
|
+
# database.
|
37
|
+
#
|
38
|
+
# Example:
|
39
|
+
#
|
40
|
+
# class Person
|
41
|
+
# include Mongoid::Document
|
42
|
+
# field :title
|
43
|
+
#
|
44
|
+
# validates_uniqueness_of :title
|
45
|
+
# end
|
46
|
+
def validates_uniqueness_of(*args)
|
47
|
+
validates_with(UniquenessValidator, _merge_attributes(args))
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Mongoid #:nodoc:
|
3
|
+
module Validations #:nodoc:
|
4
|
+
# Validates whether or not an association is valid or not. Will correctly
|
5
|
+
# handle has one and has many associations.
|
6
|
+
#
|
7
|
+
# Example:
|
8
|
+
#
|
9
|
+
# class Person
|
10
|
+
# include Mongoid::Document
|
11
|
+
# embeds_one :name
|
12
|
+
# embeds_many :addresses
|
13
|
+
#
|
14
|
+
# validates_associated :name, :addresses
|
15
|
+
# end
|
16
|
+
class AssociatedValidator < ActiveModel::EachValidator
|
17
|
+
|
18
|
+
# Validates that the associations provided are either all nil or all
|
19
|
+
# valid. If neither is true then the appropriate errors will be added to
|
20
|
+
# the parent document.
|
21
|
+
#
|
22
|
+
# Example:
|
23
|
+
#
|
24
|
+
# <tt>validator.validate_each(document, :name, name)</tt>
|
25
|
+
def validate_each(document, attribute, value)
|
26
|
+
values = value.is_a?(Array) ? value : [ value ]
|
27
|
+
return if values.collect { |doc| doc.nil? || doc.valid? }.all?
|
28
|
+
document.errors.add(attribute, :invalid, :default => options[:message], :value => value)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Mongoid #:nodoc:
|
3
|
+
module Validations #:nodoc:
|
4
|
+
# Validates whether or not a field is unique against the documents in the
|
5
|
+
# database.
|
6
|
+
#
|
7
|
+
# Example:
|
8
|
+
#
|
9
|
+
# class Person
|
10
|
+
# include Mongoid::Document
|
11
|
+
# field :title
|
12
|
+
#
|
13
|
+
# validates_uniqueness_of :title
|
14
|
+
# end
|
15
|
+
class UniquenessValidator < ActiveModel::EachValidator
|
16
|
+
def validate_each(document, attribute, value)
|
17
|
+
return if document.class.where(attribute => value, :_id.ne => document._id).empty?
|
18
|
+
document.errors.add(attribute, :taken, :default => options[:message], :value => value)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/mongoid.gemspec
ADDED
@@ -0,0 +1,413 @@
|
|
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{mongoid}
|
8
|
+
s.version = "2.0.0.beta1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Durran Jordan"]
|
12
|
+
s.date = %q{2010-03-25}
|
13
|
+
s.email = %q{durran@gmail.com}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"README.rdoc"
|
16
|
+
]
|
17
|
+
s.files = [
|
18
|
+
".gitignore",
|
19
|
+
".watchr",
|
20
|
+
"MIT_LICENSE",
|
21
|
+
"README.rdoc",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"caliper.yml",
|
25
|
+
"lib/mongoid.rb",
|
26
|
+
"lib/mongoid/associations.rb",
|
27
|
+
"lib/mongoid/associations/belongs_to_related.rb",
|
28
|
+
"lib/mongoid/associations/embed_many.rb",
|
29
|
+
"lib/mongoid/associations/embed_one.rb",
|
30
|
+
"lib/mongoid/associations/embedded_in.rb",
|
31
|
+
"lib/mongoid/associations/has_many_related.rb",
|
32
|
+
"lib/mongoid/associations/has_one_related.rb",
|
33
|
+
"lib/mongoid/associations/meta_data.rb",
|
34
|
+
"lib/mongoid/associations/options.rb",
|
35
|
+
"lib/mongoid/associations/proxy.rb",
|
36
|
+
"lib/mongoid/attributes.rb",
|
37
|
+
"lib/mongoid/callbacks.rb",
|
38
|
+
"lib/mongoid/collection.rb",
|
39
|
+
"lib/mongoid/collections/cyclic_iterator.rb",
|
40
|
+
"lib/mongoid/collections/master.rb",
|
41
|
+
"lib/mongoid/collections/mimic.rb",
|
42
|
+
"lib/mongoid/collections/operations.rb",
|
43
|
+
"lib/mongoid/collections/slaves.rb",
|
44
|
+
"lib/mongoid/commands.rb",
|
45
|
+
"lib/mongoid/commands/create.rb",
|
46
|
+
"lib/mongoid/commands/delete.rb",
|
47
|
+
"lib/mongoid/commands/delete_all.rb",
|
48
|
+
"lib/mongoid/commands/deletion.rb",
|
49
|
+
"lib/mongoid/commands/destroy.rb",
|
50
|
+
"lib/mongoid/commands/destroy_all.rb",
|
51
|
+
"lib/mongoid/commands/save.rb",
|
52
|
+
"lib/mongoid/components.rb",
|
53
|
+
"lib/mongoid/config.rb",
|
54
|
+
"lib/mongoid/contexts.rb",
|
55
|
+
"lib/mongoid/contexts/enumerable.rb",
|
56
|
+
"lib/mongoid/contexts/ids.rb",
|
57
|
+
"lib/mongoid/contexts/mongo.rb",
|
58
|
+
"lib/mongoid/contexts/paging.rb",
|
59
|
+
"lib/mongoid/criteria.rb",
|
60
|
+
"lib/mongoid/criterion/complex.rb",
|
61
|
+
"lib/mongoid/criterion/exclusion.rb",
|
62
|
+
"lib/mongoid/criterion/inclusion.rb",
|
63
|
+
"lib/mongoid/criterion/optional.rb",
|
64
|
+
"lib/mongoid/cursor.rb",
|
65
|
+
"lib/mongoid/deprecation.rb",
|
66
|
+
"lib/mongoid/dirty.rb",
|
67
|
+
"lib/mongoid/document.rb",
|
68
|
+
"lib/mongoid/errors.rb",
|
69
|
+
"lib/mongoid/extensions.rb",
|
70
|
+
"lib/mongoid/extensions/array/accessors.rb",
|
71
|
+
"lib/mongoid/extensions/array/aliasing.rb",
|
72
|
+
"lib/mongoid/extensions/array/assimilation.rb",
|
73
|
+
"lib/mongoid/extensions/array/conversions.rb",
|
74
|
+
"lib/mongoid/extensions/array/parentization.rb",
|
75
|
+
"lib/mongoid/extensions/big_decimal/conversions.rb",
|
76
|
+
"lib/mongoid/extensions/binary/conversions.rb",
|
77
|
+
"lib/mongoid/extensions/boolean/conversions.rb",
|
78
|
+
"lib/mongoid/extensions/date/conversions.rb",
|
79
|
+
"lib/mongoid/extensions/datetime/conversions.rb",
|
80
|
+
"lib/mongoid/extensions/float/conversions.rb",
|
81
|
+
"lib/mongoid/extensions/hash/accessors.rb",
|
82
|
+
"lib/mongoid/extensions/hash/assimilation.rb",
|
83
|
+
"lib/mongoid/extensions/hash/conversions.rb",
|
84
|
+
"lib/mongoid/extensions/hash/criteria_helpers.rb",
|
85
|
+
"lib/mongoid/extensions/hash/scoping.rb",
|
86
|
+
"lib/mongoid/extensions/integer/conversions.rb",
|
87
|
+
"lib/mongoid/extensions/nil/assimilation.rb",
|
88
|
+
"lib/mongoid/extensions/object/conversions.rb",
|
89
|
+
"lib/mongoid/extensions/objectid/conversions.rb",
|
90
|
+
"lib/mongoid/extensions/proc/scoping.rb",
|
91
|
+
"lib/mongoid/extensions/string/conversions.rb",
|
92
|
+
"lib/mongoid/extensions/string/inflections.rb",
|
93
|
+
"lib/mongoid/extensions/symbol/inflections.rb",
|
94
|
+
"lib/mongoid/extensions/time/conversions.rb",
|
95
|
+
"lib/mongoid/extras.rb",
|
96
|
+
"lib/mongoid/factory.rb",
|
97
|
+
"lib/mongoid/field.rb",
|
98
|
+
"lib/mongoid/fields.rb",
|
99
|
+
"lib/mongoid/finders.rb",
|
100
|
+
"lib/mongoid/identity.rb",
|
101
|
+
"lib/mongoid/indexes.rb",
|
102
|
+
"lib/mongoid/javascript.rb",
|
103
|
+
"lib/mongoid/javascript/functions.yml",
|
104
|
+
"lib/mongoid/matchers.rb",
|
105
|
+
"lib/mongoid/matchers/all.rb",
|
106
|
+
"lib/mongoid/matchers/default.rb",
|
107
|
+
"lib/mongoid/matchers/exists.rb",
|
108
|
+
"lib/mongoid/matchers/gt.rb",
|
109
|
+
"lib/mongoid/matchers/gte.rb",
|
110
|
+
"lib/mongoid/matchers/in.rb",
|
111
|
+
"lib/mongoid/matchers/lt.rb",
|
112
|
+
"lib/mongoid/matchers/lte.rb",
|
113
|
+
"lib/mongoid/matchers/ne.rb",
|
114
|
+
"lib/mongoid/matchers/nin.rb",
|
115
|
+
"lib/mongoid/matchers/size.rb",
|
116
|
+
"lib/mongoid/memoization.rb",
|
117
|
+
"lib/mongoid/named_scope.rb",
|
118
|
+
"lib/mongoid/observable.rb",
|
119
|
+
"lib/mongoid/paths.rb",
|
120
|
+
"lib/mongoid/scope.rb",
|
121
|
+
"lib/mongoid/state.rb",
|
122
|
+
"lib/mongoid/timestamps.rb",
|
123
|
+
"lib/mongoid/validations.rb",
|
124
|
+
"lib/mongoid/validations/associated.rb",
|
125
|
+
"lib/mongoid/validations/locale/en.yml",
|
126
|
+
"lib/mongoid/validations/uniqueness.rb",
|
127
|
+
"lib/mongoid/versioning.rb",
|
128
|
+
"mongoid.gemspec",
|
129
|
+
"perf/benchmark.rb",
|
130
|
+
"spec/integration/mongoid/associations_spec.rb",
|
131
|
+
"spec/integration/mongoid/attributes_spec.rb",
|
132
|
+
"spec/integration/mongoid/commands_spec.rb",
|
133
|
+
"spec/integration/mongoid/contexts/enumerable_spec.rb",
|
134
|
+
"spec/integration/mongoid/criteria_spec.rb",
|
135
|
+
"spec/integration/mongoid/dirty_spec.rb",
|
136
|
+
"spec/integration/mongoid/document_spec.rb",
|
137
|
+
"spec/integration/mongoid/extensions_spec.rb",
|
138
|
+
"spec/integration/mongoid/finders_spec.rb",
|
139
|
+
"spec/integration/mongoid/inheritance_spec.rb",
|
140
|
+
"spec/integration/mongoid/named_scope_spec.rb",
|
141
|
+
"spec/models/address.rb",
|
142
|
+
"spec/models/animal.rb",
|
143
|
+
"spec/models/callbacks.rb",
|
144
|
+
"spec/models/comment.rb",
|
145
|
+
"spec/models/country_code.rb",
|
146
|
+
"spec/models/employer.rb",
|
147
|
+
"spec/models/game.rb",
|
148
|
+
"spec/models/inheritance.rb",
|
149
|
+
"spec/models/location.rb",
|
150
|
+
"spec/models/mixed_drink.rb",
|
151
|
+
"spec/models/name.rb",
|
152
|
+
"spec/models/namespacing.rb",
|
153
|
+
"spec/models/patient.rb",
|
154
|
+
"spec/models/person.rb",
|
155
|
+
"spec/models/pet.rb",
|
156
|
+
"spec/models/pet_owner.rb",
|
157
|
+
"spec/models/phone.rb",
|
158
|
+
"spec/models/post.rb",
|
159
|
+
"spec/models/translation.rb",
|
160
|
+
"spec/models/vet_visit.rb",
|
161
|
+
"spec/spec.opts",
|
162
|
+
"spec/spec_helper.rb",
|
163
|
+
"spec/unit/mongoid/associations/belongs_to_related_spec.rb",
|
164
|
+
"spec/unit/mongoid/associations/embed_many_spec.rb",
|
165
|
+
"spec/unit/mongoid/associations/embed_one_spec.rb",
|
166
|
+
"spec/unit/mongoid/associations/embedded_in_spec.rb",
|
167
|
+
"spec/unit/mongoid/associations/has_many_related_spec.rb",
|
168
|
+
"spec/unit/mongoid/associations/has_one_related_spec.rb",
|
169
|
+
"spec/unit/mongoid/associations/meta_data_spec.rb",
|
170
|
+
"spec/unit/mongoid/associations/options_spec.rb",
|
171
|
+
"spec/unit/mongoid/associations_spec.rb",
|
172
|
+
"spec/unit/mongoid/attributes_spec.rb",
|
173
|
+
"spec/unit/mongoid/callbacks_spec.rb",
|
174
|
+
"spec/unit/mongoid/collection_spec.rb",
|
175
|
+
"spec/unit/mongoid/collections/cyclic_iterator_spec.rb",
|
176
|
+
"spec/unit/mongoid/collections/master_spec.rb",
|
177
|
+
"spec/unit/mongoid/collections/mimic_spec.rb",
|
178
|
+
"spec/unit/mongoid/collections/slaves_spec.rb",
|
179
|
+
"spec/unit/mongoid/commands/create_spec.rb",
|
180
|
+
"spec/unit/mongoid/commands/delete_all_spec.rb",
|
181
|
+
"spec/unit/mongoid/commands/delete_spec.rb",
|
182
|
+
"spec/unit/mongoid/commands/destroy_all_spec.rb",
|
183
|
+
"spec/unit/mongoid/commands/destroy_spec.rb",
|
184
|
+
"spec/unit/mongoid/commands/save_spec.rb",
|
185
|
+
"spec/unit/mongoid/commands_spec.rb",
|
186
|
+
"spec/unit/mongoid/config_spec.rb",
|
187
|
+
"spec/unit/mongoid/contexts/enumerable_spec.rb",
|
188
|
+
"spec/unit/mongoid/contexts/mongo_spec.rb",
|
189
|
+
"spec/unit/mongoid/contexts_spec.rb",
|
190
|
+
"spec/unit/mongoid/criteria_spec.rb",
|
191
|
+
"spec/unit/mongoid/criterion/complex_spec.rb",
|
192
|
+
"spec/unit/mongoid/criterion/exclusion_spec.rb",
|
193
|
+
"spec/unit/mongoid/criterion/inclusion_spec.rb",
|
194
|
+
"spec/unit/mongoid/criterion/optional_spec.rb",
|
195
|
+
"spec/unit/mongoid/cursor_spec.rb",
|
196
|
+
"spec/unit/mongoid/deprecation_spec.rb",
|
197
|
+
"spec/unit/mongoid/dirty_spec.rb",
|
198
|
+
"spec/unit/mongoid/document_spec.rb",
|
199
|
+
"spec/unit/mongoid/errors_spec.rb",
|
200
|
+
"spec/unit/mongoid/extensions/array/accessors_spec.rb",
|
201
|
+
"spec/unit/mongoid/extensions/array/assimilation_spec.rb",
|
202
|
+
"spec/unit/mongoid/extensions/array/conversions_spec.rb",
|
203
|
+
"spec/unit/mongoid/extensions/array/parentization_spec.rb",
|
204
|
+
"spec/unit/mongoid/extensions/big_decimal/conversions_spec.rb",
|
205
|
+
"spec/unit/mongoid/extensions/binary/conversions_spec.rb",
|
206
|
+
"spec/unit/mongoid/extensions/boolean/conversions_spec.rb",
|
207
|
+
"spec/unit/mongoid/extensions/date/conversions_spec.rb",
|
208
|
+
"spec/unit/mongoid/extensions/datetime/conversions_spec.rb",
|
209
|
+
"spec/unit/mongoid/extensions/float/conversions_spec.rb",
|
210
|
+
"spec/unit/mongoid/extensions/hash/accessors_spec.rb",
|
211
|
+
"spec/unit/mongoid/extensions/hash/assimilation_spec.rb",
|
212
|
+
"spec/unit/mongoid/extensions/hash/conversions_spec.rb",
|
213
|
+
"spec/unit/mongoid/extensions/hash/criteria_helpers_spec.rb",
|
214
|
+
"spec/unit/mongoid/extensions/hash/scoping_spec.rb",
|
215
|
+
"spec/unit/mongoid/extensions/integer/conversions_spec.rb",
|
216
|
+
"spec/unit/mongoid/extensions/nil/assimilation_spec.rb",
|
217
|
+
"spec/unit/mongoid/extensions/object/conversions_spec.rb",
|
218
|
+
"spec/unit/mongoid/extensions/proc/scoping_spec.rb",
|
219
|
+
"spec/unit/mongoid/extensions/string/conversions_spec.rb",
|
220
|
+
"spec/unit/mongoid/extensions/string/inflections_spec.rb",
|
221
|
+
"spec/unit/mongoid/extensions/symbol/inflections_spec.rb",
|
222
|
+
"spec/unit/mongoid/extensions/time/conversions_spec.rb",
|
223
|
+
"spec/unit/mongoid/extras_spec.rb",
|
224
|
+
"spec/unit/mongoid/factory_spec.rb",
|
225
|
+
"spec/unit/mongoid/field_spec.rb",
|
226
|
+
"spec/unit/mongoid/fields_spec.rb",
|
227
|
+
"spec/unit/mongoid/finders_spec.rb",
|
228
|
+
"spec/unit/mongoid/identity_spec.rb",
|
229
|
+
"spec/unit/mongoid/indexes_spec.rb",
|
230
|
+
"spec/unit/mongoid/javascript_spec.rb",
|
231
|
+
"spec/unit/mongoid/matchers/all_spec.rb",
|
232
|
+
"spec/unit/mongoid/matchers/default_spec.rb",
|
233
|
+
"spec/unit/mongoid/matchers/exists_spec.rb",
|
234
|
+
"spec/unit/mongoid/matchers/gt_spec.rb",
|
235
|
+
"spec/unit/mongoid/matchers/gte_spec.rb",
|
236
|
+
"spec/unit/mongoid/matchers/in_spec.rb",
|
237
|
+
"spec/unit/mongoid/matchers/lt_spec.rb",
|
238
|
+
"spec/unit/mongoid/matchers/lte_spec.rb",
|
239
|
+
"spec/unit/mongoid/matchers/ne_spec.rb",
|
240
|
+
"spec/unit/mongoid/matchers/nin_spec.rb",
|
241
|
+
"spec/unit/mongoid/matchers/size_spec.rb",
|
242
|
+
"spec/unit/mongoid/matchers_spec.rb",
|
243
|
+
"spec/unit/mongoid/memoization_spec.rb",
|
244
|
+
"spec/unit/mongoid/named_scope_spec.rb",
|
245
|
+
"spec/unit/mongoid/observable_spec.rb",
|
246
|
+
"spec/unit/mongoid/paths_spec.rb",
|
247
|
+
"spec/unit/mongoid/scope_spec.rb",
|
248
|
+
"spec/unit/mongoid/state_spec.rb",
|
249
|
+
"spec/unit/mongoid/timestamps_spec.rb",
|
250
|
+
"spec/unit/mongoid/validations/associated_spec.rb",
|
251
|
+
"spec/unit/mongoid/validations/uniqueness_spec.rb",
|
252
|
+
"spec/unit/mongoid/validations_spec.rb",
|
253
|
+
"spec/unit/mongoid/versioning_spec.rb",
|
254
|
+
"spec/unit/mongoid_spec.rb"
|
255
|
+
]
|
256
|
+
s.homepage = %q{http://mongoid.org}
|
257
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
258
|
+
s.require_paths = ["lib"]
|
259
|
+
s.rubygems_version = %q{1.3.6}
|
260
|
+
s.summary = %q{ODM framework for MongoDB}
|
261
|
+
s.test_files = [
|
262
|
+
"spec/integration/mongoid/associations_spec.rb",
|
263
|
+
"spec/integration/mongoid/attributes_spec.rb",
|
264
|
+
"spec/integration/mongoid/commands_spec.rb",
|
265
|
+
"spec/integration/mongoid/contexts/enumerable_spec.rb",
|
266
|
+
"spec/integration/mongoid/criteria_spec.rb",
|
267
|
+
"spec/integration/mongoid/dirty_spec.rb",
|
268
|
+
"spec/integration/mongoid/document_spec.rb",
|
269
|
+
"spec/integration/mongoid/extensions_spec.rb",
|
270
|
+
"spec/integration/mongoid/finders_spec.rb",
|
271
|
+
"spec/integration/mongoid/inheritance_spec.rb",
|
272
|
+
"spec/integration/mongoid/named_scope_spec.rb",
|
273
|
+
"spec/models/address.rb",
|
274
|
+
"spec/models/animal.rb",
|
275
|
+
"spec/models/callbacks.rb",
|
276
|
+
"spec/models/comment.rb",
|
277
|
+
"spec/models/country_code.rb",
|
278
|
+
"spec/models/employer.rb",
|
279
|
+
"spec/models/game.rb",
|
280
|
+
"spec/models/inheritance.rb",
|
281
|
+
"spec/models/location.rb",
|
282
|
+
"spec/models/mixed_drink.rb",
|
283
|
+
"spec/models/name.rb",
|
284
|
+
"spec/models/namespacing.rb",
|
285
|
+
"spec/models/patient.rb",
|
286
|
+
"spec/models/person.rb",
|
287
|
+
"spec/models/pet.rb",
|
288
|
+
"spec/models/pet_owner.rb",
|
289
|
+
"spec/models/phone.rb",
|
290
|
+
"spec/models/post.rb",
|
291
|
+
"spec/models/translation.rb",
|
292
|
+
"spec/models/vet_visit.rb",
|
293
|
+
"spec/spec_helper.rb",
|
294
|
+
"spec/unit/mongoid/associations/belongs_to_related_spec.rb",
|
295
|
+
"spec/unit/mongoid/associations/embed_many_spec.rb",
|
296
|
+
"spec/unit/mongoid/associations/embed_one_spec.rb",
|
297
|
+
"spec/unit/mongoid/associations/embedded_in_spec.rb",
|
298
|
+
"spec/unit/mongoid/associations/has_many_related_spec.rb",
|
299
|
+
"spec/unit/mongoid/associations/has_one_related_spec.rb",
|
300
|
+
"spec/unit/mongoid/associations/meta_data_spec.rb",
|
301
|
+
"spec/unit/mongoid/associations/options_spec.rb",
|
302
|
+
"spec/unit/mongoid/associations_spec.rb",
|
303
|
+
"spec/unit/mongoid/attributes_spec.rb",
|
304
|
+
"spec/unit/mongoid/callbacks_spec.rb",
|
305
|
+
"spec/unit/mongoid/collection_spec.rb",
|
306
|
+
"spec/unit/mongoid/collections/cyclic_iterator_spec.rb",
|
307
|
+
"spec/unit/mongoid/collections/master_spec.rb",
|
308
|
+
"spec/unit/mongoid/collections/mimic_spec.rb",
|
309
|
+
"spec/unit/mongoid/collections/slaves_spec.rb",
|
310
|
+
"spec/unit/mongoid/commands/create_spec.rb",
|
311
|
+
"spec/unit/mongoid/commands/delete_all_spec.rb",
|
312
|
+
"spec/unit/mongoid/commands/delete_spec.rb",
|
313
|
+
"spec/unit/mongoid/commands/destroy_all_spec.rb",
|
314
|
+
"spec/unit/mongoid/commands/destroy_spec.rb",
|
315
|
+
"spec/unit/mongoid/commands/save_spec.rb",
|
316
|
+
"spec/unit/mongoid/commands_spec.rb",
|
317
|
+
"spec/unit/mongoid/config_spec.rb",
|
318
|
+
"spec/unit/mongoid/contexts/enumerable_spec.rb",
|
319
|
+
"spec/unit/mongoid/contexts/mongo_spec.rb",
|
320
|
+
"spec/unit/mongoid/contexts_spec.rb",
|
321
|
+
"spec/unit/mongoid/criteria_spec.rb",
|
322
|
+
"spec/unit/mongoid/criterion/complex_spec.rb",
|
323
|
+
"spec/unit/mongoid/criterion/exclusion_spec.rb",
|
324
|
+
"spec/unit/mongoid/criterion/inclusion_spec.rb",
|
325
|
+
"spec/unit/mongoid/criterion/optional_spec.rb",
|
326
|
+
"spec/unit/mongoid/cursor_spec.rb",
|
327
|
+
"spec/unit/mongoid/deprecation_spec.rb",
|
328
|
+
"spec/unit/mongoid/dirty_spec.rb",
|
329
|
+
"spec/unit/mongoid/document_spec.rb",
|
330
|
+
"spec/unit/mongoid/errors_spec.rb",
|
331
|
+
"spec/unit/mongoid/extensions/array/accessors_spec.rb",
|
332
|
+
"spec/unit/mongoid/extensions/array/assimilation_spec.rb",
|
333
|
+
"spec/unit/mongoid/extensions/array/conversions_spec.rb",
|
334
|
+
"spec/unit/mongoid/extensions/array/parentization_spec.rb",
|
335
|
+
"spec/unit/mongoid/extensions/big_decimal/conversions_spec.rb",
|
336
|
+
"spec/unit/mongoid/extensions/binary/conversions_spec.rb",
|
337
|
+
"spec/unit/mongoid/extensions/boolean/conversions_spec.rb",
|
338
|
+
"spec/unit/mongoid/extensions/date/conversions_spec.rb",
|
339
|
+
"spec/unit/mongoid/extensions/datetime/conversions_spec.rb",
|
340
|
+
"spec/unit/mongoid/extensions/float/conversions_spec.rb",
|
341
|
+
"spec/unit/mongoid/extensions/hash/accessors_spec.rb",
|
342
|
+
"spec/unit/mongoid/extensions/hash/assimilation_spec.rb",
|
343
|
+
"spec/unit/mongoid/extensions/hash/conversions_spec.rb",
|
344
|
+
"spec/unit/mongoid/extensions/hash/criteria_helpers_spec.rb",
|
345
|
+
"spec/unit/mongoid/extensions/hash/scoping_spec.rb",
|
346
|
+
"spec/unit/mongoid/extensions/integer/conversions_spec.rb",
|
347
|
+
"spec/unit/mongoid/extensions/nil/assimilation_spec.rb",
|
348
|
+
"spec/unit/mongoid/extensions/object/conversions_spec.rb",
|
349
|
+
"spec/unit/mongoid/extensions/proc/scoping_spec.rb",
|
350
|
+
"spec/unit/mongoid/extensions/string/conversions_spec.rb",
|
351
|
+
"spec/unit/mongoid/extensions/string/inflections_spec.rb",
|
352
|
+
"spec/unit/mongoid/extensions/symbol/inflections_spec.rb",
|
353
|
+
"spec/unit/mongoid/extensions/time/conversions_spec.rb",
|
354
|
+
"spec/unit/mongoid/extras_spec.rb",
|
355
|
+
"spec/unit/mongoid/factory_spec.rb",
|
356
|
+
"spec/unit/mongoid/field_spec.rb",
|
357
|
+
"spec/unit/mongoid/fields_spec.rb",
|
358
|
+
"spec/unit/mongoid/finders_spec.rb",
|
359
|
+
"spec/unit/mongoid/identity_spec.rb",
|
360
|
+
"spec/unit/mongoid/indexes_spec.rb",
|
361
|
+
"spec/unit/mongoid/javascript_spec.rb",
|
362
|
+
"spec/unit/mongoid/matchers/all_spec.rb",
|
363
|
+
"spec/unit/mongoid/matchers/default_spec.rb",
|
364
|
+
"spec/unit/mongoid/matchers/exists_spec.rb",
|
365
|
+
"spec/unit/mongoid/matchers/gt_spec.rb",
|
366
|
+
"spec/unit/mongoid/matchers/gte_spec.rb",
|
367
|
+
"spec/unit/mongoid/matchers/in_spec.rb",
|
368
|
+
"spec/unit/mongoid/matchers/lt_spec.rb",
|
369
|
+
"spec/unit/mongoid/matchers/lte_spec.rb",
|
370
|
+
"spec/unit/mongoid/matchers/ne_spec.rb",
|
371
|
+
"spec/unit/mongoid/matchers/nin_spec.rb",
|
372
|
+
"spec/unit/mongoid/matchers/size_spec.rb",
|
373
|
+
"spec/unit/mongoid/matchers_spec.rb",
|
374
|
+
"spec/unit/mongoid/memoization_spec.rb",
|
375
|
+
"spec/unit/mongoid/named_scope_spec.rb",
|
376
|
+
"spec/unit/mongoid/observable_spec.rb",
|
377
|
+
"spec/unit/mongoid/paths_spec.rb",
|
378
|
+
"spec/unit/mongoid/scope_spec.rb",
|
379
|
+
"spec/unit/mongoid/state_spec.rb",
|
380
|
+
"spec/unit/mongoid/timestamps_spec.rb",
|
381
|
+
"spec/unit/mongoid/validations/associated_spec.rb",
|
382
|
+
"spec/unit/mongoid/validations/uniqueness_spec.rb",
|
383
|
+
"spec/unit/mongoid/validations_spec.rb",
|
384
|
+
"spec/unit/mongoid/versioning_spec.rb",
|
385
|
+
"spec/unit/mongoid_spec.rb"
|
386
|
+
]
|
387
|
+
|
388
|
+
if s.respond_to? :specification_version then
|
389
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
390
|
+
s.specification_version = 3
|
391
|
+
|
392
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
393
|
+
s.add_runtime_dependency(%q<activemodel>, [">= 3.0.pre"])
|
394
|
+
s.add_runtime_dependency(%q<will_paginate>, [">= 3.0.pre"])
|
395
|
+
s.add_runtime_dependency(%q<mongo>, [">= 0.19.1"])
|
396
|
+
s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
|
397
|
+
s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
|
398
|
+
else
|
399
|
+
s.add_dependency(%q<activemodel>, [">= 3.0.pre"])
|
400
|
+
s.add_dependency(%q<will_paginate>, [">= 3.0.pre"])
|
401
|
+
s.add_dependency(%q<mongo>, [">= 0.19.1"])
|
402
|
+
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
403
|
+
s.add_dependency(%q<mocha>, [">= 0.9.8"])
|
404
|
+
end
|
405
|
+
else
|
406
|
+
s.add_dependency(%q<activemodel>, [">= 3.0.pre"])
|
407
|
+
s.add_dependency(%q<will_paginate>, [">= 3.0.pre"])
|
408
|
+
s.add_dependency(%q<mongo>, [">= 0.19.1"])
|
409
|
+
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
410
|
+
s.add_dependency(%q<mocha>, [">= 0.9.8"])
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|