therubyracer 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of therubyracer might be problematic. Click here for more details.

@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.3 2013/01/16
4
+
5
+ * ensure that libv8 is required from rubygems where possible.
6
+
3
7
  ## 0.11.2 2013/01/11
4
8
 
5
9
  * move dependency on libv8 pass corrupted versions (Workaround)
@@ -1,5 +1,4 @@
1
1
  require 'mkmf'
2
- require File.expand_path '../build', __FILE__
3
2
 
4
3
  have_library('pthread')
5
4
  have_library('objc') if RUBY_PLATFORM =~ /darwin/
@@ -17,13 +16,19 @@ if enable_config('debug')
17
16
  $CFLAGS += " -O0 -ggdb3"
18
17
  end
19
18
 
19
+ LIBV8_COMPATIBILITY = '~> 3.11.8'
20
+
20
21
  begin
21
- require 'libv8'
22
+ require 'rubygems'
23
+ gem 'libv8', LIBV8_COMPATIBILITY
24
+ rescue Gem::LoadError
25
+ warn "Warning! Selecting libv8 #{LIBV8_COMPATIBILITY} failed. Has it been added to the gemspec?"
22
26
  rescue LoadError
23
- require 'rubygems'
24
- gem 'libv8'
25
- require 'libv8'
27
+ warn "Warning! Could not load rubygems. Please make sure you have libv8 #{LIBV8_COMPATIBILITY} installed."
28
+ ensure
29
+ require 'libv8'
26
30
  end
31
+
27
32
  Libv8.configure_makefile
28
33
 
29
34
  create_makefile('v8/init')
@@ -1,3 +1,3 @@
1
1
  module V8
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: therubyracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-11 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ref
@@ -62,7 +62,6 @@ files:
62
62
  - ext/v8/accessor.cc
63
63
  - ext/v8/array.cc
64
64
  - ext/v8/backref.cc
65
- - ext/v8/build.rb
66
65
  - ext/v8/constants.cc
67
66
  - ext/v8/constraints.cc
68
67
  - ext/v8/context.cc
@@ -157,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
156
  version: '0'
158
157
  segments:
159
158
  - 0
160
- hash: -3161234430737425205
159
+ hash: -327768838517309864
161
160
  required_rubygems_version: !ruby/object:Gem::Requirement
162
161
  none: false
163
162
  requirements:
@@ -166,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
165
  version: '0'
167
166
  segments:
168
167
  - 0
169
- hash: -3161234430737425205
168
+ hash: -327768838517309864
170
169
  requirements: []
171
170
  rubyforge_project:
172
171
  rubygems_version: 1.8.24
@@ -1,52 +0,0 @@
1
-
2
- LIBV8_COMPATIBILITY = '~> 3.11.8'
3
-
4
- def have_rubygem_libv8?
5
- require 'rubygems'
6
- gem 'libv8', LIBV8_COMPATIBILITY
7
- require 'libv8'
8
- return true
9
- rescue Gem::LoadError
10
- return false
11
- rescue LoadError
12
- return false
13
- end
14
-
15
- def build_with_system_libv8
16
- dir_config('v8')
17
- find_header('v8.h') or begin
18
- puts <<-EOS
19
- The Ruby Racer requires libv8 #{LIBV8_COMPATIBILITY}
20
- to be present on your system in order to compile
21
- and link, but it could not be found.
22
-
23
- In order to resolve this, you will either need to manually
24
- install an appropriate libv8 and make sure that this
25
- build process can find it. If you install it into the
26
- standard system path, then it should just be picked up
27
- automatically. Otherwise, you'll have to pass some extra
28
- flags to the build process as a hint.
29
-
30
- If you don't want to bother with all that, there is a
31
- rubygem that will do all this for you. You can add
32
- following line to your Gemfile:
33
- gem 'libv8', '#{LIBV8_COMPATIBILITY}'
34
-
35
- We hope that helps, and we apologize, but now we have
36
- to push the eject button on this install.
37
-
38
- thanks,
39
- The Mgmt.
40
-
41
- EOS
42
- raise "unable to locate libv8. Please see output for details"
43
- end
44
- $LDFLAGS << " -lv8 "
45
- end
46
-
47
- def build_with_rubygem_libv8
48
- require 'libv8'
49
- include Libv8
50
- $INCFLAGS.insert 0, "#{libv8_include_flags} "
51
- $LDFLAGS.insert 0, libv8_objects.join(' ') + " "
52
- end