Florian Weingarten
50c85afc35
Merge pull request #786 from Shopify/bump-liquid-c
...
Bump LiquidC for whitespace changes
2016-08-11 13:38:42 -04:00
Florian Weingarten
5876dff326
Bump LiquidC for whitespace changes
2016-08-11 13:21:39 -04:00
Florian Weingarten
f25185631d
Merge pull request #773 from evulse/whitespace-trim
...
Add whitespace control character and associated tests
2016-08-11 13:20:12 -04:00
Michael Angell
283f1bad18
Use .last instead of pop push method for updating last node in nodelist
2016-07-08 20:49:30 +10:00
Michael Angell
e1d40c7d89
Add whitespace control character and associated tests
2016-06-28 09:15:45 +10:00
Justin Li
19c6eb426a
Merge pull request #769 from zacstewart/patch-1
...
Fix doc formatting of code examples in file_system
2016-06-15 17:10:11 -04:00
Zac Stewart
f87b06095d
Fix doc formatting of code examples in file_system
...
These code examples are being rendered as paragraph text in the docs.
2016-06-15 15:34:14 -04:00
Gaurav Chande
b81d54e789
Merge pull request #761 from Shopify/range-to_liquid
...
Support Range Type
2016-06-02 16:48:30 -04:00
Gaurav Chande
00f53b16e8
Prevent Range usage in templates from blowing up
2016-06-02 16:38:44 -04:00
Gaurav Chande
e4cf55b112
Merge pull request #748 from Shopify/expose-tags
...
Make Template.tags loop-able
2016-04-25 11:59:37 -04:00
Gaurav Chande
5bb211d933
Ensure no tag leakage since registry is global
2016-04-25 11:50:46 -04:00
Gaurav Chande
6adc431a19
Make tag registry enumerable
2016-04-25 11:38:42 -04:00
Justin Li
23d2beed41
Merge pull request #744 from Shopify/raw-syntax-method
...
Make markup validation a method on Liquid::Raw
2016-04-13 17:08:02 -04:00
Drew Martin
a80ecb7678
make markup validation a method on Liquid::Raw
2016-04-13 14:52:30 -04:00
Florian Weingarten
361c695264
Merge pull request #736 from Shopify/abs-filter
...
Abs filter
2016-04-05 09:13:56 -04:00
Florian Weingarten
f93243cc1a
abs filter
2016-04-04 09:32:31 -04:00
Florian Weingarten
1e533a52e7
Merge pull request #735 from Shopify/fix-to-number-for-negative-float-strings
...
Fix to_number filter for negative float strings
v4.0.0.rc2
2016-03-31 15:52:51 -04:00
Dylan Thacker-Smith
3ea84f095f
Merge pull request #734 from Shopify/concat-liquid-error
...
Raise a Liquid::Error when a non-array is passed into the concat filter.
2016-03-31 15:47:43 -04:00
Dylan Thacker-Smith
4239c899a4
Raise a Liquid::Error when a non-array is passed into the concat filter.
2016-03-31 15:47:06 -04:00
Florian Weingarten
1597f8859f
Fix to_number filter for negative float strings
2016-03-31 09:18:55 -04:00
Florian Weingarten
b3dda384c9
Merge pull request #733 from Shopify/fix-some-ruby-warnings
...
Fix a bunch of Ruby warnings
2016-03-30 17:09:00 -04:00
Florian Weingarten
6828670bfe
Merge pull request #732 from Shopify/v400rc2
...
Release v4.0.0rc2
2016-03-30 17:02:34 -04:00
Florian Weingarten
d2f16d92d6
Fix a bunch of Ruby warnings
2016-03-30 20:42:30 +00:00
Justin Li
d233acb483
Update history to reflect merge of #731
2016-03-30 16:36:57 -04:00
Florian Weingarten
8920e2a2a2
Release v4.0.0rc2
2016-03-30 20:13:21 +00:00
Justin Li
bfee507005
Merge pull request #731 from ismasan/duck_typed_maths_filters
...
Duck typed maths filters
2016-03-30 16:09:16 -04:00
Ismael Celis
929c89789f
Test that all maths filters work with duck-typed #to_number
2016-03-30 13:35:09 -03:00
Ismael Celis
d03c4ae8e8
Allow Utils.to_number to work with anything that responds to #to_number
2016-03-30 01:57:21 -03:00
Justin Li
021bafd260
Merge pull request #725 from jeroenvisser101/performance-start-with-vs-regex
...
Use start_with? instead of Regex
2016-03-21 10:34:28 -04:00
Jeroen Visser
04c393ab07
Use start_with? instead of Regex
...
Performance is increased by doing this:
require 'benchmark'
require 'tempfile'
n = 50000
test = File.expand_path(Tempfile.new('foo'))
Benchmark.bm(20) do |x|
x.report("Regex:") do
n.times { test =~ /\A#{test}/ }
end
x.report("String#start_with?:") do
n.times { test =~ test.start_with?(test) }
end
end
Benchmark result:
user system total real
Regex: 0.440000 0.010000 0.450000 ( 0.447357)
String#start_with?: 0.000000 0.000000 0.000000 ( 0.006313)
2016-03-21 14:23:35 +01:00
Gaurav Chande
9a7778e52c
Merge pull request #707 from Shopify/drop-without-context
...
@context not always present on a Drop
2016-03-01 18:07:16 -05:00
Gaurav Chande
dde00253f9
context is not always present on a Drop
2016-03-01 21:22:11 +00:00
Gaurav Chande
18d1644980
Merge pull request #705 from Shopify/register-filter-warn
...
Strainer#add_filter Raises on Private Override
2016-02-24 15:31:41 -05:00
Gaurav Chande
c424d47274
Add changelog entry for Strainer method override change
2016-02-24 20:23:57 +00:00
Gaurav Chande
8e6b9d503d
Make Strainer also raise when registered method is overriden as protected
2016-02-24 20:23:49 +00:00
Gaurav Chande
8be38d1795
Strainer#add_filter should raise when registered method is overriden as private
2016-02-24 20:03:17 +00:00
Justin Li
3146d5c3f2
Grammatic and other fixes to CONTRIBUTING.md
2016-02-02 23:45:37 -05:00
Justin Li
0cc8b68a97
Make logic in Context#lookup_and_evaluate more understandable
2016-02-02 23:22:46 -05:00
Justin Li
5a50c12953
Update history to reflect merge of #691
...
[ci skip]
2016-02-02 23:14:41 -05:00
Justin Li
a6fa4c5c38
Merge pull request #691 from urbandictionary/missing_variables_and_filters
...
Merge pull request 691
2016-02-02 23:13:44 -05:00
Ivan Kuznetsov
dadd9b4dd2
Add strict_variables/strict_filters render options to check for undefined variables and filters
2016-02-03 10:49:33 +07:00
Justin Li
6434b8d2bb
Merge pull request #696 from Shopify/no-send
...
Remove possibility for arbitrary sends
2016-02-02 11:01:46 -05:00
Justin Li
2d891ddd8f
Merge pull request #695 from Shopify/assign-score
...
Take nested values into account for assign score
2016-02-01 13:14:40 -05:00
Justin Li
60b508b151
Use #each to avoid extra allocations
2016-02-01 13:01:25 -05:00
Justin Li
3891f14a1a
Take nested values into account for assign score
2016-02-01 13:01:25 -05:00
Justin Li
198f0aa366
Add test for nested assign score bookkeeping
2016-02-01 13:01:23 -05:00
Justin Li
f2e6adf566
Remove arbitrary send vector
2016-02-01 11:38:40 -05:00
Justin Li
08de6ed2c5
Merge pull request #687 from pathawks/default
...
Performance improvement: `default` filter
2016-01-24 11:34:05 -05:00
Pat Hawks
7e322f5cf8
Performance improvement: default filter
2016-01-23 23:18:51 -08:00
Justin Li
bf86a5a069
Merge pull request #688 from Shopify/gmp
...
Install libgmp3-dev in travis
2016-01-23 21:46:37 -05:00