teepee 0.15.4 → 0.15.5

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 +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24ef292885bdabcc5c53c696e5e2c2dc6410fcb7
4
- data.tar.gz: 8e2c98ff24fddabe493d2ffc19c8df1fabb22db8
3
+ metadata.gz: 62c0df41d7110036945e8f82566b7e0f19b12437
4
+ data.tar.gz: 3d3e60fd84977812a01eee418e760ce62cd268b7
5
5
  SHA512:
6
- metadata.gz: 650856adcd11b1f907496470757c29ada63bf485dbc2cec66ccb56868809b782ee0a5fefe0e451f6509324fc5cefac598606051e907b5f25e861d02f80b4d38e
7
- data.tar.gz: 0369cecc2ea30b6746f6866fd975f920d89e677ab010aa456c3fa07a3e292904d92301c8e4e21c08a1e30a1e88595195bd46237d7f5c6a252f88d5ec4a65cf21
6
+ metadata.gz: df227cec1396aa819f7af19877a2cb4ea35aa43594826d475012ca756f4d3904053b8de936794957aecae12f53c14943f7a94e735c6725405198e09f46f78b84
7
+ data.tar.gz: 99682f81f5d74bfb743bf755dbfb9a416790eddb4382c3ae9653861aea4fd9a85fe273a78a6fc1967c6e42c1efa2a8e6e0e7b4bd9ebdc5ea8ebd55f6d0ea72d5
@@ -268,10 +268,12 @@ module Teepee
268
268
 
269
269
  def boolean_and booleans
270
270
  if booleans.empty?
271
- true_constant
272
- elsif false_constant? booleans.first
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? booleans.first or booleans.first.kind_of? WhitespaceToken
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}"
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.4
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mark Gore