mongoid_nested_set 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,13 +1,14 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "mongoid", ">= 2.1.0"
3
+ gem "mongoid", ">= 3.0.0"
4
4
 
5
5
  # Add dependencies to develop your gem here.
6
6
  # Include everything needed to run rake, tests, features, etc.
7
7
  group :development do
8
8
  gem "bundler", "~> 1.0"
9
9
  gem "jeweler", "~> 1.5"
10
- gem "rcov", ">= 0"
10
+ gem "simplecov"
11
+ gem "simplecov-rcov"
11
12
  gem 'rspec-core', "~> 2.0"
12
13
  gem 'rdoc'
13
14
  end
@@ -16,5 +17,4 @@ group :test do
16
17
  gem 'rspec-expectations', "~> 2.0"
17
18
  gem 'rr'
18
19
  gem 'remarkable_mongoid'
19
- gem 'database_cleaner'
20
20
  end
data/Gemfile.lock CHANGED
@@ -1,30 +1,33 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.0.10)
5
- activesupport (= 3.0.10)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activesupport (3.0.10)
9
- bson (1.3.1)
10
- builder (2.1.2)
11
- database_cleaner (0.6.7)
12
- diff-lcs (1.1.2)
4
+ activemodel (3.2.6)
5
+ activesupport (= 3.2.6)
6
+ builder (~> 3.0.0)
7
+ activesupport (3.2.6)
8
+ i18n (~> 0.6)
9
+ multi_json (~> 1.0)
10
+ builder (3.0.0)
11
+ diff-lcs (1.1.3)
13
12
  git (1.2.5)
14
- i18n (0.5.0)
15
- jeweler (1.6.4)
13
+ i18n (0.6.0)
14
+ jeweler (1.8.4)
16
15
  bundler (~> 1.0)
17
16
  git (>= 1.2.5)
18
17
  rake
19
- mongo (1.3.1)
20
- bson (>= 1.3.1)
21
- mongoid (2.1.9)
22
- activemodel (~> 3.0)
23
- mongo (~> 1.3)
18
+ rdoc
19
+ json (1.7.3)
20
+ mongoid (3.0.1)
21
+ activemodel (~> 3.1)
22
+ moped (~> 1.1.1)
23
+ origin (~> 1.0.3)
24
24
  tzinfo (~> 0.3.22)
25
- rake (0.9.2)
26
- rcov (0.9.10)
27
- rdoc (3.9.4)
25
+ moped (1.1.1)
26
+ multi_json (1.3.6)
27
+ origin (1.0.4)
28
+ rake (0.9.2.2)
29
+ rdoc (3.12)
30
+ json (~> 1.4)
28
31
  remarkable (4.0.0.alpha4)
29
32
  rspec (>= 2.0.0.alpha11)
30
33
  remarkable_activemodel (4.0.0.alpha4)
@@ -32,28 +35,34 @@ GEM
32
35
  rspec (>= 2.0.0.alpha11)
33
36
  remarkable_mongoid (0.6.0)
34
37
  remarkable_activemodel (~> 4.0.0.alpha4)
35
- rr (1.0.3)
36
- rspec (2.6.0)
37
- rspec-core (~> 2.6.0)
38
- rspec-expectations (~> 2.6.0)
39
- rspec-mocks (~> 2.6.0)
40
- rspec-core (2.6.4)
41
- rspec-expectations (2.6.0)
42
- diff-lcs (~> 1.1.2)
43
- rspec-mocks (2.6.0)
44
- tzinfo (0.3.29)
38
+ rr (1.0.4)
39
+ rspec (2.11.0)
40
+ rspec-core (~> 2.11.0)
41
+ rspec-expectations (~> 2.11.0)
42
+ rspec-mocks (~> 2.11.0)
43
+ rspec-core (2.11.0)
44
+ rspec-expectations (2.11.1)
45
+ diff-lcs (~> 1.1.3)
46
+ rspec-mocks (2.11.1)
47
+ simplecov (0.6.4)
48
+ multi_json (~> 1.0)
49
+ simplecov-html (~> 0.5.3)
50
+ simplecov-html (0.5.3)
51
+ simplecov-rcov (0.2.3)
52
+ simplecov (>= 0.4.1)
53
+ tzinfo (0.3.33)
45
54
 
46
55
  PLATFORMS
47
56
  ruby
48
57
 
49
58
  DEPENDENCIES
50
59
  bundler (~> 1.0)
51
- database_cleaner
52
60
  jeweler (~> 1.5)
53
- mongoid (>= 2.1.0)
54
- rcov
61
+ mongoid (>= 3.0.0)
55
62
  rdoc
56
63
  remarkable_mongoid
57
64
  rr
58
65
  rspec-core (~> 2.0)
59
66
  rspec-expectations (~> 2.0)
67
+ simplecov
68
+ simplecov-rcov
data/Rakefile CHANGED
@@ -27,9 +27,9 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
27
27
  spec.pattern = FileList['spec/**/*_spec.rb']
28
28
  end
29
29
 
30
- RSpec::Core::RakeTask.new(:rcov) do |spec|
31
- spec.pattern = 'spec/**/*_spec.rb'
32
- spec.rcov = true
30
+ task :rcov do
31
+ ENV['COVERAGE'] = 'yes'
32
+ Rake::Task["spec"].execute
33
33
  end
34
34
 
35
35
  task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.2.0
@@ -48,8 +48,8 @@ module Mongoid::Acts::NestedSet
48
48
  field outline_number_field_name, :type => String if outline_number_field_name
49
49
  field :depth, :type => Integer
50
50
 
51
- references_many :children, :class_name => self.name, :foreign_key => parent_field_name, :inverse_of => :parent, :order => criteria.asc(left_field_name)
52
- referenced_in :parent, :class_name => self.name, :foreign_key => parent_field_name
51
+ has_many :children, :class_name => self.name, :foreign_key => parent_field_name, :inverse_of => :parent, :order => left_field_name.to_sym.asc
52
+ belongs_to :parent, :class_name => self.name, :foreign_key => parent_field_name
53
53
 
54
54
  attr_accessor :skip_before_destroy
55
55
 
@@ -10,7 +10,7 @@ module Mongoid::Acts::NestedSet
10
10
 
11
11
  scope = lambda{ |node| {} }
12
12
  if acts_as_nested_set_options[:scope]
13
- scope = lambda { |node| node.nested_set_scope.scoped }
13
+ scope = lambda { |node| node.nested_set_scope.options.merge(node.nested_set_scope.selector) }
14
14
  end
15
15
  indices = {}
16
16
 
@@ -22,8 +22,7 @@ module Mongoid::Acts::NestedSet
22
22
  # set right
23
23
  right = (indices[scope.call(node)] += 1)
24
24
 
25
- node.class.collection.update(
26
- {:_id => node.id},
25
+ node.class.collection.find(:_id => node.id).update(
27
26
  {"$set" => {left_field_name => left, right_field_name => right}},
28
27
  {:safe => true}
29
28
  )
@@ -1,11 +1,15 @@
1
1
  module Mongoid
2
2
  module Criterion
3
- module Optional
3
+ module Ordering
4
4
  def remove_order_by
5
5
  @options[:sort] = nil
6
6
  self
7
7
  end
8
8
  end
9
9
  end
10
+
11
+ class Criteria
12
+ include Criterion::Ordering
13
+ end
10
14
  end
11
15
 
@@ -126,31 +126,13 @@ module Mongoid::Acts::NestedSet
126
126
  else target[parent_field_name]
127
127
  end
128
128
 
129
- # TODO: Worst case O(n) queries, improve?
130
- # MongoDB 1.9 may allow javascript in updates: http://jira.mongodb.org/browse/SERVER-458
131
- nested_set_scope.only(left_field_name, right_field_name, parent_field_name).remove_order_by.each do |node|
132
- updates = {}
133
- if (a..b).include? node.left
134
- updates[left_field_name] = node.left + d - b
135
- elsif (c..d).include? node.left
136
- updates[left_field_name] = node.left + a - c
137
- end
138
-
139
- if (a..b).include? node.right
140
- updates[right_field_name] = node.right + d - b
141
- elsif (c..d).include? node.right
142
- updates[right_field_name] = node.right + a - c
143
- end
144
-
145
- updates[parent_field_name] = new_parent if self.id == node.id
146
-
147
- node.class.collection.update(
148
- {:_id => node.id },
149
- {"$set" => updates},
150
- {:safe => true}
151
- ) unless updates.empty?
152
- end
129
+ nested_set_scope.remove_order_by.or(left_field_name => a..b).or(right_field_name => a..b).set(:depth, -1)
130
+ nested_set_scope.remove_order_by.between(left_field_name => c..d).inc(left_field_name, a - c)
131
+ nested_set_scope.remove_order_by.between(right_field_name => c..d).inc(right_field_name, a - c)
132
+ nested_set_scope.remove_order_by.where(:depth => -1).between(left_field_name => a..b).inc(left_field_name, d - b)
133
+ nested_set_scope.remove_order_by.where(:depth => -1).between(right_field_name => a..b).inc(right_field_name, d - b)
153
134
 
135
+ self.set(parent_field_name, new_parent)
154
136
  self.reload_nested_set
155
137
  self.update_self_and_descendants_depth
156
138
 
@@ -175,7 +157,7 @@ module Mongoid::Acts::NestedSet
175
157
  # Update cached level attribute
176
158
  def update_depth
177
159
  if depth?
178
- self.update_attributes(:depth => level)
160
+ self.update_attribute(:depth, level)
179
161
  end
180
162
  self
181
163
  end
@@ -185,11 +167,7 @@ module Mongoid::Acts::NestedSet
185
167
  def update_self_and_descendants_depth
186
168
  if depth?
187
169
  scope_class.each_with_level(self_and_descendants) do |node, level|
188
- node.class.collection.update(
189
- {:_id => node.id},
190
- {"$set" => {:depth => level}},
191
- {:safe => true}
192
- ) unless node.depth == level
170
+ node.with(:safe => true).set(:depth, level) unless node.depth == level
193
171
  end
194
172
  self.reload
195
173
  end
@@ -208,22 +186,20 @@ module Mongoid::Acts::NestedSet
208
186
  model.destroy
209
187
  end
210
188
  else
211
- c = nested_set_scope.fuse(:where => {left_field_name => {"$gt" => left}, right_field_name => {"$lt" => right}})
212
- scope_class.delete_all(:conditions => c.selector)
189
+ c = nested_set_scope.where(left_field_name.to_sym.gt => left, right_field_name.to_sym.lt => right)
190
+ scope_class.where(c.selector).delete_all
213
191
  end
214
192
 
215
193
  # update lefts and rights for remaining nodes
216
194
  diff = right - left + 1
217
- scope_class.collection.update(
218
- nested_set_scope.fuse(:where => {left_field_name => {"$gt" => right}}).selector,
219
- {"$inc" => { left_field_name => -diff }},
220
- {:safe => true, :multi => true}
221
- )
222
- scope_class.collection.update(
223
- nested_set_scope.fuse(:where => {right_field_name => {"$gt" => right}}).selector,
224
- {"$inc" => { right_field_name => -diff }},
225
- {:safe => true, :multi => true}
226
- )
195
+
196
+ scope_class.with(:safe => true).where(
197
+ nested_set_scope.where(left_field_name.to_sym.gt => right).selector
198
+ ).inc(left_field_name, -diff)
199
+
200
+ scope_class.with(:safe => true).where(
201
+ nested_set_scope.where(right_field_name.to_sym.gt => right).selector
202
+ ).inc(right_field_name, -diff)
227
203
 
228
204
  # Don't allow multiple calls to destroy to corrupt the set
229
205
  self.skip_before_destroy = true
@@ -27,7 +27,7 @@ module Mongoid::Acts::NestedSet
27
27
  def no_duplicates_for_fields?
28
28
  roots.group_by{|record| scope_field_names.collect{|field| record.send(field.to_sym)}}.all? do |scope, grouped_roots|
29
29
  [left_field_name, right_field_name].all? do |field|
30
- grouped_roots.first.nested_set_scope.only(field).aggregate.all? {|c| c['count'] == 1}
30
+ grouped_roots.first.nested_set_scope.only(field).group_by {|doc| doc.send(field)}.all? {|k, v| v.size == 1}
31
31
  end
32
32
  end
33
33
  end
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{mongoid_nested_set}
8
- s.version = "0.1.3"
7
+ s.name = "mongoid_nested_set"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Brandon Turner}]
12
- s.date = %q{2011-08-26}
13
- s.description = %q{Fully featured tree implementation for Mongoid using the nested set model}
14
- s.email = %q{bturner@bltweb.net}
11
+ s.authors = ["Brandon Turner"]
12
+ s.date = "2012-07-15"
13
+ s.description = "Fully featured tree implementation for Mongoid using the nested set model"
14
+ s.email = "bturner@bltweb.net"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.markdown"
@@ -49,35 +49,38 @@ Gem::Specification.new do |s|
49
49
  "spec/mongoid_nested_set_spec.rb",
50
50
  "spec/spec_helper.rb"
51
51
  ]
52
- s.homepage = %q{http://github.com/thinkwell/mongoid_nested_set}
53
- s.licenses = [%q{MIT}]
54
- s.require_paths = [%q{lib}]
55
- s.rubygems_version = %q{1.8.6}
56
- s.summary = %q{Nested set based tree implementation for Mongoid}
52
+ s.homepage = "http://github.com/thinkwell/mongoid_nested_set"
53
+ s.licenses = ["MIT"]
54
+ s.require_paths = ["lib"]
55
+ s.rubygems_version = "1.8.11"
56
+ s.summary = "Nested set based tree implementation for Mongoid"
57
57
 
58
58
  if s.respond_to? :specification_version then
59
59
  s.specification_version = 3
60
60
 
61
61
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
62
- s.add_runtime_dependency(%q<mongoid>, [">= 2.1.0"])
62
+ s.add_runtime_dependency(%q<mongoid>, [">= 3.0.0"])
63
63
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
64
64
  s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
65
- s.add_development_dependency(%q<rcov>, [">= 0"])
65
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
66
+ s.add_development_dependency(%q<simplecov-rcov>, [">= 0"])
66
67
  s.add_development_dependency(%q<rspec-core>, ["~> 2.0"])
67
68
  s.add_development_dependency(%q<rdoc>, [">= 0"])
68
69
  else
69
- s.add_dependency(%q<mongoid>, [">= 2.1.0"])
70
+ s.add_dependency(%q<mongoid>, [">= 3.0.0"])
70
71
  s.add_dependency(%q<bundler>, ["~> 1.0"])
71
72
  s.add_dependency(%q<jeweler>, ["~> 1.5"])
72
- s.add_dependency(%q<rcov>, [">= 0"])
73
+ s.add_dependency(%q<simplecov>, [">= 0"])
74
+ s.add_dependency(%q<simplecov-rcov>, [">= 0"])
73
75
  s.add_dependency(%q<rspec-core>, ["~> 2.0"])
74
76
  s.add_dependency(%q<rdoc>, [">= 0"])
75
77
  end
76
78
  else
77
- s.add_dependency(%q<mongoid>, [">= 2.1.0"])
79
+ s.add_dependency(%q<mongoid>, [">= 3.0.0"])
78
80
  s.add_dependency(%q<bundler>, ["~> 1.0"])
79
81
  s.add_dependency(%q<jeweler>, ["~> 1.5"])
80
- s.add_dependency(%q<rcov>, [">= 0"])
82
+ s.add_dependency(%q<simplecov>, [">= 0"])
83
+ s.add_dependency(%q<simplecov-rcov>, [">= 0"])
81
84
  s.add_dependency(%q<rspec-core>, ["~> 2.0"])
82
85
  s.add_dependency(%q<rdoc>, [">= 0"])
83
86
  end
@@ -25,7 +25,7 @@ module Mongoid::Acts::NestedSet
25
25
  if Mongoid.allow_dynamic_fields ||
26
26
  fields.keys.any? { |k| k.to_s == key } ||
27
27
  associations.any? { |a| a[0].to_s == key || a[1].foreign_key.to_s == key }
28
- @attributes[key] = self.typed_value_for(key, val)
28
+ @attributes[key] = fields[key].mongoize(val)
29
29
  end
30
30
  end
31
31
  self
@@ -51,11 +51,11 @@ describe "A Mongoid::Document" do
51
51
  def persist_nodes(nodes, collection_name=nil)
52
52
  nodes = {:first => nodes} unless nodes.is_a? Hash
53
53
  collection_name = nodes.values.first.class.collection_name if collection_name.nil?
54
- coll = Mongoid.master[collection_name]
55
54
 
56
55
  nodes.each_value do |node|
57
- # Bypass the ORM (and the nested set callbacks) and save directly with the underlying driver
58
- coll.update({:_id => node.id}, node.attributes, {:upsert => true})
56
+ # As soon as there is no upsert callbacks set
57
+ # this is effectively identical to the straight driver call
58
+ node.with(:conllection => collection_name).upsert
59
59
  node.new_record = false
60
60
  end
61
61
  nodes
@@ -456,7 +456,7 @@ describe "A Mongoid::Document" do
456
456
  end
457
457
 
458
458
  it "cannot move a node to a non-existent target" do
459
- @nodes[:mens].parent_id = BSON::ObjectId.new
459
+ @nodes[:mens].parent_id = Moped::BSON::ObjectId.new
460
460
  expect {
461
461
  @nodes[:mens].save
462
462
  }.to raise_error(Mongoid::Errors::MongoidError, /possible.*(exist|found)/)
data/spec/spec_helper.rb CHANGED
@@ -5,7 +5,21 @@ require 'rr'
5
5
  require 'mongoid'
6
6
  require 'mongoid_nested_set'
7
7
  require 'remarkable/mongoid'
8
- require 'database_cleaner'
8
+
9
+ if ENV['COVERAGE'] == 'yes'
10
+ require 'simplecov'
11
+ require 'simplecov-rcov'
12
+
13
+ class SimpleCov::Formatter::MergedFormatter
14
+ def format(result)
15
+ SimpleCov::Formatter::HTMLFormatter.new.format(result)
16
+ SimpleCov::Formatter::RcovFormatter.new.format(result)
17
+ end
18
+ end
19
+
20
+ SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
21
+ SimpleCov.start
22
+ end
9
23
 
10
24
  module Mongoid::Acts::NestedSet::Matchers
11
25
  end
@@ -15,30 +29,15 @@ Dir["#{File.dirname(__FILE__)}/models/*.rb"].each {|file| require file }
15
29
  Dir["#{File.dirname(__FILE__)}/matchers/*.rb"].each {|file| require file }
16
30
 
17
31
  Mongoid.configure do |config|
18
- name = "mongoid_nested_set_test"
19
- host = "localhost"
32
+ config.connect_to("dmongoid_nested_set_test")
20
33
  config.allow_dynamic_fields = false
21
- #config.master = Mongo::Connection.new(host, nil, :logger => Logger.new($stdout)).db(name)
22
- config.master = Mongo::Connection.new.db(name)
23
- # config.slaves = [
24
- # Mongo::Connection.new(host, 27018, :slave_ok => true).db(name)
25
- # ]
26
34
  end
27
35
 
28
36
  RSpec.configure do |config|
29
37
  config.mock_with :rr
30
38
  config.include(Mongoid::Acts::NestedSet::Matchers)
31
39
 
32
- config.before(:suite) do
33
- DatabaseCleaner.strategy = :truncation
34
- DatabaseCleaner.orm = "mongoid"
35
- end
36
-
37
- config.before(:each) do
38
- DatabaseCleaner.start
39
- end
40
-
41
40
  config.after(:each) do
42
- DatabaseCleaner.clean
41
+ Mongoid::Config.purge!
43
42
  end
44
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_nested_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-26 00:00:00.000000000Z
12
+ date: 2012-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
16
- requirement: &25185020 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.1.0
21
+ version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *25185020
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: bundler
27
- requirement: &25184540 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '1.0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *25184540
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: jeweler
38
- requirement: &25184060 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,31 @@ dependencies:
43
53
  version: '1.5'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *25184060
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.5'
62
+ - !ruby/object:Gem::Dependency
63
+ name: simplecov
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
47
78
  - !ruby/object:Gem::Dependency
48
- name: rcov
49
- requirement: &25183200 !ruby/object:Gem::Requirement
79
+ name: simplecov-rcov
80
+ requirement: !ruby/object:Gem::Requirement
50
81
  none: false
51
82
  requirements:
52
83
  - - ! '>='
@@ -54,10 +85,15 @@ dependencies:
54
85
  version: '0'
55
86
  type: :development
56
87
  prerelease: false
57
- version_requirements: *25183200
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
58
94
  - !ruby/object:Gem::Dependency
59
95
  name: rspec-core
60
- requirement: &25182460 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
61
97
  none: false
62
98
  requirements:
63
99
  - - ~>
@@ -65,10 +101,15 @@ dependencies:
65
101
  version: '2.0'
66
102
  type: :development
67
103
  prerelease: false
68
- version_requirements: *25182460
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '2.0'
69
110
  - !ruby/object:Gem::Dependency
70
111
  name: rdoc
71
- requirement: &25070500 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
72
113
  none: false
73
114
  requirements:
74
115
  - - ! '>='
@@ -76,7 +117,12 @@ dependencies:
76
117
  version: '0'
77
118
  type: :development
78
119
  prerelease: false
79
- version_requirements: *25070500
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
80
126
  description: Fully featured tree implementation for Mongoid using the nested set model
81
127
  email: bturner@bltweb.net
82
128
  executables: []
@@ -131,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
177
  version: '0'
132
178
  segments:
133
179
  - 0
134
- hash: -922553073555053444
180
+ hash: -1942426900078281337
135
181
  required_rubygems_version: !ruby/object:Gem::Requirement
136
182
  none: false
137
183
  requirements:
@@ -140,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
186
  version: '0'
141
187
  requirements: []
142
188
  rubyforge_project:
143
- rubygems_version: 1.8.6
189
+ rubygems_version: 1.8.24
144
190
  signing_key:
145
191
  specification_version: 3
146
192
  summary: Nested set based tree implementation for Mongoid