mini_racer 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 984efcfd27c4d0ef160fb551d9ab0f90f52eade1d88be6f194d0dde113e77364
4
- data.tar.gz: a467a5d1664556dfa801afecd736d1937109350a1d5ff1ab3428211d37f7e72d
3
+ metadata.gz: e498e679684d916c4cd020b5cfeca2df73fcfb3312de1b02830e129a5f699283
4
+ data.tar.gz: aa4268ae8aa36b72b3f8efaaf495a6bb76224a6d4194be3b98dbc6efe53f9022
5
5
  SHA512:
6
- metadata.gz: 698337441ba8d662e000d4b597c2440da78ed4ecd7c68dac02e8af0b542c8b3861e13bd7df45efa9fece2e20c7a4c1243a3c3c1fc0b0730eb30516ccca4aa04f
7
- data.tar.gz: d7c62ccb1ece943ff1c04e608552c76c1de392accff4067e60ace04047b8236d7526b3c0c9764d1c790c62c0c3196cc1e9cc853b3137a00a7a156422f39d1ad9
6
+ metadata.gz: 854ed68afe4ae2be85603064a73aac8a8548b895880339eec622fd82f6b9c9a5f6857f43aa3b945f2b4ab5728cb47474bc2aa5b6c30c116e9636bb5a77158702
7
+ data.tar.gz: dcfef64f8e846d39eff4e9479f86d266b980a0525a3472a3235250ac8dc204e486acef109bd8313819a4a063e1fdf6f008c5fb13b4949fd6305b3e6f2e5c8192
data/CHANGELOG CHANGED
@@ -1,9 +1,19 @@
1
- - 06-07-2018
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 RUBY_PLATFORM =~ /darwin/
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 RUBY_PLATFORM =~ /darwin/
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
- $LDFLAGS.insert 0, $1.to_i < 18 ? " -stdlib=libstdc++ " : " -stdlib=libc++ " if RUBY_PLATFORM =~ /darwin(\d+)/
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 RUBY_PLATFORM =~ /darwin/
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', '')
@@ -1,3 +1,3 @@
1
1
  module MiniRacer
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-24 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler