jekyll-pagefind 0.3.1-arm64-darwin → 0.3.3-arm64-darwin

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a503116a61beb9e1cd1b1783a52810e234c1fcae16d7c335fc449e94af48e2c
4
- data.tar.gz: 00b2eb5fbb3dddcac75d36e4f7c4278526308f8a7318c1dfc8d27560187cc969
3
+ metadata.gz: 33814598d0fbb7f99ccb3935e85dc5c8b355ab916a730ee3770bb7cdb741d129
4
+ data.tar.gz: 82c3c6e3d41673d5ad8312cee35c01c534352a8e6250dfe087b62597f1935317
5
5
  SHA512:
6
- metadata.gz: 7929678d18be246e9335e02593713a627d56dbf21ffe8ee5fda32b9fe624301d5248add0d147762048e7e40898692834251e098045d8e932d2f5c80fe4b5ab27
7
- data.tar.gz: 294be5b7ef9856798e81fabcd34731595b67ec4474a60e2b2d10d0565455c291f2a34fc1491f6bd586ccf74cbfd21b82c375f3f6ebee6857dd95f595c9cb17bb
6
+ metadata.gz: a6cd8ff25c164f34a2223bf6d5710a7037dd5689c905a2cab4cd1595b22ebb0dd356033e33b1300db2f4a60fc1598d469bede8966524a63512c2bb8d1acd6f24
7
+ data.tar.gz: 7ac235f98698efd67c16a24e5b77f3315370cf8a10ba49e0648fcdc3bc2af4734de58aa4e7a0198a57461c4b5c7383a243bc8c1b5d5d8f970f8c331a0c5a2cb2
data/README.md CHANGED
@@ -39,6 +39,7 @@ gem install jekyll-pagefind
39
39
  ```
40
40
 
41
41
  RubyGems will install the platform-specific package that matches the host OS and CPU.
42
+ If no matching platform gem is selected, the generic `ruby` gem raises a clear error telling the user to add the deploy platform to `Gemfile.lock`.
42
43
 
43
44
  ## Use
44
45
 
@@ -212,10 +213,21 @@ Publish the built platform gems for a version:
212
213
  make publish
213
214
  ```
214
215
 
216
+ GitHub Actions trusted publishing is supported.
217
+
218
+ To enable it on RubyGems.org for this repo:
219
+
220
+ 1. Open the `jekyll-pagefind` gem page.
221
+ 2. Go to `Trusted publishers`.
222
+ 3. Create a publisher with repository `phothinmg/jekyll-pagefind`, workflow filename `release.yml`, and environment `release`.
223
+
224
+ After that, pushing a tag like `v0.3.2` will run `.github/workflows/release.yml` and publish all built gems without a stored API token or manual OTP entry.
225
+
215
226
  `bin/build-platform-gems` currently maps these asset folders to RubyGems platforms:
216
227
 
217
- - `assets/linux-x64` -> `x86_64-linux`
218
- - `assets/linux-arm64` -> `aarch64-linux`
228
+ - `ruby` -> `ruby` (generic fallback gem with no bundled binary)
229
+ - `assets/linux-x64` -> `x86_64-linux-gnu`, `x86_64-linux-musl`
230
+ - `assets/linux-arm64` -> `aarch64-linux-gnu`, `aarch64-linux-musl`
219
231
  - `assets/macos-x64` -> `x86_64-darwin`
220
232
  - `assets/macos-arm64` -> `arm64-darwin`
221
233
  - `assets/windows-x64` -> `x64-mingw32`, `x64-mingw-ucrt`
@@ -14,11 +14,12 @@ default_pagefind_asset_directory = case host_os
14
14
  when /mswin|msys|mingw|cygwin|bccwin/i
15
15
  host_cpu =~ /arm64|aarch64/i ? "assets/windows-arm64" : "assets/windows-x64"
16
16
  else
17
- raise "Unable to determine a default Pagefind asset directory for host environment: #{host_os} (#{host_cpu})"
17
+ raise "Unable to determine a default Pagefind asset directory for host environment: #{host_os} (#{host_cpu})" # rubocop:disable Layout/LineLength
18
18
  end
19
19
 
20
20
  pagefind_asset_directory = ENV.fetch("PAGEFIND_ASSET_DIR", default_pagefind_asset_directory)
21
21
  pagefind_gem_platform = ENV.fetch("PAGEFIND_GEM_PLATFORM", Gem::Platform::RUBY)
22
+ pagefind_include_assets = ENV.fetch("PAGEFIND_INCLUDE_ASSETS", "true") == "true"
22
23
 
23
24
  Gem::Specification.new do |spec|
24
25
  spec.name = "jekyll-pagefind"
@@ -32,12 +33,15 @@ Gem::Specification.new do |spec|
32
33
  spec.homepage = "https://rubygems.org/gems/jekyll-pagefind"
33
34
  spec.license = "MIT"
34
35
  spec.required_ruby_version = ">= 3.1.0"
36
+ spec.metadata["rubygems_mfa_required"] = "true"
35
37
  spec.metadata["homepage_uri"] = spec.homepage
36
38
  spec.metadata["source_code_uri"] = "https://github.com/phothinmg/jekykll-pagefind"
37
39
  spec.metadata["changelog_uri"] = "https://github.com/phothinmg/jekykll-pagefind/blob/main/CHANGELOG.md"
38
40
 
39
41
  spec.files = Dir.chdir(__dir__) do
40
- Dir["README.md", "LICENSE.txt", "lib/**/*", "#{pagefind_asset_directory}/**/*", "jekyll-pagefind.gemspec"]
42
+ files = ["README.md", "LICENSE.txt", "lib/**/*", "jekyll-pagefind.gemspec"]
43
+ files << "#{pagefind_asset_directory}/**/*" if pagefind_include_assets
44
+ Dir[*files]
41
45
  end
42
46
  spec.require_paths = ["lib"]
43
47
  spec.add_dependency "jekyll", "~> 4.4"
@@ -47,7 +47,7 @@ module Jekyll
47
47
  end
48
48
 
49
49
  # valid the cli flag
50
- def self.valid_args(arg)
50
+ def self.valid_arg?(arg)
51
51
  %w[output_subdir exclude_selectors keep_index_url quiet].include?(arg)
52
52
  end
53
53
 
@@ -57,7 +57,7 @@ module Jekyll
57
57
  args = []
58
58
 
59
59
  plugin_config.each do |key, value|
60
- next unless valid_args(key)
60
+ next unless valid_arg?(key)
61
61
 
62
62
  # Transform snake_case keys to kebab-case (e.g., keep_index_url -> keep-index-url)
63
63
  flag_name = key.to_s.gsub("_", "-")
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Pagefind
5
- VERSION = "0.3.1"
5
+ VERSION = "0.3.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-pagefind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - phothinmg
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-06-08 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: jekyll
@@ -54,9 +55,11 @@ homepage: https://rubygems.org/gems/jekyll-pagefind
54
55
  licenses:
55
56
  - MIT
56
57
  metadata:
58
+ rubygems_mfa_required: 'true'
57
59
  homepage_uri: https://rubygems.org/gems/jekyll-pagefind
58
60
  source_code_uri: https://github.com/phothinmg/jekykll-pagefind
59
61
  changelog_uri: https://github.com/phothinmg/jekykll-pagefind/blob/main/CHANGELOG.md
62
+ post_install_message:
60
63
  rdoc_options: []
61
64
  require_paths:
62
65
  - lib
@@ -71,7 +74,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
74
  - !ruby/object:Gem::Version
72
75
  version: '0'
73
76
  requirements: []
74
- rubygems_version: 4.0.11
77
+ rubygems_version: 3.4.19
78
+ signing_key:
75
79
  specification_version: 4
76
80
  summary: Pagefind plugin for Jekyll
77
81
  test_files: []