mongomodel 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source "http://rubygems.org"
3
3
  gemspec
4
4
 
5
5
  gem "appraisal", "~> 0.3.6"
6
- gem "bson_ext", "~> 1.4"
6
+ gem "bson_ext", "~> 1.5"
7
7
  gem "tzinfo"
@@ -2,10 +2,10 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "appraisal", "~> 0.3.6"
6
- gem "bson_ext", "~> 1.4"
5
+ gem "bson_ext", "~> 1.5"
7
6
  gem "tzinfo"
8
- gem "activesupport", "3.1.0"
9
7
  gem "activemodel", "3.1.0"
8
+ gem "activesupport", "3.1.0"
9
+ gem "appraisal", "~> 0.3.6"
10
10
 
11
11
  gemspec :path=>"../"
@@ -1,10 +1,10 @@
1
1
  PATH
2
- remote: /Users/sam/Development/MongoDB/mongomodel
2
+ remote: /Users/sam/Work/mongomodel
3
3
  specs:
4
- mongomodel (0.4.1)
4
+ mongomodel (0.4.3)
5
5
  activemodel (~> 3.1)
6
6
  activesupport (~> 3.1)
7
- mongo (~> 1.4)
7
+ mongo (~> 1.5)
8
8
  will_paginate (~> 2.3.15)
9
9
 
10
10
  GEM
@@ -21,19 +21,20 @@ GEM
21
21
  bundler
22
22
  rake
23
23
  bcrypt-ruby (3.0.1)
24
- bson (1.4.0)
25
- bson_ext (1.4.0)
24
+ bson (1.5.2)
25
+ bson_ext (1.5.2)
26
+ bson (= 1.5.2)
26
27
  builder (3.0.0)
27
28
  diff-lcs (1.1.3)
28
- guard (0.8.6)
29
+ guard (0.8.8)
29
30
  thor (~> 0.14.6)
30
- guard-rspec (0.5.0)
31
+ guard-rspec (0.5.9)
31
32
  guard (>= 0.8.4)
32
33
  i18n (0.6.0)
33
- mongo (1.4.0)
34
- bson (= 1.4.0)
35
- multi_json (1.0.3)
36
- rake (0.9.2)
34
+ mongo (1.5.2)
35
+ bson (= 1.5.2)
36
+ multi_json (1.0.4)
37
+ rake (0.9.2.2)
37
38
  rspec (2.6.0)
38
39
  rspec-core (~> 2.6.0)
39
40
  rspec-expectations (~> 2.6.0)
@@ -43,7 +44,7 @@ GEM
43
44
  diff-lcs (~> 1.1.2)
44
45
  rspec-mocks (2.6.0)
45
46
  thor (0.14.6)
46
- tzinfo (0.3.29)
47
+ tzinfo (0.3.31)
47
48
  will_paginate (2.3.16)
48
49
 
49
50
  PLATFORMS
@@ -53,7 +54,7 @@ DEPENDENCIES
53
54
  activemodel (= 3.1.0)
54
55
  activesupport (= 3.1.0)
55
56
  appraisal (~> 0.3.6)
56
- bson_ext (~> 1.4)
57
+ bson_ext (~> 1.5)
57
58
  bundler (>= 1.0.0)
58
59
  guard-rspec (~> 0.5.0)
59
60
  mongomodel!
@@ -2,10 +2,10 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "appraisal", "~> 0.3.6"
6
- gem "bson_ext", "~> 1.4"
5
+ gem "bson_ext", "~> 1.5"
7
6
  gem "tzinfo"
8
- gem "activesupport", :git=>"https://github.com/rails/rails.git"
9
7
  gem "activemodel", :git=>"https://github.com/rails/rails.git"
8
+ gem "activesupport", :git=>"https://github.com/rails/rails.git"
9
+ gem "appraisal", "~> 0.3.6"
10
10
 
11
11
  gemspec :path=>"../"
@@ -1,10 +1,9 @@
1
1
  GIT
2
2
  remote: https://github.com/rails/rails.git
3
- revision: 22e611ed5b0a708d17ef2e7574bcdf2edf2db01b
3
+ revision: 38703ac8972c7e8f3f3f1ac95aa506cc4ae30ef0
4
4
  specs:
5
5
  activemodel (3.2.0.beta)
6
6
  activesupport (= 3.2.0.beta)
7
- bcrypt-ruby (~> 2.1.4)
8
7
  builder (~> 3.0.0)
9
8
  i18n (~> 0.6)
10
9
  activesupport (3.2.0.beta)
@@ -12,12 +11,12 @@ GIT
12
11
  multi_json (~> 1.0)
13
12
 
14
13
  PATH
15
- remote: /Users/sam/Development/MongoDB/mongomodel
14
+ remote: /Users/sam/Work/mongomodel
16
15
  specs:
17
- mongomodel (0.4.1)
16
+ mongomodel (0.4.3)
18
17
  activemodel (~> 3.1)
19
18
  activesupport (~> 3.1)
20
- mongo (~> 1.4)
19
+ mongo (~> 1.5)
21
20
  will_paginate (~> 2.3.15)
22
21
 
23
22
  GEM
@@ -26,20 +25,20 @@ GEM
26
25
  appraisal (0.3.8)
27
26
  bundler
28
27
  rake
29
- bcrypt-ruby (2.1.4)
30
- bson (1.4.0)
31
- bson_ext (1.4.0)
28
+ bson (1.5.2)
29
+ bson_ext (1.5.2)
30
+ bson (= 1.5.2)
32
31
  builder (3.0.0)
33
- diff-lcs (1.1.2)
34
- guard (0.8.6)
32
+ diff-lcs (1.1.3)
33
+ guard (0.8.8)
35
34
  thor (~> 0.14.6)
36
- guard-rspec (0.5.0)
35
+ guard-rspec (0.5.9)
37
36
  guard (>= 0.8.4)
38
37
  i18n (0.6.0)
39
- mongo (1.4.0)
40
- bson (= 1.4.0)
41
- multi_json (1.0.3)
42
- rake (0.9.2)
38
+ mongo (1.5.2)
39
+ bson (= 1.5.2)
40
+ multi_json (1.0.4)
41
+ rake (0.9.2.2)
43
42
  rspec (2.6.0)
44
43
  rspec-core (~> 2.6.0)
45
44
  rspec-expectations (~> 2.6.0)
@@ -49,7 +48,7 @@ GEM
49
48
  diff-lcs (~> 1.1.2)
50
49
  rspec-mocks (2.6.0)
51
50
  thor (0.14.6)
52
- tzinfo (0.3.29)
51
+ tzinfo (0.3.31)
53
52
  will_paginate (2.3.16)
54
53
 
55
54
  PLATFORMS
@@ -59,7 +58,7 @@ DEPENDENCIES
59
58
  activemodel!
60
59
  activesupport!
61
60
  appraisal (~> 0.3.6)
62
- bson_ext (~> 1.4)
61
+ bson_ext (~> 1.5)
63
62
  bundler (>= 1.0.0)
64
63
  guard-rspec (~> 0.5.0)
65
64
  mongomodel!
@@ -29,17 +29,18 @@ module MongoModel
29
29
  end
30
30
  end
31
31
 
32
- def method_missing(method_id, *args, &block)
33
- # If we haven't generated any methods yet, generate them, then
34
- # see if we've created the method we're looking for.
32
+ def method_missing(method, *args, &block)
35
33
  unless self.class.attribute_methods_generated?
36
34
  self.class.define_attribute_methods
37
-
38
- guard_private_attribute_method!(method_id.to_s, args)
39
- return __send__(method_id, *args, &block)
35
+
36
+ if respond_to_without_attributes?(method)
37
+ send(method, *args, &block)
38
+ else
39
+ super
40
+ end
41
+ else
42
+ super
40
43
  end
41
-
42
- super
43
44
  end
44
45
 
45
46
  def respond_to?(*args)
@@ -4,8 +4,8 @@ module MongoModel
4
4
  module Attributes
5
5
  extend ActiveSupport::Concern
6
6
 
7
- def initialize(attrs={})
8
- self.attributes = (attrs || {})
7
+ def initialize(attrs={}, options={})
8
+ assign_attributes(attrs || {}, options)
9
9
  yield self if block_given?
10
10
  end
11
11
 
@@ -3,27 +3,27 @@ module MongoModel
3
3
  module CollectionModifiers
4
4
  extend ActiveSupport::Concern
5
5
 
6
- METHODS = [ :increase!, :set!, :unset!, :push!, :push_all!, :add_to_set!, :pull!, :pull_all!, :pop!, :shift!, :rename! ]
6
+ METHODS = [ :increment!, :increase!, :set!, :unset!, :push!, :push_all!, :add_to_set!, :pull!, :pull_all!, :pop!, :shift!, :rename! ]
7
7
 
8
- module InstanceMethods
9
- # Define methods manually rather than use Module#delegate as it raises false deprecation warnings.
10
- METHODS.each do |modifier|
11
- define_method(modifier) do |*args|
12
- instance_scope.send(modifier, *args)
13
- end
14
- end
15
-
16
- private
17
- def instance_scope
18
- self.class.where(:id => id)
8
+ # Define methods manually rather than use Module#delegate as it raises false deprecation warnings.
9
+ METHODS.each do |modifier|
10
+ define_method(modifier) do |*args|
11
+ instance_scope.send(modifier, *args)
19
12
  end
20
13
  end
21
14
 
15
+ private
16
+ def instance_scope
17
+ self.class.where(:id => id)
18
+ end
19
+
22
20
  module ClassMethods
23
- # Post.increase!(:hits => 1, :available => -1)
24
- def increase!(args)
21
+ # Post.increment!(:hits => 1, :available => -1)
22
+ # This method is also aliased as increase!
23
+ def increment!(args)
25
24
  collection_modifier_update('$inc', args)
26
25
  end
26
+ alias :increase! :increment!
27
27
 
28
28
  # Post.set!(:hits => 0, :available => 100)
29
29
  def set!(args)
@@ -35,7 +35,17 @@ module MongoModel
35
35
  value = Types.converter_for(v.class).to_mongo(v)
36
36
  end
37
37
 
38
- result[key] = k.is_a?(MongoOperator) ? k.to_mongo_selector(value) : value
38
+ if k.is_a?(MongoOperator)
39
+ selector = k.to_mongo_selector(value)
40
+
41
+ if result[key].is_a?(Hash)
42
+ result[key].merge!(selector)
43
+ else
44
+ result[key] ||= selector
45
+ end
46
+ else
47
+ result[key] = value
48
+ end
39
49
  end
40
50
 
41
51
  result
@@ -12,10 +12,17 @@ module MongoModel
12
12
  class_eval <<-CEVAL, __FILE__
13
13
  def #{query_method}(*args, &block)
14
14
  new_scope = clone
15
- value = Array.wrap(args.flatten).reject {|x| x.blank? }
15
+ value = Array.wrap(args.flatten).reject { |x| x.blank? }
16
16
  new_scope.#{query_method}_values += value if value.present?
17
17
  new_scope
18
18
  end
19
+
20
+ def #{query_method}!(*args, &block)
21
+ new_scope = clone
22
+ value = Array.wrap(args.flatten).reject { |x| x.blank? }
23
+ new_scope.#{query_method}_values = value
24
+ new_scope
25
+ end
19
26
  CEVAL
20
27
  end
21
28
 
@@ -1,3 +1,3 @@
1
1
  module MongoModel
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency "activesupport", "~> 3.1"
18
18
  s.add_dependency "activemodel", "~> 3.1"
19
- s.add_dependency "mongo", "~> 1.4"
19
+ s.add_dependency "mongo", "~> 1.5"
20
20
  s.add_dependency "will_paginate", "~> 2.3.15"
21
21
 
22
22
  s.add_development_dependency "bundler", ">= 1.0.0"
@@ -1,5 +1,7 @@
1
1
  require 'spec_helper'
2
+
2
3
  require 'active_support/core_ext/hash/indifferent_access'
4
+ require 'active_support/core_ext/time/conversions'
3
5
 
4
6
  module MongoModel
5
7
  describe Attributes::Store do
@@ -20,7 +20,13 @@ module MongoModel
20
20
  end
21
21
 
22
22
  shared_examples_for "collection modifiers" do
23
- describe "increase!" do
23
+ describe "increment!" do
24
+ should_update_collection('$inc' => { 'hits' => 1, 'available' => -1 }) do
25
+ subject.increment!(:hits => 1, :available => -1)
26
+ end
27
+ end
28
+
29
+ describe "increase! (alias of increment!)" do
24
30
  should_update_collection('$inc' => { 'hits' => 1, 'available' => -1 }) do
25
31
  subject.increase!(:hits => 1, :available => -1)
26
32
  end
@@ -46,6 +46,16 @@ module MongoModel
46
46
  end
47
47
  end
48
48
 
49
+ context "with multiple operator conditions" do
50
+ subject { MongoOptions.new(TestDocument, :conditions => { :age.gt => 10, :age.lte => 18 }) }
51
+
52
+ it_should_behave_like "options with conditions only"
53
+
54
+ it "should merge conditions in the selector" do
55
+ subject.selector.should == { :age => { '$gt' => 10, '$lte' => 18 } }
56
+ end
57
+ end
58
+
49
59
  context "with conditions using a property" do
50
60
  subject { MongoOptions.new(TestDocument, :conditions => { :id => '123' }) }
51
61
 
@@ -242,6 +242,13 @@ module MongoModel
242
242
  end
243
243
  end
244
244
 
245
+ describe "#where!" do
246
+ it "should overwrite where values" do
247
+ where_scope = subject.where!(:author => "Sam")
248
+ where_scope.where_values.should == [{ :author => "Sam" }]
249
+ end
250
+ end
251
+
245
252
  describe "#order" do
246
253
  it "should return a new scope" do
247
254
  subject.order(:author.asc).should be_an_instance_of(Scope)
@@ -263,6 +270,13 @@ module MongoModel
263
270
  end
264
271
  end
265
272
 
273
+ describe "#order!" do
274
+ it "should overwrite order values" do
275
+ order_scope = subject.order!(:author.asc)
276
+ order_scope.order_values.should == [:author.asc]
277
+ end
278
+ end
279
+
266
280
  describe "#select" do
267
281
  it "should return a new scope" do
268
282
  subject.select(:author).should be_an_instance_of(Scope)
@@ -284,6 +298,13 @@ module MongoModel
284
298
  end
285
299
  end
286
300
 
301
+ describe "#select!" do
302
+ it "should overwrite select values" do
303
+ select_scope = subject.select!(:author)
304
+ select_scope.select_values.should == [:author]
305
+ end
306
+ end
307
+
287
308
  describe "#limit" do
288
309
  it "should return a new scope" do
289
310
  subject.limit(10).should be_an_instance_of(Scope)
metadata CHANGED
@@ -1,101 +1,141 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mongomodel
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 9
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 3
10
+ version: 0.4.3
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Sam Pohlenz
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-10-21 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-12-14 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: activesupport
16
- requirement: &70171471424760 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
25
+ requirements:
19
26
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '3.1'
27
+ - !ruby/object:Gem::Version
28
+ hash: 5
29
+ segments:
30
+ - 3
31
+ - 1
32
+ version: "3.1"
22
33
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70171471424760
25
- - !ruby/object:Gem::Dependency
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
26
36
  name: activemodel
27
- requirement: &70171471423920 !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
28
39
  none: false
29
- requirements:
40
+ requirements:
30
41
  - - ~>
31
- - !ruby/object:Gem::Version
32
- version: '3.1'
42
+ - !ruby/object:Gem::Version
43
+ hash: 5
44
+ segments:
45
+ - 3
46
+ - 1
47
+ version: "3.1"
33
48
  type: :runtime
34
- prerelease: false
35
- version_requirements: *70171471423920
36
- - !ruby/object:Gem::Dependency
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
37
51
  name: mongo
38
- requirement: &70171471423300 !ruby/object:Gem::Requirement
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
39
54
  none: false
40
- requirements:
55
+ requirements:
41
56
  - - ~>
42
- - !ruby/object:Gem::Version
43
- version: '1.4'
57
+ - !ruby/object:Gem::Version
58
+ hash: 5
59
+ segments:
60
+ - 1
61
+ - 5
62
+ version: "1.5"
44
63
  type: :runtime
45
- prerelease: false
46
- version_requirements: *70171471423300
47
- - !ruby/object:Gem::Dependency
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
48
66
  name: will_paginate
49
- requirement: &70171471422520 !ruby/object:Gem::Requirement
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
50
69
  none: false
51
- requirements:
70
+ requirements:
52
71
  - - ~>
53
- - !ruby/object:Gem::Version
72
+ - !ruby/object:Gem::Version
73
+ hash: 29
74
+ segments:
75
+ - 2
76
+ - 3
77
+ - 15
54
78
  version: 2.3.15
55
79
  type: :runtime
56
- prerelease: false
57
- version_requirements: *70171471422520
58
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
59
82
  name: bundler
60
- requirement: &70171471421740 !ruby/object:Gem::Requirement
83
+ prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
61
85
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 23
90
+ segments:
91
+ - 1
92
+ - 0
93
+ - 0
65
94
  version: 1.0.0
66
95
  type: :development
67
- prerelease: false
68
- version_requirements: *70171471421740
69
- - !ruby/object:Gem::Dependency
96
+ version_requirements: *id005
97
+ - !ruby/object:Gem::Dependency
70
98
  name: rspec
71
- requirement: &70171471420620 !ruby/object:Gem::Requirement
99
+ prerelease: false
100
+ requirement: &id006 !ruby/object:Gem::Requirement
72
101
  none: false
73
- requirements:
102
+ requirements:
74
103
  - - ~>
75
- - !ruby/object:Gem::Version
104
+ - !ruby/object:Gem::Version
105
+ hash: 23
106
+ segments:
107
+ - 2
108
+ - 6
109
+ - 0
76
110
  version: 2.6.0
77
111
  type: :development
78
- prerelease: false
79
- version_requirements: *70171471420620
80
- - !ruby/object:Gem::Dependency
112
+ version_requirements: *id006
113
+ - !ruby/object:Gem::Dependency
81
114
  name: guard-rspec
82
- requirement: &70171471419380 !ruby/object:Gem::Requirement
115
+ prerelease: false
116
+ requirement: &id007 !ruby/object:Gem::Requirement
83
117
  none: false
84
- requirements:
118
+ requirements:
85
119
  - - ~>
86
- - !ruby/object:Gem::Version
120
+ - !ruby/object:Gem::Version
121
+ hash: 11
122
+ segments:
123
+ - 0
124
+ - 5
125
+ - 0
87
126
  version: 0.5.0
88
127
  type: :development
89
- prerelease: false
90
- version_requirements: *70171471419380
91
- description: MongoModel is a MongoDB ORM for Ruby/Rails similar to ActiveRecord and
92
- DataMapper.
93
- email:
128
+ version_requirements: *id007
129
+ description: MongoModel is a MongoDB ORM for Ruby/Rails similar to ActiveRecord and DataMapper.
130
+ email:
94
131
  - sam@sampohlenz.com
95
132
  executables: []
133
+
96
134
  extensions: []
135
+
97
136
  extra_rdoc_files: []
98
- files:
137
+
138
+ files:
99
139
  - .gitignore
100
140
  - Appraisals
101
141
  - Gemfile
@@ -104,10 +144,6 @@ files:
104
144
  - README.md
105
145
  - Rakefile
106
146
  - bin/console
107
- - gemfiles/rails-3.1-edge.gemfile
108
- - gemfiles/rails-3.1-edge.gemfile.lock
109
- - gemfiles/rails-3.1-latest.gemfile
110
- - gemfiles/rails-3.1-latest.gemfile.lock
111
147
  - gemfiles/rails-3.1.gemfile
112
148
  - gemfiles/rails-3.1.gemfile.lock
113
149
  - gemfiles/rails-edge.gemfile
@@ -260,29 +296,39 @@ files:
260
296
  - spec/support/models.rb
261
297
  homepage: http://www.mongomodel.org
262
298
  licenses: []
299
+
263
300
  post_install_message:
264
301
  rdoc_options: []
265
- require_paths:
302
+
303
+ require_paths:
266
304
  - lib
267
- required_ruby_version: !ruby/object:Gem::Requirement
305
+ required_ruby_version: !ruby/object:Gem::Requirement
268
306
  none: false
269
- requirements:
270
- - - ! '>='
271
- - !ruby/object:Gem::Version
272
- version: '0'
273
- segments:
307
+ requirements:
308
+ - - ">="
309
+ - !ruby/object:Gem::Version
310
+ hash: 3
311
+ segments:
274
312
  - 0
275
- hash: 3076200504632961352
276
- required_rubygems_version: !ruby/object:Gem::Requirement
313
+ version: "0"
314
+ required_rubygems_version: !ruby/object:Gem::Requirement
277
315
  none: false
278
- requirements:
279
- - - ! '>='
280
- - !ruby/object:Gem::Version
316
+ requirements:
317
+ - - ">="
318
+ - !ruby/object:Gem::Version
319
+ hash: 23
320
+ segments:
321
+ - 1
322
+ - 3
323
+ - 6
281
324
  version: 1.3.6
282
325
  requirements: []
326
+
283
327
  rubyforge_project: mongomodel
284
328
  rubygems_version: 1.8.6
285
329
  signing_key:
286
330
  specification_version: 3
287
331
  summary: MongoDB ORM for Ruby/Rails
288
332
  test_files: []
333
+
334
+ has_rdoc:
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "appraisal", "~> 0.3.6"
6
- gem "bson_ext", "~> 1.3.0"
7
- gem "activesupport", :git=>"https://github.com/rails/rails.git", :branch=>"3-1-stable"
8
- gem "activemodel", :git=>"https://github.com/rails/rails.git", :branch=>"3-1-stable"
9
-
10
- gemspec :path=>"../"
@@ -1,59 +0,0 @@
1
- GIT
2
- remote: https://github.com/rails/rails.git
3
- revision: 633a5693a7c304ec242488dc5aa11c8956b3b294
4
- branch: 3-1-stable
5
- specs:
6
- activemodel (3.1.0.rc6)
7
- activesupport (= 3.1.0.rc6)
8
- bcrypt-ruby (~> 2.1.4)
9
- builder (~> 3.0.0)
10
- i18n (~> 0.6)
11
- activesupport (3.1.0.rc6)
12
- multi_json (~> 1.0)
13
-
14
- PATH
15
- remote: /Users/sam/Work/mongomodel
16
- specs:
17
- mongomodel (0.3.4)
18
- activemodel (~> 3.0)
19
- activesupport (~> 3.0)
20
- mongo (~> 1.3.0)
21
- will_paginate (~> 2.3.15)
22
-
23
- GEM
24
- remote: http://rubygems.org/
25
- specs:
26
- appraisal (0.3.8)
27
- bundler
28
- rake
29
- bcrypt-ruby (2.1.4)
30
- bson (1.3.1)
31
- bson_ext (1.3.1)
32
- builder (3.0.0)
33
- diff-lcs (1.1.2)
34
- i18n (0.6.0)
35
- mongo (1.3.1)
36
- bson (>= 1.3.1)
37
- multi_json (1.0.3)
38
- rake (0.9.2)
39
- rspec (2.6.0)
40
- rspec-core (~> 2.6.0)
41
- rspec-expectations (~> 2.6.0)
42
- rspec-mocks (~> 2.6.0)
43
- rspec-core (2.6.4)
44
- rspec-expectations (2.6.0)
45
- diff-lcs (~> 1.1.2)
46
- rspec-mocks (2.6.0)
47
- will_paginate (2.3.16)
48
-
49
- PLATFORMS
50
- ruby
51
-
52
- DEPENDENCIES
53
- activemodel!
54
- activesupport!
55
- appraisal (~> 0.3.6)
56
- bson_ext (~> 1.3.0)
57
- bundler (>= 1.0.0)
58
- mongomodel!
59
- rspec (~> 2.6.0)
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "bson_ext", "~> 1.3.0"
6
- gem "activemodel", :git=>"https://github.com/rails/rails.git", :branch=>"3-1-stable"
7
- gem "activesupport", :git=>"https://github.com/rails/rails.git", :branch=>"3-1-stable"
8
- gem "appraisal", "~> 0.3.6"
9
-
10
- gemspec :path=>"../"
@@ -1,59 +0,0 @@
1
- GIT
2
- remote: https://github.com/rails/rails.git
3
- revision: 633a5693a7c304ec242488dc5aa11c8956b3b294
4
- branch: 3-1-stable
5
- specs:
6
- activemodel (3.1.0.rc6)
7
- activesupport (= 3.1.0.rc6)
8
- bcrypt-ruby (~> 2.1.4)
9
- builder (~> 3.0.0)
10
- i18n (~> 0.6)
11
- activesupport (3.1.0.rc6)
12
- multi_json (~> 1.0)
13
-
14
- PATH
15
- remote: /Users/sam/Development/MongoDB/mongomodel
16
- specs:
17
- mongomodel (0.3.5)
18
- activemodel (~> 3.0)
19
- activesupport (~> 3.0)
20
- mongo (~> 1.3.0)
21
- will_paginate (~> 2.3.15)
22
-
23
- GEM
24
- remote: http://rubygems.org/
25
- specs:
26
- appraisal (0.3.8)
27
- bundler
28
- rake
29
- bcrypt-ruby (2.1.4)
30
- bson (1.3.1)
31
- bson_ext (1.3.1)
32
- builder (3.0.0)
33
- diff-lcs (1.1.2)
34
- i18n (0.6.0)
35
- mongo (1.3.1)
36
- bson (>= 1.3.1)
37
- multi_json (1.0.3)
38
- rake (0.9.2)
39
- rspec (2.6.0)
40
- rspec-core (~> 2.6.0)
41
- rspec-expectations (~> 2.6.0)
42
- rspec-mocks (~> 2.6.0)
43
- rspec-core (2.6.4)
44
- rspec-expectations (2.6.0)
45
- diff-lcs (~> 1.1.2)
46
- rspec-mocks (2.6.0)
47
- will_paginate (2.3.16)
48
-
49
- PLATFORMS
50
- ruby
51
-
52
- DEPENDENCIES
53
- activemodel!
54
- activesupport!
55
- appraisal (~> 0.3.6)
56
- bson_ext (~> 1.3.0)
57
- bundler (>= 1.0.0)
58
- mongomodel!
59
- rspec (~> 2.6.0)