ruby-fire 0.1.0 → 0.2.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/.rubocop.yml +4 -3
- data/Gemfile.lock +4 -4
- data/lib/ruby-fire/version.rb +1 -1
- data/lib/ruby-fire.rb +2 -1
- data/ruby-fire.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4779242a022897226a9e7bd62faae813f2831542b7083a52e59c956b71b356be
|
4
|
+
data.tar.gz: d5dfbbc349ffdb6ed0aaa0b7a1546cfe493b574c9d4d03c43c8007959efb4057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65f8d619011622144d19148cef0a3b44ea5a7e4db20ce184def939c2792477c24a398fd02c7939bba4d5ddf50850f6ed9eec1f6a178c482fb69722d16658a72f
|
7
|
+
data.tar.gz: 4fe339f08f0966a6a186cfbf1f70a6e4da2340b6b15e3f141e98e259ab8123b73b6de133dadd66a1cb7c4c18045d1ad1e24efe32d3d5db62058d9fa2123453d9
|
data/.rubocop.yml
CHANGED
@@ -26,6 +26,10 @@ Metrics/ParameterLists:
|
|
26
26
|
Metrics/MethodLength:
|
27
27
|
Enabled: false
|
28
28
|
|
29
|
+
Naming/FileName:
|
30
|
+
Exclude:
|
31
|
+
- lib/ruby-fire.rb
|
32
|
+
|
29
33
|
Naming/MethodParameterName:
|
30
34
|
Exclude:
|
31
35
|
- examples/**/*
|
@@ -34,9 +38,6 @@ Naming/MethodParameterName:
|
|
34
38
|
Style/Documentation:
|
35
39
|
Enabled: false
|
36
40
|
|
37
|
-
Style/FrozenStringLiteralComment:
|
38
|
-
Safe: true
|
39
|
-
|
40
41
|
Style/OptionalArguments:
|
41
42
|
Exclude:
|
42
43
|
- test/**/*
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-fire (0.1
|
5
|
-
xoptparse (~> 0.
|
4
|
+
ruby-fire (0.2.1)
|
5
|
+
xoptparse (~> 0.6.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -45,19 +45,19 @@ GEM
|
|
45
45
|
simplecov-html (~> 0.11)
|
46
46
|
simplecov-html (0.12.2)
|
47
47
|
unicode-display_width (1.7.0)
|
48
|
-
xoptparse (0.
|
48
|
+
xoptparse (0.6.1)
|
49
49
|
|
50
50
|
PLATFORMS
|
51
51
|
ruby
|
52
52
|
|
53
53
|
DEPENDENCIES
|
54
54
|
bundler (~> 1.17)
|
55
|
-
ruby-fire!
|
56
55
|
minitest (~> 5.0)
|
57
56
|
minitest-power_assert
|
58
57
|
minitest-reporters
|
59
58
|
rake (~> 12.3.3)
|
60
59
|
rubocop
|
60
|
+
ruby-fire!
|
61
61
|
simplecov
|
62
62
|
|
63
63
|
BUNDLED WITH
|
data/lib/ruby-fire/version.rb
CHANGED
data/lib/ruby-fire.rb
CHANGED
@@ -169,7 +169,7 @@ class Fire
|
|
169
169
|
func_parameters.each do |type, name, default|
|
170
170
|
conv_class = convert_classes.find { |kl| default.is_a?(kl) }
|
171
171
|
klass = conv_class || Object
|
172
|
-
desc = %i[opt key].include?(type) ? "(default #{default})" : ''
|
172
|
+
desc = %i[opt key].include?(type) ? "(default #{default.nil? ? 'nil' : default})" : ''
|
173
173
|
case type
|
174
174
|
when :req
|
175
175
|
opt.on(name.to_s, klass, desc, &:itself)
|
@@ -178,6 +178,7 @@ class Fire
|
|
178
178
|
when :rest
|
179
179
|
opt.on("[#{name}...]", klass, desc, &:itself)
|
180
180
|
when :keyreq, :key
|
181
|
+
klass = TrueClass if conv_class == FalseClass
|
181
182
|
long = if [TrueClass, FalseClass].include?(conv_class)
|
182
183
|
"--[no-]#{name} [FLAG]"
|
183
184
|
else
|
data/ruby-fire.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
|
-
spec.add_dependency 'xoptparse', '~> 0.
|
27
|
+
spec.add_dependency 'xoptparse', '~> 0.6.1'
|
28
28
|
spec.add_development_dependency 'bundler', '~> 1.17'
|
29
29
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
30
30
|
spec.add_development_dependency 'minitest-power_assert'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-fire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ofk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xoptparse
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.6.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.6.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|