mongo_doc 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/{spec/spec.opts → .rspec} +0 -0
- data/Gemfile +11 -8
- data/README.textile +1 -1
- data/Rakefile +13 -16
- data/VERSION +1 -1
- data/features/support/support.rb +1 -1
- data/lib/mongo_doc/attributes.rb +1 -0
- data/lib/mongo_doc/index.rb +25 -6
- data/lib/mongo_doc.rb +1 -2
- data/mongo_doc.gemspec +26 -29
- data/spec/array_including_argument_matcher.rb +1 -1
- data/spec/associations/collection_proxy_spec.rb +1 -1
- data/spec/associations/document_proxy_spec.rb +1 -1
- data/spec/associations/hash_proxy_spec.rb +1 -1
- data/spec/attributes_spec.rb +14 -1
- data/spec/bson_spec.rb +1 -1
- data/spec/collection_spec.rb +2 -2
- data/spec/connection_spec.rb +1 -1
- data/spec/contexts_spec.rb +1 -1
- data/spec/cursor_spec.rb +1 -1
- data/spec/embedded_save_spec.rb +1 -1
- data/spec/ext_spec.rb +1 -1
- data/spec/finders_spec.rb +1 -1
- data/spec/index_spec.rb +15 -6
- data/spec/matchers_spec.rb +1 -1
- data/spec/new_record_spec.rb +1 -1
- data/spec/scope_spec.rb +1 -1
- data/spec/spec_helper.rb +3 -3
- metadata +52 -43
data/.gitignore
CHANGED
data/{spec/spec.opts → .rspec}
RENAMED
File without changes
|
data/Gemfile
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
gem
|
4
|
-
gem
|
5
|
-
gem
|
6
|
-
gem
|
7
|
-
gem
|
8
|
-
gem
|
1
|
+
source 'http://rubygems.org'
|
2
|
+
|
3
|
+
gem "activesupport", ">= 3.0.0.beta4"
|
4
|
+
gem "activemodel", ">= 3.0.0.beta4"
|
5
|
+
gem "bson", ">= 1.0.0"
|
6
|
+
gem "bson_ext", ">= 1.0.0"
|
7
|
+
gem "cucumber", ">= 0.8.3"
|
8
|
+
gem "jeweler", ">= 1.4.0"
|
9
|
+
gem "mongo", ">= 1.0.0"
|
10
|
+
gem "rspec", ">= 2.0.0.beta.12"
|
11
|
+
gem "tzinfo", ">= 0.3.22"
|
9
12
|
|
data/README.textile
CHANGED
data/Rakefile
CHANGED
@@ -9,14 +9,13 @@ begin
|
|
9
9
|
gem.email = "leshill@gmail.com"
|
10
10
|
gem.homepage = "http://github.com/leshill/mongodoc"
|
11
11
|
gem.authors = ["Les Hill"]
|
12
|
-
gem.add_dependency "activesupport", ">= 3.0.0.beta"
|
13
|
-
gem.add_dependency "activemodel", ">=3.0.0.beta"
|
14
|
-
gem.add_dependency "mongo", "
|
15
|
-
gem.add_dependency "bson", "
|
16
|
-
gem.add_dependency "bson_ext", "
|
17
|
-
gem.
|
18
|
-
gem.add_development_dependency "
|
19
|
-
gem.add_development_dependency "cucumber", ">= 0.6.2"
|
12
|
+
gem.add_dependency "activesupport", ">= 3.0.0.beta.4"
|
13
|
+
gem.add_dependency "activemodel", ">=3.0.0.beta.4"
|
14
|
+
gem.add_dependency "mongo", ">= 1.0.0"
|
15
|
+
gem.add_dependency "bson", ">= 1.0.0"
|
16
|
+
gem.add_dependency "bson_ext", ">= 1.0.0"
|
17
|
+
gem.add_development_dependency "rspec", ">= 2.0.0.beta.12"
|
18
|
+
gem.add_development_dependency "cucumber", ">= 0.8.3"
|
20
19
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
21
20
|
end
|
22
21
|
Jeweler::GemcutterTasks.new
|
@@ -35,16 +34,14 @@ namespace :cucumber do
|
|
35
34
|
end
|
36
35
|
end
|
37
36
|
|
38
|
-
require '
|
39
|
-
|
40
|
-
spec.
|
41
|
-
spec.
|
42
|
-
spec.spec_files = FileList['spec/**/*_spec.rb']
|
37
|
+
require 'rspec/core/rake_task'
|
38
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
39
|
+
spec.ruby_opts = ['--options', "#{File.expand_path(File.dirname(__FILE__))}/spec/spec.opts"]
|
40
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
43
41
|
end
|
44
42
|
|
45
|
-
|
46
|
-
spec.
|
47
|
-
spec.libs << 'lib' << 'spec'
|
43
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
44
|
+
spec.ruby_opts = ['--options', "#{File.expand_path(File.dirname(__FILE__))}/spec/spec.opts"]
|
48
45
|
spec.pattern = 'spec/**/*_spec.rb'
|
49
46
|
spec.rcov = true
|
50
47
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/features/support/support.rb
CHANGED
data/lib/mongo_doc/attributes.rb
CHANGED
data/lib/mongo_doc/index.rb
CHANGED
@@ -1,27 +1,46 @@
|
|
1
1
|
module MongoDoc
|
2
2
|
module Index
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
DIRECTION = { :asc => Mongo::ASCENDING,
|
5
|
+
:desc => Mongo::DESCENDING,
|
6
|
+
:geo2d => Mongo::GEO2D }
|
7
|
+
OPTIONS = [:min, :max, :background, :unique, :dropDups]
|
8
|
+
|
9
|
+
# Create an index on a collection.
|
10
|
+
#
|
11
|
+
# For compound indexes, pass pairs of fields and
|
6
12
|
# directions (+:asc+, +:desc+) as a hash.
|
7
13
|
#
|
14
|
+
# For a unique index, pass the option +:unique => true+.
|
15
|
+
# To create the index in the background, pass the options +:background => true+.
|
16
|
+
# If you want to remove duplicates from existing records when creating the
|
17
|
+
# unique index, pass the option +:dropDups => true+
|
18
|
+
#
|
19
|
+
# For GeoIndexing, specify the minimum and maximum longitude and latitude
|
20
|
+
# values with the +:min+ and +:max+ options.
|
21
|
+
#
|
8
22
|
# <tt>Person.index(:last_name)</tt>
|
9
23
|
# <tt>Person.index(:ssn, :unique => true)</tt>
|
10
24
|
# <tt>Person.index(:first_name => :asc, :last_name => :asc)</tt>
|
11
25
|
# <tt>Person.index(:first_name => :asc, :last_name => :asc, :unique => true)</tt>
|
12
26
|
def index(*args)
|
13
27
|
options_and_fields = args.extract_options!
|
14
|
-
unique = options_and_fields.delete(:unique) || false
|
15
28
|
if args.any?
|
16
|
-
collection.create_index(args.first,
|
29
|
+
collection.create_index(args.first, options_and_fields)
|
17
30
|
else
|
18
|
-
|
31
|
+
fields = options_and_fields.except(*OPTIONS)
|
32
|
+
options = options_and_fields.slice(*OPTIONS)
|
33
|
+
collection.create_index(to_mongo_direction(fields), options)
|
19
34
|
end
|
20
35
|
end
|
21
36
|
|
22
37
|
protected
|
23
38
|
def to_mongo_direction(fields_hash)
|
24
|
-
fields_hash.to_a.map {|field| [field.first, field.last
|
39
|
+
fields_hash.to_a.map {|field| [field.first, direction(field.last)]}
|
40
|
+
end
|
41
|
+
|
42
|
+
def direction(dir)
|
43
|
+
DIRECTION[dir] || Mongo::ASCENDING
|
25
44
|
end
|
26
45
|
end
|
27
46
|
end
|
data/lib/mongo_doc.rb
CHANGED
data/mongo_doc.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mongo_doc}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Les Hill"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-06-25}
|
13
13
|
s.description = %q{ODM for MongoDB}
|
14
14
|
s.email = %q{leshill@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.files = [
|
21
21
|
".document",
|
22
22
|
".gitignore",
|
23
|
+
".rspec",
|
23
24
|
".rvmrc",
|
24
25
|
"Gemfile",
|
25
26
|
"HISTORY.md",
|
@@ -159,14 +160,13 @@ Gem::Specification.new do |s|
|
|
159
160
|
"spec/new_record_spec.rb",
|
160
161
|
"spec/root_spec.rb",
|
161
162
|
"spec/scope_spec.rb",
|
162
|
-
"spec/spec.opts",
|
163
163
|
"spec/spec_helper.rb",
|
164
164
|
"spec/validations_spec.rb"
|
165
165
|
]
|
166
166
|
s.homepage = %q{http://github.com/leshill/mongodoc}
|
167
167
|
s.rdoc_options = ["--charset=UTF-8"]
|
168
168
|
s.require_paths = ["lib"]
|
169
|
-
s.rubygems_version = %q{1.3.
|
169
|
+
s.rubygems_version = %q{1.3.7}
|
170
170
|
s.summary = %q{ODM for MongoDB}
|
171
171
|
s.test_files = [
|
172
172
|
"spec/array_including_argument_matcher.rb",
|
@@ -207,34 +207,31 @@ Gem::Specification.new do |s|
|
|
207
207
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
208
208
|
s.specification_version = 3
|
209
209
|
|
210
|
-
if Gem::Version.new(Gem::
|
211
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.beta"])
|
212
|
-
s.add_runtime_dependency(%q<activemodel>, [">= 3.0.0.beta"])
|
213
|
-
s.add_runtime_dependency(%q<mongo>, ["
|
214
|
-
s.add_runtime_dependency(%q<bson>, ["
|
215
|
-
s.add_runtime_dependency(%q<bson_ext>, ["
|
216
|
-
s.
|
217
|
-
s.add_development_dependency(%q<
|
218
|
-
s.add_development_dependency(%q<cucumber>, [">= 0.6.2"])
|
210
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
211
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.beta.4"])
|
212
|
+
s.add_runtime_dependency(%q<activemodel>, [">= 3.0.0.beta.4"])
|
213
|
+
s.add_runtime_dependency(%q<mongo>, [">= 1.0.0"])
|
214
|
+
s.add_runtime_dependency(%q<bson>, [">= 1.0.0"])
|
215
|
+
s.add_runtime_dependency(%q<bson_ext>, [">= 1.0.0"])
|
216
|
+
s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.12"])
|
217
|
+
s.add_development_dependency(%q<cucumber>, [">= 0.8.3"])
|
219
218
|
else
|
220
|
-
s.add_dependency(%q<activesupport>, [">= 3.0.0.beta"])
|
221
|
-
s.add_dependency(%q<activemodel>, [">= 3.0.0.beta"])
|
222
|
-
s.add_dependency(%q<mongo>, ["
|
223
|
-
s.add_dependency(%q<bson>, ["
|
224
|
-
s.add_dependency(%q<bson_ext>, ["
|
225
|
-
s.add_dependency(%q<
|
226
|
-
s.add_dependency(%q<
|
227
|
-
s.add_dependency(%q<cucumber>, [">= 0.6.2"])
|
219
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0.beta.4"])
|
220
|
+
s.add_dependency(%q<activemodel>, [">= 3.0.0.beta.4"])
|
221
|
+
s.add_dependency(%q<mongo>, [">= 1.0.0"])
|
222
|
+
s.add_dependency(%q<bson>, [">= 1.0.0"])
|
223
|
+
s.add_dependency(%q<bson_ext>, [">= 1.0.0"])
|
224
|
+
s.add_dependency(%q<rspec>, [">= 2.0.0.beta.12"])
|
225
|
+
s.add_dependency(%q<cucumber>, [">= 0.8.3"])
|
228
226
|
end
|
229
227
|
else
|
230
|
-
s.add_dependency(%q<activesupport>, [">= 3.0.0.beta"])
|
231
|
-
s.add_dependency(%q<activemodel>, [">= 3.0.0.beta"])
|
232
|
-
s.add_dependency(%q<mongo>, ["
|
233
|
-
s.add_dependency(%q<bson>, ["
|
234
|
-
s.add_dependency(%q<bson_ext>, ["
|
235
|
-
s.add_dependency(%q<
|
236
|
-
s.add_dependency(%q<
|
237
|
-
s.add_dependency(%q<cucumber>, [">= 0.6.2"])
|
228
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0.beta.4"])
|
229
|
+
s.add_dependency(%q<activemodel>, [">= 3.0.0.beta.4"])
|
230
|
+
s.add_dependency(%q<mongo>, [">= 1.0.0"])
|
231
|
+
s.add_dependency(%q<bson>, [">= 1.0.0"])
|
232
|
+
s.add_dependency(%q<bson_ext>, [">= 1.0.0"])
|
233
|
+
s.add_dependency(%q<rspec>, [">= 2.0.0.beta.12"])
|
234
|
+
s.add_dependency(%q<cucumber>, [">= 0.8.3"])
|
238
235
|
end
|
239
236
|
end
|
240
237
|
|
data/spec/attributes_spec.rb
CHANGED
@@ -27,10 +27,23 @@ describe "MongoDoc::Attributes" do
|
|
27
27
|
include MongoDoc::Attributes
|
28
28
|
|
29
29
|
attr_accessor :attr1, :attr2
|
30
|
+
attr_accessor :validation_context
|
30
31
|
end
|
31
32
|
|
32
33
|
it "adds its arguments to _keys" do
|
33
|
-
TestKeys._keys.should
|
34
|
+
TestKeys._keys.should include(:attr1, :attr2)
|
35
|
+
end
|
36
|
+
|
37
|
+
context "the :validation_context attribute from ActiveModel" do
|
38
|
+
|
39
|
+
it "is an attribute" do
|
40
|
+
TestKeys.new.should respond_to(:validation_context)
|
41
|
+
TestKeys.new.should respond_to(:validation_context=)
|
42
|
+
end
|
43
|
+
|
44
|
+
it "is not in _keys" do
|
45
|
+
TestKeys._keys.should_not include(:validation_context)
|
46
|
+
end
|
34
47
|
end
|
35
48
|
|
36
49
|
describe "accessors" do
|
data/spec/bson_spec.rb
CHANGED
data/spec/collection_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
describe "MongoDoc::Collection" do
|
4
4
|
|
@@ -85,9 +85,9 @@ describe "MongoDoc::Collection" do
|
|
85
85
|
|
86
86
|
context "#insert" do
|
87
87
|
let(:doc) { {'sample' => 'data'} }
|
88
|
+
let(:options) { {:safe => false} }
|
88
89
|
|
89
90
|
it "delegates to the Mongo::Collection" do
|
90
|
-
options = {:safe => false}
|
91
91
|
mongo_collection.should_receive(:insert).with(doc, options)
|
92
92
|
collection.insert(doc, options)
|
93
93
|
end
|
data/spec/connection_spec.rb
CHANGED
data/spec/contexts_spec.rb
CHANGED
data/spec/cursor_spec.rb
CHANGED
data/spec/embedded_save_spec.rb
CHANGED
data/spec/ext_spec.rb
CHANGED
data/spec/finders_spec.rb
CHANGED
data/spec/index_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
describe MongoDoc::Index do
|
4
4
|
class Address
|
@@ -15,6 +15,7 @@ describe MongoDoc::Index do
|
|
15
15
|
attr_accessor :last_name
|
16
16
|
attr_accessor :birthdate, :type => Date
|
17
17
|
attr_accessor :notes
|
18
|
+
attr_accessor :location, :type => Array
|
18
19
|
|
19
20
|
embed :addresses
|
20
21
|
|
@@ -26,6 +27,7 @@ describe MongoDoc::Index do
|
|
26
27
|
# index :first_name => :asc, :last_name => :asc
|
27
28
|
# index :last_name => :asc, :first_name => :asc, :unique => true
|
28
29
|
# index "addresses.state"
|
30
|
+
# index :location => :geo2d
|
29
31
|
end
|
30
32
|
|
31
33
|
let(:collection) { stub('collection') }
|
@@ -37,12 +39,12 @@ describe MongoDoc::Index do
|
|
37
39
|
context "Simple index" do
|
38
40
|
|
39
41
|
it "creates an index for the field" do
|
40
|
-
collection.should_receive(:create_index).with(:birthdate,
|
42
|
+
collection.should_receive(:create_index).with(:birthdate, {})
|
41
43
|
IndexTest.index(:birthdate)
|
42
44
|
end
|
43
45
|
|
44
46
|
it "creates a unique index for the field" do
|
45
|
-
collection.should_receive(:create_index).with(:birthdate, true)
|
47
|
+
collection.should_receive(:create_index).with(:birthdate, {:unique => true})
|
46
48
|
IndexTest.index(:birthdate, :unique => true)
|
47
49
|
end
|
48
50
|
|
@@ -51,20 +53,27 @@ describe MongoDoc::Index do
|
|
51
53
|
context "Compound index" do
|
52
54
|
|
53
55
|
it "creates a compound index" do
|
54
|
-
collection.should_receive(:create_index).with(array_including([:first_name, Mongo::ASCENDING], [:last_name, Mongo::ASCENDING]),
|
56
|
+
collection.should_receive(:create_index).with(array_including([:first_name, Mongo::ASCENDING], [:last_name, Mongo::ASCENDING]), {})
|
55
57
|
IndexTest.index(:first_name => :asc, :last_name => :asc)
|
56
58
|
end
|
57
59
|
|
58
60
|
it "creates a unique compound index" do
|
59
|
-
collection.should_receive(:create_index).with(array_including([:first_name, Mongo::ASCENDING], [:last_name, Mongo::ASCENDING]), true)
|
61
|
+
collection.should_receive(:create_index).with(array_including([:first_name, Mongo::ASCENDING], [:last_name, Mongo::ASCENDING]), {:unique => true})
|
60
62
|
IndexTest.index(:first_name => :asc, :last_name => :asc, :unique => true)
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
64
66
|
context "Nested index" do
|
65
67
|
it "creates an index for the field" do
|
66
|
-
collection.should_receive(:create_index).with("addresses.state",
|
68
|
+
collection.should_receive(:create_index).with("addresses.state", {})
|
67
69
|
IndexTest.index("addresses.state")
|
68
70
|
end
|
69
71
|
end
|
72
|
+
|
73
|
+
context "Geo index" do
|
74
|
+
it "creates a geo index for the field" do
|
75
|
+
collection.should_receive(:create_index).with([[:location, Mongo::GEO2D]], {})
|
76
|
+
IndexTest.index(:location => :geo2d)
|
77
|
+
end
|
78
|
+
end
|
70
79
|
end
|
data/spec/matchers_spec.rb
CHANGED
data/spec/new_record_spec.rb
CHANGED
data/spec/scope_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
2
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
3
|
require 'mongo_doc'
|
4
|
-
require '
|
5
|
-
require '
|
4
|
+
require 'rspec'
|
5
|
+
require 'rspec/autorun'
|
6
6
|
require 'bson_matchers'
|
7
7
|
require 'hash_matchers'
|
8
8
|
require 'array_including_argument_matcher'
|
9
9
|
require 'document_ext'
|
10
10
|
|
11
|
-
|
11
|
+
RSpec.configure do |config|
|
12
12
|
config.include(BsonMatchers)
|
13
13
|
config.include(HashMatchers)
|
14
14
|
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Les Hill
|
@@ -14,123 +15,127 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-06-25 00:00:00 -04:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: activesupport
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 62196427
|
27
30
|
segments:
|
28
31
|
- 3
|
29
32
|
- 0
|
30
33
|
- 0
|
31
34
|
- beta
|
32
|
-
|
35
|
+
- 4
|
36
|
+
version: 3.0.0.beta.4
|
33
37
|
type: :runtime
|
34
38
|
version_requirements: *id001
|
35
39
|
- !ruby/object:Gem::Dependency
|
36
40
|
name: activemodel
|
37
41
|
prerelease: false
|
38
42
|
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
39
44
|
requirements:
|
40
45
|
- - ">="
|
41
46
|
- !ruby/object:Gem::Version
|
47
|
+
hash: 62196427
|
42
48
|
segments:
|
43
49
|
- 3
|
44
50
|
- 0
|
45
51
|
- 0
|
46
52
|
- beta
|
47
|
-
|
53
|
+
- 4
|
54
|
+
version: 3.0.0.beta.4
|
48
55
|
type: :runtime
|
49
56
|
version_requirements: *id002
|
50
57
|
- !ruby/object:Gem::Dependency
|
51
58
|
name: mongo
|
52
59
|
prerelease: false
|
53
60
|
requirement: &id003 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
54
62
|
requirements:
|
55
|
-
- - "
|
63
|
+
- - ">="
|
56
64
|
- !ruby/object:Gem::Version
|
65
|
+
hash: 23
|
57
66
|
segments:
|
58
|
-
- 0
|
59
|
-
- 20
|
60
67
|
- 1
|
61
|
-
|
68
|
+
- 0
|
69
|
+
- 0
|
70
|
+
version: 1.0.0
|
62
71
|
type: :runtime
|
63
72
|
version_requirements: *id003
|
64
73
|
- !ruby/object:Gem::Dependency
|
65
74
|
name: bson
|
66
75
|
prerelease: false
|
67
76
|
requirement: &id004 !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
68
78
|
requirements:
|
69
|
-
- - "
|
79
|
+
- - ">="
|
70
80
|
- !ruby/object:Gem::Version
|
81
|
+
hash: 23
|
71
82
|
segments:
|
72
|
-
- 0
|
73
|
-
- 20
|
74
83
|
- 1
|
75
|
-
|
84
|
+
- 0
|
85
|
+
- 0
|
86
|
+
version: 1.0.0
|
76
87
|
type: :runtime
|
77
88
|
version_requirements: *id004
|
78
89
|
- !ruby/object:Gem::Dependency
|
79
90
|
name: bson_ext
|
80
91
|
prerelease: false
|
81
92
|
requirement: &id005 !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
82
94
|
requirements:
|
83
|
-
- - "
|
95
|
+
- - ">="
|
84
96
|
- !ruby/object:Gem::Version
|
97
|
+
hash: 23
|
85
98
|
segments:
|
86
|
-
- 0
|
87
|
-
- 20
|
88
99
|
- 1
|
89
|
-
|
100
|
+
- 0
|
101
|
+
- 0
|
102
|
+
version: 1.0.0
|
90
103
|
type: :runtime
|
91
104
|
version_requirements: *id005
|
92
105
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
106
|
+
name: rspec
|
94
107
|
prerelease: false
|
95
108
|
requirement: &id006 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
96
110
|
requirements:
|
97
|
-
- - "
|
111
|
+
- - ">="
|
98
112
|
- !ruby/object:Gem::Version
|
113
|
+
hash: 62196475
|
99
114
|
segments:
|
100
115
|
- 2
|
101
|
-
- 3
|
102
|
-
- 11
|
103
|
-
version: 2.3.11
|
104
|
-
type: :runtime
|
105
|
-
version_requirements: *id006
|
106
|
-
- !ruby/object:Gem::Dependency
|
107
|
-
name: rspec
|
108
|
-
prerelease: false
|
109
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
110
|
-
requirements:
|
111
|
-
- - "="
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
segments:
|
114
|
-
- 1
|
115
|
-
- 3
|
116
116
|
- 0
|
117
|
-
|
117
|
+
- 0
|
118
|
+
- beta
|
119
|
+
- 12
|
120
|
+
version: 2.0.0.beta.12
|
118
121
|
type: :development
|
119
|
-
version_requirements: *
|
122
|
+
version_requirements: *id006
|
120
123
|
- !ruby/object:Gem::Dependency
|
121
124
|
name: cucumber
|
122
125
|
prerelease: false
|
123
|
-
requirement: &
|
126
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
124
128
|
requirements:
|
125
129
|
- - ">="
|
126
130
|
- !ruby/object:Gem::Version
|
131
|
+
hash: 57
|
127
132
|
segments:
|
128
133
|
- 0
|
129
|
-
-
|
130
|
-
-
|
131
|
-
version: 0.
|
134
|
+
- 8
|
135
|
+
- 3
|
136
|
+
version: 0.8.3
|
132
137
|
type: :development
|
133
|
-
version_requirements: *
|
138
|
+
version_requirements: *id007
|
134
139
|
description: ODM for MongoDB
|
135
140
|
email: leshill@gmail.com
|
136
141
|
executables: []
|
@@ -144,6 +149,7 @@ extra_rdoc_files:
|
|
144
149
|
files:
|
145
150
|
- .document
|
146
151
|
- .gitignore
|
152
|
+
- .rspec
|
147
153
|
- .rvmrc
|
148
154
|
- Gemfile
|
149
155
|
- HISTORY.md
|
@@ -283,7 +289,6 @@ files:
|
|
283
289
|
- spec/new_record_spec.rb
|
284
290
|
- spec/root_spec.rb
|
285
291
|
- spec/scope_spec.rb
|
286
|
-
- spec/spec.opts
|
287
292
|
- spec/spec_helper.rb
|
288
293
|
- spec/validations_spec.rb
|
289
294
|
has_rdoc: true
|
@@ -296,23 +301,27 @@ rdoc_options:
|
|
296
301
|
require_paths:
|
297
302
|
- lib
|
298
303
|
required_ruby_version: !ruby/object:Gem::Requirement
|
304
|
+
none: false
|
299
305
|
requirements:
|
300
306
|
- - ">="
|
301
307
|
- !ruby/object:Gem::Version
|
308
|
+
hash: 3
|
302
309
|
segments:
|
303
310
|
- 0
|
304
311
|
version: "0"
|
305
312
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
313
|
+
none: false
|
306
314
|
requirements:
|
307
315
|
- - ">="
|
308
316
|
- !ruby/object:Gem::Version
|
317
|
+
hash: 3
|
309
318
|
segments:
|
310
319
|
- 0
|
311
320
|
version: "0"
|
312
321
|
requirements: []
|
313
322
|
|
314
323
|
rubyforge_project:
|
315
|
-
rubygems_version: 1.3.
|
324
|
+
rubygems_version: 1.3.7
|
316
325
|
signing_key:
|
317
326
|
specification_version: 3
|
318
327
|
summary: ODM for MongoDB
|