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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 236d4801bb76bbbf3461d03510b4ef70e1e16697
4
- data.tar.gz: 30762679ce191247b55e33bbfde546c4e3777585
3
+ metadata.gz: d7b66b1117dc3bb169e4d41d91123dded7479878
4
+ data.tar.gz: d2fc68ec561c50b75c0d2d00ba061cbcafcdd1c3
5
5
  SHA512:
6
- metadata.gz: 736bf9c6ad40aed01f4fdb3fb58da6714262166d4f2b45be4721a3e7e12f53a21ed821808a7455a4ad6ed64fe74363c73e2f1cbdeb615c99fea5c511ac480b62
7
- data.tar.gz: 48ace8e5dfdcbfb348cdf27411a2b76dde9348b93c0462fe0927a6beca06785cea7a7d8f0dbd3983692f24bbd97a32bde1eec67f69dac820f16dba40ab40be8c
6
+ metadata.gz: dbe03ac3d14e21c1324cf477be78a0eef5e2ff430c552e2e3d3bbf69557650c845f0e71e433effd79e61c75668c2ea44ddee93240d9d83fbcb1cb87ab359f2ed
7
+ data.tar.gz: f0eea40b5e24b319a384ee0fd321c1f9732cf2f5991a032efc8200d0b34afdef5046cfce121decc139732b4b91fd9d8f9338a6cfed157e44a3a05820b63b44a5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cl (1.0.3)
4
+ cl (1.0.4)
5
5
  regstry (~> 1.0.3)
6
6
 
7
7
  GEM
@@ -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 = str.sub(opt.name.to_s, name.to_s)
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|)
@@ -1,3 +1,3 @@
1
1
  class Cl
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
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
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-15 00:00:00.000000000 Z
11
+ date: 2019-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: regstry