libv8-node 15.5.1.0.beta1-arm64-darwin-21 → 15.14.0.1-arm64-darwin-21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/libv8-node/.location.yml +0 -1
- data/ext/libv8-node/location.rb +23 -38
- data/ext/libv8-node/paths.rb +1 -1
- data/lib/libv8/node/version.rb +3 -3
- data/vendor/v8/out.gn/libv8/obj/libv8_monolith.a +0 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3c8828f90e2299fa8ebb1e5b6cb8f18dfb590f8ce0fd24fffc9a62776767a3e
|
4
|
+
data.tar.gz: f8f20d91b6d646ed382aa419c951bed05811811e7b62774faeb7a40177f6a4f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3407bb7c8749e981e51744e4538a285f7268f91026e26488d57d206e0278ee2693a2bfbe731eaffbf8b4a762012f2224d1b685b2d101674efe7fb3515702f2c8
|
7
|
+
data.tar.gz: 319335670a27513b9fbef3fa6b82b95b6495bf7f37f97d2bd5397445b2be46c27d5caca2ce46e7d9215473298c1e937fb5f3d3611d5353425abca7d9e2a733f4
|
data/ext/libv8-node/location.rb
CHANGED
@@ -1,46 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'yaml'
|
2
4
|
require 'pathname'
|
3
|
-
require File.expand_path
|
5
|
+
require File.expand_path('paths', __dir__)
|
4
6
|
|
5
7
|
module Libv8; end
|
6
8
|
|
7
9
|
module Libv8::Node
|
8
10
|
class Location
|
9
11
|
def install!
|
10
|
-
File.open(Pathname(__FILE__).dirname.join('.location.yml'),
|
11
|
-
f.write
|
12
|
+
File.open(Pathname(__FILE__).dirname.join('.location.yml'), 'w') do |f|
|
13
|
+
f.write(to_yaml)
|
12
14
|
end
|
13
|
-
|
15
|
+
|
16
|
+
0
|
14
17
|
end
|
15
18
|
|
16
19
|
def self.load!
|
17
20
|
File.open(Pathname(__FILE__).dirname.join('.location.yml')) do |f|
|
18
|
-
YAML.load
|
21
|
+
YAML.load(f) # rubocop:disable Security/YAMLLoad
|
19
22
|
end
|
20
23
|
end
|
21
24
|
|
22
25
|
class Vendor < Location
|
23
26
|
def install!
|
24
|
-
require File.expand_path
|
27
|
+
require File.expand_path('builder', __dir__)
|
28
|
+
|
25
29
|
builder = Libv8::Node::Builder.new
|
26
30
|
exit_status = builder.build_libv8!
|
31
|
+
builder.remove_intermediates!
|
32
|
+
|
27
33
|
super if exit_status == 0
|
34
|
+
|
28
35
|
verify_installation!
|
29
|
-
|
36
|
+
|
37
|
+
exit_status
|
30
38
|
end
|
31
39
|
|
32
40
|
def configure(context = MkmfContext.new)
|
33
|
-
context.incflags.insert
|
34
|
-
context.ldflags.insert
|
41
|
+
context.incflags.insert(0, Libv8::Node::Paths.include_paths.map { |p| "-I#{p}" }.join(' ') << ' ')
|
42
|
+
context.ldflags.insert(0, Libv8::Node::Paths.object_paths.join(' ') << ' ')
|
35
43
|
end
|
36
44
|
|
37
45
|
def verify_installation!
|
38
46
|
include_paths = Libv8::Node::Paths.include_paths
|
47
|
+
|
39
48
|
unless include_paths.detect { |p| Pathname(p).join('v8.h').exist? }
|
40
|
-
|
49
|
+
raise(HeaderNotFound, "Unable to locate 'v8.h' in the libv8 header paths: #{include_paths.inspect}")
|
41
50
|
end
|
51
|
+
|
42
52
|
Libv8::Node::Paths.object_paths.each do |p|
|
43
|
-
|
53
|
+
raise(ArchiveNotFound, p) unless File.exist?(p)
|
44
54
|
end
|
45
55
|
end
|
46
56
|
|
@@ -53,38 +63,13 @@ module Libv8::Node
|
|
53
63
|
end
|
54
64
|
end
|
55
65
|
|
56
|
-
class System < Location
|
57
|
-
def configure(context = MkmfContext.new)
|
58
|
-
context.send(:dir_config, 'v8')
|
59
|
-
context.send(:find_header, 'v8.h') or fail NotFoundError
|
60
|
-
context.send(:find_header, 'libplatform/libplatform.h') or fail NotFoundError
|
61
|
-
context.send(:have_library, 'v8') or fail NotFoundError
|
62
|
-
end
|
63
|
-
|
64
|
-
class NotFoundError < StandardError
|
65
|
-
def initialize(*args)
|
66
|
-
super(<<-EOS)
|
67
|
-
By using --with-system-v8, you have chosen to use the version
|
68
|
-
of V8 found on your system and *not* the one that is bundled with
|
69
|
-
the libv8 rubygem.
|
70
|
-
|
71
|
-
However, your system version of v8 could not be located.
|
72
|
-
|
73
|
-
Please make sure your system version of v8 that is compatible
|
74
|
-
with #{Libv8::Node::VERSION} installed. You may need to use the
|
75
|
-
--with-v8-dir option if it is installed in a non-standard location
|
76
|
-
EOS
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
66
|
class MkmfContext
|
82
67
|
def incflags
|
83
|
-
$INCFLAGS
|
68
|
+
$INCFLAGS # rubocop:disable Style/GlobalVars
|
84
69
|
end
|
85
70
|
|
86
71
|
def ldflags
|
87
|
-
$LDFLAGS
|
72
|
+
$LDFLAGS # rubocop:disable Style/GlobalVars
|
88
73
|
end
|
89
74
|
end
|
90
75
|
end
|
data/ext/libv8-node/paths.rb
CHANGED
data/lib/libv8/node/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Libv8; end
|
2
2
|
|
3
3
|
module Libv8::Node
|
4
|
-
VERSION =
|
5
|
-
NODE_VERSION =
|
6
|
-
LIBV8_VERSION =
|
4
|
+
VERSION = '15.14.0.1'.freeze
|
5
|
+
NODE_VERSION = '15.14.0'.freeze
|
6
|
+
LIBV8_VERSION = '8.6.395.17'.freeze # from v8/include/v8-version.h
|
7
7
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libv8-node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.14.0.1
|
5
5
|
platform: arm64-darwin-21
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.50.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.50.0
|
27
41
|
description: Node.JS's V8 JavaScript engine for multiplatform goodness
|
28
42
|
email:
|
29
43
|
- ''
|
@@ -101,9 +115,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
115
|
version: '0'
|
102
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
117
|
requirements:
|
104
|
-
- - "
|
118
|
+
- - ">="
|
105
119
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
120
|
+
version: '0'
|
107
121
|
requirements: []
|
108
122
|
rubygems_version: 3.2.3
|
109
123
|
signing_key:
|