execjs 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/execjs.rb +2 -1
  2. metadata +5 -5
@@ -27,7 +27,8 @@ module ExecJS
27
27
  end
28
28
 
29
29
  def self.runtime
30
- @runtime ||= Runtimes.best_available
30
+ @runtime ||= Runtimes.best_available ||
31
+ raise(ExecJS::RuntimeError, "Could not find a JavaScript runtime")
31
32
  end
32
33
 
33
34
  def self.root
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execjs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Stephenson
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-10 00:00:00 -06:00
19
+ date: 2011-03-30 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements: []
101
101
 
102
102
  rubyforge_project: execjs
103
- rubygems_version: 1.4.2
103
+ rubygems_version: 1.5.3
104
104
  signing_key:
105
105
  specification_version: 3
106
106
  summary: Run JavaScript code from Ruby