mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
bump
This commit is contained in:
@@ -3,7 +3,7 @@ require 'rubygems'
|
|||||||
require 'rake'
|
require 'rake'
|
||||||
require 'hoe'
|
require 'hoe'
|
||||||
|
|
||||||
PKG_VERSION = "1.9.0"
|
PKG_VERSION = "2.0.0"
|
||||||
PKG_NAME = "liquid"
|
PKG_NAME = "liquid"
|
||||||
PKG_DESC = "A secure non evaling end user template engine with aesthetic markup."
|
PKG_DESC = "A secure non evaling end user template engine with aesthetic markup."
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ module Liquid
|
|||||||
#
|
#
|
||||||
class Cycle < Tag
|
class Cycle < Tag
|
||||||
SimpleSyntax = /^#{Expression}/
|
SimpleSyntax = /^#{Expression}/
|
||||||
NamedSyntax = /^(#{Expression})\s*\:\s*(.*)/
|
NamedSyntax = /^(#{Expression})\s*\:\s*(.*)/
|
||||||
|
|
||||||
def initialize(tag_name, markup, tokens)
|
def initialize(tag_name, markup, tokens)
|
||||||
case markup
|
case markup
|
||||||
|
|||||||
@@ -345,8 +345,7 @@ HERE
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_cycle
|
def test_cycle
|
||||||
|
|
||||||
assert_template_result('one','{%cycle "one", "two"%}')
|
assert_template_result('one','{%cycle "one", "two"%}')
|
||||||
@@ -355,6 +354,9 @@ HERE
|
|||||||
assert_template_result('one two one','{%cycle "one", "two"%} {%cycle "one", "two"%} {%cycle "one", "two"%}')
|
assert_template_result('one two one','{%cycle "one", "two"%} {%cycle "one", "two"%} {%cycle "one", "two"%}')
|
||||||
|
|
||||||
assert_template_result('text-align: left text-align: right','{%cycle "text-align: left", "text-align: right" %} {%cycle "text-align: left", "text-align: right"%}')
|
assert_template_result('text-align: left text-align: right','{%cycle "text-align: left", "text-align: right" %} {%cycle "text-align: left", "text-align: right"%}')
|
||||||
|
|
||||||
|
assert_template_result(' ','{% cycle "", "", "</tr><tr>" %}')
|
||||||
|
assert_template_result(' </tr><tr> ','{% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %}')
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user