teepee 0.15.3 → 0.15.4
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 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24ef292885bdabcc5c53c696e5e2c2dc6410fcb7
|
4
|
+
data.tar.gz: 8e2c98ff24fddabe493d2ffc19c8df1fabb22db8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 650856adcd11b1f907496470757c29ada63bf485dbc2cec66ccb56868809b782ee0a5fefe0e451f6509324fc5cefac598606051e907b5f25e861d02f80b4d38e
|
7
|
+
data.tar.gz: 0369cecc2ea30b6746f6866fd975f920d89e677ab010aa456c3fa07a3e292904d92301c8e4e21c08a1e30a1e88595195bd46237d7f5c6a252f88d5ec4a65cf21
|
data/lib/teepee/commander.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|