Justin Li
4df4f218cf
Use same template instance
2014-12-09 17:25:15 -05:00
Justin Li
c2f71ee86b
Reset resource consumption before each render
2014-12-09 17:23:07 -05:00
Justin Li
9f7e601110
Convert render output to strings in BlockBody
2014-12-05 15:17:09 -05:00
Justin Li
742b3c69bb
Remove commented code
2014-12-04 16:30:37 -05:00
Justin Li
1593b784a7
Simplify interface for setting template resource limits
2014-12-04 16:18:21 -05:00
Justin Li
db00ec8b32
Move resource limit tracking to its own class
2014-12-04 16:18:09 -05:00
Alexander Ross
289a03f9d7
Fixes syntax error in documentation for unless tag
2014-11-19 10:49:58 +01:00
Justin Li
a0710f4c70
Merge pull request #486 from Shopify/fix-exponential-warnings
...
Fix #warnings taking exponential time to compute
2014-11-12 17:22:16 -05:00
Justin Li
737be1a0c1
Use Timeout#timeout for warnings tests
2014-11-12 17:03:48 -05:00
Justin Li
1673098126
Handle potential case where warnings returns nil
2014-11-12 16:46:10 -05:00
Justin Li
422bafd66a
Fix #warnings taking exponential time to compute
2014-11-12 16:12:00 -05:00
Florian Weingarten
3321cffe08
Merge pull request #482 from joshk/patch-1
...
Use the new beta build env on Travis
2014-11-07 03:06:52 +01:00
Josh Kalderimis
f2772518b0
Use the new beta build env on Travis
...
job start in seconds, instead of 20-120 seconds
2014-11-07 14:54:21 +13:00
Justin Li
76ef675eb2
Merge pull request #481 from Shopify/fix-nil-blank
...
Coerce regex @blank output to a boolean
2014-11-06 13:03:15 -05:00
Justin Li
e5fd4d929f
Coerce regex @blank output to a boolean
2014-11-05 20:44:06 -05:00
Justin Li
2e42c7be1f
Merge pull request #480 from Shopify/number_variables
...
Add quirks test for variables with number prefixes
2014-11-05 12:05:21 -05:00
Justin Li
95b031ee04
Add quirks test for extra dots in ranges
2014-11-05 11:41:12 -05:00
Justin Li
4d97a714a9
Add quirks test for variables with number prefixes
2014-11-05 10:56:58 -05:00
Justin Li
aa182f64b4
Merge pull request #479 from Shopify/tweaks-for-c
...
Tweaks for C
2014-11-04 14:02:14 -05:00
Justin Li
4e870302b1
Add env var for saving stackprof graphviz output
2014-11-04 18:38:14 +00:00
Justin Li
098c89b5f5
Convenience methods for raising terminator syntax errors
2014-11-04 18:38:08 +00:00
Justin Li
70c45f8cd8
Use SVG badge URLs
...
[ci skip]
2014-11-03 17:41:42 -05:00
Justin Li
12d526a05c
Merge pull request #458 from Shopify/block-body
...
Create a BlockBody class to decouple block body parsing from tags.
2014-11-03 17:34:39 -05:00
Dylan Thacker-Smith
2fd8ad08c0
Remove unused local variable that was accidentally added.
2014-11-03 17:07:42 -05:00
Dylan Thacker-Smith
15e1d46125
Avoid storing options instance variable in BlockBody.
...
There is no need to pass parse options to the BlockBody initializer, since
it does all the parsing in the parse method, unlike tags which parse the
tag markup in the initializer.
2014-11-03 17:07:42 -05:00
Dylan Thacker-Smith
73fcd42403
Create a BlockBody class to decouple block body parsing from tags.
2014-11-03 17:07:42 -05:00
Justin Li
263e90e772
Merge pull request #478 from Shopify/numbers-in-identifiers
...
Use a single token for identifiers
2014-10-30 21:59:26 -04:00
Justin Li
81770f094d
Remove unnecessary +
2014-10-29 13:39:43 -04:00
Justin Li
dd5ee81089
Disallow number and dash identifier prefixes
2014-10-29 12:08:00 -04:00
Justin Li
a07e382617
Use a single token for identifiers
2014-10-29 11:28:41 -04:00
Justin Li
4dc682313f
Merge pull request #476 from Shopify/missing-variable-name-error
...
Disallow filters with no variable in strict mode
2014-10-27 13:56:11 -04:00
Justin Li
5616ddf00e
Remove obsolete comment
2014-10-27 13:44:14 -04:00
Justin Li
fcb23a4cd2
Disallow filters with no variable in strict mode
2014-10-27 13:34:27 -04:00
Justin Li
a8f60ff6b1
Merge pull request #472 from Shopify/fix-leaky-test
...
Fix test leaking error_mode, fix equality check for VariableLookup
2014-10-23 10:12:41 -04:00
Justin Li
a206c8301d
Fix test leaking error_mode, fix equality check for VariableLookup
2014-10-22 15:40:41 -04:00
Justin Li
ee0de01480
Merge pull request #469 from Shopify/falsy-variable-fix
...
Fix case where a variable name is falsy
2014-10-21 15:06:34 -04:00
Justin Li
887b05e6ed
Clarify test name
2014-10-21 14:06:30 -04:00
Justin Li
5d68e8803f
Ensure nil works as a variable name
2014-10-21 14:03:10 -04:00
Justin Li
dedd1d3dc0
Fix case where a variable name is falsy
2014-10-21 12:09:26 -04:00
Dylan Thacker-Smith
d9ae36ec40
Merge pull request #466 from Shopify/remove-expression-cache
...
Remove expression cache
2014-10-20 13:57:17 -04:00
Dylan Thacker-Smith
b9ac3fef8f
Remove the quotes from the partial string in the profiler timing objects.
2014-10-18 16:26:18 -04:00
Dylan Thacker-Smith
f5faa4858c
Remove parsed expression cache.
2014-10-18 15:03:40 -04:00
Dylan Thacker-Smith
bc5e444d04
Use Expression.parse and Context#evaluate in the Include class.
2014-10-18 15:03:40 -04:00
Dylan Thacker-Smith
3a4b63f37e
Use Expression.parse and Context#evaluate in the TableRow class.
2014-10-18 15:03:40 -04:00
Dylan Thacker-Smith
a1a128db19
Refactor Condition so that it takes a parsed expression.
2014-10-18 15:03:40 -04:00
Dylan Thacker-Smith
d502b9282a
Use Expression.parse and Context#evaluate in the For class.
2014-10-18 15:03:36 -04:00
Dylan Thacker-Smith
fee8e41466
Use Expression.parse and Context#evaluate in the Cycle class.
2014-10-18 14:27:58 -04:00
Dylan Thacker-Smith
37260f17ff
Use Expression.parse and Context#evaluate in the Condition class.
2014-10-18 14:27:58 -04:00
Florian Weingarten
2da9d49478
Merge pull request #465 from Shopify/avoid_multi_assigns
...
Avoid parallel assignments
2014-10-18 16:19:02 +02:00
Florian Weingarten
7196a2d58e
Avoid parallel assignments
2014-10-18 13:58:32 +00:00