jekyll_plugin_logger 2.0.0 → 2.0.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: a7a503b502ebd28c7bfe8ed9237ae721560135f1620054da34ece8275cfb5118
4
- data.tar.gz: 5285da27eebe3005f00562260e38117a8d685a8f10b8ab5bf444ee804d17cf46
3
+ metadata.gz: 9f82bc258b242f26c4358799b244b20d7b0763a86f5618af7f01b20fd1002d59
4
+ data.tar.gz: 3ffb12d7e491701a2eaefde02f29cda28bf9ddf5c039a5146a175aa9163f0381
5
5
  SHA512:
6
- metadata.gz: ebc0a877d7bf80fe01e1609123ea93900ce9a23e96c877e3d304128543946c1fe31613c3af9b50324fa5fdf030170a06f5f2b79ba02d3fd079f7797931639088
7
- data.tar.gz: 516fb3f7250fce0bacf7f5a2e782111e358ab0e979cd98950a7105faa0516d657423e88499dfd9534c05c9c70dec00431475a8c1f72be1b166b2164cc0018c56
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllPluginLogger
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
@@ -103,15 +103,15 @@ class PluginLogger
103
103
  private
104
104
 
105
105
  def derive_progname(klass)
106
- full_name = case klass.class
107
- when String
108
- klass
109
- when Symbol
110
- klass.to_s
111
- else
112
- klass.class.name
113
- end
114
- full_name.split("::").last
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, :after_init, :priority => :high) do |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.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-03-25 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll