Michael Go
52a87a7e3a
more micro optimization
2024-10-24 22:56:09 -03:00
Michael Go
c0bc2d5b0c
more micro optimization
2024-10-24 22:43:49 -03:00
Michael Go
e88ebb1ab6
more micro optimization
2024-10-24 22:38:53 -03:00
Michael Go
4d3f1a71a2
more micro optimization
2024-10-24 22:38:07 -03:00
Michael Go
7868aee751
more micro optimization
2024-10-24 22:34:01 -03:00
Michael Go
50f7c62714
more micro optimization
2024-10-24 22:32:14 -03:00
Michael Go
fe796bca7a
more micro optimization
2024-10-24 22:31:14 -03:00
Michael Go
84088e95d6
more micro optimization
2024-10-24 22:24:58 -03:00
Michael Go
45e3ab86da
more micro optimization
2024-10-24 22:23:27 -03:00
Michael Go
7b1be1e27b
more micro optimization
2024-10-24 22:19:41 -03:00
Michael Go
cbbde2f0cb
more micro optimization
2024-10-24 22:03:25 -03:00
Michael Go
6bbd2e0021
micro optimization
2024-10-24 21:55:53 -03:00
Michael Go
dfe379cf44
lazy tokenizer
2024-10-24 21:42:10 -03:00
Ian Ker-Seymer and GitHub
b3553787c8
Speed up the lexer for Ruby 3.4+ ( #1832 )
...
* Speed up lexing
* Bump msrv to 3.0 (from 2.7)
* Normalize test for ruby-head compat
* Fix bug when parsing negative numbers
2024-10-23 14:15:33 -04:00
Ian Ker-Seymer and GitHub
b233b3d081
Bump to v5.6.0.alpha ( #1819 )
2024-08-15 16:12:16 -04:00
Alex Coco and GitHub
ac91d31268
Merge pull request #1818 from Shopify/tablerow-interrupt
...
Handle interrupts in table row
2024-08-15 14:04:35 -04:00
Alex Coco
9067e5167a
Handle interrupts in table row
2024-08-15 11:56:29 -04:00
Ian Ker-Seymer and GitHub
fb6634f454
Add concept of Liquid::Environment ( #1815 )
...
* Add concept of `Liquid::World`
* Rename `World` to `Environment`
2024-08-07 15:00:44 -04:00
Ian Ker-Seymer and Ian Ker-Seymer
a0411e0927
Bump to v5.5.1
v5.5.1
2024-07-22 23:25:56 -04:00
Ian Ker-Seymer and GitHub
ed421202e2
Merge pull request #1811 from Shopify/marco-cycle-update
...
Add named? method to Cycle class for checking if the cycle is named
2024-07-16 15:58:21 -04:00
Ian Ker-Seymer
d6ca569e8a
Require base64
2024-07-16 15:56:47 -04:00
Marco Concetto Rudilosso and Ian Ker-Seymer
d36937d17f
Add named? method to Cycle class for checking if the cycle is named
2024-07-16 15:52:25 -04:00
Peter Zhu and GitHub
77bc56a1c2
Merge pull request #1792 from Shopify/centralize_ruby_version
...
Centralize Ruby Version to `.ruby-version`
2024-04-11 11:12:08 -04:00
Jenny Shen
88d013c8da
Use latest compatible Bundler of each Ruby version run
2024-04-05 10:33:27 -04:00
Jenny Shen
36c7fc8e07
Remove ruby version definition in CI/CD
...
it will be read from .ruby-version
2024-04-05 10:33:06 -04:00
Jenny Shen
2b4810006b
Remove TargetRubyVersion in RuboCop config
...
reads from required_ruby_version in RuboCop 1.61+
2024-04-05 10:23:39 -04:00
Jenny Shen
fc4f19471e
Update rubocop to 1.61.0
2024-04-05 10:23:37 -04:00
Jenny Shen
8596bb2e38
Commit a .ruby-version
2024-04-05 10:23:05 -04:00
Ian Ker-Seymer and GitHub
6bf18775e7
Merge pull request #1791 from Shopify/v5.5.0
...
Bump to v5.5.0
v5.5.0
2024-03-21 15:50:59 -04:00
Ian Ker-Seymer
56a0b7c42b
Bump to v5.5.0
2024-03-21 15:48:54 -04:00
Ian Ker-Seymer and GitHub
dba733084e
Merge pull request #1760 from mtasaka/nil-nil-comparison-fix
...
change: make nil_safe_casecmp judge compatible for nil-nil comparison
2024-03-21 15:38:13 -04:00
Michael Go and GitHub
4a4fe3c72a
Merge pull request #1781 from Shopify/contextualize-before-to-liquid
...
update variable's context before invoking its to_liquid
2024-02-12 16:58:54 -04:00
Michael Go
4f35b0bc66
update liquid-c
2024-02-12 16:49:52 -04:00
Michael Go
a5e5fab82a
update variable's context before invoking its to_liquid
2024-02-12 16:48:20 -04:00
Ian Ker-Seymer and GitHub
02ecaab9d1
Merge pull request #1783 from Shopify/contains-encoding
...
Fallback to binary comparison when `contains` RHS is UTF8 encoded
2024-01-31 11:14:01 -05:00
Ian Ker-Seymer
1b2b62964e
Allow for binary comparison of incompatible strings
2024-01-30 19:03:05 -05:00
Michael Go and GitHub
9b38a15282
Merge pull request #1776 from Shopify/refactor/invalid-encoding-error
...
add new TemplateEncodingError
2024-01-12 12:38:34 -04:00
Michael Go
7b25b770af
add new TemplateEncodingError
2024-01-12 12:17:20 -04:00
Michael Go and GitHub
cf76c0bbec
Merge pull request #1775 from Shopify/allow-nil-template-source
...
allow non-string template source
2024-01-12 10:48:30 -04:00
Michael Go
6a0fe3f7e3
convert template source to string to ensure encoding validity
2024-01-10 16:50:31 -04:00
Michael Go
730ad3684a
allow nil template source
2024-01-10 16:32:08 -04:00
Michael Go and GitHub
3ac7e470e6
Merge pull request #1774 from Shopify/check-utf8-validity
...
check template UTF8 validity before parsing
2024-01-10 15:27:49 -04:00
Michael Go
369a6c55e3
check template UTF8 validity before parsing
2024-01-10 18:58:15 +00:00
Michael Go and GitHub
f5ed5404b5
Merge pull request #1773 from Shopify/liquid-tag-whitespace-control-with-comment
...
don't reset Liquid tag's whitespace control from comment tag
2024-01-05 10:54:32 -04:00
Michael Go
a3c837687e
don't reset Liquid tag's whitespace control from comment tag
2024-01-05 10:21:33 -04:00
Michael Go and GitHub
96a036372d
Merge pull request #1770 from Shopify/revert-invalid-comment-body
...
don't allow invalid syntax inside comment tag
2024-01-02 11:07:05 -04:00
Mamoru TASAKA
4924822c88
change: make nil_safe_casecmp judge compatible for nil-nil comparison
...
Ruby returns 0 (not nil) for nil <=> nil, i.e. nil and nil are judged
as equal for comparison, and so returns nil_safe_compare .
ref: https://github.com/Shopify/liquid/pull/1476
To make the behavior of nil_safe_casecmp consistent with
nil_safe_compare , change nil_safe_casecmp so that comparison between
nil <=> nil return 0 (equal).
Also change testsuite to reflect this change.
Fixes #1759 .
2023-12-15 15:09:57 +09:00
Michael Go
fc9c338682
refactor: rename comment tag unit test
2023-12-14 17:08:26 -04:00
Michael Go
3c5ad7db61
don't allow invalid syntax inside comment tag
2023-12-14 17:01:03 -04:00
Michael Go and GitHub
c658bf970a
Merge pull request #1769 from Shopify/comment-tag-with-extra-string
...
fix parsing comment tag with extra string
2023-12-13 14:16:44 -04:00