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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a010990276efa739860b4b19a2c5e037e6d992f8a65867b56c08b10211f7e560
4
- data.tar.gz: 33dfdc7ae3752a4ad5c1c21dd55a52c4f754bde98ddb98ed52fed20f3ac07606
3
+ metadata.gz: e409bae14ac522d688cdeb37b7449b3237e14242f26ad3df53b0fa797e4ebfd9
4
+ data.tar.gz: 496edb7fe8c6a31209306217cfe43840c5da4d68ca33f1d91bfbb9e3218d6125
5
5
  SHA512:
6
- metadata.gz: 7a85eeee2c11b9b702d560aa81c831636dc2d70822aea97ba348e6f5e0d8fc78b1531b27ca95603a20388fa89e8af977b975d1379589021e8c208d88e60df8fc
7
- data.tar.gz: 89c67dbf9847fb677eae299f82577f55a62acde10f10555a4ee874a959d09541783b08646a8b6d890a024fc54fa9d37b1cd59bf3ccfc0b7cc6d79182badaf212
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
- puts "Will try downloading libv8 gem, version #{LIBV8_VERSION}"
69
- `#{fixup_libtinfo} gem install --version '= #{LIBV8_VERSION}' --install-dir gemdir libv8`
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
 
@@ -66,7 +66,7 @@ static void *_dln_load(const char *file)
66
66
 
67
67
  INIT_FUNCNAME(&buf, file);
68
68
 
69
- #if defined(__APPLE__) && !defined(RTLD_DEEPBIND)
69
+ #ifndef RTLD_DEEPBIND
70
70
  # define RTLD_DEEPBIND 0
71
71
  #endif
72
72
  /* Load file */
@@ -2,6 +2,6 @@ module Sqreen
2
2
  module MiniRacer
3
3
  # part before qualifier is the number of the last upstream release
4
4
  # since we synced with it
5
- VERSION = "0.2.0.sqreen1"
5
+ VERSION = "0.2.0.sqreen2"
6
6
  end
7
7
  end
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.sqreen1
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-12 00:00:00.000000000 Z
11
+ date: 2018-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler