pg_ltree 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- def setup
6
- %w(
7
- Top
8
- Top.Science
9
- Top.Science.Astronomy
10
- Top.Science.Astronomy.Astrophysics
11
- Top.Science.Astronomy.Cosmology
12
- Top.Hobbies
13
- Top.Hobbies.Amateurs_Astronomy
14
- Top.Collections
15
- Top.Collections.Pictures
16
- Top.Collections.Pictures.Astronomy
17
- Top.Collections.Pictures.Astronomy.Stars
18
- Top.Collections.Pictures.Astronomy.Galaxies
19
- Top.Collections.Pictures.Astronomy.Astronauts
20
- ).each do |path|
21
- %i( active deactive ).each do |status|
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
- def teardown
28
- NotUniqTreeNode.delete_all
29
- end
30
-
31
- test '#roots' do
32
- assert_equal NotUniqTreeNode.roots.pluck(:new_path), ['Top', 'Top']
33
- end
34
-
35
- test '#at_depth' do
36
- assert_equal NotUniqTreeNode.at_depth(5).pluck(:new_path), %w(
37
- Top.Collections.Pictures.Astronomy.Stars
38
- Top.Collections.Pictures.Astronomy.Stars
39
- Top.Collections.Pictures.Astronomy.Galaxies
40
- Top.Collections.Pictures.Astronomy.Galaxies
41
- Top.Collections.Pictures.Astronomy.Astronauts
42
- Top.Collections.Pictures.Astronomy.Astronauts
43
- )
44
- end
45
-
46
- test '#leaves' do
47
- assert_equal NotUniqTreeNode.where(status: :active).leaves.pluck(:new_path), %w(
48
- Top.Science.Astronomy.Astrophysics
49
- Top.Science.Astronomy.Cosmology
50
- Top.Hobbies.Amateurs_Astronomy
51
- Top.Collections.Pictures.Astronomy.Stars
52
- Top.Collections.Pictures.Astronomy.Galaxies
53
- Top.Collections.Pictures.Astronomy.Astronauts
54
- )
55
- end
56
-
57
- test '#where_path_liked' do
58
- assert_equal NotUniqTreeNode.where_path_liked('*{2}.Astronomy|Pictures').pluck(:new_path), %w(
59
- Top.Science.Astronomy
60
- Top.Science.Astronomy
61
- Top.Collections.Pictures
62
- Top.Collections.Pictures
63
- )
64
- end
65
-
66
- def not_uniq_tree_node_find_by_path(path)
67
- NotUniqTreeNode.find_by(status: :active, new_path: path)
68
- end
69
-
70
- test '.root?' do
71
- assert not_uniq_tree_node_find_by_path('Top').root?
72
- assert_not not_uniq_tree_node_find_by_path('Top.Science').root?
73
- end
74
-
75
- test '.depth' do
76
- assert_equal not_uniq_tree_node_find_by_path('Top.Hobbies.Amateurs_Astronomy').depth, 3
77
- end
78
-
79
- test '.root' do
80
- assert_equal not_uniq_tree_node_find_by_path('Top.Hobbies.Amateurs_Astronomy').root.new_path, 'Top'
81
- end
82
-
83
- test '.parent' do
84
- assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Astronauts').parent.new_path,
85
- 'Top.Collections.Pictures.Astronomy'
86
- end
87
-
88
- test '.leaves' do
89
- assert_equal not_uniq_tree_node_find_by_path('Top.Science').leaves.pluck(:new_path), %w(
90
- Top.Science.Astronomy.Astrophysics
91
- Top.Science.Astronomy.Cosmology
92
- )
93
- end
94
-
95
- test '.leaf?' do
96
- assert_not not_uniq_tree_node_find_by_path('Top').leaf?
97
- assert not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Astronauts').leaf?
98
- end
99
-
100
- test '.self_and_ancestors' do
101
- assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Astronauts').self_and_ancestors.pluck(:new_path), %w(
102
- Top
103
- Top.Collections
104
- Top.Collections.Pictures
105
- Top.Collections.Pictures.Astronomy
106
- Top.Collections.Pictures.Astronomy.Astronauts
107
- )
108
- end
109
-
110
- test '.ancestors' do
111
- assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Astronauts').ancestors.pluck(:new_path), %w(
112
- Top
113
- Top.Collections
114
- Top.Collections.Pictures
115
- Top.Collections.Pictures.Astronomy
116
- )
117
- end
118
-
119
- test '.self_and_descendents' do
120
- assert_equal not_uniq_tree_node_find_by_path('Top.Science').self_and_descendents.pluck(:new_path), %w(
121
- Top.Science
122
- Top.Science.Astronomy
123
- Top.Science.Astronomy.Astrophysics
124
- Top.Science.Astronomy.Cosmology
125
- )
126
- end
127
-
128
- test '.descendents' do
129
- assert_equal not_uniq_tree_node_find_by_path('Top.Science').descendents.pluck(:new_path), %w(
130
- Top.Science.Astronomy
131
- Top.Science.Astronomy.Astrophysics
132
- Top.Science.Astronomy.Cosmology
133
- )
134
- end
135
-
136
- test '.self_and_siblings' do
137
- assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Stars').self_and_siblings.pluck(:new_path), %w(
138
- Top.Collections.Pictures.Astronomy.Stars
139
- Top.Collections.Pictures.Astronomy.Galaxies
140
- Top.Collections.Pictures.Astronomy.Astronauts
141
- )
142
- end
143
-
144
-
145
- test '.siblings' do
146
- assert_equal not_uniq_tree_node_find_by_path('Top.Collections.Pictures.Astronomy.Stars').siblings.pluck(:new_path), %w(
147
- Top.Collections.Pictures.Astronomy.Galaxies
148
- Top.Collections.Pictures.Astronomy.Astronauts
149
- )
150
- end
151
-
152
- test '.children' do
153
- assert_equal not_uniq_tree_node_find_by_path('Top.Hobbies').children.pluck(:new_path), %w(
154
- Top.Hobbies.Amateurs_Astronomy
155
- )
156
- end
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.0.0
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-08-09 00:00:00.000000000 Z
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: '0'
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: '0'
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: '0'
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.4.6
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/pg_ltree/ltree_test.rb
141
- - test/pg_ltree/scoped_for_test.rb
142
- - test/doc/_index.html
143
- - test/doc/class_list.html
144
- - test/doc/index.html
145
- - test/doc/file_list.html
146
- - test/doc/css/full_list.css
147
- - test/doc/css/style.css
148
- - test/doc/css/common.css
149
- - test/doc/js/jquery.js
150
- - test/doc/js/full_list.js
151
- - test/doc/js/app.js
152
- - test/doc/top-level-namespace.html
153
- - test/doc/method_list.html
154
- - test/doc/frames.html
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/locales/en.yml
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/environments/development.rb
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/assets.rb
151
+ - test/dummy/config/initializers/session_store.rb
180
152
  - test/dummy/config/initializers/wrap_parameters.rb
181
- - test/dummy/config/initializers/inflections.rb
182
- - test/dummy/config/initializers/filter_parameter_logging.rb
183
- - test/dummy/config/application.rb
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/bin/rake
188
- - test/dummy/bin/setup
189
- - test/dummy/bin/rails
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:
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :pg_ltree do
3
- # # Task goes here
4
- # end
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>