jekyll_plugin_logger 2.0.0 → 2.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 +4 -0
- data/Rakefile +16 -0
- data/lib/jekyll_plugin_logger/version.rb +1 -1
- data/lib/jekyll_plugin_logger.rb +10 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f82bc258b242f26c4358799b244b20d7b0763a86f5618af7f01b20fd1002d59
|
4
|
+
data.tar.gz: 3ffb12d7e491701a2eaefde02f29cda28bf9ddf5c039a5146a175aa9163f0381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32fa2599a8864cb7418b6b4b85d9e4d7d1a42c5ad93b7763b19c2f62bb470df37d6d439c6a396ba616a9e4e8d5c33696f23adfb5926d508d981be3e09a474f80
|
7
|
+
data.tar.gz: 295194a15f1937caec9d78185891091e5c47a3f271343f84fb35bbef4be62768c089a80e724c6310c130fc342d16bfd5095fd37b994609b41a957f5c15524b77
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 2.0.1 / 2022-04-05
|
2
|
+
* Changed to registration hook to `:site`, `:after_reset` because that is the first hook that gets called.
|
3
|
+
* Improved the detection of various types of `progname`
|
4
|
+
|
1
5
|
## 2.0.0 / 2022-03-16
|
2
6
|
* Completely rewrote this plugin, now not a class, but a module that monkey patches the existing Jekyll logger for compatibility.
|
3
7
|
* Renamed the gem from `jekyll_logger_factory` to `jekyll_plugin_logger`.
|
data/Rakefile
CHANGED
@@ -1,7 +1,23 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "bump/tasks"
|
3
4
|
require "bundler/gem_tasks"
|
4
5
|
require "rspec/core/rake_task"
|
5
6
|
|
7
|
+
# do not always tag the version
|
8
|
+
# Bump.tag_by_default = false
|
9
|
+
|
10
|
+
# bump the version in additional files
|
11
|
+
# Bump.replace_in_default = ["Readme.md"]
|
12
|
+
|
13
|
+
# Maintain changelog:
|
14
|
+
Bump.changelog = true
|
15
|
+
|
16
|
+
# Open the changelog in an editor when bumping
|
17
|
+
Bump.changelog = :editor
|
18
|
+
|
19
|
+
# Configure bump to not use a prefix:
|
20
|
+
ENV["TAG_PREFIX"] = ""
|
21
|
+
|
6
22
|
RSpec::Core::RakeTask.new(:spec)
|
7
23
|
task :default => :spec
|
data/lib/jekyll_plugin_logger.rb
CHANGED
@@ -103,15 +103,15 @@ class PluginLogger
|
|
103
103
|
private
|
104
104
|
|
105
105
|
def derive_progname(klass)
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
106
|
+
class_name = klass.class.to_s
|
107
|
+
case class_name
|
108
|
+
when "Class"
|
109
|
+
klass.class.name.demodulize
|
110
|
+
when "Module", "Symbol", "String"
|
111
|
+
klass.to_s
|
112
|
+
else
|
113
|
+
class_name
|
114
|
+
end
|
115
115
|
end
|
116
116
|
|
117
117
|
# Available colors are: :black, :red, :green, :yellow, :blue, :magenta, :cyan, :white, and the modifier :bold
|
@@ -189,7 +189,7 @@ class PluginMetaLogger
|
|
189
189
|
end
|
190
190
|
end
|
191
191
|
|
192
|
-
Jekyll::Hooks.register(:site, :
|
192
|
+
Jekyll::Hooks.register(:site, :after_reset, :priority => :high) do |site|
|
193
193
|
instance = PluginMetaLogger.instance
|
194
194
|
logger = instance.setup(site.config)
|
195
195
|
logger.info { "Loaded #{JekyllPluginLoggerName::PLUGIN_NAME} v#{JekyllPluginLogger::VERSION} plugin." }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_plugin_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|