libv8-node 15.5.1.0.beta1-arm64-darwin-20 → 15.12.0.0.beta1-arm64-darwin-20
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/.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 +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2628d8126b52dc106ef6ba44e0c78f0e3bafcd37c64ea8e4cecff8cdaa30c7b
|
4
|
+
data.tar.gz: caada755c030c79752023ce9c9da514b81657ba52b6480b39bcc596473ca544d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fc9fe57a57078307f5f225a83e21c83b9aa286138f43106a095d8ea5eb1ec6f76ee0482c86c747cca3090e25e114a45ed1c0a7606fe4b26f191b7baf690d5a3
|
7
|
+
data.tar.gz: 7dd98f69a3358c796ddc9e4e36eeef0fc20d8a76b47e58ba42bf919be6ce0066ed599dd194cabace8e3c563aa4017eb5bc201bb5cf994dac44ddb1bdc05ddc6f
|
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.12.0.0.beta1'.freeze
|
5
|
+
NODE_VERSION = '15.12.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.12.0.0.beta1
|
5
5
|
platform: arm64-darwin-20
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-29 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
|
- ''
|