acts_as_tree 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +0 -3
- data/.gitignore +1 -0
- data/README.rdoc +2 -2
- data/VERSION +1 -1
- data/acts_as_tree.gemspec +47 -0
- data/lib/acts_as_tree.rb +2 -0
- data/test/acts_as_tree_test.rb +1 -1
- metadata +3 -2
data/.document
CHANGED
data/.gitignore
CHANGED
data/README.rdoc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
=
|
|
1
|
+
= acts_as_tree
|
|
2
2
|
|
|
3
3
|
Specify this +acts_as+ extension if you want to model a tree structure by providing a parent association and a children
|
|
4
4
|
association. This requires that you have a foreign key column, which by default is called +parent_id+.
|
|
@@ -28,4 +28,4 @@ association. This requires that you have a foreign key column, which by default
|
|
|
28
28
|
root.children # => [child1]
|
|
29
29
|
root.children.first.children.first # => subchild1
|
|
30
30
|
|
|
31
|
-
Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license
|
|
31
|
+
Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{acts_as_tree}
|
|
8
|
+
s.version = "0.1.1"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Erik Dahlstrand", "Rails Core"]
|
|
12
|
+
s.date = %q{2010-02-04}
|
|
13
|
+
s.description = %q{Specify this acts_as extension if you want to model a tree structure by providing a parent association and a children association.}
|
|
14
|
+
s.email = %q{erik.dahlstrand@gmail.com}
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"README.rdoc"
|
|
17
|
+
]
|
|
18
|
+
s.files = [
|
|
19
|
+
".document",
|
|
20
|
+
".gitignore",
|
|
21
|
+
"README.rdoc",
|
|
22
|
+
"Rakefile",
|
|
23
|
+
"VERSION",
|
|
24
|
+
"acts_as_tree.gemspec",
|
|
25
|
+
"lib/acts_as_tree.rb",
|
|
26
|
+
"test/acts_as_tree_test.rb"
|
|
27
|
+
]
|
|
28
|
+
s.homepage = %q{http://github.com/erdah/acts_as_tree}
|
|
29
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
|
30
|
+
s.require_paths = ["lib"]
|
|
31
|
+
s.rubygems_version = %q{1.3.5}
|
|
32
|
+
s.summary = %q{Gem version of acts_as_tree Rails plugin.}
|
|
33
|
+
s.test_files = [
|
|
34
|
+
"test/acts_as_tree_test.rb"
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
if s.respond_to? :specification_version then
|
|
38
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
39
|
+
s.specification_version = 3
|
|
40
|
+
|
|
41
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
42
|
+
else
|
|
43
|
+
end
|
|
44
|
+
else
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
data/lib/acts_as_tree.rb
CHANGED
data/test/acts_as_tree_test.rb
CHANGED
|
@@ -18,7 +18,7 @@ class Test::Unit::TestCase
|
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :
|
|
21
|
+
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
|
|
22
22
|
|
|
23
23
|
# AR keeps printing annoying schema statements
|
|
24
24
|
$stdout = StringIO.new
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_as_tree
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Erik Dahlstrand
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date:
|
|
13
|
+
date: 2010-02-04 00:00:00 +01:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies: []
|
|
16
16
|
|
|
@@ -28,6 +28,7 @@ files:
|
|
|
28
28
|
- README.rdoc
|
|
29
29
|
- Rakefile
|
|
30
30
|
- VERSION
|
|
31
|
+
- acts_as_tree.gemspec
|
|
31
32
|
- lib/acts_as_tree.rb
|
|
32
33
|
- test/acts_as_tree_test.rb
|
|
33
34
|
has_rdoc: true
|