James Tucker
9b2d5b7dd3
Add a class cache to avoid runtime extend calls
...
* Strainer has a class cache that creates Strainer subclasses for each filter
set that is used on .create calls.
* Context now creates a list of filters and passes this to Strainer.create to
utilize the class cache in almost all use cases.
* If add_filter was called after a render, then the method cache may still be
invalidated.
Conflicts:
lib/liquid/strainer.rb
2013-08-31 18:56:35 +00:00
Tristan Hume
e8b41c8856
Fix error
v2.5.2
2013-08-30 16:06:48 -04:00
Tristan Hume
4c22bacbba
Merge branch 'master' of https://github.com/Shopify/liquid
2013-08-30 15:56:13 -04:00
Tristan Hume
09a5b57ebe
Fix variable closing error message
2013-08-30 15:55:43 -04:00
Florian Weingarten
8059da4938
Update History.md
2013-08-30 15:28:33 -04:00
Tristan Hume
af50f71224
Guard against state that shouldn't happen but does
2013-08-30 15:26:26 -04:00
Simon Hørup Eskildsen
136b6763e6
Merge pull request #241 from Shopify/i18n-error
...
Add I18n syntax error translation
2013-08-30 09:55:05 -07:00
Simon Eskildsen
ad184fbfc9
Remove superplus translations
2013-08-30 12:31:58 -04:00
Simon Eskildsen
380828f807
Rename outdated test
2013-08-30 12:31:57 -04:00
Simon Eskildsen
fc8c45ebe6
Fix use of 1.9 hash syntax
2013-08-30 12:31:57 -04:00
Simon Eskildsen
072c12dc47
Localize errors in Liquid
2013-08-30 12:31:57 -04:00
Simon Eskildsen
29cdabc30e
Move I18n to options
2013-08-30 12:31:57 -04:00
Simon Eskildsen
df5980f23f
Change interpolation syntax to %{key}
2013-08-30 12:31:57 -04:00
Simon Eskildsen
5ee4f960e8
Move localization option to register
2013-08-30 12:31:57 -04:00
Simon Eskildsen
0343f6dc94
Add escaping of symbols
2013-08-30 12:31:57 -04:00
Simon Eskildsen
40fba9ee6c
Add locale to context registers
2013-08-30 12:31:57 -04:00
Simon Eskildsen
0a2f21386d
Add fixture helper
2013-08-30 12:31:57 -04:00
Simon Eskildsen
e7bcf04d1d
Remove delegate require from localization
2013-08-30 12:31:57 -04:00
Simon Eskildsen
0dac6fe88a
Change to absolute path in localization test
2013-08-30 12:31:57 -04:00
Simon Eskildsen
f37a984fd7
Add sketch of I18n error translation
2013-08-30 12:31:57 -04:00
Tristan Hume
0e41c2c6e9
Merge pull request #235 from Shopify/recursive-parsing
...
Add a Real Parser. Closes #229 and closes #225 .
2013-08-30 07:12:38 -07:00
Tristan Hume
7b52dfcb95
Clean up lexer logic
2013-08-27 16:36:22 -04:00
Tristan Hume
1fa029ab67
Simplify lexer logic.
2013-08-27 11:35:03 -04:00
Tristan Hume
26eb9a0817
Merge pull request #244 from Shopify/proper-parse-warnings
...
Add Better Parse Warnings To recursive-parser Branch
2013-08-27 06:53:34 -07:00
Tristan Hume
e305edc3b8
Remove extra comment
2013-08-27 09:53:06 -04:00
Tristan Hume
c94b5e87c9
Use attr_reader for warnings.
2013-08-22 16:16:28 -04:00
Tristan Hume
dd3196b22e
Consistency in warnings.
2013-08-22 16:15:12 -04:00
Tristan Hume
86ba2f4174
Fix error message 1.8 compatibility
2013-08-22 13:23:44 -04:00
Tristan Hume
5bdfb62bf2
Remove old warning method
2013-08-22 12:57:16 -04:00
Tristan Hume
77db92de54
Better testing of warn mode.
2013-08-22 12:55:54 -04:00
Tristan Hume
b0cba5298a
Fix warnings and make tags a proper syntax tree.
2013-08-22 12:44:23 -04:00
Tristan Hume
93fcd5687c
Broken warnings implementation.
2013-08-22 12:12:35 -04:00
Tristan Hume
14a17520de
Merge branch 'master' into recursive-parsing
2013-08-22 10:39:08 -04:00
Tristan Hume
0beb4a4793
Add handy context to strict parser error messages.
2013-08-19 15:45:05 -04:00
Tristan Hume
324d26d405
Consistent lack of periods in syntax errors.
2013-08-19 15:20:39 -04:00
Tristan Hume
047900d0dd
Proper warning support
2013-08-19 15:14:26 -04:00
Florian Weingarten
f6f89fd0aa
Merge pull request #242 from Shopify/overwrite_drop_inspect
...
Overwrite drop inspect
2013-08-19 09:48:16 -07:00
Florian Weingarten
a57d576708
Overwrite drop inspect
2013-08-19 12:08:27 -04:00
Tristan Hume
eb68a751ac
Hopefully fix CI by improving multi-suite runner.
2013-08-16 15:15:15 -04:00
Florian Weingarten
355199dac4
Update History.md
2013-08-14 17:00:26 -04:00
Florian Weingarten
c8f38ad9d0
Merge pull request #239 from Shopify/sort_filter_on_enumerables
...
Sort filter on Enumerables
2013-08-14 13:59:44 -07:00
Florian Weingarten
ed4b61bfd3
Fix broken map test and add sort test
2013-08-08 11:53:52 -04:00
Florian Weingarten
8f978ecd1a
Make sort filter work on Enumerable drops
2013-08-08 11:47:26 -04:00
Florian Weingarten
98c184f2fb
Update History.md
2013-08-06 10:24:37 -04:00
Florian Weingarten
615e48fe29
Merge pull request #238 from Shopify/fix_clashing_method_names_in_enumerable_drops
...
Fix clashing method names in enumerable drops
2013-08-06 07:23:56 -07:00
Tristan Hume
6cde98319f
More little fixes and changed default benchmark
2013-08-02 15:21:15 -04:00
Tristan Hume
15b53b77d6
Make stuff nicer
2013-08-02 15:17:17 -04:00
Tristan Hume
48f50eea3b
Remove unused lex_specials method
2013-08-02 15:12:11 -04:00
Tristan Hume
ace12e29da
Hopefully fix CI on Rubinius
2013-08-02 13:37:56 -04:00
Florian Weingarten
f98949117d
Fix .include? method on Enumerable drops, used by "contains" conditions
2013-08-02 10:23:10 -04:00