nanoc 4.13.3 → 4.13.4
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 +15 -0
- data/lib/nanoc/data_sources/filesystem.rb +1 -1
- data/lib/nanoc/filters/kramdown.rb +1 -1
- data/lib/nanoc/helpers/blogging.rb +4 -1
- data/lib/nanoc/orig_cli/commands/show-rules.rb +5 -1
- data/lib/nanoc/rule_dsl/action_provider.rb +1 -1
- data/lib/nanoc/version.rb +1 -1
- data/lib/nanoc.rb +1 -1
- metadata +8 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c04f87ced316793f8d019dffa504fa80d1f3525e029c37d5ccf62487e1d60b
|
4
|
+
data.tar.gz: ca77bd7e157d281663ca79827d1319701d09ffacc21f603bdc91433843da946d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a94418f13990697750417da2b0fa112eed635fb2ffefe561fee68cf516c7936bf58058e740e599b9f1eb5026734dd935ef1d950c5d9476cafb48958b65ab77f2
|
7
|
+
data.tar.gz: '08b719533b3f5436052a1ad34174ebc41f6feccf5c49594df9af0d848074fd5ca53f7da8efcd84baee100b7cbe4d3ebdfb98b711232e1123199f2e1aececbd60'
|
data/NEWS.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# Nanoc news
|
2
2
|
|
3
|
+
## 4.13.4 (2025-04-20)
|
4
|
+
|
5
|
+
Enhancements:
|
6
|
+
|
7
|
+
- Added `id_proc:` parameter to the blogging helper’s `#atom_feed` (#1723)
|
8
|
+
- Made `clonefile` a dependency, which will make Nanoc use less disk space (#1727)
|
9
|
+
- Made checks be run in parallel (#1735) [Jan M. Faber]
|
10
|
+
- Made Nanoc expand `~` in `lib_dirs` and `command_dirs` (#1725) [zor-el]
|
11
|
+
- Allowed configuring the user agent for the external link checker (#1740) [Phil Lee]
|
12
|
+
- Made minor speed improvements (#1742, #1741)
|
13
|
+
|
14
|
+
Fixes:
|
15
|
+
|
16
|
+
- Resolved a `logger` deprecation warning
|
17
|
+
|
3
18
|
## 4.13.3 (2024-11-23)
|
4
19
|
|
5
20
|
Fixes:
|
@@ -324,7 +324,7 @@ module Nanoc::DataSources
|
|
324
324
|
all[basename][0] =
|
325
325
|
meta_filenames[0] ? 'yaml' : nil
|
326
326
|
all[basename][1] =
|
327
|
-
content_filenames.
|
327
|
+
content_filenames.empty? ? [nil] : content_filenames.map { |fn| ext_of(fn)[1..] || '' }
|
328
328
|
end
|
329
329
|
|
330
330
|
all
|
@@ -37,6 +37,7 @@ module Nanoc::Helpers
|
|
37
37
|
attr_accessor :content_proc
|
38
38
|
attr_accessor :excerpt_proc
|
39
39
|
attr_accessor :title_proc
|
40
|
+
attr_accessor :id_proc
|
40
41
|
attr_accessor :title
|
41
42
|
attr_accessor :author_name
|
42
43
|
attr_accessor :author_uri
|
@@ -147,7 +148,7 @@ module Nanoc::Helpers
|
|
147
148
|
|
148
149
|
xml.entry do
|
149
150
|
# Add primary attributes
|
150
|
-
xml.id
|
151
|
+
xml.id id_proc.call(article)
|
151
152
|
xml.title title_proc.call(article), type: 'html'
|
152
153
|
|
153
154
|
# Add dates
|
@@ -179,6 +180,7 @@ module Nanoc::Helpers
|
|
179
180
|
# @option params [Proc] :content_proc
|
180
181
|
# @option params [Proc] :excerpt_proc
|
181
182
|
# @option params [Proc] :title_proc
|
183
|
+
# @option params [Proc] :id_proc
|
182
184
|
# @option params [String] :alt_link
|
183
185
|
# @option params [String] :id
|
184
186
|
# @option params [String] :title
|
@@ -203,6 +205,7 @@ module Nanoc::Helpers
|
|
203
205
|
builder.content_proc = params[:content_proc] || ->(a) { a.compiled_content(snapshot: :pre) }
|
204
206
|
builder.excerpt_proc = params[:excerpt_proc] || ->(a) { a[:excerpt] }
|
205
207
|
builder.title_proc = params[:title_proc] || ->(a) { a[:title] }
|
208
|
+
builder.id_proc = params[:id_proc] || ->(a) { atom_tag_for(a) }
|
206
209
|
builder.title = params[:title] || @item[:title] || @config[:title]
|
207
210
|
builder.author_name = params[:author_name] || @item[:author_name] || @config[:author_name]
|
208
211
|
builder.author_uri = params[:author_uri] || @item[:author_uri] || @config[:author_uri]
|
@@ -56,7 +56,11 @@ module Nanoc::OrigCLI::Commands
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def fmt_heading(str)
|
59
|
-
|
59
|
+
colorizer.c(str, :bold, :yellow)
|
60
|
+
end
|
61
|
+
|
62
|
+
def colorizer
|
63
|
+
@_colorizer ||= Nanoc::CLI::ANSIStringColorizer.new($stdout)
|
60
64
|
end
|
61
65
|
end
|
62
66
|
end
|
data/lib/nanoc/version.rb
CHANGED
data/lib/nanoc.rb
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
# Load external dependencies
|
4
4
|
require 'addressable'
|
5
|
-
require 'colored'
|
6
5
|
require 'ddplugin'
|
7
6
|
require 'json'
|
8
7
|
require 'parallel'
|
@@ -43,6 +42,7 @@ Nanoc::DataSource = Nanoc::Core::DataSource
|
|
43
42
|
Nanoc::Filter = Nanoc::Core::Filter
|
44
43
|
Nanoc::Error = Nanoc::Core::Error
|
45
44
|
Nanoc::Check = Nanoc::Checking::Check
|
45
|
+
Nanoc::Pattern = Nanoc::Core::Pattern
|
46
46
|
|
47
47
|
# Load Nanoc
|
48
48
|
require 'nanoc/version'
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.13.
|
4
|
+
version: 4.13.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: addressable
|
@@ -24,20 +23,6 @@ dependencies:
|
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
25
|
version: '2.5'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: colored
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.2'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.2'
|
41
26
|
- !ruby/object:Gem::Dependency
|
42
27
|
name: nanoc-checking
|
43
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,28 +49,28 @@ dependencies:
|
|
64
49
|
requirements:
|
65
50
|
- - '='
|
66
51
|
- !ruby/object:Gem::Version
|
67
|
-
version: 4.13.
|
52
|
+
version: 4.13.4
|
68
53
|
type: :runtime
|
69
54
|
prerelease: false
|
70
55
|
version_requirements: !ruby/object:Gem::Requirement
|
71
56
|
requirements:
|
72
57
|
- - '='
|
73
58
|
- !ruby/object:Gem::Version
|
74
|
-
version: 4.13.
|
59
|
+
version: 4.13.4
|
75
60
|
- !ruby/object:Gem::Dependency
|
76
61
|
name: nanoc-core
|
77
62
|
requirement: !ruby/object:Gem::Requirement
|
78
63
|
requirements:
|
79
64
|
- - '='
|
80
65
|
- !ruby/object:Gem::Version
|
81
|
-
version: 4.13.
|
66
|
+
version: 4.13.4
|
82
67
|
type: :runtime
|
83
68
|
prerelease: false
|
84
69
|
version_requirements: !ruby/object:Gem::Requirement
|
85
70
|
requirements:
|
86
71
|
- - '='
|
87
72
|
- !ruby/object:Gem::Version
|
88
|
-
version: 4.13.
|
73
|
+
version: 4.13.4
|
89
74
|
- !ruby/object:Gem::Dependency
|
90
75
|
name: nanoc-deploying
|
91
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -233,8 +218,7 @@ licenses:
|
|
233
218
|
- MIT
|
234
219
|
metadata:
|
235
220
|
rubygems_mfa_required: 'true'
|
236
|
-
source_code_uri: https://github.com/nanoc/nanoc/tree/4.13.
|
237
|
-
post_install_message:
|
221
|
+
source_code_uri: https://github.com/nanoc/nanoc/tree/4.13.4/nanoc
|
238
222
|
rdoc_options: []
|
239
223
|
require_paths:
|
240
224
|
- lib
|
@@ -249,8 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
233
|
- !ruby/object:Gem::Version
|
250
234
|
version: '0'
|
251
235
|
requirements: []
|
252
|
-
rubygems_version: 3.
|
253
|
-
signing_key:
|
236
|
+
rubygems_version: 3.6.7
|
254
237
|
specification_version: 4
|
255
238
|
summary: A static-site generator with a focus on flexibility.
|
256
239
|
test_files: []
|