ratomic 0.3.3-aarch64-linux → 0.3.5-aarch64-linux
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 +17 -0
- data/lib/ratomic/version.rb +1 -1
- data/lib/ratomic.rb +27 -6
- data/ratomic.gemspec +1 -1
- 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: 909f1b4f328826e6e91979d9b6ce81d198766d1913cce72d331b9d052d732e3e
|
|
4
|
+
data.tar.gz: bcd57565fa22d6fcf3dd83e3362660e7ebf76453911f5eadfcab53933752d83f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 998690610cb57a443d92745561af577fbff7f8f9c50cf44de9aa5380e383fe379ba6ee914347ab6372a5d1b8646c2481fce0d82b4589f106be754f7240708f8c
|
|
7
|
+
data.tar.gz: 299d447419457cf6432ca252aecf88072b07c6952150962fc6e53cf32d665e0f0e71b3ce3b3c8fe6c9033b4b4a7a11b245bba97b965408f4046069055eed8a8a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.3.5] - 2026-06-06
|
|
4
|
+
|
|
5
|
+
- Fix the native loader so development loads the compiled extension from the
|
|
6
|
+
workspace layout while installed gems still resolve the versioned packaged
|
|
7
|
+
native path.
|
|
8
|
+
- Add loader coverage for the native-enabled path and keep the release smoke
|
|
9
|
+
test validating the packaged native gem shape before publish.
|
|
10
|
+
|
|
11
|
+
## [0.3.4] - 2026-06-06
|
|
12
|
+
|
|
13
|
+
- Move the compiled native extension into the versioned `lib/ratomic/4.0/`
|
|
14
|
+
layout used by the installed gem.
|
|
15
|
+
- Load the versioned native artifact explicitly and mark native support as
|
|
16
|
+
unavailable when the extension is missing.
|
|
17
|
+
- Add loader coverage for both the versioned native path and the native-disabled
|
|
18
|
+
branch.
|
|
19
|
+
|
|
3
20
|
## [0.3.3] - 2026-06-06
|
|
4
21
|
|
|
5
22
|
- Fix `require "ratomic"` for installed gems by resolving the packaged native
|
data/lib/ratomic/version.rb
CHANGED
data/lib/ratomic.rb
CHANGED
|
@@ -12,13 +12,34 @@ module Ratomic
|
|
|
12
12
|
# Base error class for Ratomic-specific failures.
|
|
13
13
|
class Error < StandardError; end
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
class << self
|
|
16
|
+
def native_extension_path
|
|
17
|
+
ruby_api_ver = RbConfig::CONFIG.fetch("ruby_version").split(".", 3)[0, 2].join(".")
|
|
18
|
+
"ratomic/#{ruby_api_ver}/ratomic"
|
|
19
|
+
end
|
|
20
|
+
private :native_extension_path
|
|
21
|
+
|
|
22
|
+
def development_native_extension_path
|
|
23
|
+
"ratomic/ratomic"
|
|
24
|
+
end
|
|
25
|
+
private :development_native_extension_path
|
|
26
|
+
|
|
27
|
+
def load_native_extension_path(path)
|
|
28
|
+
require_relative path
|
|
29
|
+
true
|
|
30
|
+
rescue LoadError
|
|
31
|
+
false
|
|
32
|
+
end
|
|
33
|
+
private :load_native_extension_path
|
|
34
|
+
|
|
35
|
+
def load_native_extension
|
|
36
|
+
@native_enabled =
|
|
37
|
+
load_native_extension_path(native_extension_path) ||
|
|
38
|
+
load_native_extension_path(development_native_extension_path)
|
|
39
|
+
end
|
|
17
40
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
else
|
|
21
|
-
require "ratomic/ratomic"
|
|
41
|
+
def native_enabled?
|
|
42
|
+
@native_enabled == true
|
|
22
43
|
end
|
|
23
44
|
end
|
|
24
45
|
private_class_method :load_native_extension
|
data/ratomic.gemspec
CHANGED
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
"backed by native Rust concurrency primitives."
|
|
15
15
|
spec.homepage = "https://mperham.github.io/ratomic"
|
|
16
16
|
spec.license = "MIT"
|
|
17
|
-
spec.required_ruby_version =
|
|
17
|
+
spec.required_ruby_version = ">= 4.0"
|
|
18
18
|
|
|
19
19
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
20
20
|
spec.metadata["source_code_uri"] = "https://github.com/mperham/ratomic"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ratomic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Perham
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-06-
|
|
12
|
+
date: 2026-06-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Ractor-safe counters, maps, queues, and ownership-transfer pools backed
|
|
15
15
|
by native Rust concurrency primitives.
|