pg_ltree 1.0.0 → 1.1.0
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.
- checksums.yaml +4 -4
- data/lib/pg_ltree/ltree.rb +20 -4
- data/lib/pg_ltree/scoped_for.rb +1 -0
- data/lib/pg_ltree/version.rb +1 -1
- data/test/dummy/config/database.yml +14 -0
- data/test/dummy/log/development.log +167 -681
- data/test/dummy/log/test.log +135809 -21732
- data/test/pg_ltree/ltree_test.rb +16 -0
- data/test/pg_ltree/scoped_for_test.rb +190 -151
- data/test/test_helper.rb +0 -7
- metadata +44 -70
- data/lib/tasks/pg_ltree_tasks.rake +0 -4
- data/test/doc/_index.html +0 -88
- data/test/doc/class_list.html +0 -58
- data/test/doc/css/common.css +0 -1
- data/test/doc/css/full_list.css +0 -57
- data/test/doc/css/style.css +0 -339
- data/test/doc/file_list.html +0 -57
- data/test/doc/frames.html +0 -26
- data/test/doc/index.html +0 -88
- data/test/doc/js/app.js +0 -219
- data/test/doc/js/full_list.js +0 -181
- data/test/doc/js/jquery.js +0 -4
- data/test/doc/method_list.html +0 -57
- data/test/doc/top-level-namespace.html +0 -102
data/test/pg_ltree/ltree_test.rb
CHANGED
@@ -151,4 +151,20 @@ class PgLtree::LtreeTest < ActiveSupport::TestCase
|
|
151
151
|
Top.Hobbies.Amateurs_Astronomy
|
152
152
|
)
|
153
153
|
end
|
154
|
+
|
155
|
+
test '.cascade_update' do
|
156
|
+
node = TreeNode.find_by(path: 'Top.Hobbies')
|
157
|
+
node.update path: 'Top.WoW'
|
158
|
+
|
159
|
+
assert_equal node.self_and_descendents.pluck(:path), %w(
|
160
|
+
Top.WoW
|
161
|
+
Top.WoW.Amateurs_Astronomy
|
162
|
+
)
|
163
|
+
end
|
164
|
+
|
165
|
+
test '.cascade_destroy' do
|
166
|
+
TreeNode.find_by(path: 'Top.Collections').destroy
|
167
|
+
|
168
|
+
assert_equal TreeNode.where("path ~ 'Top.Collections'").pluck(:path), %w()
|
169
|
+
end
|
154
170
|
end
|
@@ -1,157 +1,196 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class PgLtree::ScopedForTest < ActiveSupport::TestCase
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
).each do |
|
21
|
-
|
22
|
-
NotUniqTreeNode.create! new_path: path, status: status
|
23
|
-
end
|
4
|
+
def setup
|
5
|
+
%w(
|
6
|
+
Top
|
7
|
+
Top.Science
|
8
|
+
Top.Science.Astronomy
|
9
|
+
Top.Science.Astronomy.Astrophysics
|
10
|
+
Top.Science.Astronomy.Cosmology
|
11
|
+
Top.Hobbies
|
12
|
+
Top.Hobbies.Amateurs_Astronomy
|
13
|
+
Top.Collections
|
14
|
+
Top.Collections.Pictures
|
15
|
+
Top.Collections.Pictures.Astronomy
|
16
|
+
Top.Collections.Pictures.Astronomy.Stars
|
17
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
18
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
19
|
+
).each do |path|
|
20
|
+
%i( active deactive ).each do |status|
|
21
|
+
NotUniqTreeNode.create! new_path: path, status: status
|
24
22
|
end
|
25
23
|
end
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
24
|
+
end
|
25
|
+
|
26
|
+
def teardown
|
27
|
+
NotUniqTreeNode.delete_all
|
28
|
+
end
|
29
|
+
|
30
|
+
test '#roots' do
|
31
|
+
assert_equal NotUniqTreeNode.roots.pluck(:new_path), ['Top', 'Top']
|
32
|
+
end
|
33
|
+
|
34
|
+
test '#at_depth' do
|
35
|
+
assert_equal NotUniqTreeNode.at_depth(5).pluck(:new_path), %w(
|
36
|
+
Top.Collections.Pictures.Astronomy.Stars
|
37
|
+
Top.Collections.Pictures.Astronomy.Stars
|
38
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
39
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
40
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
41
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
42
|
+
)
|
43
|
+
end
|
44
|
+
|
45
|
+
test '#leaves' do
|
46
|
+
assert_equal NotUniqTreeNode.where(status: :active).leaves.pluck(:new_path), %w(
|
47
|
+
Top.Science.Astronomy.Astrophysics
|
48
|
+
Top.Science.Astronomy.Cosmology
|
49
|
+
Top.Hobbies.Amateurs_Astronomy
|
50
|
+
Top.Collections.Pictures.Astronomy.Stars
|
51
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
52
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
53
|
+
)
|
54
|
+
end
|
55
|
+
|
56
|
+
test '#where_path_liked' do
|
57
|
+
assert_equal NotUniqTreeNode.where_path_liked('*{2}.Astronomy|Pictures').pluck(:new_path), %w(
|
58
|
+
Top.Science.Astronomy
|
59
|
+
Top.Science.Astronomy
|
60
|
+
Top.Collections.Pictures
|
61
|
+
Top.Collections.Pictures
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
65
|
+
def not_uniq_tree_node_find_by_path(path)
|
66
|
+
NotUniqTreeNode.find_by(status: :active, new_path: path)
|
67
|
+
end
|
68
|
+
|
69
|
+
test '.root?' do
|
70
|
+
assert not_uniq_tree_node_find_by_path('Top').root?
|
71
|
+
assert_not not_uniq_tree_node_find_by_path('Top.Science').root?
|
72
|
+
end
|
73
|
+
|
74
|
+
test '.depth' do
|
75
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Hobbies.Amateurs_Astronomy').depth, 3
|
76
|
+
end
|
77
|
+
|
78
|
+
test '.root' do
|
79
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Hobbies.Amateurs_Astronomy').root.new_path, 'Top'
|
80
|
+
end
|
81
|
+
|
82
|
+
test '.parent' do
|
83
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Astronauts').parent.new_path,
|
84
|
+
'Top.Collections.Pictures.Astronomy'
|
85
|
+
end
|
86
|
+
|
87
|
+
test '.leaves' do
|
88
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Science').leaves.pluck(:new_path), %w(
|
89
|
+
Top.Science.Astronomy.Astrophysics
|
90
|
+
Top.Science.Astronomy.Cosmology
|
91
|
+
)
|
92
|
+
end
|
93
|
+
|
94
|
+
test '.leaf?' do
|
95
|
+
assert_not not_uniq_tree_node_find_by_path('Top').leaf?
|
96
|
+
assert not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Astronauts').leaf?
|
97
|
+
end
|
98
|
+
|
99
|
+
test '.self_and_ancestors' do
|
100
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Astronauts').self_and_ancestors.pluck(:new_path), %w(
|
101
|
+
Top
|
102
|
+
Top.Collections
|
103
|
+
Top.Collections.Pictures
|
104
|
+
Top.Collections.Pictures.Astronomy
|
105
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
106
|
+
)
|
107
|
+
end
|
108
|
+
|
109
|
+
test '.ancestors' do
|
110
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Astronauts').ancestors.pluck(:new_path), %w(
|
111
|
+
Top
|
112
|
+
Top.Collections
|
113
|
+
Top.Collections.Pictures
|
114
|
+
Top.Collections.Pictures.Astronomy
|
115
|
+
)
|
116
|
+
end
|
117
|
+
|
118
|
+
test '.self_and_descendents' do
|
119
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Science').self_and_descendents.pluck(:new_path), %w(
|
120
|
+
Top.Science
|
121
|
+
Top.Science.Astronomy
|
122
|
+
Top.Science.Astronomy.Astrophysics
|
123
|
+
Top.Science.Astronomy.Cosmology
|
124
|
+
)
|
125
|
+
end
|
126
|
+
|
127
|
+
test '.descendents' do
|
128
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Science').descendents.pluck(:new_path), %w(
|
129
|
+
Top.Science.Astronomy
|
130
|
+
Top.Science.Astronomy.Astrophysics
|
131
|
+
Top.Science.Astronomy.Cosmology
|
132
|
+
)
|
133
|
+
end
|
134
|
+
|
135
|
+
test '.self_and_siblings' do
|
136
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Stars').self_and_siblings.pluck(:new_path), %w(
|
137
|
+
Top.Collections.Pictures.Astronomy.Stars
|
138
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
139
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
140
|
+
)
|
141
|
+
end
|
142
|
+
|
143
|
+
|
144
|
+
test '.siblings' do
|
145
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Stars').siblings.pluck(:new_path), %w(
|
146
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
147
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
148
|
+
)
|
149
|
+
end
|
150
|
+
|
151
|
+
test '.children' do
|
152
|
+
assert_equal not_uniq_tree_node_find_by_path('Top.Hobbies').children.pluck(:new_path), %w(
|
153
|
+
Top.Hobbies.Amateurs_Astronomy
|
154
|
+
)
|
155
|
+
end
|
156
|
+
|
157
|
+
test '.cascade_update' do
|
158
|
+
node = NotUniqTreeNode.find_by(new_path: 'Top.Hobbies', status: :active)
|
159
|
+
node.update new_path: 'Top.WoW'
|
160
|
+
|
161
|
+
assert_equal node.self_and_descendents.pluck(:new_path), %w(
|
162
|
+
Top.WoW
|
163
|
+
Top.WoW.Amateurs_Astronomy
|
164
|
+
)
|
165
|
+
end
|
166
|
+
|
167
|
+
test '.cascade_destroy' do
|
168
|
+
assert_equal NotUniqTreeNode.where("new_path <@ 'Top.Collections'").pluck(:new_path), %w(
|
169
|
+
Top.Collections
|
170
|
+
Top.Collections
|
171
|
+
Top.Collections.Pictures
|
172
|
+
Top.Collections.Pictures
|
173
|
+
Top.Collections.Pictures.Astronomy
|
174
|
+
Top.Collections.Pictures.Astronomy
|
175
|
+
Top.Collections.Pictures.Astronomy.Stars
|
176
|
+
Top.Collections.Pictures.Astronomy.Stars
|
177
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
178
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
179
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
180
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
181
|
+
)
|
182
|
+
|
183
|
+
NotUniqTreeNode.find_by(new_path: 'Top.Collections', status: :active).destroy
|
184
|
+
|
185
|
+
assert_equal NotUniqTreeNode.where("new_path <@ 'Top.Collections'").where(status: :active).pluck(:new_path), %w()
|
186
|
+
|
187
|
+
assert_equal NotUniqTreeNode.where("new_path <@ 'Top.Collections'").where(status: :deactive).pluck(:new_path), %w(
|
188
|
+
Top.Collections
|
189
|
+
Top.Collections.Pictures
|
190
|
+
Top.Collections.Pictures.Astronomy
|
191
|
+
Top.Collections.Pictures.Astronomy.Stars
|
192
|
+
Top.Collections.Pictures.Astronomy.Galaxies
|
193
|
+
Top.Collections.Pictures.Astronomy.Astronauts
|
194
|
+
)
|
195
|
+
end
|
157
196
|
end
|
data/test/test_helper.rb
CHANGED
@@ -17,10 +17,3 @@ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
|
17
17
|
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
18
18
|
ActiveSupport::TestCase.fixtures :all
|
19
19
|
end
|
20
|
-
|
21
|
-
require 'simplecov'
|
22
|
-
require 'coveralls'
|
23
|
-
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
24
|
-
SimpleCov.start do
|
25
|
-
add_filter '/test/'
|
26
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_ltree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Panamarenka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,16 +30,15 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.17.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.17.0
|
41
41
|
description: Organise ActiveRecord model into a tree structure with PostgreSQL LTree
|
42
|
-
(Use clean ltree without additional fields)
|
43
42
|
email:
|
44
43
|
- andrei.panamarenka@gmail.com
|
45
44
|
executables: []
|
@@ -52,20 +51,6 @@ files:
|
|
52
51
|
- lib/pg_ltree/ltree.rb
|
53
52
|
- lib/pg_ltree/scoped_for.rb
|
54
53
|
- lib/pg_ltree/version.rb
|
55
|
-
- lib/tasks/pg_ltree_tasks.rake
|
56
|
-
- test/doc/_index.html
|
57
|
-
- test/doc/class_list.html
|
58
|
-
- test/doc/css/common.css
|
59
|
-
- test/doc/css/full_list.css
|
60
|
-
- test/doc/css/style.css
|
61
|
-
- test/doc/file_list.html
|
62
|
-
- test/doc/frames.html
|
63
|
-
- test/doc/index.html
|
64
|
-
- test/doc/js/app.js
|
65
|
-
- test/doc/js/full_list.js
|
66
|
-
- test/doc/js/jquery.js
|
67
|
-
- test/doc/method_list.html
|
68
|
-
- test/doc/top-level-namespace.html
|
69
54
|
- test/dummy/README.rdoc
|
70
55
|
- test/dummy/Rakefile
|
71
56
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -82,6 +67,7 @@ files:
|
|
82
67
|
- test/dummy/config.ru
|
83
68
|
- test/dummy/config/application.rb
|
84
69
|
- test/dummy/config/boot.rb
|
70
|
+
- test/dummy/config/database.yml
|
85
71
|
- test/dummy/config/database.yml.example
|
86
72
|
- test/dummy/config/environment.rb
|
87
73
|
- test/dummy/config/environments/development.rb
|
@@ -124,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
110
|
requirements:
|
125
111
|
- - ">="
|
126
112
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
113
|
+
version: 2.0.0
|
128
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
115
|
requirements:
|
130
116
|
- - ">="
|
@@ -132,68 +118,56 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
118
|
version: '0'
|
133
119
|
requirements: []
|
134
120
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.2.2
|
136
122
|
signing_key:
|
137
123
|
specification_version: 4
|
138
124
|
summary: Organise ActiveRecord model into a tree structure with PostgreSQL LTree
|
139
125
|
test_files:
|
140
|
-
- test/
|
141
|
-
- test/
|
142
|
-
- test/
|
143
|
-
- test/
|
144
|
-
- test/
|
145
|
-
- test/
|
146
|
-
- test/
|
147
|
-
- test/
|
148
|
-
- test/
|
149
|
-
- test/
|
150
|
-
- test/
|
151
|
-
- test/
|
152
|
-
- test/
|
153
|
-
- test/
|
154
|
-
- test/
|
155
|
-
- test/test_helper.rb
|
156
|
-
- test/dummy/config.ru
|
157
|
-
- test/dummy/db/migrate/20150809114547_create_not_uniq_tree_node.rb
|
158
|
-
- test/dummy/db/migrate/20150809114528_create_tree_node.rb
|
159
|
-
- test/dummy/db/migrate/20150809114511_enable_postgres_ltree.rb
|
160
|
-
- test/dummy/db/schema.rb
|
161
|
-
- test/dummy/README.rdoc
|
162
|
-
- test/dummy/public/favicon.ico
|
163
|
-
- test/dummy/public/404.html
|
164
|
-
- test/dummy/public/500.html
|
165
|
-
- test/dummy/public/422.html
|
166
|
-
- test/dummy/config/routes.rb
|
126
|
+
- test/dummy/app/assets/javascripts/application.js
|
127
|
+
- test/dummy/app/assets/stylesheets/application.css
|
128
|
+
- test/dummy/app/controllers/application_controller.rb
|
129
|
+
- test/dummy/app/helpers/application_helper.rb
|
130
|
+
- test/dummy/app/models/not_uniq_tree_node.rb
|
131
|
+
- test/dummy/app/models/tree_node.rb
|
132
|
+
- test/dummy/app/views/layouts/application.html.erb
|
133
|
+
- test/dummy/bin/bundle
|
134
|
+
- test/dummy/bin/rails
|
135
|
+
- test/dummy/bin/rake
|
136
|
+
- test/dummy/bin/setup
|
137
|
+
- test/dummy/config/application.rb
|
138
|
+
- test/dummy/config/boot.rb
|
139
|
+
- test/dummy/config/database.yml
|
140
|
+
- test/dummy/config/database.yml.example
|
167
141
|
- test/dummy/config/environment.rb
|
168
|
-
- test/dummy/config/
|
142
|
+
- test/dummy/config/environments/development.rb
|
169
143
|
- test/dummy/config/environments/production.rb
|
170
144
|
- test/dummy/config/environments/test.rb
|
171
|
-
- test/dummy/config/
|
172
|
-
- test/dummy/config/database.yml.example
|
173
|
-
- test/dummy/config/boot.rb
|
174
|
-
- test/dummy/config/secrets.yml
|
175
|
-
- test/dummy/config/initializers/session_store.rb
|
176
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
145
|
+
- test/dummy/config/initializers/assets.rb
|
177
146
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
147
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
148
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
149
|
+
- test/dummy/config/initializers/inflections.rb
|
178
150
|
- test/dummy/config/initializers/mime_types.rb
|
179
|
-
- test/dummy/config/initializers/
|
151
|
+
- test/dummy/config/initializers/session_store.rb
|
180
152
|
- test/dummy/config/initializers/wrap_parameters.rb
|
181
|
-
- test/dummy/config/
|
182
|
-
- test/dummy/config/
|
183
|
-
- test/dummy/config/
|
153
|
+
- test/dummy/config/locales/en.yml
|
154
|
+
- test/dummy/config/routes.rb
|
155
|
+
- test/dummy/config/secrets.yml
|
156
|
+
- test/dummy/config.ru
|
157
|
+
- test/dummy/db/migrate/20150809114511_enable_postgres_ltree.rb
|
158
|
+
- test/dummy/db/migrate/20150809114528_create_tree_node.rb
|
159
|
+
- test/dummy/db/migrate/20150809114547_create_not_uniq_tree_node.rb
|
160
|
+
- test/dummy/db/schema.rb
|
184
161
|
- test/dummy/log/development.log
|
185
162
|
- test/dummy/log/test.log
|
163
|
+
- test/dummy/public/404.html
|
164
|
+
- test/dummy/public/422.html
|
165
|
+
- test/dummy/public/500.html
|
166
|
+
- test/dummy/public/favicon.ico
|
186
167
|
- test/dummy/Rakefile
|
187
|
-
- test/dummy/
|
188
|
-
- test/
|
189
|
-
- test/
|
190
|
-
- test/dummy/bin/bundle
|
191
|
-
- test/dummy/app/assets/stylesheets/application.css
|
192
|
-
- test/dummy/app/assets/javascripts/application.js
|
193
|
-
- test/dummy/app/controllers/application_controller.rb
|
194
|
-
- test/dummy/app/views/layouts/application.html.erb
|
195
|
-
- test/dummy/app/helpers/application_helper.rb
|
196
|
-
- test/dummy/app/models/tree_node.rb
|
197
|
-
- test/dummy/app/models/not_uniq_tree_node.rb
|
168
|
+
- test/dummy/README.rdoc
|
169
|
+
- test/pg_ltree/ltree_test.rb
|
170
|
+
- test/pg_ltree/scoped_for_test.rb
|
198
171
|
- test/pg_ltree_test.rb
|
172
|
+
- test/test_helper.rb
|
199
173
|
has_rdoc:
|
data/test/doc/_index.html
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Documentation by YARD 0.8.7.6
|
8
|
-
|
9
|
-
</title>
|
10
|
-
|
11
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8">
|
16
|
-
hasFrames = window.top.frames.main ? true : false;
|
17
|
-
relpath = '';
|
18
|
-
framesUrl = "frames.html#!_index.html";
|
19
|
-
</script>
|
20
|
-
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<div id="header">
|
30
|
-
<div id="menu">
|
31
|
-
|
32
|
-
|
33
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div id="search">
|
37
|
-
|
38
|
-
<a class="full_list_link" id="class_list_link"
|
39
|
-
href="class_list.html">
|
40
|
-
Class List
|
41
|
-
</a>
|
42
|
-
|
43
|
-
<a class="full_list_link" id="method_list_link"
|
44
|
-
href="method_list.html">
|
45
|
-
Method List
|
46
|
-
</a>
|
47
|
-
|
48
|
-
<a class="full_list_link" id="file_list_link"
|
49
|
-
href="file_list.html">
|
50
|
-
File List
|
51
|
-
</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.6</h1>
|
60
|
-
<div id="listing">
|
61
|
-
<h1 class="alphaindex">Alphabetic Index</h1>
|
62
|
-
|
63
|
-
<div class="clear"></div>
|
64
|
-
<h2>Namespace Listing A-Z</h2>
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
<table>
|
70
|
-
<tr>
|
71
|
-
<td valign='top' width="33%">
|
72
|
-
|
73
|
-
</td>
|
74
|
-
</tr>
|
75
|
-
</table>
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
</div>
|
80
|
-
|
81
|
-
<div id="footer">
|
82
|
-
Generated on Sun Aug 9 21:09:19 2015 by
|
83
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
84
|
-
0.8.7.6 (ruby-2.2.0).
|
85
|
-
</div>
|
86
|
-
|
87
|
-
</body>
|
88
|
-
</html>
|