libv8-node 24.12.0.0-x86_64-darwin → 24.12.0.1-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/ext/libv8-node/paths.rb +32 -1
- data/lib/libv8/node/version.rb +1 -1
- data/vendor/v8/x86_64-darwin/libv8/obj/libv8_monolith.a +0 -0
- 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: 0b023a7e8909b716573c6a140b8fc45c1b72c7cb39e2a7db4b42b5a11e25ee64
|
|
4
|
+
data.tar.gz: c7f15422e236413e627759e89cd7f11a1165f9ff9de3d1af5de73f4d78e55cfa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c4c122a0bbad150863e8f83d315fcb3d4a919dec401435c82979353b3dd3cba2501117d6502d41485357793a46a7c1dd3b8e616e78d4ca8cf8cee5e6fa94d52
|
|
7
|
+
data.tar.gz: 6cf449cb232c6b1b5daf1d575f3a8165af2690bea88f447397232b54e760ea97e7c32465320e529e5af04a7d92ba4217b7e059b9b5efcc0380f9c047d0e9b4ed
|
data/ext/libv8-node/paths.rb
CHANGED
|
@@ -22,7 +22,38 @@ module Libv8::Node
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def platform
|
|
25
|
-
|
|
25
|
+
@platform ||= determine_platform
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def determine_platform
|
|
29
|
+
ideal = construct_ideal_platform_name
|
|
30
|
+
return ideal if platform_directory_exists?(ideal)
|
|
31
|
+
|
|
32
|
+
fallback_platform
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def construct_ideal_platform_name
|
|
36
|
+
local = Gem::Platform.local
|
|
37
|
+
parts = [local.cpu, local.os, local.version]
|
|
38
|
+
parts[2] = 'musl' if musl_platform?
|
|
39
|
+
parts.compact.reject(&:empty?).join('-').gsub(/-darwin-?\d+/, '-darwin')
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def musl_platform?
|
|
43
|
+
RUBY_PLATFORM =~ /musl/
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def platform_directory_exists?(name)
|
|
47
|
+
File.directory?(File.join(vendored_source_path, name))
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def fallback_platform
|
|
51
|
+
available = available_platform_directories
|
|
52
|
+
available.size == 1 ? available.first : construct_ideal_platform_name
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def available_platform_directories
|
|
56
|
+
Dir.glob(File.join(vendored_source_path, '*')).select { |d| File.directory?(d) }.map { |d| File.basename(d) } - ['include']
|
|
26
57
|
end
|
|
27
58
|
|
|
28
59
|
def config
|
data/lib/libv8/node/version.rb
CHANGED
|
Binary file
|