Justin Li
5d6c1ed7c6
Merge pull request #963 from lostapathy/patch-1
...
have travis test against ruby 2.4
2017-12-15 16:53:26 -05:00
Joe Francis
a594653a0c
have travis test against ruby 2.4
2017-12-15 14:27:17 -06:00
Thibaut Courouble
0c802aba17
Merge pull request #958 from Shopify/minmax
...
Rename min/max filters for clarity
2017-12-06 11:41:12 -05:00
Thibaut Courouble
147d7ae24d
Rename min/max filters for clarity
2017-12-06 09:48:30 -05:00
Thibaut Courouble
282d42f98d
Fix min/max filters
2017-12-06 08:58:05 -05:00
Justin Li
e6ba6ee87b
Revert "Use replacement string for replace filters literally ( #924 )"
...
This reverts commit 27c91203ab .
2017-12-04 15:07:59 -05:00
Nithin Bekal
2ad7a37d44
Merge pull request #954 from Shopify/max-min-filters
...
Add max and min filters
2017-11-30 14:18:43 -05:00
Nithin Bekal
4bdaaf069f
Add max/min filters
2017-11-30 13:56:37 -05:00
Justin Li
85b1e91aed
Merge pull request #952 from Shopify/bump-rubocop
...
Bump rubocop
2017-11-22 12:44:36 -05:00
Justin Li
a7c5e247c8
Bump rubocop
2017-11-22 11:59:06 -05:00
Dylan Thacker-Smith
6c117fd7dd
refactor: Reduce maximum block nesting in Liquid::BlockBody#parse ( #944 )
2017-10-19 10:12:40 -04:00
Maxime Bedard
7d2d90d715
Merge pull request #932 from Shopify/avoid-default-values-hash
...
Avoid hash with default values due to inconsistent marshaling
2017-10-17 16:02:45 -04:00
Maxime Bedard
f761d21215
Use {} notation
2017-09-20 09:48:23 -04:00
Maxime Bedard
a796c17f8b
Avoid hash with default values due to inconsistent marshalling
2017-09-19 16:23:14 -04:00
Dylan Thacker-Smith
27c91203ab
Use replacement string for replace filters literally ( #924 )
2017-08-28 11:51:20 -04:00
Justin Li
44eaa4b9d8
Merge pull request #920 from Shopify/symbol_to_liquid
...
Support rendering symbols as strings
2017-08-18 12:10:53 -04:00
Pascal Betz
a979b3ec95
Do not raise when variable is defined but nil when using strict_variables
2017-08-18 12:09:57 -04:00
Justin Li
bf3e759da3
Support rendering symbols as strings
2017-08-17 23:10:57 -04:00
Rene
59162f7a0e
added attr_readers for collection and variable names in for tag ( #909 )
2017-07-06 09:41:48 -04:00
Thierry Joyal
c582b86f16
Merge pull request #898 from Shopify/cgi-powered-standard-filters-to-handle-non-string-inputs
...
CGI powered standard filters to handle non string inputs
2017-05-26 18:05:42 +00:00
Thierry Joyal
e340803d12
CGI powered standard filters to handle non string inputs
2017-05-25 15:53:41 +00:00
Dylan Thacker-Smith
48a6d86ac2
Use stackprof to test to lack of object allocations ( #896 )
2017-05-12 09:20:51 -04:00
Dylan Thacker-Smith
3bb29d5456
Replace assert_equal nil, with a assert_nil ( #895 )
2017-05-11 14:05:03 -04:00
Dylan Thacker-Smith
9c72ccb82f
Limit how much blocks can be nested during parsing ( #894 )
2017-05-11 09:37:53 -04:00
Dylan Thacker-Smith
62d4625468
Use a loop to strictly parse binary comparisons to avoid recursion ( #892 )
...
Using recursion allows a malicious template to cause a SystemStackError
2017-05-10 10:41:52 -04:00
Dylan Thacker-Smith
8928454e29
Use a loop to evaluate binary comparisions to avoid recursion ( #891 )
...
Using recursion allows a malicious template to cause a SystemStackError
2017-05-10 10:41:24 -04:00
Florian Weingarten
1370a102c9
Merge pull request #789 from evulse/contains-strict-fix
...
Allow variables to start with contains in strict parser
2017-03-24 09:50:31 -04:00
Mike Angell
c9bac9befe
Merge branch 'master' into contains-strict-fix
2017-03-24 11:09:09 +10:00
Mike
210a0616f3
Update History to include fix
2017-03-24 10:35:56 +10:00
Lasse Skindstad Ebert
5149cde5c3
Fix include tag used with strict_variables ( #829 )
...
Fixes https://github.com/Shopify/liquid/issues/828
2017-03-22 16:00:31 -04:00
Florian Weingarten
22f2cec5de
Merge pull request #864 from chenxianyu2015/fix-strainer-add_filter-method
...
fix #861 : duplicate inclusion condition logic error of Liquid::Strainer.add_filter method
2017-02-23 14:06:20 -05:00
chenxianyu
4318240ae0
test: modify Strainer.add_filter duplicate inclusion test case
2017-02-22 10:33:22 +08:00
chenxianyu
aa79c33dda
fix: Strainer.add_filter method
2017-02-13 15:50:19 +08:00
Justin Li
b1ef28566e
Merge pull request #846 from mrmanc/master
...
Clarifies spelling of for’s reversed flag to address #843
2017-02-10 19:26:38 -05:00
Justin Li
41bcc48222
Merge pull request #854 from jaredbeck/patch-1
...
Docs: Help people upgrade to 4, re: liquid_methods
2017-02-10 19:25:04 -05:00
Dylan Thacker-Smith
27d5106dc9
Merge pull request #860 from Shopify/handle-string-node-render-exc
...
Avoid calling line_number on String node when rescuing a render error.
2017-02-10 14:13:11 -05:00
Dylan Thacker-Smith
7334073be2
Avoid duck typing to detect whether to call render on a node.
2017-02-10 13:49:26 -05:00
Dylan Thacker-Smith
5dcefd7d77
Avoid calling line_number on String node when rescuing a render error.
2017-02-07 15:34:10 -05:00
Richard Monette
25c7b05916
Merge pull request #857 from Shopify/handle-join-on-fixnum
...
handle join on fixnum
2017-02-01 14:25:40 -05:00
Richard Monette
d17f86ba4d
handle join on fixnum
2017-02-01 12:47:35 -05:00
Jerry Liu
384e4313ff
Merge pull request #851 from Shopify/benchmark-render
...
Allow benchmarks to benchmark render by itself
2017-01-31 17:18:56 -05:00
Jerry Liu
23f2af8ff5
fix travis build
2017-01-31 17:04:36 -05:00
Jerry Liu
a93eac0268
Introduce new benchmarking methods to liquid to use on rubybench
2017-01-27 10:56:16 -05:00
Florian Weingarten
2cc7493cb0
Merge pull request #855 from Shopify/bundler-benchmark-group
...
Create a benchmark group in Gemfile
2017-01-20 16:41:11 -05:00
Jerry Liu
85463e1753
add benchmark-ips to benchmark group in Gemfile
2017-01-20 16:04:42 -05:00
Jared Beck
52ff9b0e84
Docs: Help people upgrade to 4, re: liquid_methods
...
The discussion in #568 helped me.
[ci skip]
2017-01-19 14:23:39 -05:00
Dylan Thacker-Smith
0c58328a40
test: Equality comparison of two hashes ( #850 )
2017-01-16 15:56:38 -05:00
Dylan Thacker-Smith
2bb3552033
Fix internal liquid error when comparing hash with incompatible type ( #849 )
2017-01-16 13:13:17 -05:00
Mark Crossfield
8b751ddf46
Removes a non ascii character from comment to appease Rubocop
2017-01-09 10:16:35 +00:00
Mark Crossfield
e5cbdb2b27
Clarifies spelling of for’s reversed flag to address #843
...
It should now be harder to read the docs and miss the extra letter required for reversed compared to reverse, which causes a fairly generic syntax warning when trying to reverse sort a collection in a for loop.
2017-01-08 12:44:12 +00:00