luban-cli 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/luban/cli/base/switch.rb +4 -2
- data/lib/luban/cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b679ddf44c3d8c2160b781e4cd223b690d73374a
|
4
|
+
data.tar.gz: 7044ecf37e291aa532d40b555eb0ec914695a220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ef5aa5390ba3076de671915c55287f74ce5785e9c7a956ff93fd945197f2e8fe56c389c3c42928c775b3ec33dee60d4b0ee448c2ed5683a74ff0e65b9ef19a2
|
7
|
+
data.tar.gz: 3856eeab84ad6ba609644d675c81ee11b3e7c5fb34fa3b6587c55b6f6358374dd8020b1bf9bbc36786d2e432e20201914b39209e4271325e766330fe3bd26894
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## Version 0.4.5 (Sept 07, 2016)
|
4
|
+
|
5
|
+
Bug fixes:
|
6
|
+
* Left the default value for a switch to be nil if not set yet
|
7
|
+
|
8
|
+
## Version 0.4.4 (Apr 18, 2016)
|
9
|
+
|
10
|
+
Bug fixes:
|
11
|
+
* Removed comma for the synopsis of multiple arguments
|
12
|
+
|
13
|
+
## Version 0.4.3 (Feb 26, 2016)
|
14
|
+
|
15
|
+
Bug fixes:
|
16
|
+
* Ensured command is defined before it can be undefined
|
17
|
+
|
3
18
|
## Version 0.4.2 (Nov 05, 2015)
|
4
19
|
|
5
20
|
Minor enhancements:
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module Luban
|
2
2
|
module CLI
|
3
3
|
class Switch < Option
|
4
|
+
def default_str
|
5
|
+
@default_str ||= build_default_str
|
6
|
+
end
|
7
|
+
|
4
8
|
protected
|
5
9
|
|
6
10
|
def init_config
|
@@ -9,8 +13,6 @@ module Luban
|
|
9
13
|
@config[:type] = :bool
|
10
14
|
# Ensure single value instead of multiple
|
11
15
|
@config[:multiple] = false
|
12
|
-
# Ensure default switch state is set properly
|
13
|
-
@config[:default] = !!@config[:default]
|
14
16
|
end
|
15
17
|
|
16
18
|
def build_default_str
|
data/lib/luban/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luban-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rubyist Chi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.
|
90
|
+
rubygems_version: 2.5.1
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Luban::CLI is a command-line interface for Ruby with a simple lightweight
|