cl 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cl/parser.rb +1 -2
- data/lib/cl/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: d7b66b1117dc3bb169e4d41d91123dded7479878
|
4
|
+
data.tar.gz: d2fc68ec561c50b75c0d2d00ba061cbcafcdd1c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbe03ac3d14e21c1324cf477be78a0eef5e2ff430c552e2e3d3bbf69557650c845f0e71e433effd79e61c75668c2ea44ddee93240d9d83fbcb1cb87ab359f2ed
|
7
|
+
data.tar.gz: f0eea40b5e24b319a384ee0fd321c1f9732cf2f5991a032efc8200d0b34afdef5046cfce121decc139732b4b91fd9d8f9338a6cfed157e44a3a05820b63b44a5
|
data/Gemfile.lock
CHANGED
data/lib/cl/parser.rb
CHANGED
@@ -33,8 +33,7 @@ class Cl
|
|
33
33
|
|
34
34
|
def aliased(opt, name)
|
35
35
|
str = opt.strs.detect { |str| str.start_with?('--') } || raise
|
36
|
-
str
|
37
|
-
str.sub(opt.name.to_s.gsub('_', '-'), name.to_s)
|
36
|
+
str.sub(/(#{opt.name}|#{opt.name.to_s.gsub('_', '-')})/, name.to_s)
|
38
37
|
end
|
39
38
|
|
40
39
|
# should consider negative arities (e.g. |one, *two|)
|
data/lib/cl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Fuchs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: regstry
|