sq_mini_racer 0.2.4.sqreen2 → 0.2.4.sqreen3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da4cace43c9af136e8d30f3918dbd99af25f72fd904d7db9a888a843925000ba
|
4
|
+
data.tar.gz: 3f234d5dafea154baa80d0a459bcff351cb0c0d01ed2604b293bd22756809303
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b461007d884a961d3b081ceac7c5d815477d3993ced64f108ae078ede7d54318a0a3aa3b504431b50d6b7167ea4f0ac592f097406e31c35cd184bb25e84ac6b
|
7
|
+
data.tar.gz: a8e76f1ddd78a6578aaa35424f87ffce467065cf1b981af9673a6a7e01d5c6e0263161eaa68f1263acffd20e400ae0453a9a388cc0735d7d75b539f6d2973b09
|
@@ -82,15 +82,19 @@ def libv8_gem_name
|
|
82
82
|
is_musl ? 'libv8-alpine' : 'libv8'
|
83
83
|
end
|
84
84
|
|
85
|
-
# old rubygem versions prefer source gems to binary ones
|
85
|
+
# 1) old rubygem versions prefer source gems to binary ones
|
86
86
|
# ... and their --platform switch is broken too, as it leaves the 'ruby'
|
87
87
|
# platform in Gem.platforms.
|
88
|
+
# 2) the ruby binaries distributed with alpine (platform ending in -musl)
|
89
|
+
# refuse to load binary gems by default
|
88
90
|
def force_platform_gem
|
89
91
|
gem_version = `gem --version`
|
90
92
|
return 'gem' unless $?.success?
|
91
93
|
|
92
|
-
|
93
|
-
|
94
|
+
if RUBY_PLATFORM != 'x86_64-linux-musl'
|
95
|
+
return 'gem' if gem_version.to_f.zero? || gem_version.to_f >= 2.3
|
96
|
+
return 'gem' if RUBY_PLATFORM != 'x86_64-linux'
|
97
|
+
end
|
94
98
|
|
95
99
|
gem_binary = `which gem`
|
96
100
|
return 'gem' unless $?.success?
|
@@ -105,7 +109,12 @@ def force_platform_gem
|
|
105
109
|
file = Tempfile.new('sq_mini_racer')
|
106
110
|
file << <<EOS
|
107
111
|
require 'rubygems'
|
108
|
-
Gem.platforms
|
112
|
+
platforms = Gem.platforms
|
113
|
+
platforms.reject! { |it| it == 'ruby' }
|
114
|
+
if platforms.empty?
|
115
|
+
platforms << Gem::Platform.new('x86_64-linux')
|
116
|
+
end
|
117
|
+
Gem.send(:define_method, :platforms) { platforms }
|
109
118
|
#{IO.read(gem_binary.strip)}
|
110
119
|
EOS
|
111
120
|
file.close
|
@@ -8,8 +8,18 @@
|
|
8
8
|
# undef HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P
|
9
9
|
# undef HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P
|
10
10
|
|
11
|
-
#include <ruby.h>
|
12
11
|
#include <ruby/version.h>
|
12
|
+
|
13
|
+
// workaround for Ruby 2.3.0 on macOS
|
14
|
+
#if RUBY_API_VERSION_CODE == 20300
|
15
|
+
#ifdef _DARWIN_C_SOURCE
|
16
|
+
#ifndef __STDC_LIB_EXT1__
|
17
|
+
#undef HAVE_MEMSET_S
|
18
|
+
#endif
|
19
|
+
#endif
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#include <ruby.h>
|
13
23
|
#if RUBY_API_VERSION_MAJOR > 1
|
14
24
|
#include <ruby/thread.h>
|
15
25
|
#endif
|
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.4.
|
4
|
+
version: 0.2.4.sqreen3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|