sq_mini_racer 0.2.0.beta1 → 0.2.0.beta2

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: 2288096de854ca36d63ed01c0901fd4eef5b9a9c0b8c882975d0bb3de0983278
4
- data.tar.gz: ced3d1d34911253004a311d99ab9f94eb2034804ffd85cc32a537f051e6f2afb
3
+ metadata.gz: 65b4056233ba1d99be6825857054e8b9eee2453c46c3e4c6431d2a158814c86c
4
+ data.tar.gz: 64e99c3e4c0377382cbadc36a44ba1492edb7e5d39d3c56078f0cdb2640438a4
5
5
  SHA512:
6
- metadata.gz: 947ba757775b66d43cb156422fc70cf08b105ad8728307317e558023c789b6797d2540fa293fe55c14efb28c4176796d7824bd39a7325707706dfd5499483901
7
- data.tar.gz: 5722647ea94b06e29c0048c96a47906e7007d6e0b621a739cc5695b9d812f0ef710b1bfb3566f19ff3dbdf6634757b0011123e39d5fc9c0601d1c8fa8e074cec
6
+ metadata.gz: 5ae861aaaa02dd06cedadf043799d8949979524c0e6fe8f77222101da8dd03f34300dc98d881f3390f3281842806459ccbd2a8c47660d32b077d8a6f27dec915
7
+ data.tar.gz: 8c52c12fcc7b9de6955a522eee1928ea80af768e3555625bf2f5e5e3aaabfa108ec1af2c1662c0eb36490c4429b909489111115d38dea585b5a5780c5f6f84c9
@@ -1,15 +1,62 @@
1
1
  language: ruby
2
- rvm:
3
- - 1.9
4
- - 2.0
5
- - 2.1
6
- - 2.2
7
- - 2.3
8
- - 2.4
9
- - 2.5
10
- - ruby-head
11
- dist: trusty
12
- sudo: true
2
+ matrix:
3
+ include:
4
+ - os: linux
5
+ dist: trusty
6
+ sudo: true
7
+ rvm: 1.9
8
+ - os: linux
9
+ dist: trusty
10
+ sudo: true
11
+ rvm: 2.0
12
+ - os: linux
13
+ dist: trusty
14
+ sudo: true
15
+ rvm: 2.1
16
+ - os: linux
17
+ dist: trusty
18
+ sudo: true
19
+ rvm: 2.2
20
+ - os: linux
21
+ dist: trusty
22
+ sudo: true
23
+ rvm: 2.3
24
+ - os: linux
25
+ dist: trusty
26
+ sudo: true
27
+ rvm: 2.4
28
+ - os: linux
29
+ dist: trusty
30
+ sudo: true
31
+ rvm: 2.5
32
+ - os: linux
33
+ dist: trusty
34
+ sudo: true
35
+ rvm: ruby-head
36
+ - os: osx
37
+ osx_image: xcode6.4
38
+ rvm: 2.1
39
+ - os: osx
40
+ osx_image: xcode7.3
41
+ rvm: 2.1
42
+ - os: osx
43
+ osx_image: xcode8.3
44
+ rvm: 2.1
45
+ - os: osx
46
+ osx_image: xcode9.4
47
+ rvm: 2.1
48
+ - os: osx
49
+ osx_image: xcode9.4
50
+ rvm: 2.1
51
+ - os: osx
52
+ osx_image: xcode10
53
+ rvm: 1.9
54
+ - os: osx
55
+ osx_image: xcode10
56
+ rvm: 2.3
57
+ - os: osx
58
+ osx_image: xcode10
59
+ rvm: 2.5
13
60
  before_install:
14
61
  - gem update --system
15
62
  - gem install bundler -v 1.16.2
data/Gemfile CHANGED
@@ -1,4 +1,10 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ if ENV['LOAD_MINI_RACER'] == '1'
4
+ gem 'mini_racer'
5
+ elsif ENV['LOAD_THERUBYRACER'] == '1'
6
+ gem 'therubyracer'
7
+ end
8
+
3
9
  # Specify your gem's dependencies in mini_racer.gemspec
4
10
  gemspec
@@ -66,6 +66,9 @@ static void *_dln_load(const char *file)
66
66
 
67
67
  INIT_FUNCNAME(&buf, file);
68
68
 
69
+ #if defined(__APPLE__) && !defined(RTLD_DEEPBIND)
70
+ # define RTLD_DEEPBIND 0
71
+ #endif
69
72
  /* Load file */
70
73
  if ((handle = dlopen(file, RTLD_LAZY|RTLD_LOCAL|RTLD_DEEPBIND)) == NULL) {
71
74
  DLN_ERROR();
@@ -5,11 +5,12 @@ require "prv_ext_loader"
5
5
  require "pathname"
6
6
 
7
7
  module Sqreen
8
+ name = 'sq_mini_racer_extension.' + RbConfig::CONFIG['DLEXT']
8
9
  shlib = $LOAD_PATH
9
- .map { |p| (Pathname.new(p) + 'sq_mini_racer_extension.so') }
10
+ .map { |p| (Pathname.new(p) + name) }
10
11
  .find { |p| p.file? }
11
12
 
12
- raise LoadError, "could not find sq_mini_racer.so" unless shlib
13
+ raise LoadError, "could not find #{name}" unless shlib
13
14
  PrvExtLoader.load shlib.to_s
14
15
 
15
16
  # rubocop:disable IndentationConsistency
@@ -1,5 +1,5 @@
1
1
  module Sqreen
2
2
  module MiniRacer
3
- VERSION = "0.2.0.beta1"
3
+ VERSION = "0.2.0.beta2"
4
4
  end
5
5
  end
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["sam.saffron@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Minimal embedded v8 for Ruby}
13
- spec.description = %q{Minimal embedded v8 engine for Ruby}
14
- spec.homepage = "https://github.com/discourse/mini_racer"
13
+ spec.description = %q{Minimal embedded v8 engine for Ruby (Sqreen's fork)}
14
+ spec.homepage = "https://github.com/sqreen/mini_racer"
15
15
  spec.license = "MIT"
16
16
 
17
17
 
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.beta1
4
+ version: 0.2.0.beta2
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-08-17 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: Minimal embedded v8 engine for Ruby
69
+ description: Minimal embedded v8 engine for Ruby (Sqreen's fork)
70
70
  email:
71
71
  - sam.saffron@gmail.com
72
72
  executables: []
@@ -93,7 +93,7 @@ files:
93
93
  - lib/sqreen/mini_racer.rb
94
94
  - lib/sqreen/mini_racer/version.rb
95
95
  - mini_racer.gemspec
96
- homepage: https://github.com/discourse/mini_racer
96
+ homepage: https://github.com/sqreen/mini_racer
97
97
  licenses:
98
98
  - MIT
99
99
  metadata: {}