mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
committed by
Tobias Lütke
parent
56f1aa9b4a
commit
daadb1a2d6
@@ -1,3 +1,5 @@
|
||||
* Ruby 1.9.1 bugfixes
|
||||
|
||||
* Fix LiquidView for Rails 2.2. Fix local assigns for all versions of Rails
|
||||
|
||||
* Fixed gem install rake task
|
||||
|
||||
@@ -2,7 +2,6 @@ require 'set'
|
||||
|
||||
module Liquid
|
||||
|
||||
|
||||
parent_object = if defined? BlankObject
|
||||
BlankObject
|
||||
else
|
||||
@@ -15,7 +14,7 @@ module Liquid
|
||||
# One of the strainer's responsibilities is to keep malicious method calls out
|
||||
class Strainer < parent_object #:nodoc:
|
||||
INTERNAL_METHOD = /^__/
|
||||
@@required_methods = Set.new([:__send__, :__id__, :respond_to?, :extend, :methods, :class])
|
||||
@@required_methods = Set.new([:__send__, :respond_to?, :extend, :methods, :class, :object_id])
|
||||
|
||||
@@filters = {}
|
||||
|
||||
|
||||
@@ -34,8 +34,7 @@ module Liquid
|
||||
|
||||
def render(context)
|
||||
return '' if @name.nil?
|
||||
output = context[@name]
|
||||
@filters.inject(output) do |output, filter|
|
||||
@filters.inject(context[@name]) do |output, filter|
|
||||
filterargs = filter[1].to_a.collect do |a|
|
||||
context[a]
|
||||
end
|
||||
@@ -45,7 +44,6 @@ module Liquid
|
||||
raise FilterNotFound, "Error - filter '#{filter[0]}' in '#{@markup.strip}' could not be found."
|
||||
end
|
||||
end
|
||||
output
|
||||
end
|
||||
end
|
||||
end
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{liquid}
|
||||
s.version = "1.9.0"
|
||||
s.version = "2.0.1"
|
||||
s.specification_version = 2 if s.respond_to? :specification_version=
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["Tobias Luetke"]
|
||||
s.date = %q{2008-06-23}
|
||||
s.date = %q{2009-04-13}
|
||||
s.description = %q{A secure non evaling end user template engine with aesthetic markup.}
|
||||
s.email = %q{[email protected]}
|
||||
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
||||
|
||||
Reference in New Issue
Block a user