liquid 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +5 -0
- data/lib/liquid/tags/if.rb +1 -1
- metadata +4 -4
data/Rakefile
CHANGED
@@ -18,6 +18,11 @@ Rake::GemPackageTask.new(gemspec) do |pkg|
|
|
18
18
|
pkg.gem_spec = gemspec
|
19
19
|
end
|
20
20
|
|
21
|
+
desc "build the gem and release it to rubygems.org"
|
22
|
+
task :release => :gem do
|
23
|
+
sh "gem push pkg/liquid-#{gemspec.version}.gem"
|
24
|
+
end
|
25
|
+
|
21
26
|
namespace :profile do
|
22
27
|
|
23
28
|
|
data/lib/liquid/tags/if.rb
CHANGED
@@ -14,7 +14,7 @@ module Liquid
|
|
14
14
|
class If < Block
|
15
15
|
SyntaxHelp = "Syntax Error in tag 'if' - Valid syntax: if [expression]"
|
16
16
|
Syntax = /(#{QuotedFragment})\s*([=!<>a-z_]+)?\s*(#{QuotedFragment})?/
|
17
|
-
ExpressionsAndOperators = /(?:and|or|(?:\s*(?!\b(?:and|or)\b)(?:#{QuotedFragment}|\S+)\s*)+)/
|
17
|
+
ExpressionsAndOperators = /(?:\b(?:and|or)\b|(?:\s*(?!\b(?:and|or)\b)(?:#{QuotedFragment}|\S+)\s*)+)/
|
18
18
|
|
19
19
|
def initialize(tag_name, markup, tokens)
|
20
20
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 2
|
10
|
+
version: 2.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Luetke
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2010-07-09 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|