cl 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cl/opt.rb +1 -1
  3. data/lib/cl/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 531d9fab776f1d706d8c86d087528b1a889f3511197ae5cad48d8c75a6a8aa1d
4
- data.tar.gz: f1090e76ddfa1d0cec7a3b054b140eb6d56934ba34db6dfb7deb230eabc26f12
3
+ metadata.gz: c813741e86f3ae66b08d918f981295c587adc05a5bf7d3d22d017baaea69ff7f
4
+ data.tar.gz: cd4c7aff4a9148c819e8c7f09e14d3b3878c02aade25168dd9468db44eb7a7c8
5
5
  SHA512:
6
- metadata.gz: 5aa9ba9d3938ac7ca67e138e3f265f3d15ec1e0aad66f7102fe3c2ac1577be3edd2565d1edec045d79d420d5d62e7c833f3fb1e130d410684a441e7c7b44f992
7
- data.tar.gz: 82c15f26babdf980a89436e215837e2a54f161a32657764318657a3c45ec8ce60786f2e51973add04011546aae3aedbd4964e5d025450e705aa9d3a513cf8c91
6
+ metadata.gz: bf49bbbc715debc03060ba8c7ae63036f13993557eebafabbfcd2972150b57d0041dc7bb72d7c40d826f7901ca115eb2558fe0506b0abdd510e7ff72027c532b
7
+ data.tar.gz: 2d4a88d405fee25d8e0500096ef9edb44d7068ea52aa1476f83d72fc7f2892b8904adc1009679335d7cce8ed6c74314d906beec3d2053e525b47947c078ec4de
data/lib/cl/opt.rb CHANGED
@@ -30,7 +30,7 @@ class Cl
30
30
  return @name if instance_variable_defined?(:@name)
31
31
  opt = strs.detect { |str| str.start_with?('--') }
32
32
  name = opt.split(' ').first.match(OPT)[1] if opt
33
- @name = name&.sub('-', '_')&.to_sym
33
+ @name = name.sub('-', '_').to_sym if name
34
34
  end
35
35
 
36
36
  def type
data/lib/cl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Cl
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.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: 0.1.4
4
+ version: 0.1.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-05-13 00:00:00.000000000 Z
11
+ date: 2019-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: regstry