octopress-tag-helpers 1.0.3 → 1.0.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: 82e05db24ed25ea864c412f0afa5584062834bb2
4
- data.tar.gz: fd514fb1f17c137be397961eff7f899753b52c1a
3
+ metadata.gz: e26315940079a35a5ebffc61e8955972c1f28d6c
4
+ data.tar.gz: b6f2047f9c5a5dd4da4285e18d587a172a5bc826
5
5
  SHA512:
6
- metadata.gz: e7a8b4a3c61825506c083a996b33c12211a541cad3e26c10fd32ad4f4ccdddd1f67f8c6fe7173fc2afc8dc61952e47955b196553987ee0aaa3d37f2f59e22088
7
- data.tar.gz: b088dfa575ed53e2313747ff7461accf8a3900145c139200b55ec213c6db44a2881103ab6ed73f794e7f3953efc756c5d880b991a41ce0738fcf948c0cb2579a
6
+ metadata.gz: 2ef04c2fac93216bbd7dcc350787a0f18cd3abbc672e5c699f135814973611bdb2cd909f0caaa765e3306251b94c82952b833397177551773f1ce4d7d375ff64
7
+ data.tar.gz: bf47d7997f54a00ecf94d891f2baface61a5ded88886a307679df82a7789d50b87c07bb5dd1ef1f49c85f62eb963416a1471b350855cb38c60c074a041eee8f2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.4 - 2015-03-24
4
+ - Fix: Assigning nil, null, or false to a variable caused an error.
5
+
3
6
  ## 1.0.3 - 2015-02-22
4
7
  - Fix: Variables were being rendered to strings before being run through filters.
5
8
 
@@ -28,9 +28,12 @@ module Octopress
28
28
  vars = $1
29
29
  filters = $2
30
30
  end
31
+
31
32
  vars = vars.split(/ \|\| /).map { |v|
32
- v if context[v.strip]
33
+ v if !context[v.strip].nil?
33
34
  }.compact
35
+
36
+ return if vars.empty?
34
37
 
35
38
  var = vars.first
36
39
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module TagHelpers
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll