dirtravel 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +2 -2
- data/doc/DirTravel.html +105 -20
- data/doc/DirTravel/DirEntry.html +14 -14
- data/doc/DirTravel/DirTravelError.html +15 -4
- data/doc/DirTravel/Entry.html +90 -90
- data/doc/DirTravel/FileEntry.html +40 -20
- data/doc/DirTravel/Travel.html +231 -109
- data/doc/_index.html +5 -5
- data/doc/class_list.html +6 -1
- data/doc/css/style.css +2 -1
- data/doc/file.CHANGELOG.html +14 -11
- data/doc/file.README.html +10 -10
- data/doc/file_list.html +6 -1
- data/doc/frames.html +5 -7
- data/doc/index.html +10 -10
- data/doc/js/app.js +7 -2
- data/doc/js/full_list.js +9 -6
- data/doc/method_list.html +12 -1
- data/doc/top-level-namespace.html +4 -4
- data/lib/dirtravel.rb +99 -40
- data/lib/version.rb +6 -0
- data/test/test_dirtravel.rb +5 -5
- metadata +34 -31
- data/Rakefile +0 -28
data/lib/version.rb
ADDED
data/test/test_dirtravel.rb
CHANGED
@@ -2,7 +2,7 @@ require 'test/unit'
|
|
2
2
|
require 'dirtravel'
|
3
3
|
|
4
4
|
class DirTravelTest < Test::Unit::TestCase
|
5
|
-
|
5
|
+
|
6
6
|
require 'fileutils'
|
7
7
|
|
8
8
|
Dir.chdir 'test'
|
@@ -24,12 +24,12 @@ class DirTravelTest < Test::Unit::TestCase
|
|
24
24
|
data = DirTravel::Travel.filetree( 'test' )
|
25
25
|
assert_equal( 3, data.node_height )
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
def test_suffix_selection
|
29
29
|
data = DirTravel::Travel.filetree( 'test', { :suffix => ".txt" } )
|
30
|
-
data.files.each do |i| assert_match( i.name
|
30
|
+
data.files.each do |i| assert_match( /.txt$/, i.name ) end
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
def test_paths
|
34
34
|
data = DirTravel::Travel.filetree( 'test' )
|
35
35
|
2.times do
|
@@ -134,5 +134,5 @@ class DirTravelTest < Test::Unit::TestCase
|
|
134
134
|
assert_equal( 'test_0', root.tip )
|
135
135
|
assert_equal( 'test/test_0', root.path )
|
136
136
|
end
|
137
|
-
|
137
|
+
|
138
138
|
end
|
metadata
CHANGED
@@ -1,30 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dirtravel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tero Isannainen
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-04-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rubytree
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.8'
|
20
|
+
- - ">="
|
20
21
|
- !ruby/object:Gem::Version
|
21
22
|
version: 0.8.3
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.8'
|
30
|
+
- - ">="
|
28
31
|
- !ruby/object:Gem::Version
|
29
32
|
version: 0.8.3
|
30
33
|
description: DirTravel provides content of filesystem directories by recursively travelling
|
@@ -35,58 +38,58 @@ executables: []
|
|
35
38
|
extensions: []
|
36
39
|
extra_rdoc_files:
|
37
40
|
- README.rdoc
|
41
|
+
- CHANGELOG.rdoc
|
38
42
|
files:
|
39
|
-
- README.rdoc
|
40
43
|
- CHANGELOG.rdoc
|
41
44
|
- LICENSE
|
42
|
-
-
|
43
|
-
-
|
44
|
-
- test/test_dirtravel.rb
|
45
|
-
- doc/top-level-namespace.html
|
46
|
-
- doc/js/full_list.js
|
47
|
-
- doc/js/app.js
|
48
|
-
- doc/js/jquery.js
|
49
|
-
- doc/index.html
|
50
|
-
- doc/css/common.css
|
51
|
-
- doc/css/full_list.css
|
52
|
-
- doc/css/style.css
|
53
|
-
- doc/DirTravel/Travel.html
|
45
|
+
- README.rdoc
|
46
|
+
- doc/DirTravel.html
|
54
47
|
- doc/DirTravel/DirEntry.html
|
55
48
|
- doc/DirTravel/DirTravelError.html
|
56
49
|
- doc/DirTravel/Entry.html
|
57
50
|
- doc/DirTravel/FileEntry.html
|
58
|
-
- doc/
|
59
|
-
- doc/method_list.html
|
60
|
-
- doc/file_list.html
|
61
|
-
- doc/DirTravel.html
|
62
|
-
- doc/class_list.html
|
51
|
+
- doc/DirTravel/Travel.html
|
63
52
|
- doc/_index.html
|
53
|
+
- doc/class_list.html
|
54
|
+
- doc/css/common.css
|
55
|
+
- doc/css/full_list.css
|
56
|
+
- doc/css/style.css
|
64
57
|
- doc/file.CHANGELOG.html
|
58
|
+
- doc/file.README.html
|
59
|
+
- doc/file_list.html
|
65
60
|
- doc/frames.html
|
61
|
+
- doc/index.html
|
62
|
+
- doc/js/app.js
|
63
|
+
- doc/js/full_list.js
|
64
|
+
- doc/js/jquery.js
|
65
|
+
- doc/method_list.html
|
66
|
+
- doc/top-level-namespace.html
|
67
|
+
- lib/dirtravel.rb
|
68
|
+
- lib/version.rb
|
69
|
+
- test/test_dirtravel.rb
|
66
70
|
homepage:
|
67
71
|
licenses:
|
68
72
|
- Ruby
|
73
|
+
metadata: {}
|
69
74
|
post_install_message: Check README...
|
70
75
|
rdoc_options: []
|
71
76
|
require_paths:
|
72
77
|
- lib
|
73
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
79
|
requirements:
|
76
|
-
- -
|
80
|
+
- - ">="
|
77
81
|
- !ruby/object:Gem::Version
|
78
82
|
version: 1.9.3
|
79
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
84
|
requirements:
|
82
|
-
- -
|
85
|
+
- - ">="
|
83
86
|
- !ruby/object:Gem::Version
|
84
87
|
version: '0'
|
85
88
|
requirements: []
|
86
89
|
rubyforge_project:
|
87
|
-
rubygems_version:
|
90
|
+
rubygems_version: 2.2.2
|
88
91
|
signing_key:
|
89
|
-
specification_version:
|
92
|
+
specification_version: 4
|
90
93
|
summary: Small and simple library for accessing filesystem directories.
|
91
94
|
test_files: []
|
92
95
|
has_rdoc:
|
data/Rakefile
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
require 'rake/testtask'
|
2
|
-
|
3
|
-
Rake::TestTask.new do |t|
|
4
|
-
t.libs << 'test'
|
5
|
-
end
|
6
|
-
|
7
|
-
desc "Run tests"
|
8
|
-
task :default => :test
|
9
|
-
|
10
|
-
task :cleanup_test do
|
11
|
-
sh "rm -rf test/test"
|
12
|
-
end
|
13
|
-
|
14
|
-
task :build => :doc do
|
15
|
-
sh "gem build dirtravel.gemspec"
|
16
|
-
end
|
17
|
-
|
18
|
-
task :doc do
|
19
|
-
sh "yardoc lib/* - README.rdoc CHANGELOG.rdoc"
|
20
|
-
end
|
21
|
-
|
22
|
-
task :publish do
|
23
|
-
if Dir.glob('dirtravel-*gem').length == 1
|
24
|
-
sh "gem push dirtravel*.gem"
|
25
|
-
else
|
26
|
-
raise "Multiple gems in the directory..."
|
27
|
-
end
|
28
|
-
end
|