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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/README.typ +1 -1
- data/ext/typst/extconf.rb +7 -10
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25f3cd4ed85940c02be05305fcc3da03f14b8072c7b7dcf35335c1219e3a06d4
|
|
4
|
+
data.tar.gz: 4e2dfce6d976a54778fc33c58fa35ce287e0ca8e1639e22c65a64d8d1b14b5d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
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.
|
|
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.
|