ancestree 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -4
- data/Gemfile.lock +34 -34
- data/VERSION +1 -1
- data/ancestree.gemspec +32 -24
- data/init.rb +1 -1
- data/spec/inherit_ancestor_attributes_spec.rb +4 -4
- metadata +99 -25
- data/.gitignore +0 -1
data/Gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
3
|
gem 'rake'
|
4
|
-
gem 'activesupport', '
|
5
|
-
gem 'activerecord', '
|
6
|
-
gem "rspec", '~> 2.
|
4
|
+
gem 'activesupport', '>= 3.0.0'
|
5
|
+
gem 'activerecord', '>= 3.0.0'
|
6
|
+
gem "rspec", '~> 2.6.0'
|
7
7
|
|
8
|
-
gem 'jeweler'
|
8
|
+
gem 'jeweler', :git => 'git://github.com/helios/jeweler.git'
|
data/Gemfile.lock
CHANGED
@@ -1,47 +1,47 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/helios/jeweler.git
|
3
|
+
revision: 948e4a7b1552a921c4d5b2968ed8fa40e45cfd20
|
4
|
+
specs:
|
5
|
+
jeweler (1.6.0)
|
6
|
+
bundler (~> 1.0.0)
|
7
|
+
git (>= 1.2.5)
|
8
|
+
rake
|
9
|
+
|
1
10
|
GEM
|
2
11
|
remote: http://rubygems.org/
|
3
12
|
specs:
|
4
|
-
activemodel (3.0.
|
5
|
-
activesupport (= 3.0.
|
13
|
+
activemodel (3.0.7)
|
14
|
+
activesupport (= 3.0.7)
|
6
15
|
builder (~> 2.1.2)
|
7
|
-
i18n (~> 0.
|
8
|
-
activerecord (3.0.
|
9
|
-
activemodel (= 3.0.
|
10
|
-
activesupport (= 3.0.
|
11
|
-
arel (~> 0.
|
12
|
-
tzinfo (~> 0.3.
|
13
|
-
activesupport (3.0.
|
14
|
-
arel (0.
|
15
|
-
activesupport (>= 3.0.0.beta)
|
16
|
+
i18n (~> 0.5.0)
|
17
|
+
activerecord (3.0.7)
|
18
|
+
activemodel (= 3.0.7)
|
19
|
+
activesupport (= 3.0.7)
|
20
|
+
arel (~> 2.0.2)
|
21
|
+
tzinfo (~> 0.3.23)
|
22
|
+
activesupport (3.0.7)
|
23
|
+
arel (2.0.10)
|
16
24
|
builder (2.1.2)
|
17
25
|
diff-lcs (1.1.2)
|
18
|
-
gemcutter (0.6.1)
|
19
26
|
git (1.2.5)
|
20
|
-
i18n (0.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
rspec (2.
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
rspec-core (2.0.0.beta.19)
|
32
|
-
rspec-expectations (2.0.0.beta.19)
|
33
|
-
diff-lcs (>= 1.1.2)
|
34
|
-
rspec-mocks (2.0.0.beta.19)
|
35
|
-
rubyforge (2.0.4)
|
36
|
-
json_pure (>= 1.1.7)
|
37
|
-
tzinfo (0.3.23)
|
27
|
+
i18n (0.5.0)
|
28
|
+
rake (0.9.0)
|
29
|
+
rspec (2.6.0)
|
30
|
+
rspec-core (~> 2.6.0)
|
31
|
+
rspec-expectations (~> 2.6.0)
|
32
|
+
rspec-mocks (~> 2.6.0)
|
33
|
+
rspec-core (2.6.2)
|
34
|
+
rspec-expectations (2.6.0)
|
35
|
+
diff-lcs (~> 1.1.2)
|
36
|
+
rspec-mocks (2.6.0)
|
37
|
+
tzinfo (0.3.27)
|
38
38
|
|
39
39
|
PLATFORMS
|
40
40
|
ruby
|
41
41
|
|
42
42
|
DEPENDENCIES
|
43
|
-
activerecord (
|
44
|
-
activesupport (
|
45
|
-
jeweler
|
43
|
+
activerecord (>= 3.0.0)
|
44
|
+
activesupport (>= 3.0.0)
|
45
|
+
jeweler!
|
46
46
|
rake
|
47
|
-
rspec (~> 2.
|
47
|
+
rspec (~> 2.6.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/ancestree.gemspec
CHANGED
@@ -1,60 +1,68 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ancestree}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brian Rose", "Gabe Varela"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-05-23}
|
13
13
|
s.description = %q{Ancestree is a Rails 3 plugin that makes inheriting properties from parent objects in tree-like structure simple.}
|
14
14
|
s.email = %q{brian@heimidal.net}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
"uninstall.rb"
|
19
|
+
"Gemfile",
|
20
|
+
"Gemfile.lock",
|
21
|
+
"MIT-LICENSE",
|
22
|
+
"README",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"ancestree.gemspec",
|
26
|
+
"init.rb",
|
27
|
+
"install.rb",
|
28
|
+
"lib/ancestree.rb",
|
29
|
+
"spec/inherit_ancestor_attributes_spec.rb",
|
30
|
+
"spec/spec_helper.rb",
|
31
|
+
"uninstall.rb"
|
33
32
|
]
|
34
33
|
s.homepage = %q{http://github.com/heimidal/ancestree}
|
35
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
36
34
|
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = %q{1.
|
35
|
+
s.rubygems_version = %q{1.6.2}
|
38
36
|
s.summary = %q{Rails 3 plugin to inherit attributes}
|
39
|
-
s.test_files = [
|
40
|
-
"spec/inherit_ancestor_attributes_spec.rb",
|
41
|
-
"spec/spec_helper.rb"
|
42
|
-
]
|
43
37
|
|
44
38
|
if s.respond_to? :specification_version then
|
45
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
46
39
|
s.specification_version = 3
|
47
40
|
|
48
41
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
42
|
+
s.add_runtime_dependency(%q<rake>, [">= 0"])
|
43
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
|
44
|
+
s.add_runtime_dependency(%q<activerecord>, [">= 3.0.0"])
|
45
|
+
s.add_runtime_dependency(%q<rspec>, ["~> 2.6.0"])
|
46
|
+
s.add_runtime_dependency(%q<jeweler>, [">= 0"])
|
49
47
|
s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
|
50
48
|
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0"])
|
51
49
|
s.add_runtime_dependency(%q<activerecord>, ["~> 3.0.0"])
|
52
50
|
else
|
51
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
52
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0"])
|
53
|
+
s.add_dependency(%q<activerecord>, [">= 3.0.0"])
|
54
|
+
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
|
55
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
53
56
|
s.add_dependency(%q<rspec>, ["~> 2.0.0"])
|
54
57
|
s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
|
55
58
|
s.add_dependency(%q<activerecord>, ["~> 3.0.0"])
|
56
59
|
end
|
57
60
|
else
|
61
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
62
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0"])
|
63
|
+
s.add_dependency(%q<activerecord>, [">= 3.0.0"])
|
64
|
+
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
|
65
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
58
66
|
s.add_dependency(%q<rspec>, ["~> 2.0.0"])
|
59
67
|
s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
|
60
68
|
s.add_dependency(%q<activerecord>, ["~> 3.0.0"])
|
data/init.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'ancestree'
|
1
|
+
require 'ancestree'
|
@@ -17,7 +17,7 @@ class MockTreeNode
|
|
17
17
|
attr_accessor :age
|
18
18
|
end
|
19
19
|
|
20
|
-
include
|
20
|
+
include Ancestree
|
21
21
|
include MockConcern
|
22
22
|
|
23
23
|
inherit_ancestor_attributes :name, :age, :company, :active?, :bang!
|
@@ -43,7 +43,7 @@ class OtherMockClass
|
|
43
43
|
attr_accessor :name, :other_attr
|
44
44
|
end
|
45
45
|
|
46
|
-
include
|
46
|
+
include Ancestree
|
47
47
|
include MockConcern
|
48
48
|
|
49
49
|
inherit_ancestor_attributes :name, :other_attr
|
@@ -51,7 +51,7 @@ class OtherMockClass
|
|
51
51
|
attr_accessor :parent
|
52
52
|
end
|
53
53
|
|
54
|
-
describe
|
54
|
+
describe Ancestree do
|
55
55
|
context "with parent" do
|
56
56
|
subject { node = MockTreeNode.new; node.parent = MockTreeNode.new; node }
|
57
57
|
|
@@ -160,4 +160,4 @@ describe InheritAncestorAttributes do
|
|
160
160
|
lambda { @node_2.age }.should raise_error
|
161
161
|
end
|
162
162
|
end
|
163
|
-
end
|
163
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ancestree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brian Rose
|
@@ -16,13 +16,88 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2011-05-23 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
+
type: :runtime
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
name: rake
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
type: :runtime
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 7
|
44
|
+
segments:
|
45
|
+
- 3
|
46
|
+
- 0
|
47
|
+
- 0
|
48
|
+
version: 3.0.0
|
49
|
+
name: activesupport
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
type: :runtime
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 7
|
60
|
+
segments:
|
61
|
+
- 3
|
62
|
+
- 0
|
63
|
+
- 0
|
64
|
+
version: 3.0.0
|
65
|
+
name: activerecord
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
type: :runtime
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 23
|
76
|
+
segments:
|
77
|
+
- 2
|
78
|
+
- 6
|
79
|
+
- 0
|
80
|
+
version: 2.6.0
|
23
81
|
name: rspec
|
24
82
|
prerelease: false
|
25
|
-
|
83
|
+
version_requirements: *id004
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
type: :runtime
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 3
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
version: "0"
|
95
|
+
name: jeweler
|
96
|
+
prerelease: false
|
97
|
+
version_requirements: *id005
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
type: :development
|
100
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
26
101
|
none: false
|
27
102
|
requirements:
|
28
103
|
- - ~>
|
@@ -33,12 +108,12 @@ dependencies:
|
|
33
108
|
- 0
|
34
109
|
- 0
|
35
110
|
version: 2.0.0
|
36
|
-
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: activesupport
|
111
|
+
name: rspec
|
40
112
|
prerelease: false
|
41
|
-
|
113
|
+
version_requirements: *id006
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
type: :runtime
|
116
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
42
117
|
none: false
|
43
118
|
requirements:
|
44
119
|
- - ~>
|
@@ -49,12 +124,12 @@ dependencies:
|
|
49
124
|
- 0
|
50
125
|
- 0
|
51
126
|
version: 3.0.0
|
52
|
-
|
53
|
-
version_requirements: *id002
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
name: activerecord
|
127
|
+
name: activesupport
|
56
128
|
prerelease: false
|
57
|
-
|
129
|
+
version_requirements: *id007
|
130
|
+
- !ruby/object:Gem::Dependency
|
131
|
+
type: :runtime
|
132
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
58
133
|
none: false
|
59
134
|
requirements:
|
60
135
|
- - ~>
|
@@ -65,8 +140,9 @@ dependencies:
|
|
65
140
|
- 0
|
66
141
|
- 0
|
67
142
|
version: 3.0.0
|
68
|
-
|
69
|
-
|
143
|
+
name: activerecord
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *id008
|
70
146
|
description: Ancestree is a Rails 3 plugin that makes inheriting properties from parent objects in tree-like structure simple.
|
71
147
|
email: brian@heimidal.net
|
72
148
|
executables: []
|
@@ -76,7 +152,6 @@ extensions: []
|
|
76
152
|
extra_rdoc_files:
|
77
153
|
- README
|
78
154
|
files:
|
79
|
-
- .gitignore
|
80
155
|
- Gemfile
|
81
156
|
- Gemfile.lock
|
82
157
|
- MIT-LICENSE
|
@@ -95,8 +170,8 @@ homepage: http://github.com/heimidal/ancestree
|
|
95
170
|
licenses: []
|
96
171
|
|
97
172
|
post_install_message:
|
98
|
-
rdoc_options:
|
99
|
-
|
173
|
+
rdoc_options: []
|
174
|
+
|
100
175
|
require_paths:
|
101
176
|
- lib
|
102
177
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -120,10 +195,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
195
|
requirements: []
|
121
196
|
|
122
197
|
rubyforge_project:
|
123
|
-
rubygems_version: 1.
|
198
|
+
rubygems_version: 1.6.2
|
124
199
|
signing_key:
|
125
200
|
specification_version: 3
|
126
201
|
summary: Rails 3 plugin to inherit attributes
|
127
|
-
test_files:
|
128
|
-
|
129
|
-
- spec/spec_helper.rb
|
202
|
+
test_files: []
|
203
|
+
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pkg/
|