eac_cli 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/eac_cli/parser/alternative/short_options.rb +4 -2
- data/lib/eac_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9c71ba3fe820b38f1035645aeaf566d8f157d7dd5fb8333e8dbe7699ae0a7bd
|
|
4
|
+
data.tar.gz: f7c73dc103dda6e0de304e82ec7e0502fdc3d14b0280b04609827b4dff0ad48d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3d3011de5128efe2c9064f3d732a3ef82f55db3d0e03d69f313894e3f859b209860953063175b590f47f2504b6c687d8e0dd25b3599d239797e77c97e01a6af
|
|
7
|
+
data.tar.gz: 1b3dbc452801a7a3ce0324b4d28d90d9c2349fe01841d029594afc5fa027cd2403f583595773a55567f82264601540bae8e9bb64725d77035343083f77e8617e
|
|
@@ -14,7 +14,9 @@ module EacCli
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def find_short_option(char)
|
|
17
|
-
alternative.options.find
|
|
17
|
+
alternative.options.find do |option|
|
|
18
|
+
short_without_prefix(option.short).if_present(false) { |v| v == char }
|
|
19
|
+
end
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
def short_option_collect_argv_value
|
|
@@ -37,7 +39,7 @@ module EacCli
|
|
|
37
39
|
end
|
|
38
40
|
|
|
39
41
|
def short_without_prefix(short)
|
|
40
|
-
short.gsub(/\A#{::Regexp.quote(SHORT_OPTION_PREFIX)}/, '')
|
|
42
|
+
short.to_s.gsub(/\A#{::Regexp.quote(SHORT_OPTION_PREFIX)}/, '')
|
|
41
43
|
end
|
|
42
44
|
end
|
|
43
45
|
end
|
data/lib/eac_cli/version.rb
CHANGED