mirror of
https://github.com/kemko/liquid.git
synced 2026-01-05 17:55:40 +03:00
Add stress test for correctness
This commit is contained in:
3
Gemfile
3
Gemfile
@@ -5,6 +5,7 @@ end
|
||||
|
||||
gemspec
|
||||
|
||||
|
||||
group :benchmark, :test do
|
||||
gem 'benchmark-ips'
|
||||
gem 'memory_profiler'
|
||||
@@ -17,6 +18,8 @@ end
|
||||
group :test do
|
||||
gem 'rubocop', '~> 0.53.0'
|
||||
gem 'awesome_print'
|
||||
gem 'pry'
|
||||
gem 'byebug'
|
||||
|
||||
platform :mri do
|
||||
gem 'liquid-c', github: 'Shopify/liquid-c', ref: '9168659de45d6d576fce30c735f857e597fa26f6'
|
||||
|
||||
@@ -13,6 +13,8 @@ module Liquid
|
||||
class Capture < Block
|
||||
Syntax = /(#{VariableSignature}+)/o
|
||||
|
||||
attr_reader :to
|
||||
|
||||
def initialize(tag_name, markup, options)
|
||||
super
|
||||
if markup =~ Syntax
|
||||
@@ -33,6 +35,7 @@ module Liquid
|
||||
def blank?
|
||||
true
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Template.register_tag('capture'.freeze, Capture)
|
||||
|
||||
Reference in New Issue
Block a user