typst 0.15.1.9.pre → 0.15.1.9

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/README.typ +1 -1
  4. data/ext/typst/extconf.rb +7 -10
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c7cc49e13eced386fc44cfb914ebf07dc5892490730f3fd4fbed7448e974f74
4
- data.tar.gz: 1f7e43e5d752bf8817f22ad3a3da673f1370f697d93effe05d69fe15128960e9
3
+ metadata.gz: 25f3cd4ed85940c02be05305fcc3da03f14b8072c7b7dcf35335c1219e3a06d4
4
+ data.tar.gz: 4e2dfce6d976a54778fc33c58fa35ce287e0ca8e1639e22c65a64d8d1b14b5d5
5
5
  SHA512:
6
- metadata.gz: c44932e11673f6881589eb84e1e7a736e1116adf8c4f9200d4e14da7624eeb24df01320dac16faea7f5ac3e0d8567ea44c400422c94c57e250e7c705d289643c
7
- data.tar.gz: 8b5689a033596181456b73a321f7df85b3ecd66b67865a33b6030b9560d0474b596f330564b7c335bf0f15bb9e469129fea424d01f1ac97ef1f13f595a7511c8
6
+ metadata.gz: ddb7635512f01d14aee423d8a90e00fef37788f095f98bee018b5c53e313e0e827477c6b2f5656e159819bdbf953467e1fd072e418fe6ba8c67574d9e56023a7
7
+ data.tar.gz: f0e231ce2554f83dbcf6e2f7905e9c7b37021c84360434ea18f72595a11d84b9bae02bd22143760d4f3e69c28f53e4c6ebbdc7d4e744cb85e33a17b2a11c8f48
data/README.md CHANGED
@@ -11,7 +11,7 @@ a new markup-based typesetting system that is powerful and easy to learn.
11
11
 
12
12
  Add the following to your gemfile and `bundle install`
13
13
  ```ruby
14
- gem 'typst', '>= 0.15.1.5'
14
+ gem 'typst', '>= 0.15.1.8'
15
15
  ```
16
16
  or install from the command line:
17
17
  ```bash
data/README.typ CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  Ruby language binding to #link("https://github.com/typst/typst")[typst], a new markup-based typesetting system that is powerful and easy to learn.
13
13
 
14
- == Rubygems
14
+ === Rubygems
15
15
 
16
16
  Source and native gems are provided for the following platforms: `aarch64-linux` `aarch64-linux-musl` `arm64-darwin` `x64-mingw-ucrt` `x86_64-darwin` `x86_64-linux` `x86_64-linux-musl`. The gems are built from CI #link("https://github.com/actsasflinn/typst-rb/actions/workflows/gem-push.yml")[gem-push] action and can be verified against SHA256SUMS published with the #link("https://github.com/actsasflinn/typst-rb/releases")[release].
17
17
 
data/ext/typst/extconf.rb CHANGED
@@ -1,15 +1,12 @@
1
1
  require "mkmf"
2
2
  require "rb_sys/mkmf"
3
3
 
4
- module RbSys
5
- class CargoBuilder < Gem::Ext::Builder
6
- alias_method :old_platform_specific_rustc_args, :platform_specific_rustc_args
7
- def new_platform_specific_rustc_args(dest_dir, flags = [])
8
- flags += ["-l", "kernel32"] if mingw_target? # add kernel32 before libruby to avoid the sleep bug
9
- old_platform_specific_rustc_args(dest_dir, flags)
10
- end
11
- alias_method :platform_specific_rustc_args, :new_platform_specific_rustc_args
12
- end
13
- end
4
+ # On Windows platforms kernel32 should come before libruby in ld flags. The typst crate comemo depends
5
+ # on the parking_lot crate which binds to kernel32's Sleep function. Ruby exports functions with names that
6
+ # overlap with Windows kernel32 functions which causes a bug. There doesn't seem to be a more orthodox way of
7
+ # injecting libraries within rb_sys. Ruby's mkmf.rb has append_library which seems to provide this functionality
8
+ # for non-Rust but doesn't work within rb_sys. rb_sys's CargoBuilder uses RbConfig::CONFIG["LIBS"] in
9
+ # rustc_lib_flags called platform_specific_rustc_args which adds libruby for mingw platform.
10
+ RbConfig::CONFIG["LIBS"] << " -lkernel32" if !!Gem::WIN_PATTERNS.find { |r| RbConfig::CONFIG["target_os"] =~ r }
14
11
 
15
12
  create_rust_makefile("typst/typst")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typst
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1.9.pre
4
+ version: 0.15.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flinn
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 4.0.20
121
+ rubygems_version: 4.0.21
122
122
  specification_version: 4
123
123
  summary: Ruby binding to typst, a new markup-based typesetting system that is powerful
124
124
  and easy to learn.