therubyracer 0.9.0beta5 → 0.9.0beta6

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.

data/lib/v8/error.rb CHANGED
@@ -8,9 +8,12 @@ module V8
8
8
  begin
9
9
  super(initialize_unsafe(try))
10
10
  rescue Exception => e
11
- @boundaries = Boundary.new(:rbframes => e.backtrace)
11
+ @boundaries = [Boundary.new(:rbframes => e.backtrace)]
12
12
  @value = e
13
- super("BUG! please report. JSError#initialize failed!: #{e.message}")
13
+ super(<<-EOMSG)
14
+ You have uncovered what is probably a BUG in therubyracer exception code. An error report would be very helpful.
15
+ JSError#initialize failed!: #{e.message}"
16
+ EOMSG
14
17
  end
15
18
  end
16
19
 
@@ -93,8 +96,8 @@ module V8
93
96
  raw = @to.rb(try.StackTrace())
94
97
  if raw && !raw.empty? && !syntax_error?(try)
95
98
  raw.split("\n")[1..-1].tap do |frames|
96
- frames.each {|frame| frame.strip!.chomp!(",")}
97
- end
99
+ frames.each {|frame| frame.strip!; frame.chomp!(",")}
100
+ end.reject(&:empty?)
98
101
  else
99
102
  msg = try.Message()
100
103
  ["at #{@to.rb(msg.GetScriptResourceName())}:#{msg.GetLineNumber()}:#{msg.GetStartColumn() + 1}"]
data/lib/v8/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module V8
2
- VERSION = "0.9.0beta5"
2
+ VERSION = "0.9.0beta6"
3
3
  end
data/therubyracer.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
 
24
24
  s.add_dependency "libv8", "~> 3.3.10"
25
25
 
26
- s.add_development_dependency "rake", "~> 0.8.7"
27
- s.add_development_dependency "rspec", ">= 2.0.0"
26
+ s.add_development_dependency "rake", "~> 0.9.1"
27
+ s.add_development_dependency "rspec", "~> 2.0"
28
28
  s.add_development_dependency "rake-compiler"
29
29
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: therubyracer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196281
4
+ hash: 62196287
5
5
  prerelease: 5
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 0
10
10
  - beta
11
- - 5
12
- version: 0.9.0beta5
11
+ - 6
12
+ version: 0.9.0beta6
13
13
  platform: ruby
14
14
  authors:
15
15
  - Charles Lowell
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-05-31 00:00:00 -05:00
21
+ date: 2011-06-01 00:00:00 -05:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
@@ -44,12 +44,12 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- hash: 49
47
+ hash: 57
48
48
  segments:
49
49
  - 0
50
- - 8
51
- - 7
52
- version: 0.8.7
50
+ - 9
51
+ - 1
52
+ version: 0.9.1
53
53
  version_requirements: *id002
54
54
  name: rake
55
55
  prerelease: false
@@ -58,14 +58,13 @@ dependencies:
58
58
  requirement: &id003 !ruby/object:Gem::Requirement
59
59
  none: false
60
60
  requirements:
61
- - - ">="
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
- hash: 15
63
+ hash: 3
64
64
  segments:
65
65
  - 2
66
66
  - 0
67
- - 0
68
- version: 2.0.0
67
+ version: "2.0"
69
68
  version_requirements: *id003
70
69
  name: rspec
71
70
  prerelease: false