ratomic 0.3.3-x86_64-darwin → 0.3.4-x86_64-darwin
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 +9 -0
- data/lib/ratomic/version.rb +1 -1
- data/lib/ratomic.rb +17 -16
- metadata +8 -8
- /data/lib/ratomic/{3.0 → 4.0/3.0}/ratomic.bundle +0 -0
- /data/lib/ratomic/{3.1 → 4.0/3.1}/ratomic.bundle +0 -0
- /data/lib/ratomic/{3.2 → 4.0/3.2}/ratomic.bundle +0 -0
- /data/lib/ratomic/{3.3 → 4.0/3.3}/ratomic.bundle +0 -0
- /data/lib/ratomic/{3.4 → 4.0/3.4}/ratomic.bundle +0 -0
- /data/lib/ratomic/4.0/{ratomic.bundle → 4.0/ratomic.bundle} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f850e759b8ff6f2ae2b82f6248fcece678c8392d15e66f5a89ed6ed2831ba63
|
|
4
|
+
data.tar.gz: 7ba65a1a85e6d8192564c70ebf2ecafd29b0a29336a6e298a1ee3cbdc9f16ecf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f02751fb8502e974f9245c536e5a4640a9b5c8ee55d7b6ea150cc419f44d5be020b9a3534b65c08d5a840f5a2cf064144d3ef7c060d97318551f91cdbc576e8d
|
|
7
|
+
data.tar.gz: d0c1c2854d7f066dffe543f51b2f95121607da1abdda487a2b4823b98a12b04d285f9d1ce7a46d0c64d9ae2792f4304e4a9c46ce5c9a3a3d6039e71d32bde6bf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.3.4] - 2026-06-06
|
|
4
|
+
|
|
5
|
+
- Move the compiled native extension into the versioned `lib/ratomic/4.0/`
|
|
6
|
+
layout used by the installed gem.
|
|
7
|
+
- Load the versioned native artifact explicitly and mark native support as
|
|
8
|
+
unavailable when the extension is missing.
|
|
9
|
+
- Add loader coverage for both the versioned native path and the native-disabled
|
|
10
|
+
branch.
|
|
11
|
+
|
|
3
12
|
## [0.3.3] - 2026-06-06
|
|
4
13
|
|
|
5
14
|
- Fix `require "ratomic"` for installed gems by resolving the packaged native
|
data/lib/ratomic/version.rb
CHANGED
data/lib/ratomic.rb
CHANGED
|
@@ -9,26 +9,27 @@ require "rbconfig"
|
|
|
9
9
|
#
|
|
10
10
|
# The public API currently includes {Counter}, {Map}, {Queue}, and {Pool}.
|
|
11
11
|
module Ratomic
|
|
12
|
-
# Base error class for Ratomic-specific failures.
|
|
13
|
-
class Error < StandardError; end
|
|
14
|
-
|
|
15
12
|
def self.load_native_extension
|
|
16
|
-
|
|
13
|
+
ruby_api_ver = RbConfig::CONFIG.fetch("ruby_version").split(".", 3)[0, 2].join(".")
|
|
14
|
+
require_relative "ratomic/#{ruby_api_ver}/ratomic"
|
|
15
|
+
@native_enabled = true
|
|
16
|
+
rescue LoadError
|
|
17
|
+
@native_enabled = false
|
|
18
|
+
end
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
else
|
|
21
|
-
require "ratomic/ratomic"
|
|
22
|
-
end
|
|
20
|
+
def self.native_enabled?
|
|
21
|
+
@native_enabled == true
|
|
23
22
|
end
|
|
24
23
|
private_class_method :load_native_extension
|
|
24
|
+
|
|
25
|
+
# Base error class for Ratomic-specific failures.
|
|
26
|
+
class Error < StandardError; end
|
|
25
27
|
end
|
|
26
28
|
|
|
27
29
|
Ratomic.send(:load_native_extension)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
require "ratomic/pool"
|
|
30
|
+
require_relative "ratomic/version"
|
|
31
|
+
require_relative "ratomic/undefined"
|
|
32
|
+
require_relative "ratomic/counter"
|
|
33
|
+
require_relative "ratomic/map"
|
|
34
|
+
require_relative "ratomic/queue"
|
|
35
|
+
require_relative "ratomic/pool"
|
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.4
|
|
5
5
|
platform: x86_64-darwin
|
|
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.
|
|
@@ -23,12 +23,12 @@ files:
|
|
|
23
23
|
- LICENSE.txt
|
|
24
24
|
- README.md
|
|
25
25
|
- lib/ratomic.rb
|
|
26
|
-
- lib/ratomic/3.0/ratomic.bundle
|
|
27
|
-
- lib/ratomic/3.1/ratomic.bundle
|
|
28
|
-
- lib/ratomic/3.2/ratomic.bundle
|
|
29
|
-
- lib/ratomic/3.3/ratomic.bundle
|
|
30
|
-
- lib/ratomic/3.4/ratomic.bundle
|
|
31
|
-
- lib/ratomic/4.0/ratomic.bundle
|
|
26
|
+
- lib/ratomic/4.0/3.0/ratomic.bundle
|
|
27
|
+
- lib/ratomic/4.0/3.1/ratomic.bundle
|
|
28
|
+
- lib/ratomic/4.0/3.2/ratomic.bundle
|
|
29
|
+
- lib/ratomic/4.0/3.3/ratomic.bundle
|
|
30
|
+
- lib/ratomic/4.0/3.4/ratomic.bundle
|
|
31
|
+
- lib/ratomic/4.0/4.0/ratomic.bundle
|
|
32
32
|
- lib/ratomic/counter.rb
|
|
33
33
|
- lib/ratomic/map.rb
|
|
34
34
|
- lib/ratomic/pool.rb
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|