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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcf2b4160579d3201e5b404e9af50a7bd06d542ebf6ede5bfcd86db0c91f0f92
4
- data.tar.gz: 36f813049d6c657458edf0b4442b09e27a2cb1f93972451153fbbf33ac7e9b6d
3
+ metadata.gz: da8dd19af8e5217f0fbcb6111299a3a4298fcee9146bed96aaf54a545d2ef695
4
+ data.tar.gz: e885f19d85834269c1a18cf967972f7b4861adab39445e51e22d7beec485566b
5
5
  SHA512:
6
- metadata.gz: 350c8eaebe6c995d5eb0b4931d81ddea464d2a4f39ffcb88c122c2d09f05d6710cddc5391fbdb54af61bf7cb543f3b352d02166cced1f941b33e18771c097d07
7
- data.tar.gz: 0a58a6e748b477c98e662288c3336e42693f1f669a6e762381e799af6e32ed3618d1f281b38b48733cf02669fd35fbcaa3b6e717311fc1ed4644327d89722d1c
6
+ metadata.gz: 22f3595e2f563dc9726f289592e89d6d4da666de71cb50f339752df17fa0068a74f509acd4d977af21b6339c058f8da48c8a0261b0e480c2985557d66c11ad37
7
+ data.tar.gz: 1e9ddebaefdced9c1f996e311b4e0adf08dbfb671bf8b531b64003faa7f9c3642802907b7623bd9dc258426eded1f6c670d4dcfefb03b090136d11dc46661112
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.1 / 2022-04-05
2
+ * Updated to `jekyll_plugin_logger` v2.1.0
3
+
1
4
  ## 1.0.0 / 2022-03-16
2
5
  * Published as a gem
3
6
 
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 = JekyllRun::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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module JekyllRun
4
- VERSION = "1.0.0"
3
+ module JekyllRunVersion
4
+ VERSION = "1.0.1"
5
5
  end
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.info "Running #{@command}"
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#{JekyllRun::VERSION} plugin." }
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.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-03-25 00:00:00.000000000 Z
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/jekyll_run.rb
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/jekyll_run.rb
121
+ - spec/jekyll_run_spec.rb
122
122
  - spec/spec_helper.rb