nanoc 4.12.17 → 4.12.19
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 +4 -4
- data/NEWS.md +25 -0
- data/lib/nanoc/data_sources/filesystem/parser.rb +1 -2
- data/lib/nanoc/data_sources/filesystem.rb +1 -3
- data/lib/nanoc/helpers/blogging.rb +2 -2
- data/lib/nanoc/helpers/capturing.rb +2 -2
- data/lib/nanoc/rule_dsl/compilation_rule_context.rb +1 -1
- data/lib/nanoc/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18feaf5a34e4f6b1568cc865aa2aeeb21fc5f38047e963f415677a39cbfa92a0
|
4
|
+
data.tar.gz: 79196f822d81016f5572f41a0688c3095ccdb1aa207a4d3ead4fe1116ad6630a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bd6fe3d69e578df252e4d72d5640de0c4ea3c6a769830e05438a3f25b695110e43c356dba33d86416ff77611be21e570b09c5931e2eb2c83c8ef1b554d769f6
|
7
|
+
data.tar.gz: 3544b32362e9b3aaec9dffcb045f3c25812eca46dbb211e596e257ac37249aebc78a3fe06231bb21a98443c02c49fc4e190aa0d2c8910072f37e5daebb31f5bc
|
data/NEWS.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
# Nanoc news
|
2
2
|
|
3
|
+
## 4.12.19 (2023-12-08)
|
4
|
+
|
5
|
+
Fixes:
|
6
|
+
|
7
|
+
- Restored support for YAML aliases (#1677) [zor-el]
|
8
|
+
- Fixed inadvertent reference to `Nanoc::` namespace from within `nanoc-cli` gem (#1673)
|
9
|
+
|
10
|
+
Enhancements:
|
11
|
+
|
12
|
+
- Made the default Rules file use `#passthrough` (#1668) [Hendrik Jäger]
|
13
|
+
- Added support for slim 5.x (#1675)
|
14
|
+
- Added support for psych 5.x (#1674)
|
15
|
+
- Added `source_code_uri` metadata to gemspecs (#1669) [Junichi Sato]
|
16
|
+
|
17
|
+
## 4.12.18 (2023-10-15)
|
18
|
+
|
19
|
+
Fixes:
|
20
|
+
|
21
|
+
- Fixed example kramdown rules generated by `create-site` to have the correct extension for non-index .md files (#1665) [Hendrik Jäger]
|
22
|
+
- Fixed issue which could cause not all pages to be compiled after an interrupt (⌃C) (#1641, #1667)
|
23
|
+
|
24
|
+
Enhancements:
|
25
|
+
|
26
|
+
- Made `create-site` generate a `Gemfile` that includes `nanoc` (#1666)
|
27
|
+
|
3
28
|
## 4.12.17 (2023-09-30)
|
4
29
|
|
5
30
|
Fixes:
|
@@ -4,7 +4,6 @@
|
|
4
4
|
class Nanoc::DataSources::Filesystem
|
5
5
|
class Parser
|
6
6
|
SEPARATOR = /(-{5}|-{3})/.source
|
7
|
-
PERMITTED_YAML_CLASSES = Nanoc::Core::ConfigLoader::PERMITTED_YAML_CLASSES
|
8
7
|
|
9
8
|
class ParseResult
|
10
9
|
attr_reader :content
|
@@ -61,7 +60,7 @@ class Nanoc::DataSources::Filesystem
|
|
61
60
|
# @return [Hash]
|
62
61
|
def parse_metadata(data, filename)
|
63
62
|
begin
|
64
|
-
meta =
|
63
|
+
meta = Nanoc::Core::YamlLoader.load(data) || {}
|
65
64
|
rescue => e
|
66
65
|
raise Errors::UnparseableMetadata.new(filename, e)
|
67
66
|
end
|
@@ -48,8 +48,6 @@ module Nanoc::DataSources
|
|
48
48
|
#
|
49
49
|
# @api private
|
50
50
|
class Filesystem < Nanoc::DataSource
|
51
|
-
PERMITTED_YAML_CLASSES = Nanoc::Core::ConfigLoader::PERMITTED_YAML_CLASSES
|
52
|
-
|
53
51
|
class AmbiguousMetadataAssociationError < ::Nanoc::Core::Error
|
54
52
|
def initialize(content_filenames, meta_filename)
|
55
53
|
super("There are multiple content files (#{content_filenames.sort.join(', ')}) that could match the file containing metadata (#{meta_filename}).")
|
@@ -154,7 +152,7 @@ module Nanoc::DataSources
|
|
154
152
|
is_binary = content_filename && !@site_config[:text_extensions].include?(File.extname(content_filename)[1..])
|
155
153
|
|
156
154
|
if is_binary && klass == Nanoc::Core::Item
|
157
|
-
meta = (meta_filename &&
|
155
|
+
meta = (meta_filename && Nanoc::Core::YamlLoader.load_file(meta_filename)) || {}
|
158
156
|
|
159
157
|
ProtoDocument.new(is_binary: true, filename: content_filename, attributes: meta)
|
160
158
|
elsif is_binary && klass == Nanoc::Core::Layout
|
@@ -120,8 +120,8 @@ module Nanoc::Helpers
|
|
120
120
|
xml.updated(updated.__nanoc_to_iso8601_time)
|
121
121
|
|
122
122
|
# Add links
|
123
|
-
xml.link(rel: 'alternate', href:
|
124
|
-
xml.link(rel: 'self', href: feed_url,
|
123
|
+
xml.link(rel: 'alternate', href: alt_link || root_url, type: 'text/html')
|
124
|
+
xml.link(rel: 'self', href: feed_url, type: 'application/atom+xml')
|
125
125
|
|
126
126
|
# Add author information
|
127
127
|
xml.author do
|
@@ -22,7 +22,7 @@ module Nanoc::Helpers
|
|
22
22
|
# Get existing contents and prep for store
|
23
23
|
compiled_content_store = @item._context.compiled_content_store
|
24
24
|
rep = @item.reps[:default]._unwrap
|
25
|
-
capture_name = "__capture_#{@name}"
|
25
|
+
capture_name = :"__capture_#{@name}"
|
26
26
|
old_content_string =
|
27
27
|
case existing_behavior
|
28
28
|
when :overwrite
|
@@ -74,7 +74,7 @@ module Nanoc::Helpers
|
|
74
74
|
end
|
75
75
|
|
76
76
|
compiled_content_store = @config._context.compiled_content_store
|
77
|
-
content = compiled_content_store.get(rep, "__capture_#{@name}"
|
77
|
+
content = compiled_content_store.get(rep, :"__capture_#{@name}")
|
78
78
|
content&.string
|
79
79
|
end
|
80
80
|
end
|
data/lib/nanoc/version.rb
CHANGED
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.
|
4
|
+
version: 4.12.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-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.
|
67
|
+
version: 4.12.19
|
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.
|
74
|
+
version: 4.12.19
|
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.
|
81
|
+
version: 4.12.19
|
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.
|
88
|
+
version: 4.12.19
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: nanoc-deploying
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -235,6 +235,7 @@ licenses:
|
|
235
235
|
- MIT
|
236
236
|
metadata:
|
237
237
|
rubygems_mfa_required: 'true'
|
238
|
+
source_code_uri: https://github.com/nanoc/nanoc/tree/4.12.19/nanoc
|
238
239
|
post_install_message:
|
239
240
|
rdoc_options: []
|
240
241
|
require_paths:
|
@@ -250,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
251
|
- !ruby/object:Gem::Version
|
251
252
|
version: '0'
|
252
253
|
requirements: []
|
253
|
-
rubygems_version: 3.4.
|
254
|
+
rubygems_version: 3.4.22
|
254
255
|
signing_key:
|
255
256
|
specification_version: 4
|
256
257
|
summary: A static-site generator with a focus on flexibility.
|