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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41c352c0ab686421f4a82869f63246608b7d6469f9299bafc005036291f782c2
4
- data.tar.gz: df62dfded2229a2b047c9d24d2ee51732310917eb020eb4e0bf1d9f6c066b479
3
+ metadata.gz: b2628d8126b52dc106ef6ba44e0c78f0e3bafcd37c64ea8e4cecff8cdaa30c7b
4
+ data.tar.gz: caada755c030c79752023ce9c9da514b81657ba52b6480b39bcc596473ca544d
5
5
  SHA512:
6
- metadata.gz: d7b2b0f9de2f1027d5d39ad50fc75be42c392d7fb9fb979091e6eb73c97023cc9ab02d40390acb33d646b33be4cc98b0eeb3f25b2db0072f4225a623da315e1f
7
- data.tar.gz: 55f6c217359b7ad3354dfe8bf5dfab608fe2ca5f1bdd78fd9bb2ceb431385b4de49bc63a206df75ee6584f0791e2cdb50f5cf3b3a03ec2f7b6f851ff2b43fc47
6
+ metadata.gz: 3fc9fe57a57078307f5f225a83e21c83b9aa286138f43106a095d8ea5eb1ec6f76ee0482c86c747cca3090e25e114a45ed1c0a7606fe4b26f191b7baf690d5a3
7
+ data.tar.gz: 7dd98f69a3358c796ddc9e4e36eeef0fc20d8a76b47e58ba42bf919be6ce0066ed599dd194cabace8e3c563aa4017eb5bc201bb5cf994dac44ddb1bdc05ddc6f
@@ -1,2 +1 @@
1
1
  --- !ruby/object:Libv8::Node::Location::Vendor {}
2
-
@@ -1,46 +1,56 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'yaml'
2
4
  require 'pathname'
3
- require File.expand_path '../paths', __FILE__
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'), "w") do |f|
11
- f.write self.to_yaml
12
+ File.open(Pathname(__FILE__).dirname.join('.location.yml'), 'w') do |f|
13
+ f.write(to_yaml)
12
14
  end
13
- return 0
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 f
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 '../builder', __FILE__
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
- return exit_status
36
+
37
+ exit_status
30
38
  end
31
39
 
32
40
  def configure(context = MkmfContext.new)
33
- context.incflags.insert 0, Libv8::Node::Paths.include_paths.map{ |p| "-I#{p}" }.join(" ") + " "
34
- context.ldflags.insert 0, Libv8::Node::Paths.object_paths.join(" ") + " "
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
- fail HeaderNotFound, "Unable to locate 'v8.h' in the libv8 header paths: #{include_paths.inspect}"
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
- fail ArchiveNotFound, p unless File.exist? p
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
@@ -24,7 +24,7 @@ module Libv8::Node
24
24
  end
25
25
 
26
26
  def vendored_source_path
27
- File.expand_path "../../../vendor/v8", __FILE__
27
+ File.expand_path('../../vendor/v8', __dir__)
28
28
  end
29
29
  end
30
30
  end
@@ -1,7 +1,7 @@
1
1
  module Libv8; end
2
2
 
3
3
  module Libv8::Node
4
- VERSION = "15.5.1.0.beta1"
5
- NODE_VERSION = "15.5.1"
6
- LIBV8_VERSION = "8.6.395.17" # v8/include/v8-version.h
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
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.5.1.0.beta1
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-01-18 00:00:00.000000000 Z
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
  - ''