mini_racer 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +11 -1
- data/ext/mini_racer_extension/extconf.rb +18 -5
- data/lib/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: e498e679684d916c4cd020b5cfeca2df73fcfb3312de1b02830e129a5f699283
|
4
|
+
data.tar.gz: aa4268ae8aa36b72b3f8efaaf495a6bb76224a6d4194be3b98dbc6efe53f9022
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 854ed68afe4ae2be85603064a73aac8a8548b895880339eec622fd82f6b9c9a5f6857f43aa3b945f2b4ab5728cb47474bc2aa5b6c30c116e9636bb5a77158702
|
7
|
+
data.tar.gz: dcfef64f8e846d39eff4e9479f86d266b980a0525a3472a3235250ac8dc204e486acef109bd8313819a4a063e1fdf6f008c5fb13b4949fd6305b3e6f2e5c8192
|
data/CHANGELOG
CHANGED
@@ -1,9 +1,19 @@
|
|
1
|
-
-
|
1
|
+
- 26-09-2018
|
2
|
+
|
3
|
+
- 0.2.2
|
4
|
+
|
5
|
+
- WORKAROUND: RUBY_PLATFORM is hardcoded on Ruby compile and can not be
|
6
|
+
trusted for feature detection, use a different technique when checking for
|
7
|
+
macOS Mojave
|
8
|
+
|
9
|
+
- 25-09-2018
|
2
10
|
|
3
11
|
- 0.2.1
|
4
12
|
|
5
13
|
- FEATURE: Mojave macOS support
|
6
14
|
|
15
|
+
- 06-07-2018
|
16
|
+
|
7
17
|
- 0.2.0
|
8
18
|
- FEATURE: context#call to allow for cheaper invocation of functions
|
9
19
|
- FIX: rare memory leak when terminating a long running attached function
|
@@ -1,17 +1,30 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
require 'libv8'
|
3
3
|
|
4
|
+
IS_DARWIN = RUBY_PLATFORM =~ /darwin/
|
5
|
+
|
4
6
|
have_library('pthread')
|
5
|
-
have_library('objc') if
|
7
|
+
have_library('objc') if IS_DARWIN
|
6
8
|
$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
|
7
9
|
$CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g"
|
8
10
|
$CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic"
|
9
|
-
$CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or
|
11
|
+
$CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or IS_DARWIN
|
10
12
|
$CPPFLAGS += " -std=c++0x"
|
11
13
|
$CPPFLAGS += " -fpermissive"
|
12
|
-
$CPPFLAGS += " -Wno-reserved-user-defined-literal" if RUBY_PLATFORM =~ /darwin/
|
13
14
|
|
14
|
-
$
|
15
|
+
$CPPFLAGS += " -Wno-reserved-user-defined-literal" if IS_DARWIN
|
16
|
+
|
17
|
+
MAC_OS_VERSION = begin
|
18
|
+
if IS_DARWIN
|
19
|
+
# note, RUBY_PLATFORM is hardcoded on compile, it can not be trusted
|
20
|
+
# sw_vers can be trusted so use it
|
21
|
+
`sw_vers -productVersion`.to_f rescue 0.0
|
22
|
+
else
|
23
|
+
0.0
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
$LDFLAGS.insert 0, MAC_OS_VERSION < 10.14 ? " -stdlib=libstdc++ " : " -stdlib=libc++ " if IS_DARWIN
|
15
28
|
|
16
29
|
if ENV['CXX']
|
17
30
|
puts "SETTING CXX"
|
@@ -40,7 +53,7 @@ installing GCC 4.8. See mini_racer's README.md for more information.
|
|
40
53
|
EOS
|
41
54
|
end
|
42
55
|
|
43
|
-
CONFIG['LDSHARED'] = '$(CXX) -shared' unless
|
56
|
+
CONFIG['LDSHARED'] = '$(CXX) -shared' unless IS_DARWIN
|
44
57
|
if CONFIG['warnflags']
|
45
58
|
CONFIG['warnflags'].gsub!('-Wdeclaration-after-statement', '')
|
46
59
|
CONFIG['warnflags'].gsub!('-Wimplicit-function-declaration', '')
|
data/lib/mini_racer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_racer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|