humanoid 1.2.7
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/.gitignore +6 -0
- data/.watchr +29 -0
- data/HISTORY +342 -0
- data/MIT_LICENSE +20 -0
- data/README.rdoc +56 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/caliper.yml +4 -0
- data/humanoid.gemspec +374 -0
- data/lib/humanoid.rb +111 -0
- data/lib/humanoid/associations.rb +258 -0
- data/lib/humanoid/associations/belongs_to.rb +64 -0
- data/lib/humanoid/associations/belongs_to_related.rb +62 -0
- data/lib/humanoid/associations/has_many.rb +180 -0
- data/lib/humanoid/associations/has_many_related.rb +109 -0
- data/lib/humanoid/associations/has_one.rb +95 -0
- data/lib/humanoid/associations/has_one_related.rb +81 -0
- data/lib/humanoid/associations/options.rb +57 -0
- data/lib/humanoid/associations/proxy.rb +31 -0
- data/lib/humanoid/attributes.rb +184 -0
- data/lib/humanoid/callbacks.rb +23 -0
- data/lib/humanoid/collection.rb +118 -0
- data/lib/humanoid/collections/cyclic_iterator.rb +34 -0
- data/lib/humanoid/collections/master.rb +28 -0
- data/lib/humanoid/collections/mimic.rb +46 -0
- data/lib/humanoid/collections/operations.rb +41 -0
- data/lib/humanoid/collections/slaves.rb +44 -0
- data/lib/humanoid/commands.rb +182 -0
- data/lib/humanoid/commands/create.rb +21 -0
- data/lib/humanoid/commands/delete.rb +16 -0
- data/lib/humanoid/commands/delete_all.rb +23 -0
- data/lib/humanoid/commands/deletion.rb +18 -0
- data/lib/humanoid/commands/destroy.rb +19 -0
- data/lib/humanoid/commands/destroy_all.rb +23 -0
- data/lib/humanoid/commands/save.rb +27 -0
- data/lib/humanoid/components.rb +24 -0
- data/lib/humanoid/config.rb +84 -0
- data/lib/humanoid/contexts.rb +25 -0
- data/lib/humanoid/contexts/enumerable.rb +117 -0
- data/lib/humanoid/contexts/ids.rb +25 -0
- data/lib/humanoid/contexts/mongo.rb +224 -0
- data/lib/humanoid/contexts/paging.rb +42 -0
- data/lib/humanoid/criteria.rb +259 -0
- data/lib/humanoid/criterion/complex.rb +21 -0
- data/lib/humanoid/criterion/exclusion.rb +65 -0
- data/lib/humanoid/criterion/inclusion.rb +91 -0
- data/lib/humanoid/criterion/optional.rb +128 -0
- data/lib/humanoid/cursor.rb +82 -0
- data/lib/humanoid/document.rb +300 -0
- data/lib/humanoid/enslavement.rb +38 -0
- data/lib/humanoid/errors.rb +77 -0
- data/lib/humanoid/extensions.rb +84 -0
- data/lib/humanoid/extensions/array/accessors.rb +17 -0
- data/lib/humanoid/extensions/array/aliasing.rb +4 -0
- data/lib/humanoid/extensions/array/assimilation.rb +26 -0
- data/lib/humanoid/extensions/array/conversions.rb +29 -0
- data/lib/humanoid/extensions/array/parentization.rb +13 -0
- data/lib/humanoid/extensions/boolean/conversions.rb +16 -0
- data/lib/humanoid/extensions/date/conversions.rb +15 -0
- data/lib/humanoid/extensions/datetime/conversions.rb +17 -0
- data/lib/humanoid/extensions/float/conversions.rb +16 -0
- data/lib/humanoid/extensions/hash/accessors.rb +38 -0
- data/lib/humanoid/extensions/hash/assimilation.rb +30 -0
- data/lib/humanoid/extensions/hash/conversions.rb +15 -0
- data/lib/humanoid/extensions/hash/criteria_helpers.rb +20 -0
- data/lib/humanoid/extensions/hash/scoping.rb +12 -0
- data/lib/humanoid/extensions/integer/conversions.rb +16 -0
- data/lib/humanoid/extensions/nil/assimilation.rb +13 -0
- data/lib/humanoid/extensions/object/conversions.rb +33 -0
- data/lib/humanoid/extensions/proc/scoping.rb +12 -0
- data/lib/humanoid/extensions/string/conversions.rb +15 -0
- data/lib/humanoid/extensions/string/inflections.rb +97 -0
- data/lib/humanoid/extensions/symbol/inflections.rb +36 -0
- data/lib/humanoid/extensions/time/conversions.rb +18 -0
- data/lib/humanoid/factory.rb +19 -0
- data/lib/humanoid/field.rb +39 -0
- data/lib/humanoid/fields.rb +62 -0
- data/lib/humanoid/finders.rb +224 -0
- data/lib/humanoid/identity.rb +39 -0
- data/lib/humanoid/indexes.rb +30 -0
- data/lib/humanoid/matchers.rb +36 -0
- data/lib/humanoid/matchers/all.rb +11 -0
- data/lib/humanoid/matchers/default.rb +26 -0
- data/lib/humanoid/matchers/exists.rb +13 -0
- data/lib/humanoid/matchers/gt.rb +11 -0
- data/lib/humanoid/matchers/gte.rb +11 -0
- data/lib/humanoid/matchers/in.rb +11 -0
- data/lib/humanoid/matchers/lt.rb +11 -0
- data/lib/humanoid/matchers/lte.rb +11 -0
- data/lib/humanoid/matchers/ne.rb +11 -0
- data/lib/humanoid/matchers/nin.rb +11 -0
- data/lib/humanoid/matchers/size.rb +11 -0
- data/lib/humanoid/memoization.rb +27 -0
- data/lib/humanoid/named_scope.rb +40 -0
- data/lib/humanoid/scope.rb +75 -0
- data/lib/humanoid/timestamps.rb +30 -0
- data/lib/humanoid/versioning.rb +28 -0
- data/perf/benchmark.rb +77 -0
- data/spec/integration/humanoid/associations_spec.rb +301 -0
- data/spec/integration/humanoid/attributes_spec.rb +22 -0
- data/spec/integration/humanoid/commands_spec.rb +216 -0
- data/spec/integration/humanoid/contexts/enumerable_spec.rb +33 -0
- data/spec/integration/humanoid/criteria_spec.rb +224 -0
- data/spec/integration/humanoid/document_spec.rb +587 -0
- data/spec/integration/humanoid/extensions_spec.rb +26 -0
- data/spec/integration/humanoid/finders_spec.rb +119 -0
- data/spec/integration/humanoid/inheritance_spec.rb +137 -0
- data/spec/integration/humanoid/named_scope_spec.rb +46 -0
- data/spec/models/address.rb +39 -0
- data/spec/models/animal.rb +6 -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 +6 -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 +4 -0
- data/spec/models/person.rb +98 -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 +141 -0
- data/spec/unit/mongoid/associations/belongs_to_spec.rb +193 -0
- data/spec/unit/mongoid/associations/has_many_related_spec.rb +387 -0
- data/spec/unit/mongoid/associations/has_many_spec.rb +471 -0
- data/spec/unit/mongoid/associations/has_one_related_spec.rb +179 -0
- data/spec/unit/mongoid/associations/has_one_spec.rb +282 -0
- data/spec/unit/mongoid/associations/options_spec.rb +191 -0
- data/spec/unit/mongoid/associations_spec.rb +545 -0
- data/spec/unit/mongoid/attributes_spec.rb +484 -0
- data/spec/unit/mongoid/callbacks_spec.rb +55 -0
- data/spec/unit/mongoid/collection_spec.rb +171 -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 +30 -0
- data/spec/unit/mongoid/commands/delete_all_spec.rb +58 -0
- data/spec/unit/mongoid/commands/delete_spec.rb +35 -0
- data/spec/unit/mongoid/commands/destroy_all_spec.rb +23 -0
- data/spec/unit/mongoid/commands/destroy_spec.rb +44 -0
- data/spec/unit/mongoid/commands/save_spec.rb +105 -0
- data/spec/unit/mongoid/commands_spec.rb +282 -0
- data/spec/unit/mongoid/config_spec.rb +165 -0
- data/spec/unit/mongoid/contexts/enumerable_spec.rb +374 -0
- data/spec/unit/mongoid/contexts/mongo_spec.rb +505 -0
- data/spec/unit/mongoid/contexts_spec.rb +25 -0
- data/spec/unit/mongoid/criteria_spec.rb +769 -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 +211 -0
- data/spec/unit/mongoid/criterion/optional_spec.rb +329 -0
- data/spec/unit/mongoid/cursor_spec.rb +74 -0
- data/spec/unit/mongoid/document_spec.rb +986 -0
- data/spec/unit/mongoid/enslavement_spec.rb +63 -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/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 +70 -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 +43 -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/factory_spec.rb +31 -0
- data/spec/unit/mongoid/field_spec.rb +81 -0
- data/spec/unit/mongoid/fields_spec.rb +158 -0
- data/spec/unit/mongoid/finders_spec.rb +368 -0
- data/spec/unit/mongoid/identity_spec.rb +88 -0
- data/spec/unit/mongoid/indexes_spec.rb +93 -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/scope_spec.rb +240 -0
- data/spec/unit/mongoid/timestamps_spec.rb +25 -0
- data/spec/unit/mongoid/versioning_spec.rb +41 -0
- data/spec/unit/mongoid_spec.rb +37 -0
- metadata +431 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
require "spec_helper"
|
|
2
|
+
|
|
3
|
+
describe Humanoid::Versioning do
|
|
4
|
+
|
|
5
|
+
describe "#version" do
|
|
6
|
+
|
|
7
|
+
before do
|
|
8
|
+
@post = Post.new
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it "defaults to 1" do
|
|
12
|
+
@post.version.should == 1
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
context "when document is saved" do
|
|
16
|
+
|
|
17
|
+
before do
|
|
18
|
+
@post.title = "New"
|
|
19
|
+
@version = Post.new(:title => "Test")
|
|
20
|
+
Post.expects(:first).at_least(1).with(:conditions => { :_id => @post.id, :version => 1 }).returns(@version)
|
|
21
|
+
@post.revise
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "increments the version" do
|
|
25
|
+
@post.version.should == 2
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it "adds a snapshot of the document to the versions" do
|
|
29
|
+
@post.title.should == "New"
|
|
30
|
+
@post.version.should == 2
|
|
31
|
+
@post.versions.size.should == 1
|
|
32
|
+
version = @post.versions.first
|
|
33
|
+
version.title.should == "Test"
|
|
34
|
+
version.version.should == 1
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
require "spec_helper"
|
|
2
|
+
|
|
3
|
+
describe Humanoid do
|
|
4
|
+
|
|
5
|
+
describe ".configure" do
|
|
6
|
+
|
|
7
|
+
context "when no block supplied" do
|
|
8
|
+
|
|
9
|
+
it "returns the config singleton" do
|
|
10
|
+
Humanoid.configure.should == Humanoid::Config.instance
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
context "when a block is supplied" do
|
|
16
|
+
|
|
17
|
+
before do
|
|
18
|
+
Humanoid.configure do |config|
|
|
19
|
+
config.allow_dynamic_fields = false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
after do
|
|
24
|
+
Humanoid.configure do |config|
|
|
25
|
+
config.allow_dynamic_fields = true
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it "sets the values on the config instance" do
|
|
30
|
+
Humanoid.allow_dynamic_fields.should be_false
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: humanoid
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.2.7
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Durran Jordan
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2010-02-20 00:00:00 -05:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: activesupport
|
|
17
|
+
type: :runtime
|
|
18
|
+
version_requirement:
|
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
+
requirements:
|
|
21
|
+
- - <=
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: 2.3.5
|
|
24
|
+
version:
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: mongo
|
|
27
|
+
type: :runtime
|
|
28
|
+
version_requirement:
|
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 0.18.3
|
|
34
|
+
version:
|
|
35
|
+
- !ruby/object:Gem::Dependency
|
|
36
|
+
name: durran-validatable
|
|
37
|
+
type: :runtime
|
|
38
|
+
version_requirement:
|
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: 2.0.1
|
|
44
|
+
version:
|
|
45
|
+
- !ruby/object:Gem::Dependency
|
|
46
|
+
name: will_paginate
|
|
47
|
+
type: :runtime
|
|
48
|
+
version_requirement:
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - <
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 3.0.pre
|
|
54
|
+
version:
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rspec
|
|
57
|
+
type: :development
|
|
58
|
+
version_requirement:
|
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: 1.2.9
|
|
64
|
+
version:
|
|
65
|
+
- !ruby/object:Gem::Dependency
|
|
66
|
+
name: mocha
|
|
67
|
+
type: :development
|
|
68
|
+
version_requirement:
|
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - ">="
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: 0.9.8
|
|
74
|
+
version:
|
|
75
|
+
description:
|
|
76
|
+
email: durran@gmail.com
|
|
77
|
+
executables: []
|
|
78
|
+
|
|
79
|
+
extensions: []
|
|
80
|
+
|
|
81
|
+
extra_rdoc_files:
|
|
82
|
+
- README.rdoc
|
|
83
|
+
files:
|
|
84
|
+
- .gitignore
|
|
85
|
+
- .watchr
|
|
86
|
+
- HISTORY
|
|
87
|
+
- MIT_LICENSE
|
|
88
|
+
- README.rdoc
|
|
89
|
+
- Rakefile
|
|
90
|
+
- VERSION
|
|
91
|
+
- caliper.yml
|
|
92
|
+
- humanoid.gemspec
|
|
93
|
+
- lib/humanoid.rb
|
|
94
|
+
- lib/humanoid/associations.rb
|
|
95
|
+
- lib/humanoid/associations/belongs_to.rb
|
|
96
|
+
- lib/humanoid/associations/belongs_to_related.rb
|
|
97
|
+
- lib/humanoid/associations/has_many.rb
|
|
98
|
+
- lib/humanoid/associations/has_many_related.rb
|
|
99
|
+
- lib/humanoid/associations/has_one.rb
|
|
100
|
+
- lib/humanoid/associations/has_one_related.rb
|
|
101
|
+
- lib/humanoid/associations/options.rb
|
|
102
|
+
- lib/humanoid/associations/proxy.rb
|
|
103
|
+
- lib/humanoid/attributes.rb
|
|
104
|
+
- lib/humanoid/callbacks.rb
|
|
105
|
+
- lib/humanoid/collection.rb
|
|
106
|
+
- lib/humanoid/collections/cyclic_iterator.rb
|
|
107
|
+
- lib/humanoid/collections/master.rb
|
|
108
|
+
- lib/humanoid/collections/mimic.rb
|
|
109
|
+
- lib/humanoid/collections/operations.rb
|
|
110
|
+
- lib/humanoid/collections/slaves.rb
|
|
111
|
+
- lib/humanoid/commands.rb
|
|
112
|
+
- lib/humanoid/commands/create.rb
|
|
113
|
+
- lib/humanoid/commands/delete.rb
|
|
114
|
+
- lib/humanoid/commands/delete_all.rb
|
|
115
|
+
- lib/humanoid/commands/deletion.rb
|
|
116
|
+
- lib/humanoid/commands/destroy.rb
|
|
117
|
+
- lib/humanoid/commands/destroy_all.rb
|
|
118
|
+
- lib/humanoid/commands/save.rb
|
|
119
|
+
- lib/humanoid/components.rb
|
|
120
|
+
- lib/humanoid/config.rb
|
|
121
|
+
- lib/humanoid/contexts.rb
|
|
122
|
+
- lib/humanoid/contexts/enumerable.rb
|
|
123
|
+
- lib/humanoid/contexts/ids.rb
|
|
124
|
+
- lib/humanoid/contexts/mongo.rb
|
|
125
|
+
- lib/humanoid/contexts/paging.rb
|
|
126
|
+
- lib/humanoid/criteria.rb
|
|
127
|
+
- lib/humanoid/criterion/complex.rb
|
|
128
|
+
- lib/humanoid/criterion/exclusion.rb
|
|
129
|
+
- lib/humanoid/criterion/inclusion.rb
|
|
130
|
+
- lib/humanoid/criterion/optional.rb
|
|
131
|
+
- lib/humanoid/cursor.rb
|
|
132
|
+
- lib/humanoid/document.rb
|
|
133
|
+
- lib/humanoid/enslavement.rb
|
|
134
|
+
- lib/humanoid/errors.rb
|
|
135
|
+
- lib/humanoid/extensions.rb
|
|
136
|
+
- lib/humanoid/extensions/array/accessors.rb
|
|
137
|
+
- lib/humanoid/extensions/array/aliasing.rb
|
|
138
|
+
- lib/humanoid/extensions/array/assimilation.rb
|
|
139
|
+
- lib/humanoid/extensions/array/conversions.rb
|
|
140
|
+
- lib/humanoid/extensions/array/parentization.rb
|
|
141
|
+
- lib/humanoid/extensions/boolean/conversions.rb
|
|
142
|
+
- lib/humanoid/extensions/date/conversions.rb
|
|
143
|
+
- lib/humanoid/extensions/datetime/conversions.rb
|
|
144
|
+
- lib/humanoid/extensions/float/conversions.rb
|
|
145
|
+
- lib/humanoid/extensions/hash/accessors.rb
|
|
146
|
+
- lib/humanoid/extensions/hash/assimilation.rb
|
|
147
|
+
- lib/humanoid/extensions/hash/conversions.rb
|
|
148
|
+
- lib/humanoid/extensions/hash/criteria_helpers.rb
|
|
149
|
+
- lib/humanoid/extensions/hash/scoping.rb
|
|
150
|
+
- lib/humanoid/extensions/integer/conversions.rb
|
|
151
|
+
- lib/humanoid/extensions/nil/assimilation.rb
|
|
152
|
+
- lib/humanoid/extensions/object/conversions.rb
|
|
153
|
+
- lib/humanoid/extensions/proc/scoping.rb
|
|
154
|
+
- lib/humanoid/extensions/string/conversions.rb
|
|
155
|
+
- lib/humanoid/extensions/string/inflections.rb
|
|
156
|
+
- lib/humanoid/extensions/symbol/inflections.rb
|
|
157
|
+
- lib/humanoid/extensions/time/conversions.rb
|
|
158
|
+
- lib/humanoid/factory.rb
|
|
159
|
+
- lib/humanoid/field.rb
|
|
160
|
+
- lib/humanoid/fields.rb
|
|
161
|
+
- lib/humanoid/finders.rb
|
|
162
|
+
- lib/humanoid/identity.rb
|
|
163
|
+
- lib/humanoid/indexes.rb
|
|
164
|
+
- lib/humanoid/matchers.rb
|
|
165
|
+
- lib/humanoid/matchers/all.rb
|
|
166
|
+
- lib/humanoid/matchers/default.rb
|
|
167
|
+
- lib/humanoid/matchers/exists.rb
|
|
168
|
+
- lib/humanoid/matchers/gt.rb
|
|
169
|
+
- lib/humanoid/matchers/gte.rb
|
|
170
|
+
- lib/humanoid/matchers/in.rb
|
|
171
|
+
- lib/humanoid/matchers/lt.rb
|
|
172
|
+
- lib/humanoid/matchers/lte.rb
|
|
173
|
+
- lib/humanoid/matchers/ne.rb
|
|
174
|
+
- lib/humanoid/matchers/nin.rb
|
|
175
|
+
- lib/humanoid/matchers/size.rb
|
|
176
|
+
- lib/humanoid/memoization.rb
|
|
177
|
+
- lib/humanoid/named_scope.rb
|
|
178
|
+
- lib/humanoid/scope.rb
|
|
179
|
+
- lib/humanoid/timestamps.rb
|
|
180
|
+
- lib/humanoid/versioning.rb
|
|
181
|
+
- perf/benchmark.rb
|
|
182
|
+
- spec/integration/humanoid/associations_spec.rb
|
|
183
|
+
- spec/integration/humanoid/attributes_spec.rb
|
|
184
|
+
- spec/integration/humanoid/commands_spec.rb
|
|
185
|
+
- spec/integration/humanoid/contexts/enumerable_spec.rb
|
|
186
|
+
- spec/integration/humanoid/criteria_spec.rb
|
|
187
|
+
- spec/integration/humanoid/document_spec.rb
|
|
188
|
+
- spec/integration/humanoid/extensions_spec.rb
|
|
189
|
+
- spec/integration/humanoid/finders_spec.rb
|
|
190
|
+
- spec/integration/humanoid/inheritance_spec.rb
|
|
191
|
+
- spec/integration/humanoid/named_scope_spec.rb
|
|
192
|
+
- spec/models/address.rb
|
|
193
|
+
- spec/models/animal.rb
|
|
194
|
+
- spec/models/comment.rb
|
|
195
|
+
- spec/models/country_code.rb
|
|
196
|
+
- spec/models/employer.rb
|
|
197
|
+
- spec/models/game.rb
|
|
198
|
+
- spec/models/inheritance.rb
|
|
199
|
+
- spec/models/location.rb
|
|
200
|
+
- spec/models/mixed_drink.rb
|
|
201
|
+
- spec/models/name.rb
|
|
202
|
+
- spec/models/namespacing.rb
|
|
203
|
+
- spec/models/patient.rb
|
|
204
|
+
- spec/models/person.rb
|
|
205
|
+
- spec/models/pet.rb
|
|
206
|
+
- spec/models/pet_owner.rb
|
|
207
|
+
- spec/models/phone.rb
|
|
208
|
+
- spec/models/post.rb
|
|
209
|
+
- spec/models/translation.rb
|
|
210
|
+
- spec/models/vet_visit.rb
|
|
211
|
+
- spec/spec.opts
|
|
212
|
+
- spec/spec_helper.rb
|
|
213
|
+
- spec/unit/mongoid/associations/belongs_to_related_spec.rb
|
|
214
|
+
- spec/unit/mongoid/associations/belongs_to_spec.rb
|
|
215
|
+
- spec/unit/mongoid/associations/has_many_related_spec.rb
|
|
216
|
+
- spec/unit/mongoid/associations/has_many_spec.rb
|
|
217
|
+
- spec/unit/mongoid/associations/has_one_related_spec.rb
|
|
218
|
+
- spec/unit/mongoid/associations/has_one_spec.rb
|
|
219
|
+
- spec/unit/mongoid/associations/options_spec.rb
|
|
220
|
+
- spec/unit/mongoid/associations_spec.rb
|
|
221
|
+
- spec/unit/mongoid/attributes_spec.rb
|
|
222
|
+
- spec/unit/mongoid/callbacks_spec.rb
|
|
223
|
+
- spec/unit/mongoid/collection_spec.rb
|
|
224
|
+
- spec/unit/mongoid/collections/cyclic_iterator_spec.rb
|
|
225
|
+
- spec/unit/mongoid/collections/master_spec.rb
|
|
226
|
+
- spec/unit/mongoid/collections/mimic_spec.rb
|
|
227
|
+
- spec/unit/mongoid/collections/slaves_spec.rb
|
|
228
|
+
- spec/unit/mongoid/commands/create_spec.rb
|
|
229
|
+
- spec/unit/mongoid/commands/delete_all_spec.rb
|
|
230
|
+
- spec/unit/mongoid/commands/delete_spec.rb
|
|
231
|
+
- spec/unit/mongoid/commands/destroy_all_spec.rb
|
|
232
|
+
- spec/unit/mongoid/commands/destroy_spec.rb
|
|
233
|
+
- spec/unit/mongoid/commands/save_spec.rb
|
|
234
|
+
- spec/unit/mongoid/commands_spec.rb
|
|
235
|
+
- spec/unit/mongoid/config_spec.rb
|
|
236
|
+
- spec/unit/mongoid/contexts/enumerable_spec.rb
|
|
237
|
+
- spec/unit/mongoid/contexts/mongo_spec.rb
|
|
238
|
+
- spec/unit/mongoid/contexts_spec.rb
|
|
239
|
+
- spec/unit/mongoid/criteria_spec.rb
|
|
240
|
+
- spec/unit/mongoid/criterion/complex_spec.rb
|
|
241
|
+
- spec/unit/mongoid/criterion/exclusion_spec.rb
|
|
242
|
+
- spec/unit/mongoid/criterion/inclusion_spec.rb
|
|
243
|
+
- spec/unit/mongoid/criterion/optional_spec.rb
|
|
244
|
+
- spec/unit/mongoid/cursor_spec.rb
|
|
245
|
+
- spec/unit/mongoid/document_spec.rb
|
|
246
|
+
- spec/unit/mongoid/enslavement_spec.rb
|
|
247
|
+
- spec/unit/mongoid/errors_spec.rb
|
|
248
|
+
- spec/unit/mongoid/extensions/array/accessors_spec.rb
|
|
249
|
+
- spec/unit/mongoid/extensions/array/assimilation_spec.rb
|
|
250
|
+
- spec/unit/mongoid/extensions/array/conversions_spec.rb
|
|
251
|
+
- spec/unit/mongoid/extensions/array/parentization_spec.rb
|
|
252
|
+
- spec/unit/mongoid/extensions/boolean/conversions_spec.rb
|
|
253
|
+
- spec/unit/mongoid/extensions/date/conversions_spec.rb
|
|
254
|
+
- spec/unit/mongoid/extensions/datetime/conversions_spec.rb
|
|
255
|
+
- spec/unit/mongoid/extensions/float/conversions_spec.rb
|
|
256
|
+
- spec/unit/mongoid/extensions/hash/accessors_spec.rb
|
|
257
|
+
- spec/unit/mongoid/extensions/hash/assimilation_spec.rb
|
|
258
|
+
- spec/unit/mongoid/extensions/hash/conversions_spec.rb
|
|
259
|
+
- spec/unit/mongoid/extensions/hash/criteria_helpers_spec.rb
|
|
260
|
+
- spec/unit/mongoid/extensions/hash/scoping_spec.rb
|
|
261
|
+
- spec/unit/mongoid/extensions/integer/conversions_spec.rb
|
|
262
|
+
- spec/unit/mongoid/extensions/nil/assimilation_spec.rb
|
|
263
|
+
- spec/unit/mongoid/extensions/object/conversions_spec.rb
|
|
264
|
+
- spec/unit/mongoid/extensions/proc/scoping_spec.rb
|
|
265
|
+
- spec/unit/mongoid/extensions/string/conversions_spec.rb
|
|
266
|
+
- spec/unit/mongoid/extensions/string/inflections_spec.rb
|
|
267
|
+
- spec/unit/mongoid/extensions/symbol/inflections_spec.rb
|
|
268
|
+
- spec/unit/mongoid/extensions/time/conversions_spec.rb
|
|
269
|
+
- spec/unit/mongoid/factory_spec.rb
|
|
270
|
+
- spec/unit/mongoid/field_spec.rb
|
|
271
|
+
- spec/unit/mongoid/fields_spec.rb
|
|
272
|
+
- spec/unit/mongoid/finders_spec.rb
|
|
273
|
+
- spec/unit/mongoid/identity_spec.rb
|
|
274
|
+
- spec/unit/mongoid/indexes_spec.rb
|
|
275
|
+
- spec/unit/mongoid/matchers/all_spec.rb
|
|
276
|
+
- spec/unit/mongoid/matchers/default_spec.rb
|
|
277
|
+
- spec/unit/mongoid/matchers/exists_spec.rb
|
|
278
|
+
- spec/unit/mongoid/matchers/gt_spec.rb
|
|
279
|
+
- spec/unit/mongoid/matchers/gte_spec.rb
|
|
280
|
+
- spec/unit/mongoid/matchers/in_spec.rb
|
|
281
|
+
- spec/unit/mongoid/matchers/lt_spec.rb
|
|
282
|
+
- spec/unit/mongoid/matchers/lte_spec.rb
|
|
283
|
+
- spec/unit/mongoid/matchers/ne_spec.rb
|
|
284
|
+
- spec/unit/mongoid/matchers/nin_spec.rb
|
|
285
|
+
- spec/unit/mongoid/matchers/size_spec.rb
|
|
286
|
+
- spec/unit/mongoid/matchers_spec.rb
|
|
287
|
+
- spec/unit/mongoid/memoization_spec.rb
|
|
288
|
+
- spec/unit/mongoid/named_scope_spec.rb
|
|
289
|
+
- spec/unit/mongoid/scope_spec.rb
|
|
290
|
+
- spec/unit/mongoid/timestamps_spec.rb
|
|
291
|
+
- spec/unit/mongoid/versioning_spec.rb
|
|
292
|
+
- spec/unit/mongoid_spec.rb
|
|
293
|
+
has_rdoc: true
|
|
294
|
+
homepage: http://mongoid.org
|
|
295
|
+
licenses: []
|
|
296
|
+
|
|
297
|
+
post_install_message:
|
|
298
|
+
rdoc_options:
|
|
299
|
+
- --charset=UTF-8
|
|
300
|
+
require_paths:
|
|
301
|
+
- lib
|
|
302
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
303
|
+
requirements:
|
|
304
|
+
- - ">="
|
|
305
|
+
- !ruby/object:Gem::Version
|
|
306
|
+
version: "0"
|
|
307
|
+
version:
|
|
308
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
309
|
+
requirements:
|
|
310
|
+
- - ">="
|
|
311
|
+
- !ruby/object:Gem::Version
|
|
312
|
+
version: "0"
|
|
313
|
+
version:
|
|
314
|
+
requirements: []
|
|
315
|
+
|
|
316
|
+
rubyforge_project:
|
|
317
|
+
rubygems_version: 1.3.5
|
|
318
|
+
signing_key:
|
|
319
|
+
specification_version: 3
|
|
320
|
+
summary: A mirror of Mongoid (an awesome Ruby ODM framework for MongoDB) with a name I can say out loud.
|
|
321
|
+
test_files:
|
|
322
|
+
- spec/integration/humanoid/associations_spec.rb
|
|
323
|
+
- spec/integration/humanoid/attributes_spec.rb
|
|
324
|
+
- spec/integration/humanoid/commands_spec.rb
|
|
325
|
+
- spec/integration/humanoid/contexts/enumerable_spec.rb
|
|
326
|
+
- spec/integration/humanoid/criteria_spec.rb
|
|
327
|
+
- spec/integration/humanoid/document_spec.rb
|
|
328
|
+
- spec/integration/humanoid/extensions_spec.rb
|
|
329
|
+
- spec/integration/humanoid/finders_spec.rb
|
|
330
|
+
- spec/integration/humanoid/inheritance_spec.rb
|
|
331
|
+
- spec/integration/humanoid/named_scope_spec.rb
|
|
332
|
+
- spec/models/address.rb
|
|
333
|
+
- spec/models/animal.rb
|
|
334
|
+
- spec/models/comment.rb
|
|
335
|
+
- spec/models/country_code.rb
|
|
336
|
+
- spec/models/employer.rb
|
|
337
|
+
- spec/models/game.rb
|
|
338
|
+
- spec/models/inheritance.rb
|
|
339
|
+
- spec/models/location.rb
|
|
340
|
+
- spec/models/mixed_drink.rb
|
|
341
|
+
- spec/models/name.rb
|
|
342
|
+
- spec/models/namespacing.rb
|
|
343
|
+
- spec/models/patient.rb
|
|
344
|
+
- spec/models/person.rb
|
|
345
|
+
- spec/models/pet.rb
|
|
346
|
+
- spec/models/pet_owner.rb
|
|
347
|
+
- spec/models/phone.rb
|
|
348
|
+
- spec/models/post.rb
|
|
349
|
+
- spec/models/translation.rb
|
|
350
|
+
- spec/models/vet_visit.rb
|
|
351
|
+
- spec/spec_helper.rb
|
|
352
|
+
- spec/unit/mongoid/associations/belongs_to_related_spec.rb
|
|
353
|
+
- spec/unit/mongoid/associations/belongs_to_spec.rb
|
|
354
|
+
- spec/unit/mongoid/associations/has_many_related_spec.rb
|
|
355
|
+
- spec/unit/mongoid/associations/has_many_spec.rb
|
|
356
|
+
- spec/unit/mongoid/associations/has_one_related_spec.rb
|
|
357
|
+
- spec/unit/mongoid/associations/has_one_spec.rb
|
|
358
|
+
- spec/unit/mongoid/associations/options_spec.rb
|
|
359
|
+
- spec/unit/mongoid/associations_spec.rb
|
|
360
|
+
- spec/unit/mongoid/attributes_spec.rb
|
|
361
|
+
- spec/unit/mongoid/callbacks_spec.rb
|
|
362
|
+
- spec/unit/mongoid/collection_spec.rb
|
|
363
|
+
- spec/unit/mongoid/collections/cyclic_iterator_spec.rb
|
|
364
|
+
- spec/unit/mongoid/collections/master_spec.rb
|
|
365
|
+
- spec/unit/mongoid/collections/mimic_spec.rb
|
|
366
|
+
- spec/unit/mongoid/collections/slaves_spec.rb
|
|
367
|
+
- spec/unit/mongoid/commands/create_spec.rb
|
|
368
|
+
- spec/unit/mongoid/commands/delete_all_spec.rb
|
|
369
|
+
- spec/unit/mongoid/commands/delete_spec.rb
|
|
370
|
+
- spec/unit/mongoid/commands/destroy_all_spec.rb
|
|
371
|
+
- spec/unit/mongoid/commands/destroy_spec.rb
|
|
372
|
+
- spec/unit/mongoid/commands/save_spec.rb
|
|
373
|
+
- spec/unit/mongoid/commands_spec.rb
|
|
374
|
+
- spec/unit/mongoid/config_spec.rb
|
|
375
|
+
- spec/unit/mongoid/contexts/enumerable_spec.rb
|
|
376
|
+
- spec/unit/mongoid/contexts/mongo_spec.rb
|
|
377
|
+
- spec/unit/mongoid/contexts_spec.rb
|
|
378
|
+
- spec/unit/mongoid/criteria_spec.rb
|
|
379
|
+
- spec/unit/mongoid/criterion/complex_spec.rb
|
|
380
|
+
- spec/unit/mongoid/criterion/exclusion_spec.rb
|
|
381
|
+
- spec/unit/mongoid/criterion/inclusion_spec.rb
|
|
382
|
+
- spec/unit/mongoid/criterion/optional_spec.rb
|
|
383
|
+
- spec/unit/mongoid/cursor_spec.rb
|
|
384
|
+
- spec/unit/mongoid/document_spec.rb
|
|
385
|
+
- spec/unit/mongoid/enslavement_spec.rb
|
|
386
|
+
- spec/unit/mongoid/errors_spec.rb
|
|
387
|
+
- spec/unit/mongoid/extensions/array/accessors_spec.rb
|
|
388
|
+
- spec/unit/mongoid/extensions/array/assimilation_spec.rb
|
|
389
|
+
- spec/unit/mongoid/extensions/array/conversions_spec.rb
|
|
390
|
+
- spec/unit/mongoid/extensions/array/parentization_spec.rb
|
|
391
|
+
- spec/unit/mongoid/extensions/boolean/conversions_spec.rb
|
|
392
|
+
- spec/unit/mongoid/extensions/date/conversions_spec.rb
|
|
393
|
+
- spec/unit/mongoid/extensions/datetime/conversions_spec.rb
|
|
394
|
+
- spec/unit/mongoid/extensions/float/conversions_spec.rb
|
|
395
|
+
- spec/unit/mongoid/extensions/hash/accessors_spec.rb
|
|
396
|
+
- spec/unit/mongoid/extensions/hash/assimilation_spec.rb
|
|
397
|
+
- spec/unit/mongoid/extensions/hash/conversions_spec.rb
|
|
398
|
+
- spec/unit/mongoid/extensions/hash/criteria_helpers_spec.rb
|
|
399
|
+
- spec/unit/mongoid/extensions/hash/scoping_spec.rb
|
|
400
|
+
- spec/unit/mongoid/extensions/integer/conversions_spec.rb
|
|
401
|
+
- spec/unit/mongoid/extensions/nil/assimilation_spec.rb
|
|
402
|
+
- spec/unit/mongoid/extensions/object/conversions_spec.rb
|
|
403
|
+
- spec/unit/mongoid/extensions/proc/scoping_spec.rb
|
|
404
|
+
- spec/unit/mongoid/extensions/string/conversions_spec.rb
|
|
405
|
+
- spec/unit/mongoid/extensions/string/inflections_spec.rb
|
|
406
|
+
- spec/unit/mongoid/extensions/symbol/inflections_spec.rb
|
|
407
|
+
- spec/unit/mongoid/extensions/time/conversions_spec.rb
|
|
408
|
+
- spec/unit/mongoid/factory_spec.rb
|
|
409
|
+
- spec/unit/mongoid/field_spec.rb
|
|
410
|
+
- spec/unit/mongoid/fields_spec.rb
|
|
411
|
+
- spec/unit/mongoid/finders_spec.rb
|
|
412
|
+
- spec/unit/mongoid/identity_spec.rb
|
|
413
|
+
- spec/unit/mongoid/indexes_spec.rb
|
|
414
|
+
- spec/unit/mongoid/matchers/all_spec.rb
|
|
415
|
+
- spec/unit/mongoid/matchers/default_spec.rb
|
|
416
|
+
- spec/unit/mongoid/matchers/exists_spec.rb
|
|
417
|
+
- spec/unit/mongoid/matchers/gt_spec.rb
|
|
418
|
+
- spec/unit/mongoid/matchers/gte_spec.rb
|
|
419
|
+
- spec/unit/mongoid/matchers/in_spec.rb
|
|
420
|
+
- spec/unit/mongoid/matchers/lt_spec.rb
|
|
421
|
+
- spec/unit/mongoid/matchers/lte_spec.rb
|
|
422
|
+
- spec/unit/mongoid/matchers/ne_spec.rb
|
|
423
|
+
- spec/unit/mongoid/matchers/nin_spec.rb
|
|
424
|
+
- spec/unit/mongoid/matchers/size_spec.rb
|
|
425
|
+
- spec/unit/mongoid/matchers_spec.rb
|
|
426
|
+
- spec/unit/mongoid/memoization_spec.rb
|
|
427
|
+
- spec/unit/mongoid/named_scope_spec.rb
|
|
428
|
+
- spec/unit/mongoid/scope_spec.rb
|
|
429
|
+
- spec/unit/mongoid/timestamps_spec.rb
|
|
430
|
+
- spec/unit/mongoid/versioning_spec.rb
|
|
431
|
+
- spec/unit/mongoid_spec.rb
|