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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fc567faddaa0a105a8323d64c242e9c4e43877d
4
- data.tar.gz: 23c6d48c1215f3f4fa6268a605e26bcf27743eef
3
+ metadata.gz: b679ddf44c3d8c2160b781e4cd223b690d73374a
4
+ data.tar.gz: 7044ecf37e291aa532d40b555eb0ec914695a220
5
5
  SHA512:
6
- metadata.gz: 89c6ae1354e02b5a14bdbf46457445db5df2647d420d04f995926b1a35937948238e6864adbdab245b362348b5b329399caf5c53d8b618cc53babe81446af0c5
7
- data.tar.gz: 994a0cff1a9aeab2c241dd289ed97e7efdc8f6778d4ad0da963c815c928736ce6f4560bb71f4b0394935ca39d1bcbc3ca016bbc204225506d6e9ecfe937a9e6d
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
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module CLI
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
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
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-04-18 00:00:00.000000000 Z
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.4.5
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