locomotive_mongoid_acts_as_tree 0.1.5.2 → 0.1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -2
- data/VERSION +1 -1
- data/lib/mongoid_acts_as_tree.rb +1 -5
- data/locomotive_mongoid_acts_as_tree.gemspec +5 -8
- metadata +14 -30
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.5.
|
1
|
+
0.1.5.5
|
data/lib/mongoid_acts_as_tree.rb
CHANGED
@@ -134,11 +134,7 @@ module Mongoid
|
|
134
134
|
alias replace children=
|
135
135
|
|
136
136
|
def descendants
|
137
|
-
|
138
|
-
# _new_record_var = self.instance_variable_get(:@new_record)
|
139
|
-
# _new_record = _new_record_var != false
|
140
|
-
|
141
|
-
return [] if _new_record
|
137
|
+
return [] if new_record?
|
142
138
|
self.class.all_in(path_field => [self._id]).order_by tree_order
|
143
139
|
end
|
144
140
|
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{locomotive_mongoid_acts_as_tree}
|
8
|
-
s.version =
|
8
|
+
s.version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
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, Aliaksandr Rahalevich"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-02-10}
|
13
13
|
s.description = %q{Port of the old, venerable ActsAsTree with a bit of a twist}
|
14
14
|
s.email = ["saksmlz@gmail.com", "didier@nocoffee.fr"]
|
15
15
|
s.extra_rdoc_files = [
|
@@ -51,17 +51,14 @@ Gem::Specification.new do |s|
|
|
51
51
|
s.specification_version = 3
|
52
52
|
|
53
53
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
54
|
-
s.add_runtime_dependency(%q<mongoid>, ["
|
55
|
-
s.add_runtime_dependency(%q<bson>, [">= 0.20.1"])
|
54
|
+
s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.0.rc.7"])
|
56
55
|
s.add_development_dependency(%q<shoulda>, [">= 2.10.2"])
|
57
56
|
else
|
58
|
-
s.add_dependency(%q<mongoid>, ["
|
59
|
-
s.add_dependency(%q<bson>, [">= 0.20.1"])
|
57
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0.0.rc.7"])
|
60
58
|
s.add_dependency(%q<shoulda>, [">= 2.10.2"])
|
61
59
|
end
|
62
60
|
else
|
63
|
-
s.add_dependency(%q<mongoid>, ["
|
64
|
-
s.add_dependency(%q<bson>, [">= 0.20.1"])
|
61
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0.0.rc.7"])
|
65
62
|
s.add_dependency(%q<shoulda>, [">= 2.10.2"])
|
66
63
|
end
|
67
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotive_mongoid_acts_as_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 89
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 5
|
10
|
-
-
|
11
|
-
version: 0.1.5.
|
10
|
+
- 5
|
11
|
+
version: 0.1.5.5
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Jakob Vidmar, Aliaksandr Rahalevich
|
@@ -16,47 +16,30 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2011-02-10 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
name: mongoid
|
24
23
|
prerelease: false
|
25
|
-
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
25
|
none: false
|
27
26
|
requirements:
|
28
|
-
- -
|
27
|
+
- - ~>
|
29
28
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
29
|
+
hash: 15424091
|
31
30
|
segments:
|
32
31
|
- 2
|
33
32
|
- 0
|
34
33
|
- 0
|
35
34
|
- rc
|
36
|
-
-
|
37
|
-
version: 2.0.0.rc.
|
35
|
+
- 7
|
36
|
+
version: 2.0.0.rc.7
|
38
37
|
type: :runtime
|
39
|
-
|
40
|
-
|
41
|
-
name: bson
|
42
|
-
prerelease: false
|
43
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
hash: 77
|
49
|
-
segments:
|
50
|
-
- 0
|
51
|
-
- 20
|
52
|
-
- 1
|
53
|
-
version: 0.20.1
|
54
|
-
type: :runtime
|
55
|
-
version_requirements: *id002
|
38
|
+
requirement: *id001
|
39
|
+
name: mongoid
|
56
40
|
- !ruby/object:Gem::Dependency
|
57
|
-
name: shoulda
|
58
41
|
prerelease: false
|
59
|
-
|
42
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
60
43
|
none: false
|
61
44
|
requirements:
|
62
45
|
- - ">="
|
@@ -68,7 +51,8 @@ dependencies:
|
|
68
51
|
- 2
|
69
52
|
version: 2.10.2
|
70
53
|
type: :development
|
71
|
-
|
54
|
+
requirement: *id002
|
55
|
+
name: shoulda
|
72
56
|
description: Port of the old, venerable ActsAsTree with a bit of a twist
|
73
57
|
email:
|
74
58
|
- saksmlz@gmail.com
|