execjs 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/execjs/runtimes.rb +5 -9
- data/lib/execjs/version.rb +1 -1
- metadata +12 -16
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ff1e76a0b04b0709b9e703a51640e373f99616d4
|
4
|
+
data.tar.gz: dcb947f263e5f14d917913e490ae6f52e729f79c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d43cebabe981825b7f2c7f95719fb6d5c8dc411eec367c1b4c8f502e8a45bd644d97c77b53305f9df0ae354db02701caefdb4875795aef8815416277d34e5c87
|
7
|
+
data.tar.gz: d1e5dc19e4cc71334274c094017843b5cd35ae126c6a0077b9e16adf157568311d5e0c2683ce4ed0b20c22bf5ea1426b8bd4fea6991061e2bff6ba5b9e0feacd
|
data/lib/execjs/runtimes.rb
CHANGED
@@ -55,15 +55,11 @@ module ExecJS
|
|
55
55
|
|
56
56
|
def self.from_environment
|
57
57
|
if name = ENV["EXECJS_RUNTIME"]
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
end
|
64
|
-
elsif !name.empty?
|
65
|
-
raise RuntimeUnavailable, "#{name} runtime is not defined"
|
66
|
-
end
|
58
|
+
raise RuntimeUnavailable, "#{name} runtime is not defined" unless const_defined?(name)
|
59
|
+
runtime = const_get(name)
|
60
|
+
|
61
|
+
raise RuntimeUnavailable, "#{runtime.name} runtime is not available on this system" unless runtime.available?
|
62
|
+
runtime
|
67
63
|
end
|
68
64
|
end
|
69
65
|
|
data/lib/execjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: execjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
5
|
-
prerelease:
|
4
|
+
version: 2.5.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sam Stephenson
|
@@ -10,22 +9,20 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rake
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - ">="
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '0'
|
23
21
|
type: :development
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - ">="
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: '0'
|
31
28
|
description: ExecJS lets you run JavaScript code from Ruby.
|
@@ -36,8 +33,9 @@ executables: []
|
|
36
33
|
extensions: []
|
37
34
|
extra_rdoc_files: []
|
38
35
|
files:
|
39
|
-
- README.md
|
40
36
|
- LICENSE
|
37
|
+
- README.md
|
38
|
+
- lib/execjs.rb
|
41
39
|
- lib/execjs/disabled_runtime.rb
|
42
40
|
- lib/execjs/duktape_runtime.rb
|
43
41
|
- lib/execjs/encoding.rb
|
@@ -53,30 +51,28 @@ files:
|
|
53
51
|
- lib/execjs/support/node_runner.js
|
54
52
|
- lib/execjs/support/spidermonkey_runner.js
|
55
53
|
- lib/execjs/version.rb
|
56
|
-
- lib/execjs.rb
|
57
54
|
homepage: https://github.com/rails/execjs
|
58
55
|
licenses:
|
59
56
|
- MIT
|
57
|
+
metadata: {}
|
60
58
|
post_install_message:
|
61
59
|
rdoc_options: []
|
62
60
|
require_paths:
|
63
61
|
- lib
|
64
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
63
|
requirements:
|
67
|
-
- -
|
64
|
+
- - ">="
|
68
65
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
66
|
+
version: 1.9.3
|
70
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
68
|
requirements:
|
73
|
-
- -
|
69
|
+
- - ">="
|
74
70
|
- !ruby/object:Gem::Version
|
75
71
|
version: '0'
|
76
72
|
requirements: []
|
77
73
|
rubyforge_project:
|
78
|
-
rubygems_version:
|
74
|
+
rubygems_version: 2.4.5
|
79
75
|
signing_key:
|
80
|
-
specification_version:
|
76
|
+
specification_version: 4
|
81
77
|
summary: Run JavaScript code from Ruby
|
82
78
|
test_files: []
|