teepee 0.15.3 → 0.15.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/teepee/commander.rb +5 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64473abc28a1538dcbe1cf68ee8ab8f5dd8ec4c8
4
- data.tar.gz: 185b231a0b949d9f6203ec1f056447383b819bcc
3
+ metadata.gz: 24ef292885bdabcc5c53c696e5e2c2dc6410fcb7
4
+ data.tar.gz: 8e2c98ff24fddabe493d2ffc19c8df1fabb22db8
5
5
  SHA512:
6
- metadata.gz: 348895f88f009067449af5a2db530d9e31382c3b03f8d60e7e3f17d3f3ede12bf077ab0b548e3b38281f719a3d0d819aa0d0b15a54d269918252ca3ca084209f
7
- data.tar.gz: 54987b1dd30100e24a51e3cad6db9defdc4f675b583c868204518294918f48d7fa22bc8d10396d571b63808e89e561eefaf346f960b914f479d52c8b387745da
6
+ metadata.gz: 650856adcd11b1f907496470757c29ada63bf485dbc2cec66ccb56868809b782ee0a5fefe0e451f6509324fc5cefac598606051e907b5f25e861d02f80b4d38e
7
+ data.tar.gz: 0369cecc2ea30b6746f6866fd975f920d89e677ab010aa456c3fa07a3e292904d92301c8e4e21c08a1e30a1e88595195bd46237d7f5c6a252f88d5ec4a65cf21
@@ -350,7 +350,7 @@ module Teepee
350
350
  if value and not rest.empty?
351
351
  def cond_helper value, expressions
352
352
  test_value, _, form, *rest = strip expressions
353
- if equal [value, test_value]
353
+ if equal [value.to_html, test_value.to_html]
354
354
  form
355
355
  elsif not rest.empty?
356
356
  cond_helper value, rest
@@ -370,7 +370,7 @@ module Teepee
370
370
 
371
371
  def cond_operator expressions
372
372
  conditional, _, form, *rest = strip expressions
373
- if true_constant? conditional
373
+ if true_constant? conditional.to_html
374
374
  form
375
375
  elsif not rest.empty?
376
376
  cond_operator rest
@@ -549,7 +549,7 @@ module Teepee
549
549
  def if_operator expressions
550
550
  expressions = strip expressions
551
551
  conditional, _, true_clause, _, false_clause = expressions
552
- if true_constant? conditional
552
+ if true_constant? conditional.to_html
553
553
  true_clause.to_html
554
554
  elsif false_clause
555
555
  false_clause.to_html
@@ -850,7 +850,7 @@ module Teepee
850
850
  expressions = strip expressions
851
851
  conditional = expressions.first
852
852
  expressions = strip expressions.rest
853
- if false_constant? conditional
853
+ if false_constant? conditional.to_html
854
854
  if expressions.length <= 1
855
855
  expressions.first
856
856
  else
@@ -871,7 +871,7 @@ module Teepee
871
871
  expressions = strip expressions
872
872
  conditional = expressions.first
873
873
  expressions = strip expressions.rest
874
- if true_constant? conditional
874
+ if true_constant? conditional.to_html
875
875
  if expressions.length <= 1
876
876
  expressions.first
877
877
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teepee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.3
4
+ version: 0.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mark Gore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport