jekyll_plugin_support 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5704c55f7166173f403cb54d03524eec33e0180fdb1f1ef4e3fe7f3d928d1c42
4
- data.tar.gz: bac72f2f2a1e579256482b6e9e2c5583c8de1fc9c570d95e862b4ca0620a69d2
3
+ metadata.gz: 53975ba14d38fdc37e99ed9363b3d30885a301541c254584ae70d18157fc0e3f
4
+ data.tar.gz: ccd9fc245d26fce6fa24bbc8edcda670faa017df3e08c75ec08effa760fa44ae
5
5
  SHA512:
6
- metadata.gz: 6023e3b8096284d039794a90be4669181f583a25fb3f5507b35cf8458ed84fd1ce17d538ce7c513b3729fa4eff06da8f5360a6c444d8678826cbbd35ab1cd0a4
7
- data.tar.gz: 637ec49f7e0438c88acfc6ed042fd921a0cda96a986b99c3b9dfe8f9b520056af7235f8085ac1115fa092150bd6e8cd9641eb8beb50cdf00f114609306ef9a06
6
+ metadata.gz: f78badf8195aebeb9401a974aebd589b1f9af69e9d6c83a3dd7d7340f2edc93ad418ef6806915dc130cb4deab5c0beb80eca15cd27189cdca999bd15d1434081
7
+ data.tar.gz: dde45223b684b140e3c5e7d2633d96f39e974c148094243a979cebe60c33af5383e761c3e9aa6a60d34cdd71b90a550c39964f7e6e63c692660d536990074b39
data/.rubocop.yml CHANGED
@@ -2,7 +2,6 @@ AllCops:
2
2
  Exclude:
3
3
  - vendor/**/*
4
4
  - Gemfile*
5
- - '*.gemspec' # This does nothing. Why?
6
5
  NewCops: enable
7
6
  TargetRubyVersion: 2.6
8
7
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.1 / 2023-02-14
2
+ * Fixed several problems
3
+ * Added demo site
4
+
1
5
  ## 0.4.0 / 2023-02-12
2
6
  * `render_impl` for tags and blocks now predefines more instance variables:
3
7
  - `@liquid_context` – passed to `render`
data/README.md CHANGED
@@ -109,6 +109,20 @@ jekyll_plugin_support (0.1.0)
109
109
  ```
110
110
 
111
111
 
112
+ ## Test
113
+ A test website is provided in the `demo` directory.
114
+ 1. Set breakpoints.
115
+
116
+ 2. Initiate a debug session from the command line:
117
+ ```shell
118
+ $ bin/attach demo
119
+ ```
120
+
121
+ 3. Once the `Fast Debugger` signon appears, launch the Visual Studio Code launch configuration called `Attach rdebug-ide`.
122
+
123
+ 4. View the generated website at [`http://localhost:4444`](http://localhost:4444)
124
+
125
+
112
126
  ### Build and Push to RubyGems
113
127
  To release a new version,
114
128
  1. Update the version number in `version.rb`.
@@ -1,3 +1,3 @@
1
1
  module JekyllQuoteVersion
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
@@ -31,7 +31,7 @@ module JekyllSupport
31
31
  # @return [String]
32
32
  def render(liquid_context)
33
33
  text = super
34
- @liquid_context = liquid_context
34
+ @helper.liquid_context = liquid_context
35
35
 
36
36
  # The names of front matter variables are hash keys for @page
37
37
  @page = liquid_context.registers[:page] # Jekyll::Drops::DocumentDrop
@@ -74,7 +74,7 @@ module JekyllSupport
74
74
 
75
75
  # Method prescribed by the Jekyll plugin lifecycle.
76
76
  def render(liquid_context)
77
- @liquid_context = liquid_context
77
+ @helper.liquid_context = liquid_context
78
78
  @page = liquid_context.registers[:page]
79
79
  @site = liquid_context.registers[:site]
80
80
  @config = @site.config
@@ -14,7 +14,7 @@ class JekyllPluginHelper
14
14
  raise HrefError, "jekyll_href error: #{envar} is undefined".red, [] \
15
15
  if !ENV.key?(envar) && die_if_undefined # Suppress stack trace
16
16
 
17
- ENV[envar]
17
+ ENV.fetch(envar, nil)
18
18
  end
19
19
  end
20
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_plugin_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-13 00:00:00.000000000 Z
11
+ date: 2023-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -142,7 +142,6 @@ files:
142
142
  - spec/jekyll_block_plugin_support_spec.rb
143
143
  - spec/jekyll_tag_plugin_support_spec.rb
144
144
  - spec/spec_helper.rb
145
- - spec/status_persistence.txt
146
145
  homepage: https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html#quote
147
146
  licenses:
148
147
  - MIT
@@ -178,5 +177,4 @@ test_files:
178
177
  - spec/jekyll_block_plugin_support_spec.rb
179
178
  - spec/jekyll_tag_plugin_support_spec.rb
180
179
  - spec/spec_helper.rb
181
- - spec/status_persistence.txt
182
180
  ...
File without changes