ratomic 0.3.4-x86_64-darwin → 0.3.5-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 +8 -0
- data/lib/ratomic/version.rb +1 -1
- data/lib/ratomic.rb +38 -18
- data/ratomic.gemspec +1 -1
- metadata +7 -7
- /data/lib/ratomic/{4.0/3.0 → 3.0}/ratomic.bundle +0 -0
- /data/lib/ratomic/{4.0/3.1 → 3.1}/ratomic.bundle +0 -0
- /data/lib/ratomic/{4.0/3.2 → 3.2}/ratomic.bundle +0 -0
- /data/lib/ratomic/{4.0/3.3 → 3.3}/ratomic.bundle +0 -0
- /data/lib/ratomic/{4.0/3.4 → 3.4}/ratomic.bundle +0 -0
- /data/lib/ratomic/4.0/{4.0/ratomic.bundle → 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: e4c389922493b4ec15b95328e82fa4620494e7aed9fe2460d0decd1f3d096b17
|
|
4
|
+
data.tar.gz: 1b33d4d12e929d096150f6f44838a0328d1b0f381a730052dc00fedceac9a8e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f4612514c43d4531e37cf5218a65ee37308c0ec22c64e03a585f201d28bd580f599719ec5c0e2ab54756f8a99751d53e1ca95f3aed6c5af08d08aea35278ef5
|
|
7
|
+
data.tar.gz: '09a2574580d838ff963d84d02272d548a638ab2582c841dda95abc888c10a79f9181e77f34880151444c87655aa3ac787aa3166ea21ad2b15666c9e8d975241a'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## [0.3.4] - 2026-06-06
|
|
4
12
|
|
|
5
13
|
- Move the compiled native extension into the versioned `lib/ratomic/4.0/`
|
data/lib/ratomic/version.rb
CHANGED
data/lib/ratomic.rb
CHANGED
|
@@ -9,27 +9,47 @@ require "rbconfig"
|
|
|
9
9
|
#
|
|
10
10
|
# The public API currently includes {Counter}, {Map}, {Queue}, and {Pool}.
|
|
11
11
|
module Ratomic
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
# Base error class for Ratomic-specific failures.
|
|
13
|
+
class Error < StandardError; end
|
|
14
|
+
|
|
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
|
|
19
34
|
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
40
|
+
|
|
41
|
+
def native_enabled?
|
|
42
|
+
@native_enabled == true
|
|
43
|
+
end
|
|
22
44
|
end
|
|
23
45
|
private_class_method :load_native_extension
|
|
24
|
-
|
|
25
|
-
# Base error class for Ratomic-specific failures.
|
|
26
|
-
class Error < StandardError; end
|
|
27
46
|
end
|
|
28
47
|
|
|
29
48
|
Ratomic.send(:load_native_extension)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
49
|
+
require "ratomic/version"
|
|
50
|
+
|
|
51
|
+
require "ratomic/undefined"
|
|
52
|
+
require "ratomic/counter"
|
|
53
|
+
require "ratomic/map"
|
|
54
|
+
require "ratomic/queue"
|
|
55
|
+
require "ratomic/pool"
|
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: x86_64-darwin
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Perham
|
|
@@ -23,12 +23,12 @@ files:
|
|
|
23
23
|
- LICENSE.txt
|
|
24
24
|
- README.md
|
|
25
25
|
- lib/ratomic.rb
|
|
26
|
-
- lib/ratomic/
|
|
27
|
-
- lib/ratomic/
|
|
28
|
-
- lib/ratomic/
|
|
29
|
-
- lib/ratomic/
|
|
30
|
-
- lib/ratomic/
|
|
31
|
-
- lib/ratomic/4.0/
|
|
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
|
|
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
|