sq_mini_racer 0.2.0.sqreen2 → 0.2.2.sqreen1

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: e409bae14ac522d688cdeb37b7449b3237e14242f26ad3df53b0fa797e4ebfd9
4
- data.tar.gz: 496edb7fe8c6a31209306217cfe43840c5da4d68ca33f1d91bfbb9e3218d6125
3
+ metadata.gz: 2388fbdf349b6dc821f8fee1544897c665937ffdf6ca452edb764bc2b02c0a8c
4
+ data.tar.gz: 1a45c8d01045d5b19aec9f8552cc83b180e8c1bc1be71490d66454c3cc813525
5
5
  SHA512:
6
- metadata.gz: 10f43f6001da142ad0790109ea43981aee150f31db0ffd205101829ce77ccc6ff7f5f493fefcb331110367d15765cbe2179ee739a5d06ab2e204bd5d9611d49d
7
- data.tar.gz: 8cdb059504e57b1c5c94c4380f3a966f13ee612360232c6e3c109b0ff2a9a912f21c7c5d5ae69729c7e1da957670cf369cc5a493e5f6cc409286cdc570453669
6
+ metadata.gz: 861c0d99cfac530b4efd36b4ed4eef2722864bf12c43edf2586dfc8996ddbf1beb79bc268d6c18d41368f602deae62a0afde7153acc7de142acdabcb64dee130
7
+ data.tar.gz: 0b10a3d0a8c3ef990af843ff244a33da0c4ed809f5ffdfcc6f36e8e669d750a3bba76eb512773e26eee18ff335c5ff1a43d602fb9a3341e671e528d9dac7d682
data/CHANGELOG CHANGED
@@ -1,3 +1,17 @@
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
10
+
11
+ - 0.2.1
12
+
13
+ - FEATURE: Mojave macOS support
14
+
1
15
  - 06-07-2018
2
16
 
3
17
  - 0.2.0
@@ -1,18 +1,31 @@
1
1
  require 'mkmf'
2
2
  require 'fileutils'
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
14
  $CPPFLAGS += " -fno-omit-frame-pointer"
13
- $CPPFLAGS += " -Wno-reserved-user-defined-literal" if RUBY_PLATFORM =~ /darwin/
14
15
 
15
- $LDFLAGS.insert 0, $1.to_i < 18 ? " -stdlib=libstdc++ " : " -stdlib=libc++ " if RUBY_PLATFORM =~ /darwin(\d+)/
16
+ $CPPFLAGS += " -Wno-reserved-user-defined-literal" if IS_DARWIN
17
+
18
+ MAC_OS_VERSION = begin
19
+ if IS_DARWIN
20
+ # note, RUBY_PLATFORM is hardcoded on compile, it can not be trusted
21
+ # sw_vers can be trusted so use it
22
+ `sw_vers -productVersion`.to_f rescue 0.0
23
+ else
24
+ 0.0
25
+ end
26
+ end
27
+
28
+ $LDFLAGS.insert 0, MAC_OS_VERSION < 10.14 ? " -stdlib=libstdc++ " : " -stdlib=libc++ " if IS_DARWIN
16
29
 
17
30
  if ENV['CXX']
18
31
  puts "SETTING CXX"
@@ -41,7 +54,7 @@ installing GCC 4.8. See mini_racer's README.md for more information.
41
54
  EOS
42
55
  end
43
56
 
44
- CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/
57
+ CONFIG['LDSHARED'] = '$(CXX) -shared' unless IS_DARWIN
45
58
  if CONFIG['warnflags']
46
59
  CONFIG['warnflags'].gsub!('-Wdeclaration-after-statement', '')
47
60
  CONFIG['warnflags'].gsub!('-Wimplicit-function-declaration', '')
@@ -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.sqreen2"
5
+ VERSION = "0.2.2.sqreen1"
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.sqreen2
4
+ version: 0.2.2.sqreen1
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-20 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler