pagefind 1.5.2-aarch64-linux → 1.5.2.1-aarch64-linux
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 +4 -0
- data/README.md +10 -4
- data/exe/aarch64-linux/pagefind_extended +4 -0
- data/lib/pagefind/version.rb +1 -1
- data/lib/pagefind.rb +2 -2
- data/rakelib/package.rake +7 -7
- metadata +3 -3
- data/exe/aarch64-linux/pagefind +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6de4637fb399205948605e503f22ed61bca8c6077e2b753cbd8d4f7c3b9c518
|
|
4
|
+
data.tar.gz: e1c803abf2c1f547f3b2300ad6fdfc387de22910cda9cad66a5927e9dcec550f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f5deeb7c6a1e3baff872ff0aaa37d06f7d67bd157c88e9546c421b9eafb10f1f107ee9f390f9a398946bf0a824c2b9d62918a5f6942f0ba95f8afe3ff3cdb6b
|
|
7
|
+
data.tar.gz: 7ec4a710694d0823a71d712a486e18dcd574a099cdc88edb6c4390189104ba05cc0ef00d67e756967319f20f0c3d50b3ccbf05f692d7bc87cf6be8ca5a6718b7
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
# Pagefind
|
|
2
2
|
|
|
3
|
+
[](https://github.com/bangseongbeom/pagefind-ruby/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/standardrb/standard)
|
|
5
|
+
[](https://badge.fury.io/rb/pagefind)
|
|
6
|
+
|
|
3
7
|
A self-contained `pagefind` executable, wrapped up in a ruby gem. That's it. Nothing else.
|
|
4
8
|
|
|
9
|
+
This gem is based on [tailwindcss-ruby](https://github.com/flavorjones/tailwindcss-ruby). Much of the packaging approach, code, and documentation was adapted from it.
|
|
10
|
+
|
|
5
11
|
|
|
6
12
|
## Installation
|
|
7
13
|
|
|
@@ -31,7 +37,7 @@ gem install pagefind
|
|
|
31
37
|
|
|
32
38
|
### Using a local installation of `pagefind`
|
|
33
39
|
|
|
34
|
-
If you are not able to use the vendored precompiled binaries (for example, if you're on an unsupported platform), you can use a [local installation](https://pagefind.app/docs/installation/) of the `pagefind` binary by setting an environment variable named `PAGEFIND_INSTALL_DIR` to the directory path containing the binary.
|
|
40
|
+
If you are not able to use the vendored precompiled binaries (for example, if you're on an unsupported platform), you can use a [local installation](https://pagefind.app/docs/installation/) of the `pagefind_extended` or `pagefind` binary by setting an environment variable named `PAGEFIND_INSTALL_DIR` to the directory path containing the binary.
|
|
35
41
|
|
|
36
42
|
For example, if you've [built Pagefind from source](https://pagefind.app/docs/installation/#building-from-source) with `cargo install pagefind` so that the binary is found at `$HOME/.cargo/bin/pagefind`, then you should set your environment variable like so:
|
|
37
43
|
|
|
@@ -62,7 +68,7 @@ The gem makes available `Pagefind.executable` which is the path to the vendored
|
|
|
62
68
|
``` ruby
|
|
63
69
|
require "pagefind"
|
|
64
70
|
Pagefind.executable
|
|
65
|
-
# => "/path/to/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/pagefind-1.5.2-x86_64-linux/exe/x86_64-linux/
|
|
71
|
+
# => "/path/to/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/pagefind-1.5.2-x86_64-linux/exe/x86_64-linux/pagefind_extended"
|
|
66
72
|
```
|
|
67
73
|
|
|
68
74
|
|
|
@@ -77,10 +83,10 @@ $ bundle exec which pagefind
|
|
|
77
83
|
|
|
78
84
|
# run the actual executable through the shim
|
|
79
85
|
$ bundle exec pagefind --help
|
|
80
|
-
["/path/to/installs/installs/ruby/3.4.2/lib/ruby/gems/3.4.0/gems/pagefind-1.5.2-x86_64-linux/exe/x86_64-linux/
|
|
86
|
+
["/path/to/installs/installs/ruby/3.4.2/lib/ruby/gems/3.4.0/gems/pagefind-1.5.2-x86_64-linux/exe/x86_64-linux/pagefind_extended", "--help"]
|
|
81
87
|
Implement search on any static website.
|
|
82
88
|
|
|
83
|
-
Usage:
|
|
89
|
+
Usage: pagefind_extended [OPTIONS]
|
|
84
90
|
|
|
85
91
|
Options:
|
|
86
92
|
-s, --site <SITE>
|
data/lib/pagefind/version.rb
CHANGED
data/lib/pagefind.rb
CHANGED
|
@@ -30,7 +30,7 @@ module Pagefind
|
|
|
30
30
|
if File.directory?(pagefind_install_dir)
|
|
31
31
|
warn "NOTE: using PAGEFIND_INSTALL_DIR to find pagefind executable: #{pagefind_install_dir}"
|
|
32
32
|
exe_path = pagefind_install_dir
|
|
33
|
-
exe_file = (Gem.win_platform? ? %w[pagefind.exe pagefind.cmd
|
|
33
|
+
exe_file = (Gem.win_platform? ? %w[pagefind_extended.exe pagefind.exe pagefind.cmd] : %w[pagefind_extended pagefind])
|
|
34
34
|
.map { |file_name| File.expand_path(File.join(pagefind_install_dir, file_name)) }
|
|
35
35
|
.find { |file_name| File.exist?(file_name) }
|
|
36
36
|
else
|
|
@@ -47,7 +47,7 @@ module Pagefind
|
|
|
47
47
|
MESSAGE
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
exe_file = Dir.glob(File.expand_path(File.join(exe_path, "*", "
|
|
50
|
+
exe_file = Dir.glob(File.expand_path(File.join(exe_path, "*", "pagefind_extended"))).find do |f|
|
|
51
51
|
Gem::Platform.match_gem?(Gem::Platform.new(File.basename(File.dirname(f))), GEM_NAME)
|
|
52
52
|
end
|
|
53
53
|
end
|
data/rakelib/package.rake
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
# TL;DR: run "rake package"
|
|
5
5
|
#
|
|
6
6
|
# The native platform gems (defined by Pagefind::Upstream::NATIVE_PLATFORMS) will each contain
|
|
7
|
-
# the
|
|
7
|
+
# the pagefind_extended binary executable in addition to what the vanilla ruby gem contains:
|
|
8
8
|
#
|
|
9
9
|
# exe/
|
|
10
10
|
# ├── pagefind # generic ruby script to find and run the binary
|
|
11
11
|
# └── <Gem::Platform architecture name>/
|
|
12
|
-
# └──
|
|
12
|
+
# └── pagefind_extended # the pagefind_extended binary executable
|
|
13
13
|
#
|
|
14
14
|
# The ruby script `exe/pagefind` is installed into the user's path, and it simply locates the
|
|
15
15
|
# binary and executes it. Note that this script is required because rubygems requires that
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# exe/
|
|
22
22
|
# ├── pagefind
|
|
23
23
|
# └── x86_64-linux/
|
|
24
|
-
# └──
|
|
24
|
+
# └── pagefind_extended
|
|
25
25
|
#
|
|
26
26
|
# So the full set of gem files created will be:
|
|
27
27
|
#
|
|
@@ -69,7 +69,7 @@ require_relative "../lib/pagefind/upstream"
|
|
|
69
69
|
PAGEFIND_ARCHIVE_DIR = "tmp"
|
|
70
70
|
|
|
71
71
|
def pagefind_archive_filename(target)
|
|
72
|
-
"
|
|
72
|
+
"pagefind_extended-#{Pagefind::Upstream::VERSION}-#{target}.tar.gz"
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
def pagefind_download_url(filename)
|
|
@@ -106,8 +106,8 @@ exepaths = []
|
|
|
106
106
|
Pagefind::Upstream::NATIVE_PLATFORMS.each do |platform, target|
|
|
107
107
|
PAGEFIND_RUBY_GEMSPEC.dup.tap do |gemspec|
|
|
108
108
|
exedir = File.join(gemspec.bindir, platform) # "exe/x86_64-linux"
|
|
109
|
-
exepath = File.join(exedir, "
|
|
110
|
-
archivepath = File.join(PAGEFIND_ARCHIVE_DIR, pagefind_archive_filename(target)) # "tmp/
|
|
109
|
+
exepath = File.join(exedir, "pagefind_extended") # "exe/x86_64-linux/pagefind_extended"
|
|
110
|
+
archivepath = File.join(PAGEFIND_ARCHIVE_DIR, pagefind_archive_filename(target)) # "tmp/pagefind_extended-v1.5.2-x86_64-unknown-linux-musl.tar.gz"
|
|
111
111
|
exepaths << exepath
|
|
112
112
|
|
|
113
113
|
# modify a copy of the gemspec to include the native executable
|
|
@@ -125,7 +125,7 @@ Pagefind::Upstream::NATIVE_PLATFORMS.each do |platform, target|
|
|
|
125
125
|
|
|
126
126
|
Zlib::GzipReader.open(archivepath) do |gz|
|
|
127
127
|
Gem::Package::TarReader.new(gz) do |tar|
|
|
128
|
-
entry = tar.find { |entry| %w[
|
|
128
|
+
entry = tar.find { |entry| %w[pagefind_extended pagefind_extended.exe].include?(entry.full_name) }
|
|
129
129
|
abort "Cannot find the pagefind executable in #{archivepath}" unless entry
|
|
130
130
|
|
|
131
131
|
File.binwrite(exepath, entry.read)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pagefind
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.2
|
|
4
|
+
version: 1.5.2.1
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- 방성범 (Bang Seongbeom)
|
|
@@ -25,7 +25,7 @@ files:
|
|
|
25
25
|
- LICENSE.txt
|
|
26
26
|
- README.md
|
|
27
27
|
- Rakefile
|
|
28
|
-
- exe/aarch64-linux/
|
|
28
|
+
- exe/aarch64-linux/pagefind_extended
|
|
29
29
|
- exe/pagefind
|
|
30
30
|
- lib/pagefind.rb
|
|
31
31
|
- lib/pagefind/upstream.rb
|
|
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
56
|
requirements: []
|
|
57
|
-
rubygems_version: 4.0.
|
|
57
|
+
rubygems_version: 4.0.20
|
|
58
58
|
specification_version: 4
|
|
59
59
|
summary: A self-contained `pagefind` executable.
|
|
60
60
|
test_files: []
|
data/exe/aarch64-linux/pagefind
DELETED
|
Binary file
|