dircat 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -1
- data/dircat.gemspec +49 -91
- data/lib/dircat.rb +2 -12
- data/lib/dircat/cli/cli_dircat.rb +1 -1
- data/lib/dircat/version.rb +11 -0
- data/spec/dircat/cli/cli_dircat_spec.rb +1 -1
- data/tasks/jeweler.rake +44 -44
- metadata +24 -35
- data/VERSION.yml +0 -5
data/Rakefile
CHANGED
data/dircat.gemspec
CHANGED
@@ -1,99 +1,57 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "dircat/version"
|
5
4
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
s.name = %q{dircat}
|
8
|
-
s.version = "0.1.9"
|
5
|
+
Gem::Specification.new do |gem|
|
9
6
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
s.rubygems_version = %q{1.5.0}
|
47
|
-
s.summary = %q{command line utilites to manage catalogs of directory}
|
48
|
-
s.test_files = [
|
49
|
-
"spec/dircat/cat_spec.rb",
|
50
|
-
"spec/dircat/cli/cli_dircat_spec.rb",
|
51
|
-
"spec/dircat/cli/command_build_spec.rb",
|
52
|
-
"spec/dircat/cli/command_diff_spec.rb",
|
53
|
-
"spec/dircat/cli/command_query_spec.rb",
|
54
|
-
"spec/dircat/md5_spec.rb",
|
55
|
-
"spec/dircat/numeric_spec.rb",
|
56
|
-
"spec/fixtures/certified_output/dircat1.yaml",
|
57
|
-
"spec/fixtures/certified_output/dircat2.yaml",
|
58
|
-
"spec/fixtures/dir1/file1.txt",
|
59
|
-
"spec/fixtures/dir1/subdir/file3.txt",
|
60
|
-
"spec/fixtures/dir2/file1.txt",
|
61
|
-
"spec/fixtures/dir2/file2.txt",
|
62
|
-
"spec/fixtures/dir2/subdir/file3.txt",
|
63
|
-
"spec/fixtures/dir3/file1.txt",
|
64
|
-
"spec/fixtures/dir3/subdir/file1.txt",
|
65
|
-
"spec/fixtures/tmp/dummy.txt",
|
66
|
-
"spec/spec_helper.rb"
|
7
|
+
gem.name = "dircat"
|
8
|
+
gem.version = DirCat::VERSION
|
9
|
+
gem.platform = Gem::Platform::RUBY
|
10
|
+
gem.summary = "command line utilities to manage catalogs of directory"
|
11
|
+
gem.description = %Q{
|
12
|
+
command line utilities to manage catalogs of directory
|
13
|
+
}
|
14
|
+
gem.authors = ["Tokiro"]
|
15
|
+
gem.email = "tokiro.oyama@gmail.com"
|
16
|
+
gem.homepage = "http://github.com/tokiro/dircat"
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# dependencies
|
21
|
+
#
|
22
|
+
gem.add_runtime_dependency(%q<treevisitor>, ["= 0.2.2"])
|
23
|
+
gem.add_runtime_dependency(%q<optparse-command>, ["= 0.1.5"])
|
24
|
+
gem.add_development_dependency(%q<rake>, [">= 0"])
|
25
|
+
gem.add_development_dependency(%q<yard>, [">= 0"])
|
26
|
+
gem.add_development_dependency(%q<bundler>, [">= 0"])
|
27
|
+
gem.add_development_dependency(%q<rspec>, [">= 0"])
|
28
|
+
|
29
|
+
#
|
30
|
+
# bin
|
31
|
+
#
|
32
|
+
gem.require_paths = ["lib"]
|
33
|
+
gem.executables = %w{ dircat }
|
34
|
+
# s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
35
|
+
|
36
|
+
#
|
37
|
+
# files
|
38
|
+
#
|
39
|
+
gem.files = %w{LICENSE.txt README.md Rakefile dircat.gemspec .gemtest}
|
40
|
+
gem.extra_rdoc_files = [
|
41
|
+
"LICENSE.txt",
|
42
|
+
"README.md"
|
67
43
|
]
|
44
|
+
gem.files.concat Dir['lib/**/*.rb']
|
45
|
+
gem.files.concat Dir['examples/*.rb']
|
46
|
+
gem.files.concat Dir['tasks/*.rake']
|
47
|
+
# s.files = `git ls-files`.split("\n")
|
68
48
|
|
69
|
-
|
70
|
-
|
49
|
+
#
|
50
|
+
# test files
|
51
|
+
#
|
52
|
+
gem.test_files = Dir['spec/**/*.rb']
|
53
|
+
gem.test_files.concat Dir['spec/fixtures/**/*']
|
54
|
+
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
71
55
|
|
72
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
73
|
-
s.add_runtime_dependency(%q<treevisitor>, ["= 0.2.1"])
|
74
|
-
s.add_runtime_dependency(%q<optparse-command>, ["= 0.1.5"])
|
75
|
-
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
76
|
-
s.add_development_dependency(%q<rake>, [">= 0"])
|
77
|
-
s.add_development_dependency(%q<yard>, [">= 0"])
|
78
|
-
s.add_development_dependency(%q<bundler>, [">= 0"])
|
79
|
-
s.add_development_dependency(%q<rspec>, [">= 0"])
|
80
|
-
else
|
81
|
-
s.add_dependency(%q<treevisitor>, ["= 0.2.1"])
|
82
|
-
s.add_dependency(%q<optparse-command>, ["= 0.1.5"])
|
83
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
84
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
85
|
-
s.add_dependency(%q<yard>, [">= 0"])
|
86
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
87
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
88
|
-
end
|
89
|
-
else
|
90
|
-
s.add_dependency(%q<treevisitor>, ["= 0.2.1"])
|
91
|
-
s.add_dependency(%q<optparse-command>, ["= 0.1.5"])
|
92
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
93
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
94
|
-
s.add_dependency(%q<yard>, [">= 0"])
|
95
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
96
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
97
|
-
end
|
98
56
|
end
|
99
57
|
|
data/lib/dircat.rb
CHANGED
@@ -15,23 +15,13 @@ require 'pp'
|
|
15
15
|
gem "optparse-command", "0.1.5"
|
16
16
|
require 'optparse-command'
|
17
17
|
|
18
|
-
gem "treevisitor", "0.2.
|
18
|
+
gem "treevisitor", "0.2.2"
|
19
19
|
require 'treevisitor'
|
20
20
|
|
21
21
|
#
|
22
22
|
# dircat
|
23
23
|
#
|
24
|
-
|
25
|
-
def self.version
|
26
|
-
filename = File.join(File.dirname(__FILE__), %w{.. VERSION.yml})
|
27
|
-
yaml = YAML.load_file(filename)
|
28
|
-
major = (yaml['major'] || yaml[:major]).to_i
|
29
|
-
minor = (yaml['minor'] || yaml[:minor]).to_i
|
30
|
-
patch = (yaml['patch'] || yaml[:patch]).to_i
|
31
|
-
"#{major}.#{minor}.#{patch}"
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
24
|
+
require 'dircat/version'
|
35
25
|
require 'dircat/extension_md5'
|
36
26
|
require 'dircat/extension_numeric'
|
37
27
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module DirCat
|
2
|
+
VERSION="0.1.10"
|
3
|
+
# def self.version
|
4
|
+
# filename = File.join(File.dirname(__FILE__), %w{.. VERSION.yml})
|
5
|
+
# yaml = YAML.load_file(filename)
|
6
|
+
# major = (yaml['major'] || yaml[:major]).to_i
|
7
|
+
# minor = (yaml['minor'] || yaml[:minor]).to_i
|
8
|
+
# patch = (yaml['patch'] || yaml[:patch]).to_i
|
9
|
+
# "#{major}.#{minor}.#{patch}"
|
10
|
+
# end
|
11
|
+
end
|
data/tasks/jeweler.rake
CHANGED
@@ -1,44 +1,44 @@
|
|
1
|
-
|
2
|
-
begin
|
3
|
-
require 'jeweler'
|
4
|
-
Jeweler::Tasks.new do |gem|
|
5
|
-
|
6
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
7
|
-
gem.name = "dircat"
|
8
|
-
gem.summary = "command line utilites to manage catalogs of directory"
|
9
|
-
gem.description = %Q{
|
10
|
-
command line utilites to manage catalogs of directory
|
11
|
-
}
|
12
|
-
gem.authors = ["Tokiro"]
|
13
|
-
gem.email = "tokiro.oyama@gmail.com"
|
14
|
-
gem.homepage = "http://github.com/tokiro/dircat"
|
15
|
-
|
16
|
-
#
|
17
|
-
# dependencies, automatically loaded from Gemfile
|
18
|
-
#
|
19
|
-
|
20
|
-
#
|
21
|
-
# bin
|
22
|
-
#
|
23
|
-
gem.executables = %w{ dircat }
|
24
|
-
|
25
|
-
#
|
26
|
-
# files
|
27
|
-
#
|
28
|
-
gem.files = %w{LICENSE.txt README.md Rakefile
|
29
|
-
gem.files.concat Dir['lib/**/*.rb']
|
30
|
-
gem.files.concat Dir['examples/*.rb']
|
31
|
-
gem.files.concat Dir['tasks/*.rake']
|
32
|
-
|
33
|
-
#
|
34
|
-
# test files
|
35
|
-
#
|
36
|
-
gem.test_files = Dir['spec/**/*.rb']
|
37
|
-
gem.test_files.concat Dir['spec/fixtures/**/*']
|
38
|
-
|
39
|
-
end
|
40
|
-
|
41
|
-
Jeweler::GemcutterTasks.new
|
42
|
-
rescue LoadError
|
43
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
44
|
-
end
|
1
|
+
## -*- coding: utf-8 -*-
|
2
|
+
#begin
|
3
|
+
# require 'jeweler'
|
4
|
+
# Jeweler::Tasks.new do |gem|
|
5
|
+
#
|
6
|
+
# # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
7
|
+
# gem.name = "dircat"
|
8
|
+
# gem.summary = "command line utilites to manage catalogs of directory"
|
9
|
+
# gem.description = %Q{
|
10
|
+
# command line utilites to manage catalogs of directory
|
11
|
+
# }
|
12
|
+
# gem.authors = ["Tokiro"]
|
13
|
+
# gem.email = "tokiro.oyama@gmail.com"
|
14
|
+
# gem.homepage = "http://github.com/tokiro/dircat"
|
15
|
+
#
|
16
|
+
# #
|
17
|
+
# # dependencies, automatically loaded from Gemfile
|
18
|
+
# #
|
19
|
+
#
|
20
|
+
# #
|
21
|
+
# # bin
|
22
|
+
# #
|
23
|
+
# gem.executables = %w{ dircat }
|
24
|
+
#
|
25
|
+
# #
|
26
|
+
# # files
|
27
|
+
# #
|
28
|
+
# gem.files = %w{LICENSE.txt README.md Rakefile dircat.gemspec .gemtest}
|
29
|
+
# gem.files.concat Dir['lib/**/*.rb']
|
30
|
+
# gem.files.concat Dir['examples/*.rb']
|
31
|
+
# gem.files.concat Dir['tasks/*.rake']
|
32
|
+
#
|
33
|
+
# #
|
34
|
+
# # test files
|
35
|
+
# #
|
36
|
+
# gem.test_files = Dir['spec/**/*.rb']
|
37
|
+
# gem.test_files.concat Dir['spec/fixtures/**/*']
|
38
|
+
#
|
39
|
+
# end
|
40
|
+
#
|
41
|
+
# Jeweler::GemcutterTasks.new
|
42
|
+
#rescue LoadError
|
43
|
+
# puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
44
|
+
#end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: dircat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.10
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tokiro
|
@@ -10,22 +10,23 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-02-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-02-18 00:00:00 +01:00
|
14
|
+
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: treevisitor
|
18
|
+
prerelease: false
|
18
19
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
20
|
none: false
|
20
21
|
requirements:
|
21
22
|
- - "="
|
22
23
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.2.
|
24
|
+
version: 0.2.2
|
24
25
|
type: :runtime
|
25
|
-
prerelease: false
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: optparse-command
|
29
|
+
prerelease: false
|
29
30
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
31
|
none: false
|
31
32
|
requirements:
|
@@ -33,10 +34,10 @@ dependencies:
|
|
33
34
|
- !ruby/object:Gem::Version
|
34
35
|
version: 0.1.5
|
35
36
|
type: :runtime
|
36
|
-
prerelease: false
|
37
37
|
version_requirements: *id002
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
39
|
+
name: rake
|
40
|
+
prerelease: false
|
40
41
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
42
|
none: false
|
42
43
|
requirements:
|
@@ -44,10 +45,10 @@ dependencies:
|
|
44
45
|
- !ruby/object:Gem::Version
|
45
46
|
version: "0"
|
46
47
|
type: :development
|
47
|
-
prerelease: false
|
48
48
|
version_requirements: *id003
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: yard
|
51
|
+
prerelease: false
|
51
52
|
requirement: &id004 !ruby/object:Gem::Requirement
|
52
53
|
none: false
|
53
54
|
requirements:
|
@@ -55,10 +56,10 @@ dependencies:
|
|
55
56
|
- !ruby/object:Gem::Version
|
56
57
|
version: "0"
|
57
58
|
type: :development
|
58
|
-
prerelease: false
|
59
59
|
version_requirements: *id004
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
|
-
name:
|
61
|
+
name: bundler
|
62
|
+
prerelease: false
|
62
63
|
requirement: &id005 !ruby/object:Gem::Requirement
|
63
64
|
none: false
|
64
65
|
requirements:
|
@@ -66,10 +67,10 @@ dependencies:
|
|
66
67
|
- !ruby/object:Gem::Version
|
67
68
|
version: "0"
|
68
69
|
type: :development
|
69
|
-
prerelease: false
|
70
70
|
version_requirements: *id005
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: rspec
|
73
|
+
prerelease: false
|
73
74
|
requirement: &id006 !ruby/object:Gem::Requirement
|
74
75
|
none: false
|
75
76
|
requirements:
|
@@ -77,20 +78,8 @@ dependencies:
|
|
77
78
|
- !ruby/object:Gem::Version
|
78
79
|
version: "0"
|
79
80
|
type: :development
|
80
|
-
prerelease: false
|
81
81
|
version_requirements: *id006
|
82
|
-
|
83
|
-
name: rspec
|
84
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: "0"
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: *id007
|
93
|
-
description: "\n command line utilites to manage catalogs of directory\n "
|
82
|
+
description: "\n command line utilities to manage catalogs of directory\n "
|
94
83
|
email: tokiro.oyama@gmail.com
|
95
84
|
executables:
|
96
85
|
- dircat
|
@@ -100,14 +89,12 @@ extra_rdoc_files:
|
|
100
89
|
- LICENSE.txt
|
101
90
|
- README.md
|
102
91
|
files:
|
103
|
-
- .gemtest
|
104
92
|
- LICENSE.txt
|
105
93
|
- README.md
|
106
94
|
- Rakefile
|
107
|
-
- VERSION.yml
|
108
95
|
- dircat.gemspec
|
109
|
-
-
|
110
|
-
-
|
96
|
+
- .gemtest
|
97
|
+
- bin/dircat
|
111
98
|
- lib/dircat/cat.rb
|
112
99
|
- lib/dircat/cli/cli_dircat.rb
|
113
100
|
- lib/dircat/cli/command_build.rb
|
@@ -116,6 +103,9 @@ files:
|
|
116
103
|
- lib/dircat/entry.rb
|
117
104
|
- lib/dircat/extension_md5.rb
|
118
105
|
- lib/dircat/extension_numeric.rb
|
106
|
+
- lib/dircat/version.rb
|
107
|
+
- lib/dircat.rb
|
108
|
+
- examples/example.rb
|
119
109
|
- tasks/jeweler.rake
|
120
110
|
- tasks/rspec.rake
|
121
111
|
- tasks/yard.rake
|
@@ -126,6 +116,7 @@ files:
|
|
126
116
|
- spec/dircat/cli/command_query_spec.rb
|
127
117
|
- spec/dircat/md5_spec.rb
|
128
118
|
- spec/dircat/numeric_spec.rb
|
119
|
+
- spec/spec_helper.rb
|
129
120
|
- spec/fixtures/certified_output/dircat1.yaml
|
130
121
|
- spec/fixtures/certified_output/dircat2.yaml
|
131
122
|
- spec/fixtures/dir1/file1.txt
|
@@ -136,8 +127,6 @@ files:
|
|
136
127
|
- spec/fixtures/dir3/file1.txt
|
137
128
|
- spec/fixtures/dir3/subdir/file1.txt
|
138
129
|
- spec/fixtures/tmp/dummy.txt
|
139
|
-
- spec/spec_helper.rb
|
140
|
-
- bin/dircat
|
141
130
|
has_rdoc: true
|
142
131
|
homepage: http://github.com/tokiro/dircat
|
143
132
|
licenses: []
|
@@ -162,10 +151,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
151
|
requirements: []
|
163
152
|
|
164
153
|
rubyforge_project:
|
165
|
-
rubygems_version: 1.5.
|
154
|
+
rubygems_version: 1.5.2
|
166
155
|
signing_key:
|
167
156
|
specification_version: 3
|
168
|
-
summary: command line
|
157
|
+
summary: command line utilities to manage catalogs of directory
|
169
158
|
test_files:
|
170
159
|
- spec/dircat/cat_spec.rb
|
171
160
|
- spec/dircat/cli/cli_dircat_spec.rb
|
@@ -174,6 +163,7 @@ test_files:
|
|
174
163
|
- spec/dircat/cli/command_query_spec.rb
|
175
164
|
- spec/dircat/md5_spec.rb
|
176
165
|
- spec/dircat/numeric_spec.rb
|
166
|
+
- spec/spec_helper.rb
|
177
167
|
- spec/fixtures/certified_output/dircat1.yaml
|
178
168
|
- spec/fixtures/certified_output/dircat2.yaml
|
179
169
|
- spec/fixtures/dir1/file1.txt
|
@@ -184,4 +174,3 @@ test_files:
|
|
184
174
|
- spec/fixtures/dir3/file1.txt
|
185
175
|
- spec/fixtures/dir3/subdir/file1.txt
|
186
176
|
- spec/fixtures/tmp/dummy.txt
|
187
|
-
- spec/spec_helper.rb
|