jekyll_flexible_include 2.0.5 → 2.0.6

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
  SHA256:
3
- metadata.gz: 7728aa7304d9fef053bb7b6f0e5adb59938a13711764f5ec1615497d54e23845
4
- data.tar.gz: 1ef45a4764e136856e80e9a874cfa6e30ac1a9bc2523a10a024fa79bafc1b3d5
3
+ metadata.gz: fed2067800a2324df252ff3e8cfd48b21c9cb3754e5e5b474d135ebb307cd8bf
4
+ data.tar.gz: abbf8f05f739832f259d9cb16d16d552ae18ee3da17a5bf8a77cae933cdb9b76
5
5
  SHA512:
6
- metadata.gz: 33c164b768d259e680458b14fab226d7fe038685a8dc98b459140a812628c8e9978e200e1ea3da414be678ebaca5f73e3b42957f26879162d6ce9c874f5346d2
7
- data.tar.gz: 43b56da5e19d31a4aa51c87ba21d284c57f1f242a2f25f16bf71d3524ad620df09ba98faf18b234992073ddb2b09fbe89a912a6a15877d9ce1b71608eaa6ea33
6
+ metadata.gz: b33745dc685acc809658f6ad42efaea735747c5b6816653e10ae56e5f001f957e0f13959d3e1cffe954d2ba8270309277a322568d8536864d9fc055938e00c48
7
+ data.tar.gz: c6926ffab7a700d4ef884237c0f606ed053d32e66ac97472458cc09102875df883d1cc656c55dfb6a769bc094ae7447abe6e2057bebfb9a74f6e183c57d2e625
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2.0.6 / 2022-04-11
2
+ * Niggling little bug thing. Gone.
3
+
1
4
  ## 2.0.5 / 2022-04-11
2
5
  * Now using <code>Shellwords</code> and <code>KeyValueParser</code> instead of a homegrown parser.
3
6
  * Refactored helper methods to jekyll_tag_helper.rb
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllFlexibleIncludePluginVersion
4
- VERSION = "2.0.5"
4
+ VERSION = "2.0.6"
5
5
  end
@@ -56,10 +56,11 @@ class JekyllTagHelper
56
56
 
57
57
  # @return value of variable, or the empty string
58
58
  def dereference_variable(name)
59
- @liquid_context[name] || # Finds variables named like 'include.my_variable', found in @liquid_context.scopes.first
60
- @page[name] || # Finds variables named like 'page.my_variable'
61
- dereference_include_variable(name) ||
62
- ""
59
+ value = @liquid_context[name] # Finds variables named like 'include.my_variable', found in @liquid_context.scopes.first
60
+ value ||= @page[name] if @page # Finds variables named like 'page.my_variable'
61
+ value ||= dereference_include_variable(name)
62
+ value ||= ""
63
+ value
63
64
  end
64
65
 
65
66
  # Sets @params by replacing any Liquid variable names with their values
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_flexible_include
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn