page_print 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '01186af68ea2b96b7895e67551850dc75c0a9da9a627878cca7d0a79104ffb5d'
4
- data.tar.gz: 53611de8ac2727292a019cbe694fc9a39467f8d664e07082c8c52eddacea6521
3
+ metadata.gz: 818bc73c6546781f6c9efa50d367e3af1f2a118f2af9e94c72a735f34220fa81
4
+ data.tar.gz: 1093e9ac63f535aa07e583a66a845c74296d9f5d03c6d103db70b655ea52c14c
5
5
  SHA512:
6
- metadata.gz: f6fb50c8b137d8ef169c2f3d8889a0a08134af90a57f12f8eb41c1d193affcfa51a890af14db135542ee10ebabbeb0648229aa3003578e7fdff805fa4044549e
7
- data.tar.gz: 1979ba3ddf1d1cc8cba01ef515c347fb04b06289cc3a36ddf65c60422e4741132f3d338db1efae88c5a21e67f96c67471172c475b0af1eb78634d79d79a142b2
6
+ metadata.gz: 66a786178150bef3d0b2451963afe2b05e14d8b63513dd3175a7373b23398a1bb1a3f1396065f2056cba0ff11eb814766db6a4c46b276d223b21b07c8db7a446
7
+ data.tar.gz: f48ad25e2307ae55482e8cc7c28a213146f23b71a7d597c3b85c0d30bb90e19adf9246a95d49d278679526e40239cda51107d837bb853d57bffec45a9028be79
data/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
 
7
7
  - Ruby 3.0+
8
8
  - Native gems are published for `x86_64-linux` and `arm64-darwin`.
9
+ - The `arm64-darwin` gem vendors PlutoBook but compiles the small Ruby extension during install so it links against your local Ruby.
9
10
  - Source builds on unsupported platforms require PlutoBook development headers and library files.
10
11
 
11
12
  ### Source Build Requirements
@@ -27,7 +28,7 @@ gem install page_print -- --with-plutobook-include=/path/to/include --with-pluto
27
28
  Add PagePrint to your Gemfile:
28
29
 
29
30
  ```ruby
30
- gem "page_print", "~> 0.1.1"
31
+ gem "page_print", "~> 0.1.2"
31
32
  ```
32
33
 
33
34
  Or install from RubyGems directly:
@@ -43,7 +44,7 @@ The native gems bundle PlutoBook and required non-system shared libraries. Optio
43
44
  | Platform | Install Type |
44
45
  |---|---|
45
46
  | `x86_64-linux` | Native gem |
46
- | `arm64-darwin` | Native gem |
47
+ | `arm64-darwin` | Vendored PlutoBook, local Ruby extension build |
47
48
  | Other platforms | Source build |
48
49
 
49
50
  ## Local Build
@@ -126,7 +127,7 @@ Build an Apple Silicon macOS platform gem with a vendored PlutoBook library:
126
127
  bundle exec rake package:darwin_arm64
127
128
  ```
128
129
 
129
- These tasks check out PlutoBook `v0.17.0`, build it into `lib/page_print/vendor/<platform>`, compile the PagePrint native extension against that vendored build, and write a platform gem to `pkg/`.
130
+ These tasks check out PlutoBook `v0.17.0`, build it into `lib/page_print/vendor/<platform>`, and write a platform gem to `pkg/`. The Linux package includes a precompiled Ruby extension. The macOS package compiles the Ruby extension during gem install to avoid hardcoding the build machine's Ruby path.
130
131
 
131
132
  Native gems bundle PlutoBook and its non-system shared library dependencies. Optional PlutoBook features for curl, TurboJPEG, and WebP are disabled to keep the bundled dependency set smaller.
132
133
 
@@ -5,6 +5,8 @@ def page_print_native_platform
5
5
 
6
6
  if platform.os == 'linux' && platform.cpu == 'x86_64'
7
7
  'x86_64-linux'
8
+ elsif platform.os == 'darwin' && platform.cpu == 'arm64'
9
+ 'arm64-darwin'
8
10
  else
9
11
  platform.to_s
10
12
  end
@@ -1,3 +1,3 @@
1
1
  module PagePrint
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page_print
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dino Maric