josevalim-thor 0.10.15 → 0.10.16
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +3 -1
- data/lib/thor/base.rb +1 -1
- data/lib/thor/options.rb +3 -4
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
@@ -2,10 +2,12 @@
|
|
2
2
|
|
3
3
|
* Improve spec coverage for Thor::Runner
|
4
4
|
* Improve help output to list shorthand switches, too
|
5
|
-
* Investigate and fix deep namespacing ("foo:bar:baz") issues
|
6
5
|
|
7
6
|
== Current
|
8
7
|
|
8
|
+
* BACKWARDS INCOMPATIBLE: aliases are not generated automatically anymore
|
9
|
+
since it wrong behavior to the invocation system.
|
10
|
+
|
9
11
|
* thor help now show information about any class/task. All those calls are
|
10
12
|
possible:
|
11
13
|
|
data/lib/thor/base.rb
CHANGED
data/lib/thor/options.rb
CHANGED
@@ -59,10 +59,9 @@ class Thor
|
|
59
59
|
@non_assigned_required << option if option.required?
|
60
60
|
@non_assigned_arguments << option if option.argument?
|
61
61
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
shorts.each { |short| @shorts[short.to_s] ||= option.switch_name }
|
62
|
+
option.aliases.each do |short|
|
63
|
+
@shorts[short.to_s] ||= option.switch_name
|
64
|
+
end
|
66
65
|
|
67
66
|
mem[option.switch_name] = option
|
68
67
|
mem
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: josevalim-thor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yehuda Katz
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|