mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 19:30:47 -07:00
@@ -63,8 +63,8 @@ module Liquid
|
|||||||
|
|
||||||
# Push new local scope on the stack. use <tt>Context#stack</tt> instead
|
# Push new local scope on the stack. use <tt>Context#stack</tt> instead
|
||||||
def push(new_scope={})
|
def push(new_scope={})
|
||||||
raise StackLevelError, "Nesting too deep" if @scopes.length > 100
|
|
||||||
@scopes.unshift(new_scope)
|
@scopes.unshift(new_scope)
|
||||||
|
raise StackLevelError, "Nesting too deep" if @scopes.length > 100
|
||||||
end
|
end
|
||||||
|
|
||||||
# Merge a hash of variables in the current local scope
|
# Merge a hash of variables in the current local scope
|
||||||
|
|||||||
+2
-2
@@ -2,13 +2,13 @@
|
|||||||
extras_path = File.join File.dirname(__FILE__), 'extra'
|
extras_path = File.join File.dirname(__FILE__), 'extra'
|
||||||
$LOAD_PATH.unshift(extras_path) unless $LOAD_PATH.include? extras_path
|
$LOAD_PATH.unshift(extras_path) unless $LOAD_PATH.include? extras_path
|
||||||
|
|
||||||
require 'rubygems' unless RUBY_VERSION =~ /^(?:1.9.*)$/
|
require 'rubygems' unless RUBY_VERSION >= '1.9'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/unit/assertions'
|
require 'test/unit/assertions'
|
||||||
require 'caller'
|
require 'caller'
|
||||||
require 'breakpoint'
|
require 'breakpoint'
|
||||||
require 'ruby-debug'
|
require 'ruby-debug'
|
||||||
require File.join File.dirname(__FILE__), '..', 'lib', 'liquid'
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'liquid')
|
||||||
|
|
||||||
|
|
||||||
module Test
|
module Test
|
||||||
|
|||||||
Reference in New Issue
Block a user