tree.rb 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/examples/ruby_examples/find_directory_without_subdirectory.rb +2 -2
- data/examples/ruby_examples/find_files.rb +4 -5
- data/examples/ruby_examples/print_files.rb +14 -2
- data/lib/tree_rb.rb +17 -15
- data/lib/tree_rb/cli/cli_tree.rb +32 -37
- data/lib/tree_rb/{abs_node.rb → core/abs_node.rb} +0 -1
- data/lib/tree_rb/{basic_tree_node_visitor.rb → core/basic_tree_node_visitor.rb} +0 -0
- data/lib/tree_rb/{leaf_node.rb → core/leaf_node.rb} +0 -0
- data/lib/tree_rb/{tree_node.rb → core/tree_node.rb} +1 -0
- data/lib/tree_rb/{tree_node_visitor.rb → core/tree_node_visitor.rb} +0 -0
- data/lib/tree_rb/exception.rb +7 -0
- data/lib/tree_rb/{util → input_file_system}/dir_processor.rb +0 -0
- data/lib/tree_rb/{directory_walker.rb → input_file_system/directory_walker.rb} +3 -3
- data/lib/tree_rb/input_html_page/dom_walker.rb +36 -0
- data/lib/tree_rb/output_dircat/dircat_helper.rb +24 -0
- data/lib/tree_rb/output_dircat/dircat_visitor.rb +78 -0
- data/lib/tree_rb/output_dircat/entry.rb +65 -0
- data/lib/tree_rb/{d3js_helper.rb → output_html/d3js_helper.rb} +10 -2
- data/lib/tree_rb/output_html/directory_to_hash2_visitor.rb +105 -0
- data/lib/tree_rb/{erb_render.rb → output_html/erb_render.rb} +0 -0
- data/lib/tree_rb/{visitors → output_sqlite}/sqlite_dir_tree_visitor.rb +0 -1
- data/lib/tree_rb/output_sqlite/sqlite_helper.rb +29 -0
- data/lib/tree_rb/version.rb +1 -1
- data/lib/tree_rb/visitors/callback_tree_node_visitor2.rb +0 -1
- data/lib/tree_rb/visitors/clone_tree_node_visitor.rb +0 -1
- data/lib/tree_rb/visitors/depth_tree_node_visitor.rb +0 -1
- data/lib/tree_rb/visitors/{flat_print_tree_node_visitors.rb → flat_print_tree_node_visitor.rb} +0 -0
- data/lib/tree_rb/{visitors → visitors_file_system}/build_dir_tree_visitor.rb +0 -0
- data/lib/tree_rb/{visitors → visitors_file_system}/directory_to_hash_visitor.rb +0 -0
- data/lib/tree_rb_cli.rb +0 -2
- data/spec/fixtures/html_pages/test_1.html +22 -0
- data/spec/fixtures/tmp/dircat +34 -0
- data/spec/tree_rb/cli/cli_tree_generic_spec.rb +2 -2
- data/spec/tree_rb/{tree_dsl_spec.rb → core/tree_dsl_spec.rb} +3 -3
- data/spec/tree_rb/{tree_dsl_with_derived_class1_spec.rb → core/tree_dsl_with_derived_class1_spec.rb} +1 -1
- data/spec/tree_rb/{tree_dsl_with_derived_class_spec.rb → core/tree_dsl_with_derived_class_spec.rb} +1 -1
- data/spec/tree_rb/{tree_node_paths_spec.rb → core/tree_node_paths_spec.rb} +2 -2
- data/spec/tree_rb/{tree_node_spec.rb → core/tree_node_spec.rb} +1 -1
- data/spec/tree_rb/{tree_node_visitor_delegate_spec.rb → core/tree_node_visitor_delegate_spec.rb} +1 -1
- data/spec/tree_rb/{tree_node_visitor_dsl_spec.rb → core/tree_node_visitor_dsl_spec.rb} +1 -1
- data/spec/tree_rb/{util → input_file_system}/dir_processor_spec.rb +2 -2
- data/spec/tree_rb/{directory_walker_spec.rb → input_file_system/directory_walker_spec.rb} +11 -12
- data/spec/tree_rb/input_html_page/dom_walker_spec.rb +18 -0
- data/tree.rb.gemspec +12 -11
- metadata +95 -79
- data/lib/tree_rb/visitors/directory_to_hash2_visitor.rb +0 -418
- data/spec/fixtures/test_dir_1/.dir_with_dot/dummy.txt +0 -1
- data/spec/fixtures/test_dir_2/[Dsube]/sub/.gitkeep +0 -0
@@ -1,22 +1,21 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
-
require File.join(File.dirname(__FILE__),
|
2
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
|
3
3
|
|
4
4
|
describe DirTreeWalker do
|
5
5
|
|
6
|
-
it
|
6
|
+
it 'should accept option :ignore with regex' do
|
7
7
|
walker = DirTreeWalker.new :ignore => /^\./
|
8
|
-
walker.ignore_file?(
|
9
|
-
walker.ignore_dir?(
|
8
|
+
walker.ignore_file?('.thumbnails').should be_true
|
9
|
+
walker.ignore_dir?('.thumbnails').should be_true
|
10
10
|
end
|
11
11
|
|
12
|
-
it
|
13
|
-
walker = DirTreeWalker.new :ignore =>
|
14
|
-
walker.ignore_file?(
|
15
|
-
walker.ignore_dir?(
|
12
|
+
it 'should accept option :ignore with string' do
|
13
|
+
walker = DirTreeWalker.new :ignore => '.git'
|
14
|
+
walker.ignore_file?('.git').should be_true
|
15
|
+
walker.ignore_dir?('.git').should be_true
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
it "should accept option :ignore_dir" do
|
18
|
+
it 'should accept option :ignore_dir' do
|
20
19
|
dtw = DirTreeWalker.new :ignore_dir => [/^\./, "private_dir" ]
|
21
20
|
dtw.should be_ignore_dir ".git"
|
22
21
|
dtw.should be_ignore_dir "private_dir"
|
@@ -27,9 +26,9 @@ describe DirTreeWalker do
|
|
27
26
|
dtw.should be_ignore_file "pippo.xml"
|
28
27
|
end
|
29
28
|
|
30
|
-
it
|
29
|
+
it 'should accept option :match' do
|
31
30
|
dtw = DirTreeWalker.new :match => /.jpg/
|
32
|
-
dtw.should be_match
|
31
|
+
dtw.should be_match 'foo.jpg'
|
33
32
|
end
|
34
33
|
|
35
34
|
it "should ignore files and directory" do
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require File.join(File.dirname(__FILE__), "..", "..", "spec_helper")
|
3
|
+
|
4
|
+
describe DomWalker do
|
5
|
+
|
6
|
+
it "should capture all files" do
|
7
|
+
value = Nokogiri::HTML.parse(File.read(File.join(FIXTURES, "test_json", "1.json")))
|
8
|
+
# pp value
|
9
|
+
parent = value.search("//body").first
|
10
|
+
# recursive_search(parent)
|
11
|
+
|
12
|
+
dom_walker = DomWalker.new(parent)
|
13
|
+
dom_walker.run(FlatPrintTreeNodeVisitor.new)
|
14
|
+
dom_walker.run(PrintTreeNodeVisitor.new)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
data/tree.rb.gemspec
CHANGED
@@ -4,7 +4,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
4
4
|
require "tree_rb/version"
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
|
-
gem.name =
|
7
|
+
gem.name = 'tree.rb'
|
8
8
|
gem.version = TreeRb::VERSION
|
9
9
|
gem.platform = Gem::Platform::RUBY
|
10
10
|
gem.summary = "tree.rb is a 'clone' of tree unix command. The gem implements a library to mange tree structures."
|
@@ -28,8 +28,8 @@ An example of DSL to build tree:
|
|
28
28
|
EOF
|
29
29
|
|
30
30
|
gem.authors = %w{ Tokiro }
|
31
|
-
gem.email =
|
32
|
-
gem.homepage =
|
31
|
+
gem.email = 'tokiro.oyama@gmail.com'
|
32
|
+
gem.homepage = 'http://github.com/tokiro/tree.rb'
|
33
33
|
|
34
34
|
gem.post_install_message = %q{Thank you to have installed tree.rb, any feedback is appreciated.}
|
35
35
|
|
@@ -46,14 +46,15 @@ An example of DSL to build tree:
|
|
46
46
|
# dependencies
|
47
47
|
#
|
48
48
|
|
49
|
-
gem.add_runtime_dependency(%q<json>, [
|
50
|
-
gem.add_runtime_dependency(%q<ansi>, [
|
51
|
-
gem.add_runtime_dependency(%q<sqlite3>, [
|
49
|
+
gem.add_runtime_dependency(%q<json>, ['>= 0'])
|
50
|
+
gem.add_runtime_dependency(%q<ansi>, ['>= 0'])
|
51
|
+
gem.add_runtime_dependency(%q<sqlite3>, ['>= 0'])
|
52
|
+
gem.add_runtime_dependency(%q<nokogiri>, ['>= 0'])
|
52
53
|
|
53
|
-
gem.add_development_dependency(%q<rake>, [
|
54
|
-
gem.add_development_dependency(%q<yard>, [
|
55
|
-
gem.add_development_dependency(%q<bundler>, [
|
56
|
-
gem.add_development_dependency(%q<rspec>, [
|
54
|
+
gem.add_development_dependency(%q<rake>, ['>= 0'])
|
55
|
+
gem.add_development_dependency(%q<yard>, ['>= 0'])
|
56
|
+
gem.add_development_dependency(%q<bundler>, ['>= 0'])
|
57
|
+
gem.add_development_dependency(%q<rspec>, ['>= 0'])
|
57
58
|
|
58
59
|
#
|
59
60
|
# files
|
@@ -70,7 +71,7 @@ An example of DSL to build tree:
|
|
70
71
|
#
|
71
72
|
# gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
72
73
|
# gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
73
|
-
gem.executables = Dir[
|
74
|
+
gem.executables = Dir['bin/*'].map(&File.method(:basename))
|
74
75
|
|
75
76
|
|
76
77
|
#
|
metadata
CHANGED
@@ -1,134 +1,143 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tree.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.11
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tokiro
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: json
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: ansi
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: sqlite3
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: '0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: rake
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- -
|
73
|
+
- - '>='
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: '0'
|
70
76
|
type: :development
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- -
|
80
|
+
- - '>='
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: '0'
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: yard
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
|
-
- -
|
87
|
+
- - '>='
|
84
88
|
- !ruby/object:Gem::Version
|
85
89
|
version: '0'
|
86
90
|
type: :development
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
|
-
- -
|
94
|
+
- - '>='
|
92
95
|
- !ruby/object:Gem::Version
|
93
96
|
version: '0'
|
94
97
|
- !ruby/object:Gem::Dependency
|
95
98
|
name: bundler
|
96
99
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
100
|
requirements:
|
99
|
-
- -
|
101
|
+
- - '>='
|
100
102
|
- !ruby/object:Gem::Version
|
101
103
|
version: '0'
|
102
104
|
type: :development
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
|
-
- -
|
108
|
+
- - '>='
|
108
109
|
- !ruby/object:Gem::Version
|
109
110
|
version: '0'
|
110
111
|
- !ruby/object:Gem::Dependency
|
111
112
|
name: rspec
|
112
113
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
121
|
requirements:
|
123
|
-
- -
|
122
|
+
- - '>='
|
124
123
|
- !ruby/object:Gem::Version
|
125
124
|
version: '0'
|
126
|
-
description:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
125
|
+
description: |
|
126
|
+
(This gem was named as treevisitor)
|
127
|
+
tree.rb is a 'clone' of tree unix command. The gem implements a library to mange tree structures.
|
128
|
+
The gem contains also a library to build tree with a dsl (domain specific language), and
|
129
|
+
an implementation of visitor design pattern.
|
130
|
+
An example of DSL to build tree:
|
131
|
+
<pre>
|
132
|
+
tree = TreeNode.create do
|
133
|
+
node "root" do
|
134
|
+
leaf "l1"
|
135
|
+
node "sub" do
|
136
|
+
leaf "l3"
|
137
|
+
end
|
138
|
+
node "wo leaves"
|
139
|
+
end
|
140
|
+
</pre>
|
132
141
|
email: tokiro.oyama@gmail.com
|
133
142
|
executables:
|
134
143
|
- rtree
|
@@ -149,28 +158,34 @@ files:
|
|
149
158
|
- lib/tree_visitor.rb
|
150
159
|
- lib/tree_rb/cli/cli_json.rb
|
151
160
|
- lib/tree_rb/cli/cli_tree.rb
|
152
|
-
- lib/tree_rb/
|
153
|
-
- lib/tree_rb/
|
161
|
+
- lib/tree_rb/core/abs_node.rb
|
162
|
+
- lib/tree_rb/core/leaf_node.rb
|
163
|
+
- lib/tree_rb/core/tree_node_visitor.rb
|
164
|
+
- lib/tree_rb/core/tree_node.rb
|
165
|
+
- lib/tree_rb/core/basic_tree_node_visitor.rb
|
166
|
+
- lib/tree_rb/output_sqlite/sqlite_helper.rb
|
167
|
+
- lib/tree_rb/output_sqlite/sqlite_dir_tree_visitor.rb
|
168
|
+
- lib/tree_rb/visitors_file_system/build_dir_tree_visitor.rb
|
169
|
+
- lib/tree_rb/visitors_file_system/directory_to_hash_visitor.rb
|
170
|
+
- lib/tree_rb/visitors/flat_print_tree_node_visitor.rb
|
154
171
|
- lib/tree_rb/visitors/print_dir_tree_visitor.rb
|
155
|
-
- lib/tree_rb/visitors/build_dir_tree_visitor.rb
|
156
172
|
- lib/tree_rb/visitors/depth_tree_node_visitor.rb
|
157
|
-
- lib/tree_rb/visitors/directory_to_hash2_visitor.rb
|
158
173
|
- lib/tree_rb/visitors/print_tree_node_visitor.rb
|
159
174
|
- lib/tree_rb/visitors/callback_tree_node_visitor2.rb
|
160
|
-
- lib/tree_rb/visitors/sqlite_dir_tree_visitor.rb
|
161
|
-
- lib/tree_rb/visitors/directory_to_hash_visitor.rb
|
162
|
-
- lib/tree_rb/visitors/flat_print_tree_node_visitors.rb
|
163
175
|
- lib/tree_rb/visitors/block_tree_node_visitor.rb
|
164
176
|
- lib/tree_rb/visitors/clone_tree_node_visitor.rb
|
165
|
-
- lib/tree_rb/abs_node.rb
|
166
177
|
- lib/tree_rb/extension_numeric.rb
|
167
|
-
- lib/tree_rb/
|
178
|
+
- lib/tree_rb/output_html/directory_to_hash2_visitor.rb
|
179
|
+
- lib/tree_rb/output_html/d3js_helper.rb
|
180
|
+
- lib/tree_rb/output_html/erb_render.rb
|
181
|
+
- lib/tree_rb/input_file_system/directory_walker.rb
|
182
|
+
- lib/tree_rb/input_file_system/dir_processor.rb
|
168
183
|
- lib/tree_rb/extension_digest.rb
|
169
|
-
- lib/tree_rb/
|
170
|
-
- lib/tree_rb/
|
171
|
-
- lib/tree_rb/
|
172
|
-
- lib/tree_rb/
|
173
|
-
- lib/tree_rb/
|
184
|
+
- lib/tree_rb/exception.rb
|
185
|
+
- lib/tree_rb/output_dircat/dircat_helper.rb
|
186
|
+
- lib/tree_rb/output_dircat/dircat_visitor.rb
|
187
|
+
- lib/tree_rb/output_dircat/entry.rb
|
188
|
+
- lib/tree_rb/input_html_page/dom_walker.rb
|
174
189
|
- lib/tree_rb/version.rb
|
175
190
|
- lib/treevisitor.rb
|
176
191
|
- lib/tree_rb.rb
|
@@ -200,54 +215,54 @@ files:
|
|
200
215
|
- spec/tree_rb/cli/cli_tree_generic_spec.rb
|
201
216
|
- spec/tree_rb/cli/cli_tree_d3js_spec.rb
|
202
217
|
- spec/tree_rb/cli/cli_json_spec.rb
|
203
|
-
- spec/tree_rb/
|
218
|
+
- spec/tree_rb/core/tree_dsl_with_derived_class_spec.rb
|
219
|
+
- spec/tree_rb/core/tree_dsl_spec.rb
|
220
|
+
- spec/tree_rb/core/tree_node_paths_spec.rb
|
221
|
+
- spec/tree_rb/core/tree_dsl_with_derived_class1_spec.rb
|
222
|
+
- spec/tree_rb/core/tree_node_visitor_delegate_spec.rb
|
223
|
+
- spec/tree_rb/core/tree_node_spec.rb
|
224
|
+
- spec/tree_rb/core/tree_node_visitor_dsl_spec.rb
|
204
225
|
- spec/tree_rb/visitors/depth_tree_node_visitor_spec.rb
|
205
226
|
- spec/tree_rb/visitors/callback_tree_node_visitor2_spec.rb
|
206
227
|
- spec/tree_rb/visitors/block_tree_node_visitor_spec.rb
|
207
228
|
- spec/tree_rb/visitors/tree_node_visitors_spec.rb
|
208
|
-
- spec/tree_rb/
|
209
|
-
- spec/tree_rb/directory_walker_spec.rb
|
210
|
-
- spec/tree_rb/tree_dsl_spec.rb
|
229
|
+
- spec/tree_rb/input_file_system/dir_processor_spec.rb
|
230
|
+
- spec/tree_rb/input_file_system/directory_walker_spec.rb
|
211
231
|
- spec/tree_rb/extension_numeric_spec.rb
|
212
|
-
- spec/tree_rb/
|
213
|
-
- spec/tree_rb/tree_dsl_with_derived_class1_spec.rb
|
214
|
-
- spec/tree_rb/tree_node_visitor_delegate_spec.rb
|
215
|
-
- spec/tree_rb/tree_node_spec.rb
|
216
|
-
- spec/tree_rb/tree_node_visitor_dsl_spec.rb
|
232
|
+
- spec/tree_rb/input_html_page/dom_walker_spec.rb
|
217
233
|
- spec/tree_rb/extension_digest_spec.rb
|
234
|
+
- spec/fixtures/tmp/dircat
|
218
235
|
- spec/fixtures/test_dir_1/dir.1/dir.1.2/file.1.2.1
|
219
236
|
- spec/fixtures/test_dir_1/dir.1/file.1.1
|
220
237
|
- spec/fixtures/test_dir_1/dir.2/file.2.1
|
238
|
+
- spec/fixtures/html_pages/test_1.html
|
221
239
|
- spec/fixtures/test_json/1.json
|
222
|
-
- spec/fixtures/test_dir_2/[Dsube]/sub/.gitkeep
|
223
|
-
- spec/fixtures/test_dir_1/.dir_with_dot/dummy.txt
|
224
240
|
- bin/rtree
|
225
241
|
- bin/tree.rb
|
226
242
|
- bin/tree_rb
|
227
243
|
- bin/rjson.rb
|
228
244
|
homepage: http://github.com/tokiro/tree.rb
|
229
245
|
licenses: []
|
246
|
+
metadata: {}
|
230
247
|
post_install_message: Thank you to have installed tree.rb, any feedback is appreciated.
|
231
248
|
rdoc_options: []
|
232
249
|
require_paths:
|
233
250
|
- lib
|
234
251
|
required_ruby_version: !ruby/object:Gem::Requirement
|
235
|
-
none: false
|
236
252
|
requirements:
|
237
|
-
- -
|
253
|
+
- - '>='
|
238
254
|
- !ruby/object:Gem::Version
|
239
255
|
version: '0'
|
240
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
241
|
-
none: false
|
242
257
|
requirements:
|
243
|
-
- -
|
258
|
+
- - '>='
|
244
259
|
- !ruby/object:Gem::Version
|
245
260
|
version: '0'
|
246
261
|
requirements: []
|
247
262
|
rubyforge_project:
|
248
|
-
rubygems_version:
|
263
|
+
rubygems_version: 2.0.0.rc.2
|
249
264
|
signing_key:
|
250
|
-
specification_version:
|
265
|
+
specification_version: 4
|
251
266
|
summary: tree.rb is a 'clone' of tree unix command. The gem implements a library to
|
252
267
|
mange tree structures.
|
253
268
|
test_files:
|
@@ -257,25 +272,26 @@ test_files:
|
|
257
272
|
- spec/tree_rb/cli/cli_tree_generic_spec.rb
|
258
273
|
- spec/tree_rb/cli/cli_tree_d3js_spec.rb
|
259
274
|
- spec/tree_rb/cli/cli_json_spec.rb
|
260
|
-
- spec/tree_rb/
|
275
|
+
- spec/tree_rb/core/tree_dsl_with_derived_class_spec.rb
|
276
|
+
- spec/tree_rb/core/tree_dsl_spec.rb
|
277
|
+
- spec/tree_rb/core/tree_node_paths_spec.rb
|
278
|
+
- spec/tree_rb/core/tree_dsl_with_derived_class1_spec.rb
|
279
|
+
- spec/tree_rb/core/tree_node_visitor_delegate_spec.rb
|
280
|
+
- spec/tree_rb/core/tree_node_spec.rb
|
281
|
+
- spec/tree_rb/core/tree_node_visitor_dsl_spec.rb
|
261
282
|
- spec/tree_rb/visitors/depth_tree_node_visitor_spec.rb
|
262
283
|
- spec/tree_rb/visitors/callback_tree_node_visitor2_spec.rb
|
263
284
|
- spec/tree_rb/visitors/block_tree_node_visitor_spec.rb
|
264
285
|
- spec/tree_rb/visitors/tree_node_visitors_spec.rb
|
265
|
-
- spec/tree_rb/
|
266
|
-
- spec/tree_rb/directory_walker_spec.rb
|
267
|
-
- spec/tree_rb/tree_dsl_spec.rb
|
286
|
+
- spec/tree_rb/input_file_system/dir_processor_spec.rb
|
287
|
+
- spec/tree_rb/input_file_system/directory_walker_spec.rb
|
268
288
|
- spec/tree_rb/extension_numeric_spec.rb
|
269
|
-
- spec/tree_rb/
|
270
|
-
- spec/tree_rb/tree_dsl_with_derived_class1_spec.rb
|
271
|
-
- spec/tree_rb/tree_node_visitor_delegate_spec.rb
|
272
|
-
- spec/tree_rb/tree_node_spec.rb
|
273
|
-
- spec/tree_rb/tree_node_visitor_dsl_spec.rb
|
289
|
+
- spec/tree_rb/input_html_page/dom_walker_spec.rb
|
274
290
|
- spec/tree_rb/extension_digest_spec.rb
|
291
|
+
- spec/fixtures/tmp/dircat
|
275
292
|
- spec/fixtures/test_dir_1/dir.1/dir.1.2/file.1.2.1
|
276
293
|
- spec/fixtures/test_dir_1/dir.1/file.1.1
|
277
294
|
- spec/fixtures/test_dir_1/dir.2/file.2.1
|
295
|
+
- spec/fixtures/html_pages/test_1.html
|
278
296
|
- spec/fixtures/test_json/1.json
|
279
|
-
- spec/fixtures/test_dir_2/[Dsube]/sub/.gitkeep
|
280
|
-
- spec/fixtures/test_dir_1/.dir_with_dot/dummy.txt
|
281
297
|
has_rdoc:
|