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: 8e20539790e64f4295e6e1e09a4e1acf6b4220b7c706886fb8411f4aa27318ba
4
- data.tar.gz: d8e1504d61888f9fbc486362b497540b4f8d2ecb97e568039dd2ad221d5ff44a
3
+ metadata.gz: da4cace43c9af136e8d30f3918dbd99af25f72fd904d7db9a888a843925000ba
4
+ data.tar.gz: 3f234d5dafea154baa80d0a459bcff351cb0c0d01ed2604b293bd22756809303
5
5
  SHA512:
6
- metadata.gz: 80df85cc03fd5ce85da08699bdc9e7d384b0be879c5cce96044a35db5e63e11483b8e60808d3433e6734573458477ac432a7abe347d816ef38049f36818adc25
7
- data.tar.gz: cd5d54e082237ee0b06b6d98bff69a9f671a94d8ab827550b691d0edf5c4e4a932a173b1b7b5f4dde9f4cc6b89aafeda8f36f8b70a28bb0ebaac1390f101da40
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
- return 'gem' if gem_version.to_f.zero? || gem_version.to_f >= 2.3
93
- return 'gem' if RUBY_PLATFORM != 'x86_64-linux'
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.reject! { |it| it == 'ruby' }
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
@@ -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.4.sqreen2"
5
+ VERSION = "0.2.4.sqreen3"
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.4.sqreen2
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-01-16 00:00:00.000000000 Z
11
+ date: 2019-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler