ancestry 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +150 -45
- data/Rakefile +2 -2
- data/ancestry.gemspec +3 -3
- data/install.rb +1 -0
- data/lib/ancestry/acts_as_tree.rb +114 -30
- data/test/acts_as_tree_test.rb +176 -9
- data/test/ancestry_plugin.sqlite3.db +0 -0
- data/test/debug.log +211713 -0
- data/test/schema.rb +10 -0
- data/test/test_helper.rb +1 -1
- metadata +2 -4
- data/rails/init.rb +0 -1
- data/uninstall.rb +0 -1
data/test/schema.rb
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
ActiveRecord::Schema.define(:version => 0) do
|
2
2
|
create_table :test_nodes, :force => true do |t|
|
3
3
|
t.string :ancestry
|
4
|
+
t.integer :depth_cache
|
4
5
|
end
|
5
6
|
|
6
7
|
create_table :alternative_test_nodes, :force => true do |t|
|
7
8
|
t.string :alternative_ancestry
|
8
9
|
end
|
10
|
+
|
11
|
+
create_table :other_test_nodes, :force => true do |t|
|
12
|
+
t.string :ancestry
|
13
|
+
end
|
14
|
+
|
15
|
+
create_table :parent_id_test_nodes, :force => true do |t|
|
16
|
+
t.string :ancestry
|
17
|
+
t.integer :parent_id
|
18
|
+
end
|
9
19
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ancestry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kroes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-22 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -34,10 +34,8 @@ files:
|
|
34
34
|
- ancestry.gemspec
|
35
35
|
- init.rb
|
36
36
|
- install.rb
|
37
|
-
- uninstall.rb
|
38
37
|
- lib/ancestry/acts_as_tree.rb
|
39
38
|
- lib/ancestry.rb
|
40
|
-
- rails/init.rb
|
41
39
|
- test/acts_as_tree_test.rb
|
42
40
|
- test/ancestry_plugin.sqlite3.db
|
43
41
|
- test/database.yml
|
data/rails/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'ancestry'
|
data/uninstall.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Uninstall hook code here
|