nanoc 4.12.20 → 4.12.21

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: a4f4f1156179e5c1fc63d9d2a7eb8539d41f3f2141fa1109027935cd7191f6e6
4
- data.tar.gz: e80a883c6c173dd2c767539ecbf060b30f0a41e23dfaaa028cb00037c80819a7
3
+ metadata.gz: 28408245b8e292560660f368cba6239710507eeb50cf7875882f678bd63716dc
4
+ data.tar.gz: c8dccabf7933ff565b75bfb1021393bb1c4ba2432ce28c9fdb45b77d5bb8fe81
5
5
  SHA512:
6
- metadata.gz: 54f4bc19b599bb1223fedce0c505896c6554596ee8a110f1f171b9cddc6faa1ca5a72f675e8a404483c250e897da0ca85347280c96f48fe3c13cb1e093bd3ddb
7
- data.tar.gz: 4605c0f855c3cdb3b1d352089087eb6a1ddbfc333fe3b11e77b7ddb3d6a8313f92cf8c20c93d22ea23887af8afa9b71d743c1bfe8852dd6f394a17b933e80fc9
6
+ metadata.gz: 4e5b6933046445063948e9675791aae5f13a84678a0c5a3e22de9a167611e8b2d1cc3c08559d28b460348114b48026027408a10d6320284811bc4c9a72f37730
7
+ data.tar.gz: e5c0dc7d42a8354b9bcad95390ee870bf5d05c6adac69c75f8e153e5e75dfefd518b0f93ad200fb68007f03aa996ce172565f751962f490616d3116112bbe9c8
data/NEWS.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.12.21 (2024-04-27)
4
+
5
+ Fixes:
6
+
7
+ - Fixed a rare “private method printf” error (#1694)
8
+
9
+ Enhancements:
10
+
11
+ - Sped up checksummer and made it more reliable and correct (#1693)
12
+ - Removed Nokogiri warning message on JRuby (#1700)
13
+
3
14
  ## 4.12.20 (2024-03-15)
4
15
 
5
16
  Enhancements:
data/lib/nanoc/extra.rb CHANGED
@@ -15,6 +15,5 @@ module Nanoc::Extra
15
15
  Pruner = Nanoc::Core::Pruner
16
16
  end
17
17
 
18
- require_relative 'extra/jruby_nokogiri_warner'
19
18
  require_relative 'extra/srcset_parser'
20
19
  require_relative 'extra/core_ext'
@@ -12,8 +12,6 @@ module Nanoc::Filters
12
12
  ExtractedLanguage = Struct.new(:language, :from_class)
13
13
 
14
14
  def run(content, params = {})
15
- Nanoc::Extra::JRubyNokogiriWarner.check_and_warn
16
-
17
15
  @colorizers = colorizers_from_params(params)
18
16
 
19
17
  syntax = params.fetch(:syntax, :html)
@@ -45,8 +45,6 @@ module Nanoc::Filters
45
45
  #
46
46
  # @return [String] The filtered content
47
47
  def run(content, params = {})
48
- Nanoc::Extra::JRubyNokogiriWarner.check_and_warn
49
-
50
48
  # Set assigns so helper function can be used
51
49
  @item_rep = assigns[:item_rep] if @item_rep.nil?
52
50
 
@@ -36,8 +36,6 @@ module Nanoc::Filters
36
36
  #
37
37
  # @return [String] The transformed content
38
38
  def run(_content, params = {})
39
- Nanoc::Extra::JRubyNokogiriWarner.check_and_warn
40
-
41
39
  if assigns[:layout].nil?
42
40
  raise 'The XSL filter can only be run as a layout'
43
41
  end
data/lib/nanoc/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nanoc
4
4
  # The current Nanoc version.
5
- VERSION = '4.12.20'
5
+ VERSION = '4.12.21'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.20
4
+ version: 4.12.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-15 00:00:00.000000000 Z
11
+ date: 2024-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -64,28 +64,28 @@ dependencies:
64
64
  requirements:
65
65
  - - '='
66
66
  - !ruby/object:Gem::Version
67
- version: 4.12.20
67
+ version: 4.12.21
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - '='
73
73
  - !ruby/object:Gem::Version
74
- version: 4.12.20
74
+ version: 4.12.21
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: nanoc-core
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - '='
80
80
  - !ruby/object:Gem::Version
81
- version: 4.12.20
81
+ version: 4.12.21
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - '='
87
87
  - !ruby/object:Gem::Version
88
- version: 4.12.20
88
+ version: 4.12.21
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: nanoc-deploying
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +165,6 @@ files:
165
165
  - lib/nanoc/extra.rb
166
166
  - lib/nanoc/extra/core_ext.rb
167
167
  - lib/nanoc/extra/core_ext/time.rb
168
- - lib/nanoc/extra/jruby_nokogiri_warner.rb
169
168
  - lib/nanoc/extra/srcset_parser.rb
170
169
  - lib/nanoc/filters.rb
171
170
  - lib/nanoc/filters/asciidoc.rb
@@ -234,7 +233,7 @@ licenses:
234
233
  - MIT
235
234
  metadata:
236
235
  rubygems_mfa_required: 'true'
237
- source_code_uri: https://github.com/nanoc/nanoc/tree/4.12.20/nanoc
236
+ source_code_uri: https://github.com/nanoc/nanoc/tree/4.12.21/nanoc
238
237
  post_install_message:
239
238
  rdoc_options: []
240
239
  require_paths:
@@ -250,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
249
  - !ruby/object:Gem::Version
251
250
  version: '0'
252
251
  requirements: []
253
- rubygems_version: 3.5.3
252
+ rubygems_version: 3.5.9
254
253
  signing_key:
255
254
  specification_version: 4
256
255
  summary: A static-site generator with a focus on flexibility.
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Nanoc::Extra
4
- # @api private
5
- class JRubyNokogiriWarner
6
- include Singleton
7
-
8
- TEXT = <<~EOS
9
- --------------------------------------------------------------------------------
10
- Note:
11
-
12
- The behavior of Pure Java Nokogiri differs from the Nokogiri used on the
13
- standard Ruby interpreter (MRI) due to differences in underlying libraries.
14
-
15
- These sometimes problematic behavioral differences can cause Nanoc filters not
16
- to function properly, if at all. If you need reliable (X)HTML and XML handling
17
- functionality, consider not using Nokogiri on JRuby for the time being.
18
-
19
- These issues are being worked on both from the Nokogiri and the Nanoc side. Keep
20
- your Nokogiri and Nanoc versions up to date!
21
-
22
- For details, see https://github.com/nanoc/nanoc/pull/422.
23
- --------------------------------------------------------------------------------
24
- EOS
25
-
26
- def self.check_and_warn
27
- instance.check_and_warn
28
- end
29
-
30
- def initialize
31
- @warned = false
32
- end
33
-
34
- def check_and_warn
35
- return unless defined?(RUBY_ENGINE)
36
- return if RUBY_ENGINE != 'jruby'
37
- return if @warned
38
-
39
- $stderr.puts TEXT
40
- @warned = true
41
- end
42
- end
43
- end