Tobi Lutke
50e1789537
Use liquid-spec feature branch until PR is merged
2026-01-01 22:29:32 -05:00
Tobi Lutke
79a2e042ff
Use liquid-spec main branch
2026-01-01 22:24:00 -05:00
Tobi Lutke
ddee08fb95
Add activesupport feature to with_active_support adapter
...
Both adapters now pass with 0 failures:
- ruby_liquid.rb: 4194 passed (skips activesupport and shopify_error_handling specs)
- ruby_liquid_with_active_support.rb: 4203 passed (skips shopify_error_handling specs)
2026-01-01 22:21:47 -05:00
Tobi Lutke
2988f1a500
Update liquid-spec to branch with per-spec required_features support
2026-01-01 22:15:38 -05:00
Tobi Lutke
ef13b2dfd5
Fix empty? semantics and string first/last for empty strings
...
- nil is NOT empty (but IS blank) - matches Shopify production
- String first/last returns '' for empty strings, not nil - matches ActiveSupport
- Add test for nil not being empty
2026-01-01 22:06:22 -05:00
Tobi Lutke
b0fb0ad83f
Run liquid-spec for all adapters in spec/*.rb
2026-01-01 22:02:42 -05:00
Tobi Lutke
ae26cb29ac
Disable auto-require for activesupport gem
2026-01-01 22:00:49 -05:00
Tobi Lutke
608a877053
Add spec adapter with ActiveSupport for comparison testing
2026-01-01 22:00:38 -05:00
Tobi Lutke
d321adae77
Fix spec adapter for liquid-spec API (template, assigns, options)
2026-01-01 21:59:16 -05:00
Tobi Lutke
53641e19ce
Pin liquid-spec to minimum required commit 3d1b492
2026-01-01 21:57:34 -05:00
Tobi Lutke
ccd10a986a
Pin liquid-spec to main branch
2026-01-01 21:56:39 -05:00
Tobi Lutke
f4890de9d5
hm
2026-01-01 21:54:08 -05:00
Tobi Lutke
7e3ccbc188
test
2026-01-01 21:49:33 -05:00
Tobi Lutke
e0b46049af
Add Ruby 3.4 yjit, 4.0 zjit, and head zjit to CI matrix
2026-01-01 21:44:28 -05:00
Tobi Lutke
19528a9b3f
Update CI matrix: remove Ruby 3.0-3.2, add Ruby 4.0
2026-01-01 21:42:47 -05:00
Tobi Lutke
34c274d314
Fix rubocop: rename ruby-liquid.rb to ruby_liquid.rb and add trailing comma
2026-01-01 21:42:11 -05:00
Tobi Lutke
533d470723
Fix spec job to include :spec bundle group
2026-01-01 21:35:13 -05:00
Tobi Lutke
05f9c2a030
Add liquid-spec for conformance testing
...
- Add liquid-spec gem from GitHub to :spec group
- Create spec/ruby-liquid.rb adapter for the reference implementation
- Add spec job to CI workflow to run liquid-spec tests
2026-01-01 21:34:10 -05:00
Tobi Lutke
af58800c16
Update rubocop-shopify to 2.18.0 and fix new offenses
2026-01-01 20:22:19 -05:00
Tobi Lutke
361d1d52b1
Fix rubocop offenses from 1.82 upgrade
2026-01-01 20:20:50 -05:00
Tobi Lutke
391c0df57a
Update rubocop to 1.82.0 for Ruby 4.0 support
2026-01-01 20:19:21 -05:00
Tobi Lutke
0ed29760c0
Add benchmark gem for Ruby 4.0 compatibility
2026-01-01 20:18:35 -05:00
Tobi Lutke
0e3548d39e
Remove redundant else-clause
2026-01-01 20:16:24 -05:00
Tobi Lutke
33bac87a5c
Address liquid-spec issues without ActiveSupport loaded
...
Implement ActiveSupport-compatible behaviors internally so Liquid works
correctly without ActiveSupport being loaded:
1. String first/last via property access (name.first, name.last)
- VariableLookup now handles string[0] and string[-1] for first/last
2. String first/last via filters (name | first, name | last)
- StandardFilters#first and #last now handle strings
3. blank?/empty? comparisons for types without these methods
- Condition now implements liquid_blank? and liquid_empty? internally
- blank? matches ActiveSupport: nil, false, empty/whitespace strings,
empty arrays/hashes are all blank
- empty? checks length == 0 only (whitespace is NOT empty)
This fixes spec failures for templates like:
- {{ name.first }} / {{ name | first }} on strings
- {% if x == blank %} for whitespace strings, empty hashes/arrays
- {% case ' ' %}{% when blank %} matching whitespace
2026-01-01 20:14:21 -05:00
Tobias Lütke and GitHub
91c54c579d
Merge pull request #1477 from Watson1978/performance
...
Increase parsing performance
2022-02-14 12:25:19 -05:00
Tobias Lütke and GitHub
0ce8aef229
Merge pull request #1103 from ashmaroli/ci-profile-memory
...
Add a CI job to profile memory usage of commit
2019-08-27 15:11:55 -04:00
Tobias Lütke and GitHub
6eab595fae
Merge pull request #1086 from Shopify/liquid-tag
...
Add {% liquid %} and {% echo %} tags
2019-08-27 15:10:20 -04:00
Tobias Lütke
3476a556dd
Merge pull request #512 from Shopify/fix_tobi_name
...
Fix Tobi last name on gemspec
2015-01-23 21:24:04 -05:00
Tobias Lütke
101f125a69
Merge pull request #375 from Shopify/relative-link
...
Fixed relative link
2014-06-30 17:19:37 -04:00
Tobias Lütke
05d9976e16
fix benchmark
2012-10-29 16:47:57 -04:00
Tobias Lütke
ce76dbf8d9
fixed the performance suite
2012-10-20 10:53:53 -04:00
Tobias Lütke
16c34595a4
fix mergeconflict
2012-08-07 13:21:31 -04:00
Tobias Lütke
6e091909ee
Merge branch 'master' of github.com:Shopify/liquid
2012-08-07 13:20:37 -04:00
Tobias Lütke
d7cb39ccb3
release 2.4.0
2012-08-07 13:20:23 -04:00
Tobias Lütke
6831eac902
Released gem 2.1.3
2010-08-05 18:07:05 -04:00