jekyll_run 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/jekyll_run.gemspec +1 -1
- data/lib/jekyll_run/version.rb +2 -2
- data/lib/jekyll_run.rb +3 -3
- data/spec/{jekyll_run.rb → jekyll_run_spec.rb} +0 -0
- data/spec/spec_helper.rb +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da8dd19af8e5217f0fbcb6111299a3a4298fcee9146bed96aaf54a545d2ef695
|
4
|
+
data.tar.gz: e885f19d85834269c1a18cf967972f7b4861adab39445e51e22d7beec485566b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22f3595e2f563dc9726f289592e89d6d4da666de71cb50f339752df17fa0068a74f509acd4d977af21b6339c058f8da48c8a0261b0e480c2985557d66c11ad37
|
7
|
+
data.tar.gz: 1e9ddebaefdced9c1f996e311b4e0adf08dbfb671bf8b531b64003faa7f9c3642802907b7623bd9dc258426eded1f6c670d4dcfefb03b090136d11dc46661112
|
data/CHANGELOG.md
CHANGED
data/jekyll_run.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.required_ruby_version = ">= 2.6.0"
|
33
33
|
spec.summary = "Jekyll tag plugin that executes a program and returns the output from STDOUT."
|
34
34
|
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
|
35
|
-
spec.version =
|
35
|
+
spec.version = JekyllRunVersion::VERSION
|
36
36
|
|
37
37
|
spec.add_dependency "jekyll", ">= 3.5.0"
|
38
38
|
spec.add_dependency "jekyll_plugin_logger"
|
data/lib/jekyll_run/version.rb
CHANGED
data/lib/jekyll_run.rb
CHANGED
@@ -19,17 +19,17 @@ class RunTag < Liquid::Tag
|
|
19
19
|
super
|
20
20
|
@command = command_line
|
21
21
|
@command = "" if @command.nil? || @command.empty?
|
22
|
-
@logger = PluginMetaLogger.instance.new_logger(self)
|
22
|
+
@logger = PluginMetaLogger.instance.new_logger(self, PluginMetaLogger.instance.config)
|
23
23
|
end
|
24
24
|
|
25
25
|
# Method prescribed by the Jekyll plugin lifecycle.
|
26
26
|
# @return [String]
|
27
27
|
def render(_context)
|
28
|
-
@logger.
|
28
|
+
@logger.debug "Running #{@command}"
|
29
29
|
output = `#{@command}`.rstrip
|
30
30
|
"<span class='unselectable'>$ </span>#{@command}\n<span class='unselectable'>#{output}</span>"
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
PluginMetaLogger.instance.info { "Loaded jekyll_run v#{
|
34
|
+
PluginMetaLogger.instance.info { "Loaded jekyll_run v#{JekyllRunVersion::VERSION} plugin." }
|
35
35
|
Liquid::Template.register_tag("run", RunTag)
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -4,7 +4,10 @@ require "jekyll"
|
|
4
4
|
require_relative "../lib/jekyll_run"
|
5
5
|
|
6
6
|
RSpec.configure do |config|
|
7
|
-
config.run_all_when_everything_filtered = true
|
8
7
|
config.filter_run :focus
|
9
8
|
config.order = "random"
|
9
|
+
config.run_all_when_everything_filtered = true
|
10
|
+
|
11
|
+
# See https://relishapp.com/rspec/rspec-core/docs/command-line/only-failures
|
12
|
+
config.example_status_persistence_file_path = "spec/status_persistence.txt"
|
10
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_run
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.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: 2022-
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- jekyll_run.gemspec
|
85
85
|
- lib/jekyll_run.rb
|
86
86
|
- lib/jekyll_run/version.rb
|
87
|
-
- spec/
|
87
|
+
- spec/jekyll_run_spec.rb
|
88
88
|
- spec/spec_helper.rb
|
89
89
|
homepage: https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html#run
|
90
90
|
licenses:
|
@@ -118,5 +118,5 @@ signing_key:
|
|
118
118
|
specification_version: 4
|
119
119
|
summary: Jekyll tag plugin that executes a program and returns the output from STDOUT.
|
120
120
|
test_files:
|
121
|
-
- spec/
|
121
|
+
- spec/jekyll_run_spec.rb
|
122
122
|
- spec/spec_helper.rb
|