nanoc 4.12.7 → 4.12.9

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: fdb0492ec48bece377285f3e02e3cec63ec48af4542c4aa55006e3bb1b06a6e9
4
- data.tar.gz: 8daf5631e1711f91e6ed2c2f571f456d12140fb4285def555f0d18e4b311ad5b
3
+ metadata.gz: 74d2fac49f679adfd219ef24e14e388d999c1ed54fe69d793e9d71d0f6d8eada
4
+ data.tar.gz: b914abe2477cdc71d4f19def21433f59115d6abb2013e8faa47c4f75d3a20588
5
5
  SHA512:
6
- metadata.gz: ebb45b98247466d11385db0285d1e24d210c6aeb037bbbbe10b655dfdfcfdd05f80206c7282b5cfb4bcb69bbeb16ce73355423b43111905edd49a1c062b7c5bf
7
- data.tar.gz: ff4219588e17be3de27c20e0fdaa76036587e94b6b204480baffc06786d5ad1a79ae0280297ec01e9af50fa580d2541d7178eb1ae2c9b5bc16a02065c4545f61
6
+ metadata.gz: 4c4197c7a226d2c2ac64f231fa677a79303bf149a3ac08e50338d3d55655d3f8dbe335ed28b9725a1c93f896be7394182bb1b5ecdedd60295689254c10306aac
7
+ data.tar.gz: 9720836931e49417eddc7cf3b205b2db740ad3ea79fb797510b6599c19159ad92b265dd332c72ba31e01ae459ff5c2aa2fac1e5806a3f80f72ab7ce150722787
data/NEWS.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.12.9 (2022-10-08)
4
+
5
+ Fixes:
6
+
7
+ - Fixed compatibility with Haml 6.0 (#1595, #1593)
8
+
9
+ ## 4.12.8 (2022-10-03)
10
+
11
+ Fixes:
12
+
13
+ - Fixed incorrect documentation regarding the IP addresses that the `live` and `view` commands listen on (#1584, #1585)
14
+
15
+ Enhancements:
16
+
17
+ - Wrapped URLs printed to stdout in angular brackets (like `<http://…>`) so terminals can detect them properly (#1589) [Daniel Aleksandersen]
18
+ - Made various performance improvements (#1596, #1597, #1598)
19
+
3
20
  ## 4.12.7 (2022-06-06)
4
21
 
5
22
  Fixes:
@@ -22,7 +22,20 @@ module Nanoc::Filters
22
22
 
23
23
  # Get result
24
24
  proc = assigns[:content] ? -> { assigns[:content] } : nil
25
- ::Haml::Engine.new(content, options).render(context, assigns, &proc)
25
+
26
+ # Render
27
+ haml_major_version = ::Haml::VERSION[0]
28
+ case haml_major_version
29
+ when '5'
30
+ ::Haml::Engine.new(content, options).render(context, assigns, &proc)
31
+ when '6'
32
+ template = Tilt::HamlTemplate.new(options) { content }
33
+ template.render(context, assigns, &proc)
34
+ else
35
+ raise Nanoc::Core::TrivialError.new(
36
+ "Cannot run Haml filter: unsupported Haml major version: #{haml_major_version}",
37
+ )
38
+ end
26
39
  end
27
40
  end
28
41
  end
@@ -29,6 +29,7 @@ module Nanoc::Helpers
29
29
  .gsub('<', '&lt;')
30
30
  .gsub('>', '&gt;')
31
31
  .gsub('"', '&quot;')
32
+ .gsub("'", '&#39;')
32
33
  else
33
34
  raise 'The #html_escape or #h function needs either a ' \
34
35
  'string or a block to HTML-escape, but neither a string nor a block was given'
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.7'
5
+ VERSION = '4.12.9'
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.7
4
+ version: 4.12.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-06 00:00:00.000000000 Z
11
+ date: 2022-10-08 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.7
67
+ version: 4.12.9
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.7
74
+ version: 4.12.9
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.7
81
+ version: 4.12.9
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.7
88
+ version: 4.12.9
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: nanoc-deploying
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  - !ruby/object:Gem::Version
251
251
  version: '0'
252
252
  requirements: []
253
- rubygems_version: 3.3.15
253
+ rubygems_version: 3.3.22
254
254
  signing_key:
255
255
  specification_version: 4
256
256
  summary: A static-site generator with a focus on flexibility.