liquid_assets 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50e6eb3911190f87a95427241a4f72f2f3c99b13
4
- data.tar.gz: 917feafdbd36d8a8f9b48619e33efa4599e23c8b
3
+ metadata.gz: f414bb1c0ef89a7bc95cd501fddeb1f326192678
4
+ data.tar.gz: eaf3abc52c05ba6f96699724d541be94a2049ce5
5
5
  SHA512:
6
- metadata.gz: 089c3243284ea3dacbe2cfc37b8ec520b3649883fb1e1bf75c43da9f0f9e9c45c8dc96a4f1ae4b7e5d3444a99317714d6c9111bd064d7d05e6c2331008f303da
7
- data.tar.gz: 5ba19ade6130e6dd873c62aeed7e523cf13d037ded8ff747a480ffd3b7bb99c05f69b02f6e0c9c006fff866d1470b0775b95b109b272ed78c53fd40f80696dcb
6
+ metadata.gz: 7dc54d4954e4b824ccc21c6613f06494a908a15b186b7761fa0b450c6962f7fa8238546722ef4b1b15de78dee56124c68ab7a2d5b0e61e48dcc7644e50b27227
7
+ data.tar.gz: b5fff83b47eb3f7ca709825063f99b1a56da6037b37dc11f8e69b9e223f27ed2de1afce639bfa68e06e706fee772c7766b820933b4370068b22122d5e3a7997f
@@ -96,7 +96,7 @@ module LiquidAssets
96
96
  end
97
97
 
98
98
  def filters
99
- @filters ||= LiquidAssets::TemplateFilters
99
+ @filters ||= LiquidAssets::Filters
100
100
  end
101
101
  def namespace
102
102
  @namespace ||= 'LQT'
@@ -1,3 +1,3 @@
1
1
  module LiquidAssets
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.4"
3
3
  end
data/test/helper.rb CHANGED
@@ -37,6 +37,14 @@ class DummyView
37
37
  def content_for?(block)
38
38
  nil
39
39
  end
40
+ def compile( code )
41
+ source = <<-end_src
42
+ def template(local_assigns)
43
+ #{code}
44
+ end
45
+ end_src
46
+ self.instance_eval(source)
47
+ end
40
48
  end
41
49
 
42
50
  class Hash
@@ -24,10 +24,9 @@ tmpl="LQT.Templates[\"path/to/template\"] = function(locals,fil
24
24
 
25
25
  def test_template_rendering
26
26
  locals = {foo:'bar'}
27
- source = 'foo={{foo}}'
28
- compiled = LiquidAssets::TemplateHandler.call(DummyView.new)
29
- p compiled
30
- assert_equal 'foo=bar', template
27
+ v = DummyView.new
28
+ v.compile LiquidAssets::TemplateHandler.call("Hello {{foo|upcase}}")
29
+ assert_equal 'Hello BAR', v.template( locals )
31
30
  end
32
31
 
33
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Stitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-05 00:00:00.000000000 Z
11
+ date: 2013-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
- rubygems_version: 2.0.3
162
+ rubygems_version: 2.0.6
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: Liquid formmated views and assets