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 +4 -4
- data/CHANGELOG.md +6 -3
- data/lib/octopress-tag-helpers/var.rb +5 -3
- data/lib/octopress-tag-helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82e05db24ed25ea864c412f0afa5584062834bb2
|
4
|
+
data.tar.gz: fd514fb1f17c137be397961eff7f899753b52c1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
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.
|
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:
|
11
|
+
date: 2015-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|