command-line-utils 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -0,0 +1,64 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{command-line-utils}
8
+ s.version = "0.0.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Yoshihiro TAKAHARA"]
12
+ s.date = %q{2011-02-21}
13
+ s.description = %q{This is a command line utilites.}
14
+ s.email = %q{y.takahara@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE.txt",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "command-line-utils.gemspec",
27
+ "lib/command-line-utils.rb",
28
+ "lib/command-line-utils/cli.rb",
29
+ "lib/command-line-utils/commands.rb",
30
+ "test/helper.rb",
31
+ "test/test_command-line-utils.rb"
32
+ ]
33
+ s.homepage = %q{http://github.com/tumf/command-line-utils}
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.5.0}
37
+ s.summary = %q{Command line utilities.}
38
+ s.test_files = [
39
+ "test/helper.rb",
40
+ "test/test_command-line-utils.rb"
41
+ ]
42
+
43
+ if s.respond_to? :specification_version then
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
48
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
49
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
50
+ s.add_development_dependency(%q<rcov>, [">= 0"])
51
+ else
52
+ s.add_dependency(%q<shoulda>, [">= 0"])
53
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
54
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
55
+ s.add_dependency(%q<rcov>, [">= 0"])
56
+ end
57
+ else
58
+ s.add_dependency(%q<shoulda>, [">= 0"])
59
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
60
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
61
+ s.add_dependency(%q<rcov>, [">= 0"])
62
+ end
63
+ end
64
+
@@ -10,7 +10,7 @@ module CommandLineUtils
10
10
  end
11
11
 
12
12
  def dispatch(cmd,cmd_argv)
13
- @commands.send(cmd)
13
+ @commands.send(cmd.sub(/:/,"_"))
14
14
  end
15
15
 
16
16
  def options
@@ -22,10 +22,10 @@ module CommandLineUtils
22
22
  @help = true
23
23
  command = @command_options.shift
24
24
  raise "Unknown command: " + command unless commands.include?(command)
25
- opt = send(command)
25
+ opt = send(command.sub(/:/,"_"))
26
26
  puts "Summery: #{@summery}"
27
- opt.banner += " #{command} #{@banner}"
28
- puts opt
27
+ opt.banner += " #{command} #{@banner}" if opt
28
+ puts opt if opt
29
29
  end
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command-line-utils
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yoshihiro TAKAHARA
@@ -15,13 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-22 00:00:00 +09:00
18
+ date: 2011-02-21 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :development
23
- name: shoulda
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ requirement: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
27
25
  - - ">="
@@ -30,12 +28,12 @@ dependencies:
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
31
+ version_requirements: *id001
32
+ name: shoulda
33
33
  prerelease: false
34
- requirement: *id001
35
- - !ruby/object:Gem::Dependency
36
34
  type: :development
37
- name: bundler
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
35
+ - !ruby/object:Gem::Dependency
36
+ requirement: &id002 !ruby/object:Gem::Requirement
39
37
  none: false
40
38
  requirements:
41
39
  - - ~>
@@ -46,12 +44,12 @@ dependencies:
46
44
  - 0
47
45
  - 0
48
46
  version: 1.0.0
47
+ version_requirements: *id002
48
+ name: bundler
49
49
  prerelease: false
50
- requirement: *id002
51
- - !ruby/object:Gem::Dependency
52
50
  type: :development
53
- name: jeweler
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
51
+ - !ruby/object:Gem::Dependency
52
+ requirement: &id003 !ruby/object:Gem::Requirement
55
53
  none: false
56
54
  requirements:
57
55
  - - ~>
@@ -62,12 +60,12 @@ dependencies:
62
60
  - 5
63
61
  - 2
64
62
  version: 1.5.2
63
+ version_requirements: *id003
64
+ name: jeweler
65
65
  prerelease: false
66
- requirement: *id003
67
- - !ruby/object:Gem::Dependency
68
66
  type: :development
69
- name: rcov
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
67
+ - !ruby/object:Gem::Dependency
68
+ requirement: &id004 !ruby/object:Gem::Requirement
71
69
  none: false
72
70
  requirements:
73
71
  - - ">="
@@ -76,8 +74,10 @@ dependencies:
76
74
  segments:
77
75
  - 0
78
76
  version: "0"
77
+ version_requirements: *id004
78
+ name: rcov
79
79
  prerelease: false
80
- requirement: *id004
80
+ type: :development
81
81
  description: This is a command line utilites.
82
82
  email: y.takahara@gmail.com
83
83
  executables: []
@@ -94,6 +94,7 @@ files:
94
94
  - README.rdoc
95
95
  - Rakefile
96
96
  - VERSION
97
+ - command-line-utils.gemspec
97
98
  - lib/command-line-utils.rb
98
99
  - lib/command-line-utils/cli.rb
99
100
  - lib/command-line-utils/commands.rb
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  requirements: []
130
131
 
131
132
  rubyforge_project:
132
- rubygems_version: 1.4.2
133
+ rubygems_version: 1.5.0
133
134
  signing_key:
134
135
  specification_version: 3
135
136
  summary: Command line utilities.