mercenary 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.markdown +6 -0
- data/lib/mercenary/command.rb +2 -2
- data/lib/mercenary/option.rb +1 -1
- data/lib/mercenary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fb90c2919ac0f15c0eeb8abe22cdd13eee58c81
|
4
|
+
data.tar.gz: 737fed7cc73e411561b1393d69e0774e93af84a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb6aa3eeb814791f20449a7e728b1f497c94359011787e3919eb402b753fafe4fe7852481ada652a9fe25926a5fc9d56faef21549359dd604211cc36e8776b61
|
7
|
+
data.tar.gz: e46388cb5e91489ca638e7b3ce44d3c5dd1090c5d9c149400b79fdd3ccddca27ba57616fb4f46dc7d9a94b596da490c50a7c1851146da966968e9d4e5fdf602e
|
data/History.markdown
CHANGED
data/lib/mercenary/command.rb
CHANGED
@@ -92,7 +92,7 @@ module Mercenary
|
|
92
92
|
def option(sym, *options)
|
93
93
|
new_option = Option.new(sym, options)
|
94
94
|
@options << new_option
|
95
|
-
@map[new_option
|
95
|
+
@map[new_option] = sym
|
96
96
|
end
|
97
97
|
|
98
98
|
# Public: Adds a subcommand
|
@@ -178,7 +178,7 @@ module Mercenary
|
|
178
178
|
def process_options(opts, config)
|
179
179
|
options.each do |option|
|
180
180
|
opts.on(*option.for_option_parser) do |x|
|
181
|
-
config[map[option
|
181
|
+
config[map[option]] = x
|
182
182
|
end
|
183
183
|
end
|
184
184
|
end
|
data/lib/mercenary/option.rb
CHANGED
data/lib/mercenary/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercenary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|