Ian Ker-Seymer
9ff501f919
Update liquid-spec adapters
2026-04-28 10:03:57 -04:00
Tobi Lutke and Claude Opus 4.5
ccd05e869c
Make blank/empty comparisons invariant to ActiveSupport
...
- Implement liquid_blank? and liquid_empty? methods in Condition
to emulate ActiveSupport's behavior when it's not loaded
- This ensures templates like `{% if x == blank %}` work identically
whether ActiveSupport is loaded or not
- Update liquid-spec adapters for new API (ctx parameter)
- Add rake spec task for running liquid-spec matrix
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <[email protected] >
2026-01-05 14:54:43 -10:00
Guilherme Carreiro and GitHub
32b50ecafe
Bump Liquid to 5.11.0 ( #2012 )
...
This commit reverts the Inline Snippets tag (#2001 ) and bumps
Liquid to 5.11. For now, the inclusion of Inline Snippets
in the latest Liquid release is being treated as a bug.
While #2001 does implement the scope contained in RFC#1916,
we need to take a step back to make sure we’re setting our
sights high enough with this feature, and that we’re truly
supporting theme developers in the ways they need.
If you have any feedback, please leave a comment on RFC#1916.
- Liquid Developer Tools
2025-11-19 18:03:23 +01:00
Guilherme Carreiro and Guilherme Carreiro
15430c0770
Add rigid mode to rake benchmark task
...
The benchmark results show that rigid mode performs a bit better than both strict
and lax modes across most metrics, including tokenization, parsing, rendering,
and their combined operations. Rigid mode consistently delivers the highest
number of iterations per second, with performance differences staying within
1–2% compared to the other modes
```
================================================================================
/opt/rubies/3.4.1/bin/ruby ./performance/benchmark.rb lax
Running benchmark for 20 seconds (with 10 seconds warmup).
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin23]
Warming up --------------------------------------
tokenize: 332.000 i/100ms
parse: 14.000 i/100ms
render: 61.000 i/100ms
parse & render: 11.000 i/100ms
Calculating -------------------------------------
tokenize: 3.325k (± 1.0%) i/s (300.73 μs/i) - 66.732k in 20.070562s
parse: 148.166 (± 0.7%) i/s (6.75 ms/i) - 2.968k in 20.032971s
render: 654.428 (± 4.0%) i/s (1.53 ms/i) - 13.115k in 20.090452s
parse & render: 116.108 (± 1.7%) i/s (8.61 ms/i) - 2.332k in 20.089221s
================================================================================
/opt/rubies/3.4.1/bin/ruby ./performance/benchmark.rb strict
Running benchmark for 20 seconds (with 10 seconds warmup).
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin23]
Warming up --------------------------------------
tokenize: 332.000 i/100ms
parse: 14.000 i/100ms
render: 61.000 i/100ms
parse & render: 11.000 i/100ms
Calculating -------------------------------------
tokenize: 3.332k (± 0.2%) i/s (300.14 μs/i) - 66.732k in 20.029095s
parse: 145.674 (± 0.0%) i/s (6.86 ms/i) - 2.926k in 20.086104s
render: 656.711 (± 4.6%) i/s (1.52 ms/i) - 13.115k in 20.050810s
parse & render: 114.705 (± 0.0%) i/s (8.72 ms/i) - 2.299k in 20.043028s
================================================================================
/opt/rubies/3.4.1/bin/ruby ./performance/benchmark.rb rigid
Running benchmark for 20 seconds (with 10 seconds warmup).
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin23]
Warming up --------------------------------------
tokenize: 333.000 i/100ms
parse: 14.000 i/100ms
render: 62.000 i/100ms
parse & render: 11.000 i/100ms
Calculating -------------------------------------
tokenize: 3.334k (± 0.3%) i/s (299.93 μs/i) - 66.933k in 20.075484s
parse: 148.349 (± 2.0%) i/s (6.74 ms/i) - 2.968k in 20.019775s
render: 663.752 (± 2.6%) i/s (1.51 ms/i) - 13.268k in 20.010303s
parse & render: 116.464 (± 2.6%) i/s (8.59 ms/i) - 2.332k in 20.037869s
liquid$
```
2025-10-27 16:33:31 +01:00
Guilherme Carreiro and Alok Swamy
5a210fc8f6
Update Rakefile
...
Co-authored-by: Alok Swamy <[email protected] >
2025-10-27 16:33:31 +01:00
Guilherme Carreiro and Guilherme Carreiro
edf06c2882
Introduce :rigid parsing mode
2025-10-27 16:33:31 +01:00
Michael Go
8ecb703d4d
use StringScanner to improve Expression Parsing and Tokenizer
2025-01-07 14:32:06 -04:00
Ian Ker-Seymer and GitHub
fdd8c714b2
Stop testing against liquid-c ( #1868 )
...
* Stop testing against `liquid-c`
* Bump to `v5.6.0.rc2`
2024-12-11 12:23:50 -05: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
Dylan Thacker-Smith
e781449c36
Remove root directory from library search path for tests
...
It isn't in the gemspec's require_path, so we shouldn't add any dependence
on it.
2020-10-08 01:53:11 -04:00
Dylan Thacker-Smith
7eb03ea198
Only test liquid-c integration using the integration tests
2020-10-08 01:52:40 -04:00
Alessandro Diogo Brückheimer and Mike Angell
e83b1e4159
Add ForceEqualSignAlignment to .rubocop.yml ( #1190 )
...
* Add ForceEqualSignAlignment to .rubocop.yml
* Revert ForceEqualSignAlignment cop
* Update method alignment
* Undo addition of whitespace to improve readability
* Fix missing alignment
2019-10-21 21:18:48 +10:00
0d26f05bb8
Enabled frozen string literals ( #1154 )
...
* Enabled frozen string literals
* Update rubocop config
* Prefer string interpolation in simple cases
Co-Authored-By: Dylan Thacker-Smith <[email protected] >
2019-09-18 13:19:45 +10:00
Mike Angell
799da202df
Apply simple rubocop fixes
2019-08-31 21:58:33 +10:00
Mike Angell
b16b109a80
Bump Minimum version to 2.4 and bump Rubocop
2019-08-28 00:31:44 +10:00
Florian Weingarten
c67b77709d
rake memory_profile:run
2019-04-17 19:09:26 +01:00
David Cornu
2a2376bfd9
Run :test before :rubocop in the default Rake task
2018-10-19 15:06:36 -04:00
Florian Weingarten and Florian Weingarten
e2323332cd
Run tests with latest liquid/c gem
2015-06-08 18:38:35 +00:00
Loren Hale
232e8bb4cd
add rake console
...
add Rake console task to load irb with liquid
2015-06-05 10:17:55 +08:00
Florian Weingarten
3372ca8136
Rubocop
2015-05-14 14:37:18 +00:00
Dylan Thacker-Smith
7e45155aa9
Seperate unit and integration tests.
...
This makes it easier to re-use the integration tests in a seperate gem that
optimizes parts of liquid with a native implementation.
2014-03-26 15:47:07 -04:00
Dylan Thacker-Smith
d1bfda15e3
Add profile:strict rake task.
2014-03-21 21:54:53 -04:00
Arthur Neves
0644da02bb
Improve Rakefile
2013-10-10 10:44:16 -04:00
Tristan Hume
047900d0dd
Proper warning support
2013-08-19 15:14:26 -04:00
Tristan Hume
eb68a751ac
Hopefully fix CI by improving multi-suite runner.
2013-08-16 15:15:15 -04:00
Tristan Hume
6cde98319f
More little fixes and changed default benchmark
2013-08-02 15:21:15 -04:00
Tristan Hume
824231284c
Run test suite with both parsers
2013-08-01 12:49:36 -04:00
Tristan Hume
1458396733
Fix benchmark
2013-07-30 14:20:16 -04:00
Tristan Hume
87b8ee7341
Add error mode switching
2013-07-26 11:45:13 -04:00
Tobias Lütke
ce76dbf8d9
fixed the performance suite
2012-10-20 10:53:53 -04:00
Jonathan Rudenberg
f8d46804fd
Fix rake test for broken version of rake on travis
2012-08-07 09:49:55 -04:00
Jonathan Rudenberg
f0f2e56369
Merge pull request #76 from trans/master
...
Add split example to example servlet
2011-10-15 19:58:40 -07:00
Jonathan Rudenberg
05a20c627d
Clean up test suite
2011-10-15 20:04:27 -04:00
Jonathan Rudenberg
8e3f0c122e
Clean up Rakefile and gemspec
2011-10-15 19:56:03 -04:00
7rans
edebcaa603
Add split example to example servlet.
2011-09-29 18:41:47 -04:00
Tobias Lütke
9926d86c91
Fix rake file, add rake benchmark:run
2011-01-28 21:18:07 -05:00
DBA and Tobias Lütke
c72c84ea9b
Tests
...
- Organized the files
- Cleaned up some of the white spacing issues
- A lot can still be done to make the tests more readable to the new developers
2010-08-23 01:30:01 +08:00
DBA and Tobias Lütke
5425679a96
Rakefile
...
- Updated to run with Ruby 1.9.2-p0
- Fixed some indentations / white spacing
2010-08-23 01:29:59 +08:00
James MacAulay
6b79f25c87
rake release
2010-07-09 09:11:41 -04:00
James MacAulay
d53a4e1834
rake default task is 'test'
2010-07-06 16:01:15 -04:00
James MacAulay
5ff699bb8a
Gem version 2.1.0. Don't use Hoe.
2010-07-06 13:19:38 -04:00
Tobias Lütke
7ff4352de2
Added convenience task rake profile:grind to load up KCacheGind
2009-06-15 10:35:49 -04:00
Tobias Lütke
a65bd76e72
Merge branch 'master' of [email protected] :tobi/liquid
...
Conflicts:
lib/liquid.rb
lib/liquid/context.rb
lib/liquid/variable.rb
test/standard_tag_test.rb
2009-06-15 09:00:30 -04:00
Tobias Lütke
1b3b3e4958
added rake profile for easier invokation
2009-06-14 18:04:07 -04:00
Tobias Lütke
26faf512a1
bump
2009-03-10 17:23:17 -04:00
Tobias Lütke
7f58cbf82d
Merged last set of changes from original SVN location
2008-05-08 11:34:43 -04:00
Tobias Lütke
1d647361e1
Initial github import of liquid
2008-05-08 11:28:13 -04:00