Albert Chu
1ae2ff103e
Added more non-parity unit tests
2025-03-13 16:41:17 -06:00
Albert Chu
6148604320
Added another failing unit test for behavior in main
2025-03-13 13:26:03 -06:00
Albert Chu
e6e8221c78
Fixed lax parsing test case
2025-03-13 10:53:24 -06:00
Albert Chu
484f016e1b
Added failing unit test that passes in main
2025-03-12 19:23:18 -06:00
Albert Chu
4b57b2bbd9
Reintroduced broken conditional operators behaviour present in liquid main
2025-03-12 14:08:45 -06:00
Albert Chu
430794dd5a
Added test for operator reading bug
2025-03-11 17:00:57 -06:00
Albert Chu
08d36b09a2
Fixed ComparisonExpression.parse with MethodLiterals
2025-03-10 21:20:44 -06:00
Albert Chu
b5c3d3fe82
Introduced debugging gems
2025-03-10 21:20:44 -06:00
Guilherme Carreiro and Albert Chu
51a05c2781
Blank parity
2025-03-10 21:20:44 -06:00
Guilherme Carreiro and Albert Chu
263a73bd81
Remove 'assert_parity_todo!'
2025-03-10 21:20:44 -06:00
Guilherme Carreiro and Albert Chu
9e6b628a68
* Introduce support for literal comparisons (e.g., {{ 'hello' == 'hello' }})
...
* Evaluate expressions as truthy/falsy to unlock scenarios, such as `<div class="{{ disabled and "modal--disabled" }}">`
* Add additional scenarios to the expression test suite
* Simplify `LogicalExpression`
2025-03-10 21:20:44 -06:00
Albert Chu
b31f24bdf0
More boolean unit tests and enabled more existing parity cases
2025-03-10 21:20:44 -06:00
Albert Chu
b57f4fcbcb
Support usecase where a nil variable value is used in a logical expression
2025-03-10 21:20:43 -06:00
Guilherme Carreiro and Albert Chu
26ccec12ab
* Move expression handling from variable.rb to expression.rb
...
* Update test suite to validate parity
* Remove parentheses handling
* Split boolean into comparison and logical expressions
2025-03-10 21:20:43 -06:00
Guilherme Carreiro and Albert Chu
ba0bbe3c3f
Update the parser to use the new tokens
2025-03-10 21:20:43 -06:00
Guilherme Carreiro and Albert Chu
9b967690aa
Introduce support to boolean operators in the lexer
2025-03-10 21:20:43 -06:00
Albert Chu
03feea967b
Added a lot more boolean unit tests
2025-03-10 21:20:43 -06:00
Albert Chu
14b0d64b70
Rough support for parenthesis. Also better respect for and/or order precedence.
2025-03-10 21:20:43 -06:00
Albert Chu
6d4cffa000
Support for simple boolean comparisons and boolean assignments
2025-03-10 21:20:42 -06:00
Albert Chu
f32c0fb4fb
TDD: Improved unit tests in boolean_unit_test.rb
...
Added tests for existing usage cases to avoid breaking important logic when introducing changes in subsequent commits.
2025-03-10 21:20:42 -06:00
Albert Chu
b036feb20a
Removed infix operators from this PR
2025-03-10 21:20:42 -06:00
Albert Chu
5782a9e1d7
TDD: Unit tests for new liquid syntax
2025-03-10 21:20:42 -06:00
Guilherme Carreiro and Guilherme Carreiro
e38f730c00
Update LiquidDoc documentation
2025-03-07 18:59:59 +01:00
2d0442798b
chore: Add RUBYOPT configuration to the tests ( #1859 )
...
Co-authored-by: Ian Ker-Seymer <[email protected] >
2025-02-26 14:28:17 -05:00
Guilherme Carreiro and Guilherme Carreiro
6453a0ea48
Implement nodelist in the Doc tag so it may be visited
v5.8.1
2025-02-26 13:14:39 +01:00
Guilherme Carreiro and Guilherme Carreiro
a398b4cc74
Fix History.md
v5.8.0
2025-02-25 08:50:46 +01:00
Guilherme Carreiro and Guilherme Carreiro
cca9fe99cf
Bump version to 5.8.0
2025-02-25 08:50:46 +01:00
Guilherme Carreiro and Guilherme Carreiro
17d327988d
Rename {% doc %} constant strictly validates the abscense of args
2025-02-20 12:37:09 +01:00
Guilherme Carreiro and Guilherme Carreiro
f643af4bac
Update the implementation to make {% doc %} as strict as {% raw %}
2025-02-20 12:37:09 +01:00
Guilherme Carreiro and Guilherme Carreiro
ae8a0a86ac
Remove misleading unit test (thank you, @EvilGenius13)
2025-02-20 12:37:09 +01:00
Guilherme Carreiro and Guilherme Carreiro
b439d0da53
Update {% doc %} to no longer support nested tags (as {% comment %} does)
2025-02-20 12:37:09 +01:00
Guilherme Carreiro and Guilherme Carreiro
16592cfb8f
Add support to LiquidDoc with the new {% doc %} tag
2025-02-20 12:37:09 +01:00
Chris AtLee and GitHub
da4afd4156
Merge pull request #1905 from Shopify/catlee/invalid_utf8
...
Raise SyntaxError on invalid UTF8 strings in lexer/tokenizer
v5.7.3
2025-02-13 09:24:11 -05:00
Chris AtLee and GitHub
1bb3091208
Merge pull request #1909 from Shopify/catlee/5.7.3
...
Bump version to 5.7.3
2025-02-13 09:22:47 -05:00
Max Stoiber and GitHub
040801b32c
Fix array has filters referring to some ( #1910 )
2025-02-12 17:37:49 +01:00
Chris AtLee
550135c0b9
Raise SyntaxError on invalid UTF8 strings in lexer/tokenizer
2025-02-11 14:23:15 -05:00
Chris AtLee
aec966eed7
Bump version to 5.7.3
2025-02-11 14:21:14 -05:00
Michael Go and GitHub
bfe29e11be
Merge pull request #1907 from Shopify/nested-properties
...
Fix array filters to not support nested properties
v5.7.2
2025-01-31 12:35:03 -04:00
Guilherme Carreiro
f9454d8cf3
Fix array filters to not support nested properties
2025-01-31 13:53:17 +01:00
Guilherme Carreiro and Guilherme Carreiro
8dd9279265
Fix release date on History.md
2025-01-24 15:34:48 +01:00
Guilherme Carreiro and Guilherme Carreiro
bf1419b8ac
Apply the same fix for find_index and has
v5.7.1
2025-01-24 08:39:01 +01:00
Guilherme Carreiro and Guilherme Carreiro
5718c4cee2
Fix the find filter to return nil when filtering empty arrays
2025-01-24 08:39:01 +01:00
Guilherme Carreiro and GitHub
b0dbc62696
Fix bundle exec rake example ( #1900 )
...
* Fix `bundle exec rake example`
* Move 'webrick' from 'benchmark/test' to 'development'
2025-01-23 08:21:38 +01:00
03aafa974c
Bump to 5.7.0 ( #1894 )
...
* Bump to 5.7.0
* Update 'History.md'
* Update 'Releasing' steps
* Update CONTRIBUTING.md
Co-authored-by: Gray Gilmore <[email protected] >
* Update History.md
Co-authored-by: Ian Ker-Seymer <[email protected] >
---------
Co-authored-by: Gray Gilmore <[email protected] >
Co-authored-by: Ian Ker-Seymer <[email protected] >
v5.7.0
2025-01-17 12:10:18 +01:00
Ian Ker-Seymer and GitHub
6372289ba3
Ensure we use InputIterator#each when in join filter ( #1898 )
2025-01-16 11:36:36 -05:00
Ian Ker-Seymer and GitHub
0ec52a40b5
Use Liquid::Utils.to_s for join filter ( #1897 )
2025-01-16 11:21:58 -05:00
Ian Ker-Seymer and GitHub
74af735f0e
Allow for custom < Hash classes to override #to_s ( #1896 )
2025-01-16 11:16:13 -05:00
4b65a28722
Implement logic for stringify Hashes to keep compat with 3.4 ( #1892 )
...
* Exploring
* Bump to v5.6.5
---------
Co-authored-by: Dominic Petrick <[email protected] >
2025-01-15 16:36:53 -05:00
ecf25ea83d
Add the "Releasing" section to CONTRIBUTING.md ( #1891 )
...
* Add 'Releasing' workflow to 'CONTRIBUTING.md'
* Update CONTRIBUTING.md
Co-authored-by: Michael Go <[email protected] >
---------
Co-authored-by: Michael Go <[email protected] >
2025-01-14 19:07:11 +01:00
6909570f8e
Add find, find_index, has, and reject filters to arrays ( #1869 )
...
* Add reject filter #1573
* Add deep search for filter taking in properties #1749
* Update branch with main
* Add `find`, `find_index`, `has`, and `reject` filters to arrays
* Refactor: avoid usage of public_send
---------
Co-authored-by: Anders Søgaard <[email protected] >
Co-authored-by: Anders Søgaard <[email protected] >
2025-01-14 10:33:31 +01:00