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 CHANGED
@@ -1,3 +1,4 @@
1
+ .bundle
1
2
  *.sw?
2
3
  .DS_Store
3
4
  coverage
File without changes
data/Gemfile CHANGED
@@ -1,9 +1,12 @@
1
- gem install activesupport -v ">= 3.0.0.beta"
2
- gem install activemodel -v ">=3.0.0.beta"
3
- gem install mongo -v "= 0.20.1"
4
- gem install bson -v "= 0.20.1"
5
- gem install bson_ext -v "= 0.20.1"
6
- gem install leshill-will_paginate -v "= 2.3.11"
7
- gem install rspec -v "= 1.3.0"
8
- gem install cucumber -v ">= 0.6.2"
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
@@ -1,6 +1,6 @@
1
1
  h1. MongoDoc
2
2
 
3
- Version: Hurricane (0.6.1) 2010/05/16
3
+ Version: Hurricane (0.6.2) 2010/06/25
4
4
 
5
5
  h2. Notes
6
6
 
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", "= 0.20.1"
15
- gem.add_dependency "bson", "= 0.20.1"
16
- gem.add_dependency "bson_ext", "= 0.20.1"
17
- gem.add_dependency "leshill-will_paginate", "= 2.3.11"
18
- gem.add_development_dependency "rspec", "= 1.3.0"
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 'spec/rake/spectask'
39
- Spec::Rake::SpecTask.new(:spec) do |spec|
40
- spec.spec_opts = ['--options', "#{File.expand_path(File.dirname(__FILE__))}/spec/spec.opts"]
41
- spec.libs << 'lib' << '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
- Spec::Rake::SpecTask.new(:rcov) do |spec|
46
- spec.spec_opts = ['--options', "#{File.expand_path(File.dirname(__FILE__))}/spec/spec.opts"]
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
1
+ 0.6.2
@@ -1,6 +1,6 @@
1
1
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
2
2
  require 'cucumber'
3
- require 'spec/expectations'
3
+ require 'rspec/expectations'
4
4
  require 'spec/bson_matchers'
5
5
  require 'mongo_doc'
6
6
  require 'active_support/json'
@@ -40,6 +40,7 @@ module MongoDoc
40
40
  end
41
41
 
42
42
  def attr_accessor_with_mongo(*args)
43
+ return attr_accessor_without_mongo(*args) if args.first == :validation_context
43
44
  opts = args.extract_options!
44
45
  default = opts.delete(:default)
45
46
  type = opts.delete(:type)
@@ -1,27 +1,46 @@
1
1
  module MongoDoc
2
2
  module Index
3
3
 
4
- # Create an index on a collection. For a unique index, pass the unique
5
- # option +:unique => true+. For compound indexes, pass pairs of fields and
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, unique)
29
+ collection.create_index(args.first, options_and_fields)
17
30
  else
18
- collection.create_index(to_mongo_direction(options_and_fields), unique)
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 == :desc ? Mongo::DESCENDING : Mongo::ASCENDING]}
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
@@ -1,10 +1,9 @@
1
1
  require 'mongo'
2
2
  require 'active_support'
3
3
  require 'active_support/core_ext'
4
- require 'will_paginate/collection'
5
4
 
6
5
  module MongoDoc
7
- VERSION = '0.6.1'
6
+ VERSION = '0.6.2'
8
7
  end
9
8
 
10
9
  require 'mongo_doc/connection'
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.1"
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-05-16}
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.6}
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
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>, ["= 0.20.1"])
214
- s.add_runtime_dependency(%q<bson>, ["= 0.20.1"])
215
- s.add_runtime_dependency(%q<bson_ext>, ["= 0.20.1"])
216
- s.add_runtime_dependency(%q<leshill-will_paginate>, ["= 2.3.11"])
217
- s.add_development_dependency(%q<rspec>, ["= 1.3.0"])
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>, ["= 0.20.1"])
223
- s.add_dependency(%q<bson>, ["= 0.20.1"])
224
- s.add_dependency(%q<bson_ext>, ["= 0.20.1"])
225
- s.add_dependency(%q<leshill-will_paginate>, ["= 2.3.11"])
226
- s.add_dependency(%q<rspec>, ["= 1.3.0"])
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>, ["= 0.20.1"])
233
- s.add_dependency(%q<bson>, ["= 0.20.1"])
234
- s.add_dependency(%q<bson_ext>, ["= 0.20.1"])
235
- s.add_dependency(%q<leshill-will_paginate>, ["= 2.3.11"])
236
- s.add_dependency(%q<rspec>, ["= 1.3.0"])
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
 
@@ -1,6 +1,6 @@
1
1
  # From http://gist.github.com/62943
2
2
  # Author http://github.com/trotter
3
- module Spec
3
+ module RSpec
4
4
  module Mocks
5
5
  module ArgumentMatchers
6
6
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), '..', '/spec_helper'))
1
+ require 'spec_helper'
2
2
 
3
3
  describe MongoDoc::Associations::CollectionProxy do
4
4
  class CollectionProxyTest
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
1
+ require 'spec_helper'
2
2
 
3
3
  describe "MongoDoc::Associations::DocumentProxy" do
4
4
  class Parent
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), '..', '/spec_helper'))
1
+ require 'spec_helper'
2
2
 
3
3
  describe MongoDoc::Associations::HashProxy do
4
4
  class HashProxyTest
@@ -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 == [:attr1, :attr2]
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
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "BSON for Mongo (BSON)" do
4
4
  describe "#decode" do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
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
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  # Resets for testing
4
4
  module MongoDoc
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require 'spec_helper'
2
2
 
3
3
  describe MongoDoc::Contexts do
4
4
 
data/spec/cursor_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "MongoDoc::Cursor" do
4
4
  let(:mongo_cursor) { stub('cursor') }
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "Saving embedded documents" do
4
4
  class NestedDocsRoot
data/spec/ext_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'spec_helper.rb'
1
+ require 'spec_helper'
2
2
 
3
3
  describe "Ruby Object Extensions" do
4
4
  context "Rails3 support" do
data/spec/finders_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper.rb"))
1
+ require 'spec_helper'
2
2
 
3
3
  describe MongoDoc::Finders do
4
4
  class FindersTest
data/spec/index_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "spec_helper.rb"
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, false)
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]), false)
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", false)
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
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require 'spec_helper'
2
2
 
3
3
  describe MongoDoc::Matchers do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "MongoDoc::Document _id and #new_record?" do
4
4
  class Child
data/spec/scope_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper.rb"))
1
+ require 'spec_helper'
2
2
 
3
3
  describe MongoDoc::Scope do
4
4
 
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 'spec'
5
- require 'spec/autorun'
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
- Spec::Runner.configure do |config|
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
- - 1
9
- version: 0.6.1
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-05-16 00:00:00 -04:00
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
- version: 3.0.0.beta
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
- version: 3.0.0.beta
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
- version: 0.20.1
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
- version: 0.20.1
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
- version: 0.20.1
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: leshill-will_paginate
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
- version: 1.3.0
117
+ - 0
118
+ - beta
119
+ - 12
120
+ version: 2.0.0.beta.12
118
121
  type: :development
119
- version_requirements: *id007
122
+ version_requirements: *id006
120
123
  - !ruby/object:Gem::Dependency
121
124
  name: cucumber
122
125
  prerelease: false
123
- requirement: &id008 !ruby/object:Gem::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
- - 6
130
- - 2
131
- version: 0.6.2
134
+ - 8
135
+ - 3
136
+ version: 0.8.3
132
137
  type: :development
133
- version_requirements: *id008
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.6
324
+ rubygems_version: 1.3.7
316
325
  signing_key:
317
326
  specification_version: 3
318
327
  summary: ODM for MongoDB