optparshie 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +13 -13
  2. data/VERSION +1 -1
  3. data/optparshie.gemspec +60 -0
  4. metadata +11 -10
data/README.rdoc CHANGED
@@ -4,20 +4,20 @@ Enhanced OptionParser, it can access to parsed argv through Hashie::Mash like.
4
4
 
5
5
  == Example
6
6
 
7
- argv = "--test --wa -a 2 --on".split(/\s+/);
8
- puts("test argv: #{argv}");
7
+ argv = "--test --wa -a 2 --on".split(/\s+/);
8
+ puts("test argv: #{argv}");
9
9
 
10
- opt = OptionParshie.new();
11
- opt.on("-a","--a-value=VAL");
12
- opt.on("--test");
13
- opt.on("-w","--waros");
14
- opt.on("-o","--on");
15
- opt.parse(argv);
16
-
17
- # access with short option
18
- puts("opt.a => #{opt.a}");
19
- puts("opt.w => #{opt.w}");
20
- puts("opt.o => #{opt.o}");
10
+ opt = OptionParshie.new();
11
+ opt.on("-a","--a-value=VAL");
12
+ opt.on("--test");
13
+ opt.on("-w","--waros");
14
+ opt.on("-o","--on");
15
+ opt.parse(argv);
16
+
17
+ # access with short option
18
+ puts("opt.a => #{opt.a}");
19
+ puts("opt.w => #{opt.w}");
20
+ puts("opt.o => #{opt.o}");
21
21
 
22
22
  == Copyright
23
23
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.3
@@ -0,0 +1,60 @@
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 = "optparshie"
8
+ s.version = "1.0.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["lpm11"]
12
+ s.date = "2011-11-02"
13
+ s.description = "OptionParser with Hashie::Mash like accessibility."
14
+ s.email = "lpm11r@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "Gemfile",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "example/example1.rb",
28
+ "lib/optparshie.rb",
29
+ "optparshie.gemspec",
30
+ "spec/optparshie_spec.rb",
31
+ "spec/spec_helper.rb"
32
+ ]
33
+ s.homepage = "http://github.com/lpm11/optparshie"
34
+ s.licenses = ["WTFPL"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "1.8.10"
37
+ s.summary = "OptionParser with Hashie::Mash like accessibility."
38
+
39
+ if s.respond_to? :specification_version then
40
+ s.specification_version = 3
41
+
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
44
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
45
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
46
+ s.add_development_dependency(%q<rcov>, [">= 0"])
47
+ else
48
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
49
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
50
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
51
+ s.add_dependency(%q<rcov>, [">= 0"])
52
+ end
53
+ else
54
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
55
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
56
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
57
+ s.add_dependency(%q<rcov>, [">= 0"])
58
+ end
59
+ end
60
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optparshie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &11252080 !ruby/object:Gem::Requirement
16
+ requirement: &10182500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.3.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *11252080
24
+ version_requirements: *10182500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &11251600 !ruby/object:Gem::Requirement
27
+ requirement: &10182020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *11251600
35
+ version_requirements: *10182020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &11251120 !ruby/object:Gem::Requirement
38
+ requirement: &10181540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *11251120
46
+ version_requirements: *10181540
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &11250640 !ruby/object:Gem::Requirement
49
+ requirement: &10181060 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *11250640
57
+ version_requirements: *10181060
58
58
  description: OptionParser with Hashie::Mash like accessibility.
59
59
  email: lpm11r@gmail.com
60
60
  executables: []
@@ -72,6 +72,7 @@ files:
72
72
  - VERSION
73
73
  - example/example1.rb
74
74
  - lib/optparshie.rb
75
+ - optparshie.gemspec
75
76
  - spec/optparshie_spec.rb
76
77
  - spec/spec_helper.rb
77
78
  homepage: http://github.com/lpm11/optparshie
@@ -89,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
90
  version: '0'
90
91
  segments:
91
92
  - 0
92
- hash: 2050884602491138113
93
+ hash: -2038045243234926408
93
94
  required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  none: false
95
96
  requirements: