libv8-node 24.1.0.0-aarch64-linux → 24.12.0.1-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea1af9984f71a713c513bfda392b44ac0d94f5ed09a1316b07d3eab3ecf69c0c
4
- data.tar.gz: 5c9d45ea49ab88e5cb80c86b35f6337dd084586913922d4420666a4757c0785d
3
+ metadata.gz: 864106ff9c43ad7c266628dfd7116f763f3a500d0efba172bb89ece73f23ce34
4
+ data.tar.gz: 14a6c8d98b02218e232a3da4b1d8dc29c2b7b5e88c1f0d6dcbaf7e9ae7489c4b
5
5
  SHA512:
6
- metadata.gz: 15403361ea558f0ebdf807819a580bf685a263ce063f8ece2a03b1f82011b36efe83011f05285e7f8a68e25f1855f3e1dab9aebf0eda50c4b3bc8e9927304aae
7
- data.tar.gz: dd36784cbbbf06b7149beb018403dc250bf2280a6f0ef57ecb7af4b88aa0a1cc8107f82f890d26ec5fb04cb0769f29f57b41421b42e4cd1763ec85a0670950de
6
+ metadata.gz: a6d9087e9d9c5d68f32c219db931f920b8e40a02986f30983b93bea63e4707c291edf5db59524d823abf3236291ac652a54a0c99b85f45b5bc5809c9f3771611
7
+ data.tar.gz: f7cd6269cd27a6503c24c2befa7cd8869b5c3592ff232807802896c24ca4c1e0b0c59559f936fd38f410dfb82fdbdb72ec2ed54f7e88f6cd98760c2046612408
@@ -9,16 +9,14 @@ module Libv8; end
9
9
  module Libv8::Node
10
10
  class Location
11
11
  def install!
12
- File.open(Pathname(__FILE__).dirname.join('.location.yml'), 'w') do |f|
13
- f.write(to_yaml)
14
- end
12
+ File.write(Pathname(__FILE__).dirname.join('.location.yml'), to_yaml)
15
13
 
16
14
  0
17
15
  end
18
16
 
19
17
  def self.load!
20
18
  File.open(Pathname(__FILE__).dirname.join('.location.yml')) do |f|
21
- YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(f) : YAML.load(f) # rubocop:disable Security/YAMLLoad
19
+ YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(f) : YAML.load(f)
22
20
  end
23
21
  end
24
22
 
@@ -58,7 +56,7 @@ module Libv8::Node
58
56
 
59
57
  class ArchiveNotFound < StandardError
60
58
  def initialize(filename)
61
- super "libv8 did not install properly, expected binary v8 archive '#{filename}'to exist, but it was not found"
59
+ super("libv8 did not install properly, expected binary v8 archive '#{filename}'to exist, but it was not found")
62
60
  end
63
61
  end
64
62
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rbconfig'
2
4
  require 'shellwords'
3
5
 
@@ -20,7 +22,38 @@ module Libv8::Node
20
22
  end
21
23
 
22
24
  def platform
23
- Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? && p.instance_eval { @version = 'musl' } }.to_s.gsub(/-darwin-?\d+/, '-darwin')
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']
24
57
  end
25
58
 
26
59
  def config
@@ -4,7 +4,7 @@ module Libv8
4
4
  end
5
5
 
6
6
  module Libv8::Node
7
- VERSION = '24.1.0.0'
8
- NODE_VERSION = '24.1.0'
9
- LIBV8_VERSION = '13.6.233.10' # from src/node-.../deps/v8/include/v8-version.h
7
+ VERSION = '24.12.0.1'
8
+ NODE_VERSION = '24.12.0'
9
+ LIBV8_VERSION = '13.6.233.17' # from src/node-.../deps/v8/include/v8-version.h
10
10
  end
data/lib/libv8/node.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'libv8/node/version'
2
4
  require 'libv8-node/location'
3
5
 
data/lib/libv8-node.rb CHANGED
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'libv8/node'
@@ -488,9 +488,16 @@ V8_INLINE void PersistentBase<T>::SetWeak(
488
488
  #if (__GNUC__ >= 8) && !defined(__clang__)
489
489
  #pragma GCC diagnostic push
490
490
  #pragma GCC diagnostic ignored "-Wcast-function-type"
491
+ #endif
492
+ #if __clang__
493
+ #pragma clang diagnostic push
494
+ #pragma clang diagnostic ignored "-Wcast-function-type"
491
495
  #endif
492
496
  api_internal::MakeWeak(this->slot(), parameter,
493
497
  reinterpret_cast<Callback>(callback), type);
498
+ #if __clang__
499
+ #pragma clang diagnostic pop
500
+ #endif
494
501
  #if (__GNUC__ >= 8) && !defined(__clang__)
495
502
  #pragma GCC diagnostic pop
496
503
  #endif
@@ -819,6 +819,8 @@ class V8_EXPORT Symbol : public Name {
819
819
  static Local<Symbol> GetToPrimitive(Isolate* isolate);
820
820
  static Local<Symbol> GetToStringTag(Isolate* isolate);
821
821
  static Local<Symbol> GetUnscopables(Isolate* isolate);
822
+ static Local<Symbol> GetDispose(Isolate* isolate);
823
+ static Local<Symbol> GetAsyncDispose(Isolate* isolate);
822
824
 
823
825
  V8_INLINE static Symbol* Cast(Data* data) {
824
826
  #ifdef V8_ENABLE_CHECKS
@@ -11,7 +11,7 @@
11
11
  #define V8_MAJOR_VERSION 13
12
12
  #define V8_MINOR_VERSION 6
13
13
  #define V8_BUILD_NUMBER 233
14
- #define V8_PATCH_LEVEL 10
14
+ #define V8_PATCH_LEVEL 17
15
15
 
16
16
  // Use 1 for candidates and 0 otherwise.
17
17
  // (Boolean macro values are not supported by all preprocessors.)
metadata CHANGED
@@ -1,15 +1,56 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libv8-node
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.1.0.0
4
+ version: 24.12.0.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - ''
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-06-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: base64
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :development
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: logger
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: mutex_m
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
13
54
  - !ruby/object:Gem::Dependency
14
55
  name: rake
15
56
  requirement: !ruby/object:Gem::Requirement
@@ -28,16 +69,16 @@ dependencies:
28
69
  name: rubocop
29
70
  requirement: !ruby/object:Gem::Requirement
30
71
  requirements:
31
- - - "~>"
72
+ - - ">="
32
73
  - !ruby/object:Gem::Version
33
- version: 1.44.0
74
+ version: 1.8.0
34
75
  type: :development
35
76
  prerelease: false
36
77
  version_requirements: !ruby/object:Gem::Requirement
37
78
  requirements:
38
- - - "~>"
79
+ - - ">="
39
80
  - !ruby/object:Gem::Version
40
- version: 1.44.0
81
+ version: 1.8.0
41
82
  description: Node.JS's V8 JavaScript engine for multiplatform goodness
42
83
  email:
43
84
  - ''
@@ -165,8 +206,8 @@ files:
165
206
  homepage: https://github.com/rubyjs/libv8-node
166
207
  licenses:
167
208
  - MIT
168
- metadata: {}
169
- post_install_message:
209
+ metadata:
210
+ rubygems_mfa_required: 'true'
170
211
  rdoc_options: []
171
212
  require_paths:
172
213
  - lib
@@ -182,8 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
223
  - !ruby/object:Gem::Version
183
224
  version: '0'
184
225
  requirements: []
185
- rubygems_version: 3.3.26
186
- signing_key:
226
+ rubygems_version: 4.0.3
187
227
  specification_version: 4
188
228
  summary: Node.JS's V8 JavaScript engine
189
229
  test_files: []