teepee 0.15.5 → 0.15.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/teepee/commander.rb +6 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62c0df41d7110036945e8f82566b7e0f19b12437
4
- data.tar.gz: 3d3e60fd84977812a01eee418e760ce62cd268b7
3
+ metadata.gz: 3d527e07d0321a1208bde42de0baaac47fca8aa2
4
+ data.tar.gz: e3726a0f99ea9d9b5bee50986abdc2fd7b51a619
5
5
  SHA512:
6
- metadata.gz: df227cec1396aa819f7af19877a2cb4ea35aa43594826d475012ca756f4d3904053b8de936794957aecae12f53c14943f7a94e735c6725405198e09f46f78b84
7
- data.tar.gz: 99682f81f5d74bfb743bf755dbfb9a416790eddb4382c3ae9653861aea4fd9a85fe273a78a6fc1967c6e42c1efa2a8e6e0e7b4bd9ebdc5ea8ebd55f6d0ea72d5
6
+ metadata.gz: 7debb79aacfb028a7b3872ebcb229c35dcf2b2d1eefd2cf57fcc6955c00df3fdf866897b03be335e87f4479fdf1cde1a2f320363eade721f240d7de4342608f6
7
+ data.tar.gz: 0dc7fb7498b765fc85f7f4afc2757d27543c08c14d2de88d8adfcaed515270cea4618af747c87b5ebb7e34c167be72ba61971f74477f0183ce11f1d069bb1855
@@ -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
- elsif true_constant? booleans.first
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? booleans.first or booleans.first.kind_of? WhitespaceToken
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teepee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.5
4
+ version: 0.15.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mark Gore