lucie-lib 0.1.1 → 0.1.2

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: 1890f2620b8a2908f72efb4e841822847679a68f
4
- data.tar.gz: 705bbd9a083d306440ddf60220ced2b1aabb274a
3
+ metadata.gz: c86b6f49f436216bdb8d87f61e9392c7ed79d11f
4
+ data.tar.gz: 4835f62692ff1e3ca589d5a6982bc4908d4e0af3
5
5
  SHA512:
6
- metadata.gz: 6819bc30b5ff2246bada46b20d4b999b3cb5d9603e1dc1776028a6633c6720b6d81c4c708e0afc07734b796008e4a9a4db04fdb5655efa6d0bfc928c99048b76
7
- data.tar.gz: 5cf81228f808c387659d9b8150bcc979f0b6bf7c187df8a0ea4afab184f6b9aca93a27cd202c92affe1706465613673ae0cb446985f588ce28918d1c4a9ae6ab
6
+ metadata.gz: 69b4173da99490c8dd104ae51814da80b36ee01ddfd675da4cc2d5c5f3009b63c282f1c9eb9255485eb57c375029b6b447aee2a885fd38e1fa510f56e3326c4b
7
+ data.tar.gz: d44e9911f15931cc1252f295bbedbdab0dd3288ee1f9e6f07213b1daf42a883a4aa8f716da9cc2e97323c67a8ef03e28e88a1344586aca06021f0fa8db497fe3
@@ -52,7 +52,7 @@ module Lucie
52
52
  short_p = remove_dashes(short).to_sym
53
53
  long_p = remove_dashes(long).to_sym
54
54
 
55
- if @options[short_p].class == String
55
+ if [String, TrueClass].include?(@options[short_p].class)
56
56
  @options[long_p] = @options[short_p]
57
57
  else
58
58
  @options[short_p] = @options[long_p]
@@ -1,5 +1,5 @@
1
1
  module Lucie
2
2
  unless defined?(VERSION)
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -69,6 +69,11 @@ describe App do
69
69
  assert_output("some_string", nil) { TestApp.run("parameter_pairing_optional_nested nested_long --expression some_string") }
70
70
  end
71
71
 
72
+ should "be able to pair nested optional boolean parameters" do
73
+ assert_output("true", nil) { TestApp.run("parameter_pairing_optional_nested nested_short -e") }
74
+ assert_output("true", nil) { TestApp.run("parameter_pairing_optional_nested nested_long -e") }
75
+ end
76
+
72
77
  should "write to stderr that no controller found when controller is missing" do
73
78
  assert_output "", "Controller is not found for no_controller." do
74
79
  TestApp.run("no_controller")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucie-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nucc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-26 00:00:00.000000000 Z
11
+ date: 2015-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.0.3
139
+ rubygems_version: 2.0.14
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Library part of Lucie framework. Use only this gem, if you don't need project
@@ -156,3 +156,4 @@ test_files:
156
156
  - test/unit/command_line_slicer_test.rb
157
157
  - test/unit/controller/base_test.rb
158
158
  - test/unit/helpers/controller_name_test.rb
159
+ has_rdoc: