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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4bf0252e2f945302dbf33bdeb00d4f3dad51c25be02a8ff2996afbcec745cc0
4
- data.tar.gz: 03e7eef5f6093112f7d4b37a5d1647017c83b72560740a53d8f5d6365492a504
3
+ metadata.gz: 495008871324eed0b7c434326d19c0cd4b309d90b852a1c219fee4c45aef733d
4
+ data.tar.gz: 60ffbff3e578ad39829df777d741b5126277c02836c3d17706c921a711b55a37
5
5
  SHA512:
6
- metadata.gz: 676f07b45c6dfe42b28cb5b476bb9d179b238de517106e73e2c47afbe87a7fe1c63abc84a31f9cd8401de673b0542491ec441879bfbde7a46bfcb85aea5bd1a1
7
- data.tar.gz: c3a1cc14b37d479369af5ac790c76b93c2c233c482a3463d2eb29ce1920e46745f4190158a30c8d08261337566bdc03a110c6115428133e61a4d61adb03ccafc
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.0 (unreleased)
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
 
@@ -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-installed by rake-compiler: lib/blusher/blusher.<dlext>
28
- File.expand_path("blusher.#{RbConfig::CONFIG["DLEXT"]}", __dir__),
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.#{RbConfig::CONFIG["DLEXT"]}", __dir__),
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Blusher
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - momiji-rs