mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
- 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]>
39 lines
820 B
Ruby
39 lines
820 B
Ruby
# frozen_string_literal: true
|
|
|
|
source 'https://rubygems.org'
|
|
git_source(:github) do |repo_name|
|
|
"https://github.com/#{repo_name}.git"
|
|
end
|
|
|
|
gemspec
|
|
|
|
gem "base64"
|
|
|
|
group :benchmark, :test do
|
|
gem 'benchmark-ips'
|
|
gem 'memory_profiler'
|
|
gem 'terminal-table'
|
|
gem "lru_redux"
|
|
|
|
install_if -> { RUBY_PLATFORM !~ /mingw|mswin|java/ && RUBY_ENGINE != 'truffleruby' } do
|
|
gem 'stackprof'
|
|
end
|
|
end
|
|
|
|
group :development do
|
|
gem "webrick"
|
|
end
|
|
|
|
group :test do
|
|
gem 'benchmark'
|
|
gem 'rubocop', '~> 1.82.0'
|
|
gem 'rubocop-shopify', '~> 2.18.0', require: false
|
|
gem 'rubocop-performance', require: false
|
|
end
|
|
|
|
group :spec do
|
|
# Using feature branch until https://github.com/Shopify/liquid-spec/pull/97 is merged
|
|
gem 'liquid-spec', github: 'Shopify/liquid-spec', branch: 'main'
|
|
gem 'activesupport', require: false
|
|
end
|