liquify 0.2.5 → 0.2.7
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/.travis.yml +6 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +17 -2
- data/README.textile +1 -1
- data/lib/liquify.rb +1 -1
- data/lib/liquify/tag.rb +6 -0
- data/lib/liquify/version.rb +1 -1
- data/liquify.gemspec +0 -1
- data/spec/spec_helper.rb +0 -4
- metadata +4 -16
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
liquify (0.2.
|
|
4
|
+
liquify (0.2.6)
|
|
5
5
|
liquid (>= 2.2.2)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: http://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
+
activemodel (3.0.9)
|
|
11
|
+
activesupport (= 3.0.9)
|
|
12
|
+
builder (~> 2.1.2)
|
|
13
|
+
i18n (~> 0.5.0)
|
|
14
|
+
activerecord (3.0.9)
|
|
15
|
+
activemodel (= 3.0.9)
|
|
16
|
+
activesupport (= 3.0.9)
|
|
17
|
+
arel (~> 2.0.10)
|
|
18
|
+
tzinfo (~> 0.3.23)
|
|
19
|
+
activesupport (3.0.9)
|
|
20
|
+
arel (2.0.10)
|
|
21
|
+
builder (2.1.2)
|
|
10
22
|
diff-lcs (1.1.2)
|
|
23
|
+
i18n (0.5.0)
|
|
11
24
|
liquid (2.2.2)
|
|
12
25
|
rspec (2.3.0)
|
|
13
26
|
rspec-core (~> 2.3.0)
|
|
@@ -17,10 +30,12 @@ GEM
|
|
|
17
30
|
rspec-expectations (2.3.0)
|
|
18
31
|
diff-lcs (~> 1.1.2)
|
|
19
32
|
rspec-mocks (2.3.0)
|
|
33
|
+
tzinfo (0.3.29)
|
|
20
34
|
|
|
21
35
|
PLATFORMS
|
|
22
36
|
ruby
|
|
23
37
|
|
|
24
38
|
DEPENDENCIES
|
|
39
|
+
activerecord
|
|
25
40
|
liquify!
|
|
26
|
-
rspec
|
|
41
|
+
rspec
|
data/README.textile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
h1. Liquify
|
|
1
|
+
h1. Liquify "!https://secure.travis-ci.org/daneharrigan/liquify.png!":https://secure.travis-ci.org/daneharrigan/liquify
|
|
2
2
|
|
|
3
3
|
The Liquify gem is a wrapper to the very popular Liquid templating engine.
|
|
4
4
|
The goal of this project is to make working with Liquid templates, drops, tags, etc.
|
data/lib/liquify.rb
CHANGED
data/lib/liquify/tag.rb
CHANGED
|
@@ -2,6 +2,7 @@ module Liquify
|
|
|
2
2
|
class Tag < Liquid::Tag
|
|
3
3
|
def render(context)
|
|
4
4
|
return unless respond_to? :invoke
|
|
5
|
+
@context = context
|
|
5
6
|
|
|
6
7
|
if method(:invoke).arity == 0
|
|
7
8
|
invoke
|
|
@@ -10,5 +11,10 @@ module Liquify
|
|
|
10
11
|
invoke(params)
|
|
11
12
|
end
|
|
12
13
|
end
|
|
14
|
+
|
|
15
|
+
private
|
|
16
|
+
def context
|
|
17
|
+
@context
|
|
18
|
+
end
|
|
13
19
|
end
|
|
14
20
|
end
|
data/lib/liquify/version.rb
CHANGED
data/liquify.gemspec
CHANGED
|
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
|
|
15
15
|
s.rubyforge_project = "liquify"
|
|
16
16
|
s.add_dependency 'liquid', '>= 2.2.2'
|
|
17
|
-
s.add_development_dependency 'rspec', '~> 2.3.0'
|
|
18
17
|
|
|
19
18
|
s.files = `git ls-files`.split("\n")
|
|
20
19
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: liquify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.2.
|
|
5
|
+
version: 0.2.7
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Dane Harrigan
|
|
@@ -10,8 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-
|
|
14
|
-
default_executable:
|
|
13
|
+
date: 2011-07-02 00:00:00 Z
|
|
15
14
|
dependencies:
|
|
16
15
|
- !ruby/object:Gem::Dependency
|
|
17
16
|
name: liquid
|
|
@@ -24,17 +23,6 @@ dependencies:
|
|
|
24
23
|
version: 2.2.2
|
|
25
24
|
type: :runtime
|
|
26
25
|
version_requirements: *id001
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: rspec
|
|
29
|
-
prerelease: false
|
|
30
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
|
31
|
-
none: false
|
|
32
|
-
requirements:
|
|
33
|
-
- - ~>
|
|
34
|
-
- !ruby/object:Gem::Version
|
|
35
|
-
version: 2.3.0
|
|
36
|
-
type: :development
|
|
37
|
-
version_requirements: *id002
|
|
38
26
|
description: A wrapper for Liquid Markup to make it easier to use
|
|
39
27
|
email:
|
|
40
28
|
- dane.harrigan@gmail.com
|
|
@@ -46,6 +34,7 @@ extra_rdoc_files: []
|
|
|
46
34
|
|
|
47
35
|
files:
|
|
48
36
|
- .gitignore
|
|
37
|
+
- .travis.yml
|
|
49
38
|
- Gemfile
|
|
50
39
|
- Gemfile.lock
|
|
51
40
|
- README.textile
|
|
@@ -82,7 +71,6 @@ files:
|
|
|
82
71
|
- spec/v0.1/liquify/active_record_hook_spec.rb
|
|
83
72
|
- spec/v0.1/liquify/drop_spec.rb
|
|
84
73
|
- spec/v0.1/liquify_spec.rb
|
|
85
|
-
has_rdoc: true
|
|
86
74
|
homepage: ""
|
|
87
75
|
licenses: []
|
|
88
76
|
|
|
@@ -106,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
94
|
requirements: []
|
|
107
95
|
|
|
108
96
|
rubyforge_project: liquify
|
|
109
|
-
rubygems_version: 1.
|
|
97
|
+
rubygems_version: 1.7.2
|
|
110
98
|
signing_key:
|
|
111
99
|
specification_version: 3
|
|
112
100
|
summary: A wrapper for Liquid Markup to make it easier to use
|