Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Lütke committed Mar 10, 2009
1 parent 70ca647 commit 26faf51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -3,7 +3,7 @@ require 'rubygems'
require 'rake'
require 'hoe'

PKG_VERSION = "1.9.0"
PKG_VERSION = "2.0.0"
PKG_NAME = "liquid"
PKG_DESC = "A secure non evaling end user template engine with aesthetic markup."

Expand Down
2 changes: 1 addition & 1 deletion lib/liquid/tags/cycle.rb
Expand Up @@ -14,7 +14,7 @@ module Liquid
#
class Cycle < Tag
SimpleSyntax = /^#{Expression}/
NamedSyntax = /^(#{Expression})\s*\:\s*(.*)/
NamedSyntax = /^(#{Expression})\s*\:\s*(.*)/

def initialize(tag_name, markup, tokens)
case markup
Expand Down
6 changes: 4 additions & 2 deletions test/standard_tag_test.rb
Expand Up @@ -345,8 +345,7 @@ def test_case_detects_bad_syntax

end




def test_cycle

assert_template_result('one','{%cycle "one", "two"%}')
Expand All @@ -355,6 +354,9 @@ def test_cycle
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(' ','{% cycle "", "", "</tr><tr>" %}')
assert_template_result(' </tr><tr> ','{% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %}')

end

Expand Down

0 comments on commit 26faf51

Please sign in to comment.