Permalink
Browse files

Release 0.3.0. All specs pass. Dependencies updated. Closes #12

  • Loading branch information...
1 parent 10fe2bb commit 8010d78ab81b6550f74b043c34179e1699f7db6c @skyeagle committed Aug 3, 2012
Showing with 14 additions and 14 deletions.
  1. +10 −10 Gemfile.lock
  2. +1 −1 lib/mongoid-ancestry/version.rb
  3. +1 −1 mongoid-ancestry.gemspec
  4. +2 −2 spec/lib/mongoid-ancestry/class_methods_spec.rb
View
@@ -1,29 +1,29 @@
PATH
remote: .
specs:
- mongoid-ancestry (0.3.0.rc)
- mongoid (= 3.0.0.rc)
+ mongoid-ancestry (0.3.0)
+ mongoid (~> 3.0.3)
GEM
remote: http://rubygems.org/
specs:
- activemodel (3.2.3)
- activesupport (= 3.2.3)
+ activemodel (3.2.7)
+ activesupport (= 3.2.7)
builder (~> 3.0.0)
- activesupport (3.2.3)
+ activesupport (3.2.7)
i18n (~> 0.6)
multi_json (~> 1.0)
builder (3.0.0)
diff-lcs (1.1.2)
i18n (0.6.0)
- mongoid (3.0.0.rc)
+ mongoid (3.0.3)
activemodel (~> 3.1)
- moped (~> 1.0.0.rc)
- origin (~> 1.0.0.rc)
+ moped (~> 1.1)
+ origin (~> 1.0)
tzinfo (~> 0.3.22)
- moped (1.0.0.rc)
+ moped (1.2.0)
multi_json (1.3.6)
- origin (1.0.0.rc)
+ origin (1.0.4)
rake (0.9.2.2)
rspec (2.5.0)
rspec-core (~> 2.5.0)
@@ -1,5 +1,5 @@
module Mongoid
module Ancestry
- VERSION = '0.3.0.rc'
+ VERSION = '0.3.0'
end
end
View
@@ -23,6 +23,6 @@ Gem::Specification.new do |s|
"README.md"
]
- s.add_dependency('mongoid', "= 3.0.0.rc")
+ s.add_dependency('mongoid', "~> 3.0.3")
end
@@ -71,7 +71,7 @@
end
end
end
-
+
it "should have valid orphan rootify strategy" do
subject.with_model :depth => 3, :width => 3 do |model, roots|
model.orphan_strategy = :rootify
@@ -232,7 +232,7 @@ def assert_integrity_restoration model
end
it "should build ancestry from parent ids" do
- subject.with_model :skip_ancestry => true, :extra_columns => {:parent_id => 'BSON::ObjectId'} do |model|
+ subject.with_model :skip_ancestry => true, :extra_columns => {:parent_id => 'Moped::BSON::ObjectId'} do |model|
[model.create!].each do |parent1|
(Array.new(5) { model.create :parent_id => parent1.id }).each do |parent2|
(Array.new(5) { model.create :parent_id => parent2.id }).each do |parent3|

0 comments on commit 8010d78

Please sign in to comment.