sghtmltopdf 0.6.1-aarch64-linux → 0.7.0-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c096aac7e911b6b8973eca4ffeedd3062bcffd9f07dddada073da979bc2d5747
4
- data.tar.gz: 27be2c0d59a710383ab875bb4ce084353791ca15d9c5575087945ba5929d946c
3
+ metadata.gz: 730b06f22e6b2b7b0773348a13c791a71bdf6468515da358795e4bff71c61287
4
+ data.tar.gz: 92bec19be6dbf2263af05ed6ce4e8236f7ad158dc81fcfd812a89e1038658345
5
5
  SHA512:
6
- metadata.gz: 9cbe4f4d889f9964a31ff1e5794432d91bc3ab672a2106a9e4e6900255561f5acec42f69da259c5de9184f58eec4d1aeb726c818878b1729ccf1ea1346966395
7
- data.tar.gz: ec4caf9af68bb791cc07206c579a6d62ec99970ab98a1eddf78d2605a2bb6ba8c9d2ae4ee94789e4d6f87b89e18ec24604fdd748982311eed2882493bcc75359
6
+ metadata.gz: fff5fae2302c5a15b5f770ca43c2bf1e3a056aaab8d950875f17b8e46d6bb1f2edcc24962a8ef26626f922205dc0699943a945648805a1644697427bababf669
7
+ data.tar.gz: da916fe5f2c678c0f1d8ba921bb4bcb1386e4e807b13e3972f27ed7a776bd3ae6959a68a5782aafbe851408be67a3441d12a4121d3e034db70d8d805ed1caf5a
data/README.md CHANGED
@@ -13,13 +13,22 @@ The engine runs inside your process through a native extension (magnus + rb-sys)
13
13
  gem "sghtmltopdf"
14
14
  ```
15
15
 
16
- Precompiled native gems are published for `x86_64-linux`, `aarch64-linux`, `x86_64-linux-musl`, `aarch64-linux-musl`, `arm64-darwin`, and `x86_64-darwin`.
16
+ Precompiled native gems are published for `x86_64-linux`, `aarch64-linux`, `x86_64-linux-musl`, `aarch64-linux-musl`, `arm64-darwin`, `x86_64-darwin`, and Windows `x64-mingw-ucrt`.
17
17
  There is no build step on those platforms.
18
18
 
19
- Elsewhere (Windows) the gem cannot run in-process — the source gem does not carry the Rust core and will refuse to build with an explanatory message.
19
+ Elsewhere the source gem does not carry the Rust core and will refuse to build with an explanatory message.
20
20
  Point those environments at a separate `sghtmltopdf server` process instead; see [Delegating to a server](#delegating-to-a-server).
21
21
 
22
- Requires Ruby >= 3.2.
22
+ Requires Ruby >= 3.2. The precompiled gems bundle extensions for Ruby 3.2, 3.3,
23
+ 3.4, and 4.0. On Windows, use 64-bit RubyInstaller UCRT (`x64-mingw-ucrt`).
24
+
25
+ For contributors building from a repository checkout on Windows, use RubyInstaller
26
+ with its Devkit, the Rust GNU toolchain (`stable-x86_64-pc-windows-gnu`), and LLVM
27
+ with `libclang.dll`. Set `RUSTUP_TOOLCHAIN=stable-x86_64-pc-windows-gnu`, set
28
+ `LIBCLANG_PATH` to the LLVM `bin` directory, add it to `PATH`, and set
29
+ `BINDGEN_EXTRA_CLANG_ARGS=--target=x86_64-w64-windows-gnu`.
30
+ Run the build through `ridk exec bundle exec rake compile`. The precompiled gem
31
+ does not need these tools.
23
32
 
24
33
  ## Usage
25
34
 
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "date"
4
+ # `Time#iso8601` comes from here before Ruby 3.4 (Rails loads it, a plain Ruby script may not).
5
+ require "time"
3
6
  require "uri"
4
7
 
5
8
  module Sghtmltopdf
@@ -78,6 +81,11 @@ module Sghtmltopdf
78
81
  when true then [[name, nil]]
79
82
  # An array means the same option repeated. The same rule applies to each element.
80
83
  when Array then value.flat_map { |element| pairs_for(key, element) }
84
+ # `creation_date:` takes a moment in time. The CLI wants it as ISO 8601, so it is
85
+ # converted to UTC here rather than left to `to_s`, which would drop the zone for a Time
86
+ # and the subsecond part of a DateTime.
87
+ when Time, DateTime then [[name, value.to_time.getutc.iso8601]]
88
+ when Date then [[name, value.iso8601]]
81
89
  when Hash
82
90
  # Nesting such as wicked_pdf's `margin: {top: 10}` is not accepted. There is no
83
91
  # corresponding CLI flag, and flattening it mechanically would let even misspelled
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sghtmltopdf
4
- VERSION = "0.6.1"
4
+ VERSION = "0.7.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sghtmltopdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - yo_waka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-21 00:00:00.000000000 Z
11
+ date: 2026-11-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Ruby binding for sghtmltopdf, a successor to wkhtmltopdf: an HTML-to-PDF