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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 459b4d84a8411c96abb43c762e1d82851476f1a2e21ca3ae88b3dd34065e9891
4
- data.tar.gz: 7bc0449465bbb30b47e3d6d3be4b668af0fc33b5f5e244135062726a77297960
3
+ metadata.gz: e3c8828f90e2299fa8ebb1e5b6cb8f18dfb590f8ce0fd24fffc9a62776767a3e
4
+ data.tar.gz: f8f20d91b6d646ed382aa419c951bed05811811e7b62774faeb7a40177f6a4f2
5
5
  SHA512:
6
- metadata.gz: f42012c36645bd6f937b5fca6de7ea2ce861236296cd862c8994899943a036046c692b36a5831d49f8ce064513227c35c32d13d4899500fc817bfc5704ab8ea2
7
- data.tar.gz: 11b5e12913e0b7c99016d8b02ded1cb80a90edf350756b98095e7e420335b8096d2efd0e5b414aa7adc5fc7c866e5d726921c310c385c5303954ae57b7519de5
6
+ metadata.gz: 3407bb7c8749e981e51744e4538a285f7268f91026e26488d57d206e0278ee2693a2bfbe731eaffbf8b4a762012f2224d1b685b2d101674efe7fb3515702f2c8
7
+ data.tar.gz: 319335670a27513b9fbef3fa6b82b95b6495bf7f37f97d2bd5397445b2be46c27d5caca2ce46e7d9215473298c1e937fb5f3d3611d5353425abca7d9e2a733f4
@@ -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.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
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.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-01-18 00:00:00.000000000 Z
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: 1.3.1
120
+ version: '0'
107
121
  requirements: []
108
122
  rubygems_version: 3.2.3
109
123
  signing_key: