sq_mini_racer 0.2.0.sqreen1 → 0.2.0.sqreen2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mini_racer_extension/extconf.rb +12 -2
- data/ext/prv_ext_loader/prv_ext_loader.c +1 -1
- data/lib/sqreen/mini_racer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e409bae14ac522d688cdeb37b7449b3237e14242f26ad3df53b0fa797e4ebfd9
|
4
|
+
data.tar.gz: 496edb7fe8c6a31209306217cfe43840c5da4d68ca33f1d91bfbb9e3218d6125
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f43f6001da142ad0790109ea43981aee150f31db0ffd205101829ce77ccc6ff7f5f493fefcb331110367d15765cbe2179ee739a5d06ab2e204bd5d9611d49d
|
7
|
+
data.tar.gz: 8cdb059504e57b1c5c94c4380f3a966f13ee612360232c6e3c109b0ff2a9a912f21c7c5d5ae69729c7e1da957670cf369cc5a493e5f6cc409286cdc570453669
|
@@ -61,12 +61,22 @@ def fixup_libtinfo
|
|
61
61
|
"LD_LIBRARY_PATH='#{File.expand_path('gemdir')}:#{ENV['LD_LIBRARY_PATH']}"
|
62
62
|
end
|
63
63
|
|
64
|
+
def libv8_gem_name
|
65
|
+
is_musl = false
|
66
|
+
begin
|
67
|
+
is_musl = !!(File.read('/proc/self/maps') =~ /ld-musl-x86_64/)
|
68
|
+
rescue; end
|
69
|
+
|
70
|
+
is_musl ? 'libv8-alpine' : 'libv8'
|
71
|
+
end
|
72
|
+
|
64
73
|
LIBV8_VERSION = '6.7.288.46.1'
|
65
74
|
libv8_rb = Dir.glob('**/libv8.rb').first
|
66
75
|
FileUtils.mkdir_p('gemdir')
|
67
76
|
unless libv8_rb
|
68
|
-
|
69
|
-
|
77
|
+
gem_name = libv8_gem_name
|
78
|
+
puts "Will try downloading #{gem_name} gem, version #{LIBV8_VERSION}"
|
79
|
+
`#{fixup_libtinfo} gem install --version '= #{LIBV8_VERSION}' --install-dir gemdir #{gem_name}`
|
70
80
|
unless $?.success?
|
71
81
|
warn <<EOS
|
72
82
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sq_mini_racer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.sqreen2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|