octopress-tag-helpers 1.0.2 → 1.0.3

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: a9c262cafe299ac312ed7caead476cc84d9cab3c
4
- data.tar.gz: 1b7aa60163eb8e0057578df3b47d9846231083e4
3
+ metadata.gz: 82e05db24ed25ea864c412f0afa5584062834bb2
4
+ data.tar.gz: fd514fb1f17c137be397961eff7f899753b52c1a
5
5
  SHA512:
6
- metadata.gz: 22e686a20f77d3db8199f1569250df46a75001ecb6f042ed5c98483d8cd1d1e174455edd010b8c162d9e7ea4ee94cfef14902477c8f626a02f8d4054374d2905
7
- data.tar.gz: 290231c881df7d18cfdcf9ca0cb7b2c9978a2b8784c5fcfe06da7ea4398f03ce94816b05a0124605046d08bd90c683aa85c9262540d8ff40d2cfd80b8311b9f1
6
+ metadata.gz: e7a8b4a3c61825506c083a996b33c12211a541cad3e26c10fd32ad4f4ccdddd1f67f8c6fe7173fc2afc8dc61952e47955b196553987ee0aaa3d37f2f59e22088
7
+ data.tar.gz: b088dfa575ed53e2313747ff7461accf8a3900145c139200b55ec213c6db44a2881103ab6ed73f794e7f3953efc756c5d880b991a41ce0738fcf948c0cb2579a
data/CHANGELOG.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.3 - 2015-02-22
4
+ - Fix: Variables were being rendered to strings before being run through filters.
5
+
3
6
  ## 1.0.2 - 2014-08-20
4
- - Support for changes in Jekyll 2.3.0
7
+ - Support for changes in Jekyll 2.3.0.
5
8
 
6
9
  ## 1.0.1 - 2014-06-29
7
- - Improved support for relative paths
10
+ - Improved support for relative paths.
8
11
 
9
12
  ## 1.0.0 - 2014-06-29
10
- - Initial release
13
+ - Initial release.
@@ -29,14 +29,16 @@ module Octopress
29
29
  filters = $2
30
30
  end
31
31
  vars = vars.split(/ \|\| /).map { |v|
32
- context[v.strip]
32
+ v if context[v.strip]
33
33
  }.compact
34
34
 
35
35
  var = vars.first
36
+
36
37
  if filters
37
- var = Liquid::Variable.new("'#{var}'"+ filters).render(context)
38
+ Liquid::Variable.new(var << filters).render(context)
39
+ else
40
+ context[var]
38
41
  end
39
- var
40
42
  end
41
43
 
42
44
  def self.evaluate_ternary(markup, context)
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module TagHelpers
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-tag-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-24 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll