jekyll_plugin_logger 2.1.0 → 2.1.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/lib/jekyll_plugin_logger/version.rb +1 -1
- data/lib/jekyll_plugin_logger.rb +2 -2
- data/spec/status_persistence.txt +7 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d9885c654b34790e6f52a8e3a92a008cc51a40fc2a6ea404037f0e3e929291d
|
4
|
+
data.tar.gz: 72130fb28aea51696ae2ddf2be772e330dfd7d59ba2f0cc14d2545093c572c25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 509269138c34ff09d9a226657f07443155b89349681929218390b8041dc49b9497c2278c6f5ab6074fdfd7b1541a5caf7b5076eaa45524a734c64d0b6639c98e
|
7
|
+
data.tar.gz: 798aeac0b80dd88b3cbbe6e174511afd1b5c4df87325adf54af7683051a87776f83310097424e0dd7dc0c6030fdc7648311df982bd68d05c9d95b72f9c423054
|
data/CHANGELOG.md
CHANGED
data/lib/jekyll_plugin_logger.rb
CHANGED
@@ -152,7 +152,7 @@ class PluginMetaLogger
|
|
152
152
|
include Singleton
|
153
153
|
attr_reader :config, :logger
|
154
154
|
|
155
|
-
def initialize
|
155
|
+
def initialize
|
156
156
|
super
|
157
157
|
@config = nil
|
158
158
|
@logger = new_logger(self)
|
@@ -193,5 +193,5 @@ Jekyll::Hooks.register(:site, :after_reset, :priority => :high) do |site|
|
|
193
193
|
instance = PluginMetaLogger.instance
|
194
194
|
logger = instance.new_logger(PluginMetaLogger, site.config)
|
195
195
|
logger.info { "Loaded #{JekyllPluginLoggerName::PLUGIN_NAME} v#{JekyllPluginLoggerVersion::VERSION} plugin." }
|
196
|
-
logger.debug { "Logger for #{instance.progname} created at level #{instance.level_as_sym}" }
|
196
|
+
logger.debug { "Logger for #{instance.logger.progname} created at level #{instance.level_as_sym}" }
|
197
197
|
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
---------------------------------------- | ------ | --------------- |
|
3
|
+
./spec/jekyll_plugin_logger_spec.rb[1:1] | failed | 0.02037 seconds |
|
4
|
+
./spec/jekyll_plugin_logger_spec.rb[1:2] | passed | 0.03764 seconds |
|
5
|
+
./spec/jekyll_plugin_logger_spec.rb[1:3] | passed | 0.00041 seconds |
|
6
|
+
./spec/jekyll_plugin_logger_spec.rb[1:4] | passed | 0.00026 seconds |
|
7
|
+
./spec/jekyll_plugin_logger_spec.rb[1:5] | passed | 0.0002 seconds |
|
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.1.
|
4
|
+
version: 2.1.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-04-
|
11
|
+
date: 2022-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/jekyll_plugin_logger/version.rb
|
72
72
|
- spec/jekyll_plugin_logger_spec.rb
|
73
73
|
- spec/spec_helper.rb
|
74
|
+
- spec/status_persistence.txt
|
74
75
|
homepage: https://www.mslinn.com/blog/2020/12/28/custom-logging-in-jekyll-plugins.html
|
75
76
|
licenses:
|
76
77
|
- MIT
|
@@ -105,3 +106,4 @@ summary: Generates Jekyll logger with colored output.
|
|
105
106
|
test_files:
|
106
107
|
- spec/jekyll_plugin_logger_spec.rb
|
107
108
|
- spec/spec_helper.rb
|
109
|
+
- spec/status_persistence.txt
|