abqari 1.3.0 → 1.3.2
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/CHANGELOG.md +52 -2
- data/README.md +15 -8
- data/lib/abqari/audit/csp.rb +17 -22
- data/lib/abqari/helpers.rb +4 -3
- data/lib/abqari/html.rb +29 -0
- data/lib/abqari/image_pipeline.rb +3 -1
- data/lib/abqari/importers/base.rb +13 -8
- data/lib/abqari/minifier.rb +2 -1
- data/lib/abqari/renderer.rb +1 -1
- data/lib/abqari/templates/site_skeleton/.github/workflows/deploy-cloudflare.yml +4 -4
- data/lib/abqari/templates/site_skeleton/.github/workflows/deploy-github-pages.yml +8 -6
- data/lib/abqari/templates/site_skeleton/.github/workflows/deploy-render.yml +2 -2
- data/lib/abqari/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b16f9c47efa3ac30792cfb3e7a27c6649250763cc62eb89a520005e435977390
|
|
4
|
+
data.tar.gz: e8912f12801b05054989914aa015a2592ff83e2d0cd7f1194e3949a93d89a171
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 841112a252c318af617db6cb6247a9fd0df0e0988389239eaa46a78de3341a2aff2e9c1700e7b6a32f1f4897bafabfcb3f210febcec272fbc5233b20c8a2b254
|
|
7
|
+
data.tar.gz: 5a64f7f56825344fbb93a24b826398d92dd27e6c978633e43dbbf241ca940c37d438b0105df989b3bb98cd30dbf721fcafcd5625413b430790af542c56d03acc
|
data/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,55 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## [1.3.2] — 2026-11-20
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Sites generated by `abqari new` now receive the tested, SHA-pinned checkout,
|
|
15
|
+
Ruby setup, artifact upload, Cloudflare and GitHub Pages actions used by the
|
|
16
|
+
project itself. Generated Pages deployments also preserve hidden site files.
|
|
17
|
+
|
|
18
|
+
- Static-site CI can opt into the runner's installed Chrome with
|
|
19
|
+
`browser-channel: chrome`, avoiding a second browser download while retaining
|
|
20
|
+
every local and production security check. Existing consumers keep Chromium.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Keep the opt-in GitHub Pages deployment compatible with enforced Actions
|
|
25
|
+
SHA pinning by upgrading the artifact wrapper and its pinned internal upload.
|
|
26
|
+
Preserve generated hidden files, including `.well-known`, in the Pages artifact.
|
|
27
|
+
|
|
28
|
+
## [1.3.1] — 2026-10-20
|
|
29
|
+
|
|
30
|
+
Upgrade to correct CSP-audit parsing, HTML text extraction and importer
|
|
31
|
+
escaping. This patch also removes the regex patterns flagged by CodeQL.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- HTML5 parsing uses `nokolexbor`, one runtime dependency with no
|
|
36
|
+
transitive runtime gems. The clean-container CI matrix validates its
|
|
37
|
+
precompiled packages on Ruby 3.3, 3.4 and 4.0.
|
|
38
|
+
- Workshop rendering tests keep an upcoming fixture in memory instead
|
|
39
|
+
of expiring when the example workshop dates pass.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- **CSP audits could miss browser-valid inline scripts and handlers.**
|
|
44
|
+
Regex parsing skipped whitespace in closing tags and unquoted
|
|
45
|
+
attributes, and could change script contents while removing comments.
|
|
46
|
+
HTML5 parsing now preserves browser hash input, decodes attributes
|
|
47
|
+
once and ignores inert template contents. Audit tests use the same
|
|
48
|
+
tag rules, including uppercase and comment edge cases.
|
|
49
|
+
- **Excerpts and reading statistics now read HTML as HTML.** Quoted
|
|
50
|
+
delimiters, entities, comments and non-visible script/style/template
|
|
51
|
+
content are handled by a parser rather than a stripping regex.
|
|
52
|
+
Extracted text still requires normal template escaping.
|
|
53
|
+
- **Imported titles retain quotes, backslashes and Unicode YAML line
|
|
54
|
+
breaks without changing the frontmatter structure.** Escaping is a
|
|
55
|
+
single literal-replacement pass, with round-trip regression coverage.
|
|
56
|
+
- **HTML rewrites and CSS minification avoid overlapping whitespace
|
|
57
|
+
matches.** Image and bundle URL rewrites retain their output while
|
|
58
|
+
regex matching no longer needs to reconsider delimiter whitespace.
|
|
11
59
|
|
|
12
60
|
## [1.3.0] — 2026-10-11
|
|
13
61
|
|
|
@@ -1141,7 +1189,9 @@ run a real working author / publisher site.
|
|
|
1141
1189
|
commonmarker ≥ 2.4 ships precompiled 4.0 binaries, which is what
|
|
1142
1190
|
the `~> 2.4` floor bought.
|
|
1143
1191
|
|
|
1144
|
-
[Unreleased]: https://github.com/grantrayner/abqari/compare/v1.3.
|
|
1192
|
+
[Unreleased]: https://github.com/grantrayner/abqari/compare/v1.3.2...HEAD
|
|
1193
|
+
[1.3.2]: https://github.com/grantrayner/abqari/compare/v1.3.1...v1.3.2
|
|
1194
|
+
[1.3.1]: https://github.com/grantrayner/abqari/compare/v1.3.0...v1.3.1
|
|
1145
1195
|
[1.3.0]: https://github.com/grantrayner/abqari/compare/v1.2.0...v1.3.0
|
|
1146
1196
|
[1.2.0]: https://github.com/grantrayner/abqari/compare/v1.1.2...v1.2.0
|
|
1147
1197
|
[1.1.2]: https://github.com/grantrayner/abqari/compare/v1.1.1...v1.1.2
|
data/README.md
CHANGED
|
@@ -11,7 +11,7 @@ optional overrides), while the engine — layouts, themes, helpers, asset
|
|
|
11
11
|
pipeline — lives in the dependency. Forking the engine is also
|
|
12
12
|
supported for users who want to own all the code.
|
|
13
13
|
|
|
14
|
-
> **Status:** v1.3.
|
|
14
|
+
> **Status:** v1.3.1 — see
|
|
15
15
|
> [CHANGELOG.md](https://github.com/grantrayner/abqari/blob/main/CHANGELOG.md).
|
|
16
16
|
> Distributed via RubyGems (`gem install abqari`) and as a Bundler
|
|
17
17
|
> path/git source. The API follows [semver](https://semver.org/) from
|
|
@@ -38,10 +38,12 @@ Reporting a vulnerability:
|
|
|
38
38
|
|
|
39
39
|
## Design principles
|
|
40
40
|
|
|
41
|
-
1. **Minimal dependencies.**
|
|
42
|
-
|
|
43
|
-
the
|
|
44
|
-
|
|
41
|
+
1. **Minimal dependencies.** Eight runtime gems cover Markdown,
|
|
42
|
+
auto-escaped templates, images, HTML5 parsing, syntax highlighting,
|
|
43
|
+
the dev server, and CSV/Base64 handling. `nokolexbor` reads HTML for
|
|
44
|
+
CSP audits and text extraction, with no transitive runtime dependencies
|
|
45
|
+
and precompiled packages for the supported desktop/Linux platforms.
|
|
46
|
+
Content importing needs one more (`reverse_markdown`),
|
|
45
47
|
deliberately left out of the runtime set so a normal install doesn't
|
|
46
48
|
pull in nokogiri for a feature it never uses.
|
|
47
49
|
2. **Ruby-first.** ERB templates, real Ruby in views.
|
|
@@ -174,7 +176,7 @@ Test that it worked:
|
|
|
174
176
|
abqari version
|
|
175
177
|
```
|
|
176
178
|
|
|
177
|
-
You should see a version number, e.g. `abqari 1.3.
|
|
179
|
+
You should see a version number, e.g. `abqari 1.3.1`. If you get
|
|
178
180
|
`command not found`, see [Troubleshooting](#troubleshooting) below.
|
|
179
181
|
|
|
180
182
|
### Step 3 — Create your first site
|
|
@@ -470,7 +472,7 @@ end
|
|
|
470
472
|
Or — pin to a git ref while tracking pre-release work:
|
|
471
473
|
|
|
472
474
|
```ruby
|
|
473
|
-
gem 'abqari', git: 'https://github.com/grantrayner/abqari.git', tag: 'v1.3.
|
|
475
|
+
gem 'abqari', git: 'https://github.com/grantrayner/abqari.git', tag: 'v1.3.1'
|
|
474
476
|
```
|
|
475
477
|
|
|
476
478
|
Install the libvips C library once (hard dep for the image pipeline):
|
|
@@ -947,6 +949,11 @@ and on `Abqari::RenderContext`, available everywhere ERB runs.
|
|
|
947
949
|
| `reading_time(text, wpm:)` | `reading_time(post.body)` → `"4 min read"` |
|
|
948
950
|
| `slugify(text)` | `slugify('Hello World!')` → `"hello-world"` |
|
|
949
951
|
|
|
952
|
+
`excerpt`, `word_count` and `reading_time` parse HTML and decode entities;
|
|
953
|
+
comments and script/style/template contents do not count as visible text.
|
|
954
|
+
An excerpt is plain text, not sanitized HTML. Render it with `<%= excerpt(...) %>`
|
|
955
|
+
so template auto-escaping remains in force.
|
|
956
|
+
|
|
950
957
|
**Time**
|
|
951
958
|
|
|
952
959
|
| Helper | Example |
|
|
@@ -2566,7 +2573,7 @@ changes to your site. To track a fork or an unreleased branch
|
|
|
2566
2573
|
instead, swap the line for a git source:
|
|
2567
2574
|
|
|
2568
2575
|
```ruby
|
|
2569
|
-
gem 'abqari', git: 'https://github.com/grantrayner/abqari.git', tag: 'v1.3.
|
|
2576
|
+
gem 'abqari', git: 'https://github.com/grantrayner/abqari.git', tag: 'v1.3.1'
|
|
2570
2577
|
```
|
|
2571
2578
|
|
|
2572
2579
|
The cadence: read [CHANGELOG.md](https://github.com/grantrayner/abqari/blob/main/CHANGELOG.md) before each upgrade,
|
data/lib/abqari/audit/csp.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'base64'
|
|
4
|
-
require 'cgi'
|
|
5
4
|
require 'digest'
|
|
5
|
+
require_relative '../html'
|
|
6
6
|
|
|
7
7
|
module Abqari
|
|
8
8
|
class Audit
|
|
@@ -114,35 +114,30 @@ module Abqari
|
|
|
114
114
|
# Each piece of inline code as `[kind, content, script_type]`, where
|
|
115
115
|
# content is exactly what the browser hashes.
|
|
116
116
|
def inline_code(html)
|
|
117
|
-
html = html.gsub(/<!--.*?-->/m, '')
|
|
118
117
|
code = []
|
|
118
|
+
Html.document(html).css('*').each do |node|
|
|
119
|
+
next if node.ancestors.any? { |parent| parent.name == 'template' }
|
|
120
|
+
|
|
121
|
+
if node.name == 'script' && !node.key?('src')
|
|
122
|
+
type = node['type']&.strip&.downcase
|
|
123
|
+
if type.nil? || type.empty? || EXECUTABLE_TYPES.include?(type)
|
|
124
|
+
code << [:script, node.content, type]
|
|
125
|
+
end
|
|
126
|
+
elsif node.name == 'style'
|
|
127
|
+
code << [:style, node.content]
|
|
128
|
+
end
|
|
119
129
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
next unless type.nil? || type.empty? || EXECUTABLE_TYPES.include?(type)
|
|
130
|
+
# The parser already decodes attributes once, as the browser
|
|
131
|
+
# does. Decoding again changes the bytes used for CSP hashes.
|
|
132
|
+
node.attributes.each do |name, attribute|
|
|
133
|
+
next unless name == 'style' || name.match?(/\Aon[a-z]+\z/)
|
|
125
134
|
|
|
126
|
-
|
|
127
|
-
end
|
|
128
|
-
html.scan(%r{<style\b[^>]*>(.*?)</style>}mi).each { |(body)| code << [:style, body] }
|
|
129
|
-
|
|
130
|
-
# Attributes, with script and style bodies removed first so a
|
|
131
|
-
# string inside a script that looks like markup isn't counted.
|
|
132
|
-
tags_only = html.gsub(%r{<(script|style)\b[^>]*>.*?</\1>}mi, '')
|
|
133
|
-
tags_only.scan(/<[a-zA-Z][^>]*>/).each do |tag|
|
|
134
|
-
tag.scan(/\s(on[a-z]+|style)\s*=\s*(?:"([^"]*)"|'([^']*)')/i).each do |name, dq, sq|
|
|
135
|
-
code << [name.casecmp?('style') ? :style_attr : :script_attr, CGI.unescapeHTML(dq || sq)]
|
|
135
|
+
code << [name == 'style' ? :style_attr : :script_attr, attribute.value]
|
|
136
136
|
end
|
|
137
137
|
end
|
|
138
138
|
code
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
-
def attribute(attrs, name)
|
|
142
|
-
match = attrs.match(/\b#{name}\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i)
|
|
143
|
-
match && (match[1] || match[2] || match[3])
|
|
144
|
-
end
|
|
145
|
-
|
|
146
141
|
# Mirrors the CSP spec's inline checks: a hash or nonce in the list
|
|
147
142
|
# switches `'unsafe-inline'` off; attribute hashes count only with
|
|
148
143
|
# `'unsafe-hashes'`. `'inline-speculation-rules'` is honoured only
|
data/lib/abqari/helpers.rb
CHANGED
|
@@ -5,6 +5,7 @@ require 'date'
|
|
|
5
5
|
require 'json'
|
|
6
6
|
require 'time'
|
|
7
7
|
require 'uri'
|
|
8
|
+
require_relative 'html'
|
|
8
9
|
|
|
9
10
|
module Abqari
|
|
10
11
|
module Helpers
|
|
@@ -161,7 +162,7 @@ end
|
|
|
161
162
|
# `data-heading-content`, so each heading silently added several
|
|
162
163
|
# phantom "words" to the structured data search engines read.
|
|
163
164
|
def word_count(text)
|
|
164
|
-
text
|
|
165
|
+
Html.text(text, separator: ' ').scan(/\S+/).length
|
|
165
166
|
end
|
|
166
167
|
|
|
167
168
|
# Format a date or time. Default format is "1 January 2026"
|
|
@@ -224,7 +225,7 @@ end
|
|
|
224
225
|
end
|
|
225
226
|
|
|
226
227
|
def excerpt(text, words: 50, omission: '…')
|
|
227
|
-
stripped = text
|
|
228
|
+
stripped = Html.text(text).strip
|
|
228
229
|
arr = stripped.split(/\s+/)
|
|
229
230
|
return stripped if arr.length <= words
|
|
230
231
|
|
|
@@ -232,7 +233,7 @@ end
|
|
|
232
233
|
end
|
|
233
234
|
|
|
234
235
|
def reading_time(text, wpm: 200)
|
|
235
|
-
stripped = text
|
|
236
|
+
stripped = Html.text(text)
|
|
236
237
|
word_count = stripped.split(/\s+/).length
|
|
237
238
|
# Clamp wpm to ≥1 (a `wpm: 0` would divide to Infinity → FloatDomainError)
|
|
238
239
|
# and the result to ≥1 minute (empty text shouldn't read "0 min read").
|
data/lib/abqari/html.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'nokolexbor'
|
|
4
|
+
|
|
5
|
+
module Abqari
|
|
6
|
+
# HTML must be read with the same tag, comment and attribute rules as
|
|
7
|
+
# the browser. Regex stripping can change script hash input or hide an
|
|
8
|
+
# executable tag. Lexbor also keeps this work out of Ruby's regex engine.
|
|
9
|
+
module Html
|
|
10
|
+
module_function
|
|
11
|
+
|
|
12
|
+
def document(html)
|
|
13
|
+
Nokolexbor::HTML(html.to_s)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def fragment(html)
|
|
17
|
+
Nokolexbor::DocumentFragment.parse(html.to_s)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# Plain text, never trusted HTML. Callers must still escape it when
|
|
21
|
+
# rendering (the normal <%= interpolation does this automatically).
|
|
22
|
+
# Non-visible code and comments must not inflate reading estimates.
|
|
23
|
+
def text(html, separator: '')
|
|
24
|
+
tree = fragment(html)
|
|
25
|
+
tree.css('script, style, template').each(&:remove)
|
|
26
|
+
tree.xpath('.//text()').map(&:content).join(separator)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -173,7 +173,9 @@ module Abqari
|
|
|
173
173
|
def post_process_html(html, page: nil)
|
|
174
174
|
return html unless enabled?
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
# Whitespace belongs to the delimiter, not to the attributes.
|
|
177
|
+
# Possessive quantifiers prevent overlapping backtracking paths.
|
|
178
|
+
html.gsub(/<img\s++([^>]*+)>/m) do |match|
|
|
177
179
|
attrs = ::Regexp.last_match(1)
|
|
178
180
|
src = attrs[/src="([^"]+)"/, 1]
|
|
179
181
|
next match unless src
|
|
@@ -285,7 +285,7 @@ module Abqari
|
|
|
285
285
|
# been written straight through, turning one mapping entry into
|
|
286
286
|
# two. Importer input is a third-party export, so this is
|
|
287
287
|
# attacker-shaped. Escape them into their YAML forms instead.
|
|
288
|
-
if str.match?(/[\
|
|
288
|
+
if str.match?(/[\u0000-\u001F\u007F-\u009F\u2028\u2029]/)
|
|
289
289
|
return %("#{escape_yaml_double_quoted(str)}")
|
|
290
290
|
end
|
|
291
291
|
|
|
@@ -301,13 +301,18 @@ module Abqari
|
|
|
301
301
|
# quotes, then the control characters that have named escapes,
|
|
302
302
|
# then anything else remaining as \uXXXX.
|
|
303
303
|
def escape_yaml_double_quoted(str)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
304
|
+
# A block returns literal replacement bytes: String#gsub's
|
|
305
|
+
# replacement-string backslash rules cannot reinterpret them.
|
|
306
|
+
str.gsub(/[\\"\u0000-\u001F\u007F-\u009F\u2028\u2029]/) do |char|
|
|
307
|
+
case char
|
|
308
|
+
when '\\' then '\\\\'
|
|
309
|
+
when '"' then '\\"'
|
|
310
|
+
when "\n" then '\\n'
|
|
311
|
+
when "\r" then '\\r'
|
|
312
|
+
when "\t" then '\\t'
|
|
313
|
+
else format('\\u%04X', char.ord)
|
|
314
|
+
end
|
|
315
|
+
end
|
|
311
316
|
end
|
|
312
317
|
|
|
313
318
|
def block_array(key, items)
|
data/lib/abqari/minifier.rb
CHANGED
data/lib/abqari/renderer.rb
CHANGED
|
@@ -810,7 +810,7 @@ module Abqari
|
|
|
810
810
|
def rewrite_bundle_urls(html, page)
|
|
811
811
|
base = page.url
|
|
812
812
|
|
|
813
|
-
html.gsub(/(<(?:img|a)\s
|
|
813
|
+
html.gsub(/(<(?:img|a)\s++[^>]*?(?:src|href)=")([^"]+)/) do
|
|
814
814
|
prefix = ::Regexp.last_match(1)
|
|
815
815
|
url = ::Regexp.last_match(2)
|
|
816
816
|
|
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
41
41
|
runs-on: ubuntu-latest
|
|
42
42
|
|
|
43
43
|
steps:
|
|
44
|
-
- uses: actions/checkout@
|
|
44
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
45
45
|
|
|
46
46
|
- name: Install libvips with AVIF support
|
|
47
47
|
# libvips powers the image pipeline. On Ubuntu 24.04 (the
|
|
@@ -57,7 +57,7 @@ jobs:
|
|
|
57
57
|
libheif-plugin-dav1d
|
|
58
58
|
|
|
59
59
|
- name: Set up Ruby
|
|
60
|
-
uses: ruby/setup-ruby@
|
|
60
|
+
uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
|
|
61
61
|
with:
|
|
62
62
|
bundler-cache: true # caches Gemfile.lock-pinned gems between runs
|
|
63
63
|
|
|
@@ -88,7 +88,7 @@ jobs:
|
|
|
88
88
|
continue-on-error: true
|
|
89
89
|
|
|
90
90
|
- name: Upload audit report
|
|
91
|
-
uses: actions/upload-artifact@
|
|
91
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
92
92
|
if: always()
|
|
93
93
|
with:
|
|
94
94
|
name: audit-report
|
|
@@ -109,7 +109,7 @@ jobs:
|
|
|
109
109
|
fi
|
|
110
110
|
|
|
111
111
|
- name: Deploy to Cloudflare Pages
|
|
112
|
-
uses: cloudflare/wrangler-action@
|
|
112
|
+
uses: cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4.1.3
|
|
113
113
|
with:
|
|
114
114
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
115
115
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
if: vars.ENABLE_GITHUB_PAGES == 'true'
|
|
45
45
|
runs-on: ubuntu-latest
|
|
46
46
|
steps:
|
|
47
|
-
- uses: actions/checkout@
|
|
47
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
48
48
|
|
|
49
49
|
- name: Install libvips with AVIF support
|
|
50
50
|
# libheif1 + plugin packages are required for AVIF encoding —
|
|
@@ -57,12 +57,12 @@ jobs:
|
|
|
57
57
|
libheif-plugin-dav1d
|
|
58
58
|
|
|
59
59
|
- name: Set up Ruby
|
|
60
|
-
uses: ruby/setup-ruby@
|
|
60
|
+
uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
|
|
61
61
|
with:
|
|
62
62
|
bundler-cache: true
|
|
63
63
|
|
|
64
64
|
- name: Configure Pages
|
|
65
|
-
uses: actions/configure-pages@
|
|
65
|
+
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
|
|
66
66
|
|
|
67
67
|
- name: Install Pagefind (optional — for static search)
|
|
68
68
|
run: |
|
|
@@ -89,7 +89,7 @@ jobs:
|
|
|
89
89
|
continue-on-error: true
|
|
90
90
|
|
|
91
91
|
- name: Upload audit report
|
|
92
|
-
uses: actions/upload-artifact@
|
|
92
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
93
93
|
if: always()
|
|
94
94
|
with:
|
|
95
95
|
name: audit-report
|
|
@@ -98,9 +98,11 @@ jobs:
|
|
|
98
98
|
if-no-files-found: ignore
|
|
99
99
|
|
|
100
100
|
- name: Upload Pages artifact
|
|
101
|
-
uses: actions/upload-pages-artifact@
|
|
101
|
+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
|
102
102
|
with:
|
|
103
103
|
path: _site
|
|
104
|
+
# Keep generated dotfiles such as .well-known in the published site.
|
|
105
|
+
include-hidden-files: true
|
|
104
106
|
|
|
105
107
|
deploy:
|
|
106
108
|
if: vars.ENABLE_GITHUB_PAGES == 'true'
|
|
@@ -112,4 +114,4 @@ jobs:
|
|
|
112
114
|
steps:
|
|
113
115
|
- name: Deploy to GitHub Pages
|
|
114
116
|
id: deployment
|
|
115
|
-
uses: actions/deploy-pages@
|
|
117
|
+
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
|
|
@@ -49,7 +49,7 @@ jobs:
|
|
|
49
49
|
runs-on: ubuntu-latest
|
|
50
50
|
|
|
51
51
|
steps:
|
|
52
|
-
- uses: actions/checkout@
|
|
52
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
53
53
|
|
|
54
54
|
- name: Install libvips with AVIF support
|
|
55
55
|
# libheif1 + plugin packages are required for AVIF encoding —
|
|
@@ -62,7 +62,7 @@ jobs:
|
|
|
62
62
|
libheif-plugin-dav1d
|
|
63
63
|
|
|
64
64
|
- name: Set up Ruby
|
|
65
|
-
uses: ruby/setup-ruby@
|
|
65
|
+
uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
|
|
66
66
|
with:
|
|
67
67
|
bundler-cache: true
|
|
68
68
|
|
data/lib/abqari/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: abqari
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Grant Rayner
|
|
@@ -65,6 +65,20 @@ dependencies:
|
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '1.13'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: nokolexbor
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - "~>"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: 0.8.0
|
|
75
|
+
type: :runtime
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: 0.8.0
|
|
68
82
|
- !ruby/object:Gem::Dependency
|
|
69
83
|
name: rouge
|
|
70
84
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -239,6 +253,7 @@ files:
|
|
|
239
253
|
- lib/abqari/headers_file.rb
|
|
240
254
|
- lib/abqari/helpers.rb
|
|
241
255
|
- lib/abqari/hooks.rb
|
|
256
|
+
- lib/abqari/html.rb
|
|
242
257
|
- lib/abqari/http_safe.rb
|
|
243
258
|
- lib/abqari/image_pipeline.rb
|
|
244
259
|
- lib/abqari/importers.rb
|
|
@@ -1661,7 +1676,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1661
1676
|
- !ruby/object:Gem::Version
|
|
1662
1677
|
version: '0'
|
|
1663
1678
|
requirements: []
|
|
1664
|
-
rubygems_version: 4.0.
|
|
1679
|
+
rubygems_version: 4.0.20
|
|
1665
1680
|
specification_version: 4
|
|
1666
1681
|
summary: Ruby static site generator — Folio-aware, prose-led.
|
|
1667
1682
|
test_files: []
|