treevisitor 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/tree.rb +0 -0
- data/lib/treevisitor/basic_tree_node_visitor.rb +11 -1
- data/lib/treevisitor/directory_walker.rb +22 -6
- data/lib/treevisitor/version.rb +1 -1
- data/lib/treevisitor/visitors/build_dir_tree_visitor.rb +7 -3
- data/spec/spec_helper.rb +6 -2
- data/spec/treevisitor/cli/cli_tree_spec.rb +23 -12
- data/spec/treevisitor/directory_walker_spec.rb +23 -0
- data/treevisitor.gemspec +3 -5
- metadata +122 -114
data/bin/tree.rb
CHANGED
File without changes
|
@@ -12,6 +12,12 @@ module TreeVisitor
|
|
12
12
|
def enter_node( tree_node )
|
13
13
|
end
|
14
14
|
|
15
|
+
#
|
16
|
+
# called when the tree node is not accessible or an exception is raise when the node is accessed
|
17
|
+
#
|
18
|
+
def cannot_enter_node( tree_node, error)
|
19
|
+
end
|
20
|
+
|
15
21
|
# alias :enter_tree_node :enter_node
|
16
22
|
|
17
23
|
#
|
@@ -28,7 +34,11 @@ module TreeVisitor
|
|
28
34
|
def visit_leaf( leaf_node )
|
29
35
|
end
|
30
36
|
|
31
|
-
#
|
37
|
+
#
|
38
|
+
# called when the leaf node is not accessible or an exception is raise when the node is accessed
|
39
|
+
#
|
40
|
+
def cannot_visit_leaf( tree_node, error)
|
41
|
+
end
|
32
42
|
end
|
33
43
|
|
34
44
|
end
|
@@ -16,7 +16,7 @@ module TreeVisitor
|
|
16
16
|
#
|
17
17
|
# @overload initialize(dirname)
|
18
18
|
# @param [String] dirname the root of the tree (top level directory)
|
19
|
-
#
|
19
|
+
#
|
20
20
|
# @overload initialize(dirname, options)
|
21
21
|
# @param [Hash] options
|
22
22
|
# @option options [String,Regex, Array<String,Regexp>] :ignore list of ignore pattern
|
@@ -259,11 +259,24 @@ module TreeVisitor
|
|
259
259
|
# recurse on other directories
|
260
260
|
#
|
261
261
|
def process_directory(dirname)
|
262
|
-
@visitor.enter_node(dirname)
|
263
262
|
# return if ignore_dir?( dirname )
|
264
263
|
|
265
264
|
begin
|
266
|
-
Dir.entries(dirname).sort
|
265
|
+
entries = Dir.entries(dirname).sort
|
266
|
+
rescue Errno::EACCES => e
|
267
|
+
$stderr.puts e
|
268
|
+
@visitor.cannot_enter_node(dirname, e)
|
269
|
+
return
|
270
|
+
rescue Errno::EPERM => e
|
271
|
+
$stderr.puts e
|
272
|
+
@visitor.cannot_enter_node(dirname, e)
|
273
|
+
return
|
274
|
+
end
|
275
|
+
|
276
|
+
|
277
|
+
@visitor.enter_node(dirname)
|
278
|
+
entries.each { |basename|
|
279
|
+
begin
|
267
280
|
next if basename == "." or basename == ".." # ignore always "." and ".."
|
268
281
|
pathname = File.join(dirname, basename)
|
269
282
|
|
@@ -274,10 +287,13 @@ module TreeVisitor
|
|
274
287
|
@visitor.visit_leaf(pathname)
|
275
288
|
end
|
276
289
|
end
|
290
|
+
rescue Errno::EACCES => e
|
291
|
+
$stderr.puts e
|
292
|
+
rescue Errno::EPERM
|
293
|
+
$stderr.puts e
|
294
|
+
end
|
277
295
|
}
|
278
|
-
|
279
|
-
$stderr.puts e
|
280
|
-
end
|
296
|
+
|
281
297
|
@visitor.exit_node(dirname)
|
282
298
|
end
|
283
299
|
end
|
data/lib/treevisitor/version.rb
CHANGED
@@ -5,7 +5,7 @@ module TreeVisitor
|
|
5
5
|
# It similar to CloneTreeNodeVisitor
|
6
6
|
#
|
7
7
|
class BuildDirTreeVisitor # < BasicTreeNodeVisitor
|
8
|
-
|
8
|
+
|
9
9
|
attr_reader :root
|
10
10
|
|
11
11
|
#
|
@@ -19,7 +19,7 @@ module TreeVisitor
|
|
19
19
|
# @see AbsNode#nr_leaves
|
20
20
|
#
|
21
21
|
attr_reader :nr_files
|
22
|
-
|
22
|
+
|
23
23
|
def initialize
|
24
24
|
super
|
25
25
|
@root = nil
|
@@ -27,7 +27,7 @@ module TreeVisitor
|
|
27
27
|
@nr_directories = 0
|
28
28
|
@nr_files = 0
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
def enter_node( pathname )
|
32
32
|
if @stack.empty?
|
33
33
|
tree_node = TreeNode.new( File.basename( pathname ) )
|
@@ -39,6 +39,10 @@ module TreeVisitor
|
|
39
39
|
@stack.push( tree_node )
|
40
40
|
end
|
41
41
|
|
42
|
+
def cannot_enter_node(pathname, error)
|
43
|
+
|
44
|
+
end
|
45
|
+
|
42
46
|
def exit_node( pathname )
|
43
47
|
@stack.pop
|
44
48
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -11,14 +11,18 @@ include TreeVisitor
|
|
11
11
|
|
12
12
|
FIXTURES = File.expand_path( File.join( File.dirname(__FILE__), "fixtures" ) )
|
13
13
|
|
14
|
-
def
|
14
|
+
def with_output_captured
|
15
15
|
old_stdout = $stdout
|
16
|
+
old_stderr = $stderr
|
16
17
|
out = StringIO.new
|
18
|
+
err = StringIO.new
|
17
19
|
$stdout = out
|
20
|
+
$stderr = err
|
18
21
|
begin
|
19
22
|
yield
|
20
23
|
ensure
|
21
24
|
$stdout = old_stdout
|
25
|
+
$stderr = old_stderr
|
22
26
|
end
|
23
|
-
out.string
|
27
|
+
{ :stdout => out.string, :stderr => err.string }
|
24
28
|
end
|
@@ -4,55 +4,66 @@ require File.join(File.dirname(__FILE__), "..", "..", "spec_helper")
|
|
4
4
|
describe CliTree do
|
5
5
|
|
6
6
|
it "help message" do
|
7
|
-
out =
|
7
|
+
out = with_output_captured do
|
8
8
|
args = %w{-h}
|
9
9
|
CliTree.new.parse_args(args)
|
10
10
|
end
|
11
|
-
out.should match /Usage:/
|
11
|
+
out[:stdout].should match /Usage:/
|
12
12
|
end
|
13
13
|
|
14
14
|
it "version" do
|
15
|
-
out =
|
15
|
+
out = with_output_captured do
|
16
16
|
args = %w{--version}
|
17
17
|
CliTree.new.parse_args(args)
|
18
18
|
end
|
19
19
|
version = TreeVisitor::VERSION
|
20
|
-
out.should match version
|
20
|
+
out[:stdout].should match version
|
21
21
|
end
|
22
22
|
|
23
23
|
it "should accepts switch -d (directories only)" do
|
24
|
-
out =
|
24
|
+
out = with_output_captured do
|
25
25
|
args = %w{-d}
|
26
26
|
args << File.join(FIXTURES, "test_dir_1")
|
27
27
|
CliTree.new.parse_args(args)
|
28
28
|
end
|
29
29
|
# puts out
|
30
|
-
out.split("\n").length.should == 6
|
30
|
+
out[:stdout].split("\n").length.should == 6
|
31
31
|
|
32
|
-
out =
|
32
|
+
out = with_output_captured do
|
33
33
|
args = %w{-da}
|
34
34
|
args << File.join(FIXTURES, "test_dir_1")
|
35
35
|
CliTree.new.parse_args(args)
|
36
36
|
end
|
37
37
|
# puts out
|
38
|
-
out.split("\n").length.should == 7
|
38
|
+
out[:stdout].split("\n").length.should == 7
|
39
39
|
end
|
40
40
|
|
41
41
|
it "should accepts switch -a (all files)" do
|
42
|
-
out =
|
42
|
+
out = with_output_captured do
|
43
43
|
args = %w{-a}
|
44
44
|
args << File.join(FIXTURES, "test_dir_1")
|
45
45
|
CliTree.new.parse_args(args)
|
46
46
|
end
|
47
47
|
# pp out
|
48
|
-
out.split("\n").length.should == 11
|
48
|
+
out[:stdout].split("\n").length.should == 11
|
49
49
|
|
50
|
-
out =
|
50
|
+
out = with_output_captured do
|
51
51
|
args = []
|
52
52
|
args << File.join(FIXTURES, "test_dir_1")
|
53
53
|
CliTree.new.parse_args(args)
|
54
54
|
end
|
55
55
|
# puts out
|
56
|
-
out.split("\n").length.should == 9
|
56
|
+
out[:stdout].split("\n").length.should == 9
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should show tree with inaccessible directories" do
|
60
|
+
out = with_output_captured do
|
61
|
+
args = []
|
62
|
+
args << File.join(FIXTURES, "test_dir_3_with_error")
|
63
|
+
CliTree.new.parse_args(args)
|
64
|
+
end
|
65
|
+
puts out
|
66
|
+
out[:stderr].should_not be_empty
|
67
|
+
out[:stdout].split("\n").length.should == 4
|
57
68
|
end
|
58
69
|
end
|
@@ -73,4 +73,27 @@ describe DirTreeWalker do
|
|
73
73
|
accumulator.sort.should == %w{ [Dsube] test_dir_2 }.sort
|
74
74
|
end
|
75
75
|
|
76
|
+
it "should ignore not accessible directory" do
|
77
|
+
|
78
|
+
dir = File.join(FIXTURES, "test_dir_3_with_error")
|
79
|
+
|
80
|
+
f1 = File.join(dir, "no_accessible_dir")
|
81
|
+
Dir.rmdir(f1) if File.exist?(f1)
|
82
|
+
Dir.mkdir(f1, 0000)
|
83
|
+
|
84
|
+
f2 = File.join(dir, "accessible_dir")
|
85
|
+
Dir.rmdir(f2) if File.exist?(f2)
|
86
|
+
Dir.mkdir(f2)
|
87
|
+
|
88
|
+
dir_tree_walker = DirTreeWalker.new(File.join(FIXTURES, "test_dir_3_with_error"))
|
89
|
+
accumulator = []
|
90
|
+
visitor = BlockTreeNodeVisitor.new { |pathname| accumulator << File.basename(pathname) }
|
91
|
+
dir_tree_walker.run(visitor)
|
92
|
+
accumulator.length.should == 2
|
93
|
+
accumulator.sort.should == %w{accessible_dir test_dir_3_with_error }.sort
|
94
|
+
|
95
|
+
# Dir.rmdir(f1)
|
96
|
+
# Dir.rmdir(f2)
|
97
|
+
end
|
98
|
+
|
76
99
|
end
|
data/treevisitor.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |gem|
|
|
21
21
|
#
|
22
22
|
|
23
23
|
gem.add_runtime_dependency(%q<json>, [">= 0"])
|
24
|
-
gem.add_development_dependency(%q<jeweler>, [">= 0"])
|
25
24
|
gem.add_development_dependency(%q<rake>, [">= 0"])
|
26
25
|
gem.add_development_dependency(%q<yard>, [">= 0"])
|
27
26
|
gem.add_development_dependency(%q<bundler>, [">= 0"])
|
@@ -30,27 +29,26 @@ Gem::Specification.new do |gem|
|
|
30
29
|
#
|
31
30
|
# bin
|
32
31
|
#
|
33
|
-
gem.executables = %w{ tree.rb }
|
34
32
|
# s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
33
|
+
gem.executables = %w{ tree.rb }
|
35
34
|
|
36
35
|
#
|
37
36
|
# files
|
38
37
|
#
|
38
|
+
# s.files = `git ls-files`.split("\n")
|
39
39
|
gem.files = %w{LICENSE.txt README.md Rakefile treevisitor.gemspec .gemtest}
|
40
40
|
gem.files.concat Dir['lib/**/*.rb']
|
41
41
|
gem.files.concat Dir['tasks/**/*.rake']
|
42
42
|
gem.files.concat Dir['examples/**/*']
|
43
|
-
# s.files = `git ls-files`.split("\n")
|
44
43
|
|
45
44
|
#
|
46
45
|
# test files
|
47
46
|
#
|
47
|
+
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
48
48
|
gem.test_files = Dir['spec/**/*.rb']
|
49
49
|
gem.test_files.concat Dir['spec/fixtures/**/*']
|
50
50
|
gem.test_files.concat Dir['spec/fixtures/**/.gitkeep']
|
51
51
|
gem.test_files.concat Dir['spec/fixtures/**/.dir_with_dot/*']
|
52
|
-
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
53
|
-
|
54
52
|
|
55
53
|
gem.require_paths = ["lib"]
|
56
54
|
end
|
metadata
CHANGED
@@ -1,196 +1,204 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: treevisitor
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Tokiro
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-08-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: json
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
25
22
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: jeweler
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
25
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version:
|
36
|
-
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
39
31
|
name: rake
|
40
|
-
|
41
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
42
33
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version:
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
47
38
|
type: :development
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: yard
|
51
39
|
prerelease: false
|
52
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: yard
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
53
49
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version:
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
58
54
|
type: :development
|
59
|
-
version_requirements: *id004
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: bundler
|
62
55
|
prerelease: false
|
63
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: bundler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
64
65
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version:
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
69
70
|
type: :development
|
70
|
-
version_requirements: *id005
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: rspec
|
73
71
|
prerelease: false
|
74
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
75
73
|
none: false
|
76
|
-
requirements:
|
77
|
-
- -
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version:
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
80
86
|
type: :development
|
81
|
-
|
82
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: ! " Implementation of visitor design pattern. It contains a 'tree.rb'\n
|
95
|
+
\ command line clone of the tree unix tool.\n"
|
83
96
|
email: tokiro.oyama@gmail.com
|
84
|
-
executables:
|
97
|
+
executables:
|
85
98
|
- tree.rb
|
86
99
|
extensions: []
|
87
|
-
|
88
100
|
extra_rdoc_files: []
|
89
|
-
|
90
|
-
files:
|
101
|
+
files:
|
91
102
|
- LICENSE.txt
|
92
103
|
- README.md
|
93
104
|
- Rakefile
|
94
105
|
- treevisitor.gemspec
|
95
106
|
- .gemtest
|
96
107
|
- bin/tree.rb
|
97
|
-
- lib/treevisitor/abs_node.rb
|
98
|
-
- lib/treevisitor/basic_tree_node_visitor.rb
|
99
108
|
- lib/treevisitor/cli/cli_tree.rb
|
100
|
-
- lib/treevisitor/directory_walker.rb
|
101
|
-
- lib/treevisitor/leaf_node.rb
|
102
|
-
- lib/treevisitor/tree_node.rb
|
103
|
-
- lib/treevisitor/tree_node_visitor.rb
|
104
109
|
- lib/treevisitor/util/dir_processor.rb
|
105
|
-
- lib/treevisitor/
|
106
|
-
- lib/treevisitor/visitors/
|
110
|
+
- lib/treevisitor/directory_walker.rb
|
111
|
+
- lib/treevisitor/visitors/print_dir_tree_visitor.rb
|
107
112
|
- lib/treevisitor/visitors/build_dir_tree_visitor.rb
|
108
|
-
- lib/treevisitor/visitors/callback_tree_node_visitor2.rb
|
109
|
-
- lib/treevisitor/visitors/clone_tree_node_visitor.rb
|
110
113
|
- lib/treevisitor/visitors/depth_tree_node_visitor.rb
|
114
|
+
- lib/treevisitor/visitors/print_tree_node_visitor.rb
|
115
|
+
- lib/treevisitor/visitors/callback_tree_node_visitor2.rb
|
111
116
|
- lib/treevisitor/visitors/directory_to_hash_visitor.rb
|
112
117
|
- lib/treevisitor/visitors/flat_print_tree_node_visitors.rb
|
113
|
-
- lib/treevisitor/visitors/
|
114
|
-
- lib/treevisitor/visitors/
|
115
|
-
- lib/treevisitor.rb
|
118
|
+
- lib/treevisitor/visitors/block_tree_node_visitor.rb
|
119
|
+
- lib/treevisitor/visitors/clone_tree_node_visitor.rb
|
120
|
+
- lib/treevisitor/abs_node.rb
|
121
|
+
- lib/treevisitor/leaf_node.rb
|
122
|
+
- lib/treevisitor/tree_node_visitor.rb
|
123
|
+
- lib/treevisitor/tree_node.rb
|
124
|
+
- lib/treevisitor/basic_tree_node_visitor.rb
|
125
|
+
- lib/treevisitor/version.rb
|
116
126
|
- lib/treevisitor_cli.rb
|
117
127
|
- lib/tree_visitor.rb
|
128
|
+
- lib/treevisitor.rb
|
118
129
|
- tasks/rspec.rake
|
119
130
|
- tasks/yard.rake
|
131
|
+
- examples/directory_walker/print_files.rb
|
120
132
|
- examples/directory_walker/directory_without_subdirectory.rb
|
121
133
|
- examples/directory_walker/find_files.rb
|
122
|
-
- examples/
|
123
|
-
- examples/protovis/directory_to_json_visitor.rb
|
124
|
-
- examples/protovis/index.html
|
134
|
+
- examples/protovis/treevisitor.png
|
125
135
|
- examples/protovis/protovis-r3.2.js
|
136
|
+
- examples/protovis/index.html
|
126
137
|
- examples/protovis/treevisitor.js
|
127
|
-
- examples/protovis/
|
128
|
-
- spec/spec_helper.rb
|
138
|
+
- examples/protovis/directory_to_json_visitor.rb
|
129
139
|
- spec/treevisitor/cli/cli_tree_spec.rb
|
140
|
+
- spec/treevisitor/util/dir_processor_spec.rb
|
141
|
+
- spec/treevisitor/visitors/depth_tree_node_visitor_spec.rb
|
142
|
+
- spec/treevisitor/visitors/callback_tree_node_visitor2_spec.rb
|
143
|
+
- spec/treevisitor/visitors/block_tree_node_visitor_spec.rb
|
144
|
+
- spec/treevisitor/visitors/tree_node_visitors_spec.rb
|
145
|
+
- spec/treevisitor/tree_dsl_with_derived_class_spec.rb
|
130
146
|
- spec/treevisitor/directory_walker_spec.rb
|
131
147
|
- spec/treevisitor/tree_dsl_spec.rb
|
132
|
-
- spec/treevisitor/tree_dsl_with_derived_class1_spec.rb
|
133
|
-
- spec/treevisitor/tree_dsl_with_derived_class_spec.rb
|
134
148
|
- spec/treevisitor/tree_node_paths_spec.rb
|
135
|
-
- spec/treevisitor/
|
149
|
+
- spec/treevisitor/tree_dsl_with_derived_class1_spec.rb
|
136
150
|
- spec/treevisitor/tree_node_visitor_delegate_spec.rb
|
151
|
+
- spec/treevisitor/tree_node_spec.rb
|
137
152
|
- spec/treevisitor/tree_node_visitor_dsl_spec.rb
|
138
|
-
- spec/
|
139
|
-
- spec/treevisitor/visitors/block_tree_node_visitor_spec.rb
|
140
|
-
- spec/treevisitor/visitors/callback_tree_node_visitor2_spec.rb
|
141
|
-
- spec/treevisitor/visitors/depth_tree_node_visitor_spec.rb
|
142
|
-
- spec/treevisitor/visitors/tree_node_visitors_spec.rb
|
153
|
+
- spec/spec_helper.rb
|
143
154
|
- spec/fixtures/test_dir_1/dir.1/dir.1.2/file.1.2.1
|
144
155
|
- spec/fixtures/test_dir_1/dir.1/file.1.1
|
145
156
|
- spec/fixtures/test_dir_1/dir.2/file.2.1
|
146
157
|
- spec/fixtures/test_dir_2/[Dsube]/sub/.gitkeep
|
147
158
|
- spec/fixtures/test_dir_1/.dir_with_dot/dummy.txt
|
148
|
-
has_rdoc: true
|
149
159
|
homepage: http://github.com/tokiro/treevisitor
|
150
160
|
licenses: []
|
151
|
-
|
152
161
|
post_install_message:
|
153
162
|
rdoc_options: []
|
154
|
-
|
155
|
-
require_paths:
|
163
|
+
require_paths:
|
156
164
|
- lib
|
157
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
166
|
none: false
|
159
|
-
requirements:
|
160
|
-
- -
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version:
|
163
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - ! '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
171
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
172
|
none: false
|
165
|
-
requirements:
|
166
|
-
- -
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version:
|
173
|
+
requirements:
|
174
|
+
- - ! '>='
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
169
177
|
requirements: []
|
170
|
-
|
171
178
|
rubyforge_project:
|
172
|
-
rubygems_version: 1.
|
179
|
+
rubygems_version: 1.8.24
|
173
180
|
signing_key:
|
174
181
|
specification_version: 3
|
175
182
|
summary: Implementation of visitor design pattern
|
176
|
-
test_files:
|
177
|
-
- spec/spec_helper.rb
|
183
|
+
test_files:
|
178
184
|
- spec/treevisitor/cli/cli_tree_spec.rb
|
185
|
+
- spec/treevisitor/util/dir_processor_spec.rb
|
186
|
+
- spec/treevisitor/visitors/depth_tree_node_visitor_spec.rb
|
187
|
+
- spec/treevisitor/visitors/callback_tree_node_visitor2_spec.rb
|
188
|
+
- spec/treevisitor/visitors/block_tree_node_visitor_spec.rb
|
189
|
+
- spec/treevisitor/visitors/tree_node_visitors_spec.rb
|
190
|
+
- spec/treevisitor/tree_dsl_with_derived_class_spec.rb
|
179
191
|
- spec/treevisitor/directory_walker_spec.rb
|
180
192
|
- spec/treevisitor/tree_dsl_spec.rb
|
181
|
-
- spec/treevisitor/tree_dsl_with_derived_class1_spec.rb
|
182
|
-
- spec/treevisitor/tree_dsl_with_derived_class_spec.rb
|
183
193
|
- spec/treevisitor/tree_node_paths_spec.rb
|
184
|
-
- spec/treevisitor/
|
194
|
+
- spec/treevisitor/tree_dsl_with_derived_class1_spec.rb
|
185
195
|
- spec/treevisitor/tree_node_visitor_delegate_spec.rb
|
196
|
+
- spec/treevisitor/tree_node_spec.rb
|
186
197
|
- spec/treevisitor/tree_node_visitor_dsl_spec.rb
|
187
|
-
- spec/
|
188
|
-
- spec/treevisitor/visitors/block_tree_node_visitor_spec.rb
|
189
|
-
- spec/treevisitor/visitors/callback_tree_node_visitor2_spec.rb
|
190
|
-
- spec/treevisitor/visitors/depth_tree_node_visitor_spec.rb
|
191
|
-
- spec/treevisitor/visitors/tree_node_visitors_spec.rb
|
198
|
+
- spec/spec_helper.rb
|
192
199
|
- spec/fixtures/test_dir_1/dir.1/dir.1.2/file.1.2.1
|
193
200
|
- spec/fixtures/test_dir_1/dir.1/file.1.1
|
194
201
|
- spec/fixtures/test_dir_1/dir.2/file.2.1
|
195
202
|
- spec/fixtures/test_dir_2/[Dsube]/sub/.gitkeep
|
196
203
|
- spec/fixtures/test_dir_1/.dir_with_dot/dummy.txt
|
204
|
+
has_rdoc:
|