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 +4 -4
- data/lib/lucie/command_line_parser.rb +1 -1
- data/lib/lucie/version.rb +1 -1
- data/test/functional/app_test.rb +5 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c86b6f49f436216bdb8d87f61e9392c7ed79d11f
|
4
|
+
data.tar.gz: 4835f62692ff1e3ca589d5a6982bc4908d4e0af3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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]
|
data/lib/lucie/version.rb
CHANGED
data/test/functional/app_test.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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:
|