blusher 0.1.0 → 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 +4 -4
- data/CHANGELOG.md +15 -1
- data/lib/blusher/native.rb +8 -3
- data/lib/blusher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 495008871324eed0b7c434326d19c0cd4b309d90b852a1c219fee4c45aef733d
|
|
4
|
+
data.tar.gz: 60ffbff3e578ad39829df777d741b5126277c02836c3d17706c921a711b55a37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf502dc086adb8b90dccc36f4e7bae0775482ca675e1b14526a1c749229209d976c5920a05f56870944b2fc2bdb8ece84f209d0f3e36ca3ae4b7cd96a2c921ae
|
|
7
|
+
data.tar.gz: eac4db7f0baae5bc49304a55a86e8c4b83364ee637a20803dafdd563261cecd808558510b3c1816840ab419fd1fe84d7d39b46fea25e426ffe64ce85a1bcbd5d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
- Fix loading the precompiled gems: the native extension finder now checks the
|
|
6
|
+
per-Ruby-ABI path (`lib/blusher/<X.Y>/blusher.<dlext>`) that rake-compiler
|
|
7
|
+
uses for fat gems. (0.1.1's precompiled platform gems raised LoadError on
|
|
8
|
+
require; the source gem was unaffected.)
|
|
9
|
+
|
|
10
|
+
## 0.1.1
|
|
11
|
+
|
|
12
|
+
- Ship **precompiled native gems** for the common platforms (linux x86_64/aarch64
|
|
13
|
+
incl. musl, darwin x86_64/arm64, windows x64-mingw-ucrt) via rb-sys-dock, so
|
|
14
|
+
`gem install blusher` needs no Rust toolchain. The source gem remains as a
|
|
15
|
+
fallback for other platforms (compiles the extension on install).
|
|
16
|
+
|
|
17
|
+
## 0.1.0
|
|
4
18
|
|
|
5
19
|
Initial release.
|
|
6
20
|
|
data/lib/blusher/native.rb
CHANGED
|
@@ -23,11 +23,16 @@ module Blusher
|
|
|
23
23
|
# The loadable object's name must match the `Init_blusher` symbol and use
|
|
24
24
|
# the platform's Ruby ext suffix (.bundle/.so) — `require` won't load a raw
|
|
25
25
|
# cargo `.dylib`. `rake compile` stages it here from the cargo target dir.
|
|
26
|
+
DLEXT_RB = RbConfig::CONFIG["DLEXT"] # ruby loadable suffix (bundle/so)
|
|
27
|
+
RUBY_ABI = RUBY_VERSION[/\d+\.\d+/] # "3.4" — fat gems stage per ABI
|
|
28
|
+
|
|
26
29
|
EXT_CANDIDATES = [
|
|
27
|
-
# gem
|
|
28
|
-
File.expand_path("blusher.#{
|
|
30
|
+
# precompiled fat gem (rake-compiler stages per Ruby ABI): lib/blusher/3.4/blusher.<dlext>
|
|
31
|
+
File.expand_path("#{RUBY_ABI}/blusher.#{DLEXT_RB}", __dir__),
|
|
32
|
+
# source gem (create_rust_makefile installs here): lib/blusher/blusher.<dlext>
|
|
33
|
+
File.expand_path("blusher.#{DLEXT_RB}", __dir__),
|
|
29
34
|
# dev: `rake compile` stages the cargo build at lib/blusher.<dlext>
|
|
30
|
-
File.expand_path("../blusher.#{
|
|
35
|
+
File.expand_path("../blusher.#{DLEXT_RB}", __dir__),
|
|
31
36
|
File.expand_path("../blusher.bundle", __dir__),
|
|
32
37
|
File.expand_path("../blusher.so", __dir__),
|
|
33
38
|
].freeze
|
data/lib/blusher/version.rb
CHANGED