ramdiv-mongo_mapper_acts_as_tree 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ramdiv-mongo_mapper_acts_as_tree}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jakob Vidmar"]
12
- s.date = %q{2010-06-05}
12
+ s.date = %q{2010-07-03}
13
13
  s.description = %q{Port of the old, venerable ActsAsTree with a bit of a twist}
14
14
  s.email = %q{jakob.vidmar@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.homepage = %q{http://github.com/ramdiv/mongo_mapper_acts_as_tree}
37
37
  s.rdoc_options = ["--charset=UTF-8"]
38
38
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.6}
39
+ s.rubygems_version = %q{1.3.7}
40
40
  s.summary = %q{ActsAsTree plugin for MongoMapper}
41
41
  s.test_files = [
42
42
  "test/helper.rb",
@@ -52,7 +52,7 @@ Gem::Specification.new do |s|
52
52
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
53
53
  s.specification_version = 3
54
54
 
55
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
55
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
56
  s.add_runtime_dependency(%q<mongo_mapper>, [">= 0.6.8"])
57
57
  s.add_development_dependency(%q<shoulda>, [">= 2.10.2"])
58
58
  else
data/test/helper.rb CHANGED
@@ -13,7 +13,7 @@ Dir["#{File.dirname(__FILE__)}/models/*.rb"].each {|file| require file}
13
13
  class Test::Unit::TestCase
14
14
  # Drop all collections after each test case.
15
15
  def teardown
16
- MongoMapper.database.collections.each {|collection| collection.drop }
16
+ MongoMapper.database.collections.each {|collection| collection.drop unless collection.name =~ /(.*\.)?system\..*/ }
17
17
  end
18
18
 
19
19
  # Make sure that each test case has a teardown
data/test/test_order.rb CHANGED
@@ -16,7 +16,7 @@ class TestMongomapperActsAsTree < Test::Unit::TestCase
16
16
  assert_equal OrderedCategory.roots, [@root_2, @root_1]
17
17
 
18
18
  assert_equal @root_1.children, [@child_1, @child_3, @child_2]
19
-
19
+
20
20
  assert_equal @root_1.descendants, [@child_1, @child_2_1, @child_3, @child_2]
21
21
  assert_equal @root_1.self_and_descendants, [@root_1, @child_1, @child_2_1, @child_3, @child_2]
22
22
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jakob Vidmar
@@ -14,13 +14,14 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-05 00:00:00 +02:00
17
+ date: 2010-07-03 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: mongo_mapper
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
@@ -35,6 +36,7 @@ dependencies:
35
36
  name: shoulda
36
37
  prerelease: false
37
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
38
40
  requirements:
39
41
  - - ">="
40
42
  - !ruby/object:Gem::Version
@@ -80,6 +82,7 @@ rdoc_options:
80
82
  require_paths:
81
83
  - lib
82
84
  required_ruby_version: !ruby/object:Gem::Requirement
85
+ none: false
83
86
  requirements:
84
87
  - - ">="
85
88
  - !ruby/object:Gem::Version
@@ -87,6 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
90
  - 0
88
91
  version: "0"
89
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
+ none: false
90
94
  requirements:
91
95
  - - ">="
92
96
  - !ruby/object:Gem::Version
@@ -96,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
100
  requirements: []
97
101
 
98
102
  rubyforge_project:
99
- rubygems_version: 1.3.6
103
+ rubygems_version: 1.3.7
100
104
  signing_key:
101
105
  specification_version: 3
102
106
  summary: ActsAsTree plugin for MongoMapper