teepee 0.15.4 → 0.15.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teepee/commander.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c0df41d7110036945e8f82566b7e0f19b12437
|
4
|
+
data.tar.gz: 3d3e60fd84977812a01eee418e760ce62cd268b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df227cec1396aa819f7af19877a2cb4ea35aa43594826d475012ca756f4d3904053b8de936794957aecae12f53c14943f7a94e735c6725405198e09f46f78b84
|
7
|
+
data.tar.gz: 99682f81f5d74bfb743bf755dbfb9a416790eddb4382c3ae9653861aea4fd9a85fe273a78a6fc1967c6e42c1efa2a8e6e0e7b4bd9ebdc5ea8ebd55f6d0ea72d5
|
data/lib/teepee/commander.rb
CHANGED
@@ -268,10 +268,12 @@ module Teepee
|
|
268
268
|
|
269
269
|
def boolean_and booleans
|
270
270
|
if booleans.empty?
|
271
|
-
true_constant
|
272
|
-
|
271
|
+
return true_constant
|
272
|
+
end
|
273
|
+
b = booleans.first.to_html
|
274
|
+
if false_constant? b
|
273
275
|
false_constant
|
274
|
-
elsif true_constant?
|
276
|
+
elsif true_constant? b or booleans.first.kind_of? WhitespaceToken
|
275
277
|
boolean_and booleans[1..-1]
|
276
278
|
else
|
277
279
|
command_error "Not a boolean value #{booleans.first}"
|