teepee 0.15.5 → 0.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/teepee/commander.rb +6 -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: 3d527e07d0321a1208bde42de0baaac47fca8aa2
|
|
4
|
+
data.tar.gz: e3726a0f99ea9d9b5bee50986abdc2fd7b51a619
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7debb79aacfb028a7b3872ebcb229c35dcf2b2d1eefd2cf57fcc6955c00df3fdf866897b03be335e87f4479fdf1cde1a2f320363eade721f240d7de4342608f6
|
|
7
|
+
data.tar.gz: 0dc7fb7498b765fc85f7f4afc2757d27543c08c14d2de88d8adfcaed515270cea4618af747c87b5ebb7e34c167be72ba61971f74477f0183ce11f1d069bb1855
|
data/lib/teepee/commander.rb
CHANGED
|
@@ -289,6 +289,7 @@ module Teepee
|
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
def boolean_not boolean
|
|
292
|
+
boolean = boolean.to_html
|
|
292
293
|
if true_constant? boolean
|
|
293
294
|
false_constant
|
|
294
295
|
elsif false_constant? boolean
|
|
@@ -300,10 +301,12 @@ module Teepee
|
|
|
300
301
|
|
|
301
302
|
def boolean_or booleans
|
|
302
303
|
if booleans.empty?
|
|
303
|
-
false_constant
|
|
304
|
-
|
|
304
|
+
return false_constant
|
|
305
|
+
end
|
|
306
|
+
b = booleans.first.to_html
|
|
307
|
+
if true_constant? b
|
|
305
308
|
true_constant
|
|
306
|
-
elsif false_constant?
|
|
309
|
+
elsif false_constant? b or booleans.first.kind_of? WhitespaceToken
|
|
307
310
|
boolean_or booleans[1..-1]
|
|
308
311
|
else
|
|
309
312
|
command_error "Not a boolean value"
|