mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 07:05:12 -07:00
All tests pass on Ruby 1.9.1
Signed-off-by: Tobias Lütke <[email protected]>
This commit is contained in:
committed by
Tobias Lütke
parent
8d27864845
commit
ed1b542abf
@@ -14,7 +14,7 @@ module Liquid
|
|||||||
# One of the strainer's responsibilities is to keep malicious method calls out
|
# One of the strainer's responsibilities is to keep malicious method calls out
|
||||||
class Strainer < parent_object #:nodoc:
|
class Strainer < parent_object #:nodoc:
|
||||||
INTERNAL_METHOD = /^__/
|
INTERNAL_METHOD = /^__/
|
||||||
@@required_methods = Set.new([:__send__, :respond_to?, :extend, :methods, :class, :object_id])
|
@@required_methods = Set.new([:__id__, :__send__, :respond_to?, :extend, :methods, :class, :object_id])
|
||||||
|
|
||||||
@@filters = {}
|
@@filters = {}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ module Liquid
|
|||||||
|
|
||||||
def render(context)
|
def render(context)
|
||||||
output = super
|
output = super
|
||||||
context[@to] = output.to_s
|
context[@to] = output.join
|
||||||
''
|
''
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ module Liquid
|
|||||||
attr_accessor :root
|
attr_accessor :root
|
||||||
@@file_system = BlankFileSystem.new
|
@@file_system = BlankFileSystem.new
|
||||||
|
|
||||||
class <<self
|
class << self
|
||||||
def file_system
|
def file_system
|
||||||
@@file_system
|
@@file_system
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user