mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Proper capitalization for SpiderMonkey
This commit is contained in:
parent
b1eb16bd58
commit
606743840f
2 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@ ExecJS supports these runtimes:
|
|||
embedded within Ruby
|
||||
* [Node.js](http://nodejs.org/)
|
||||
* Apple JavaScriptCore - Included with Mac OS X
|
||||
* [Mozilla Spidermonkey](http://www.mozilla.org/js/spidermonkey/)
|
||||
* [Mozilla SpiderMonkey](http://www.mozilla.org/js/spidermonkey/)
|
||||
* [Microsoft Windows Script Host](http://msdn.microsoft.com/en-us/library/9bbdkx3k.aspx) (JScript)
|
||||
|
||||
A short example:
|
||||
|
|
|
@ -28,8 +28,8 @@ module ExecJS
|
|||
:conversion => { :from => "ISO8859-1", :to => "UTF-8" }
|
||||
)
|
||||
|
||||
Spidermonkey = ExternalRuntime.new(
|
||||
:name => "Spidermonkey",
|
||||
SpiderMonkey = Spidermonkey = ExternalRuntime.new(
|
||||
:name => "SpiderMonkey",
|
||||
:command => "js",
|
||||
:runner_path => ExecJS.root + "/support/basic_runner.js"
|
||||
)
|
||||
|
@ -57,7 +57,7 @@ module ExecJS
|
|||
if runtime.available?
|
||||
runtime if runtime.available?
|
||||
else
|
||||
raise RuntimeUnavailable, "#{name} runtime is not available on this system"
|
||||
raise RuntimeUnavailable, "#{runtime.name} runtime is not available on this system"
|
||||
end
|
||||
elsif !name.empty?
|
||||
raise RuntimeUnavailable, "#{name} runtime is not defined"
|
||||
|
@ -66,7 +66,7 @@ module ExecJS
|
|||
end
|
||||
|
||||
def self.names
|
||||
constants
|
||||
@names ||= constants.inject({}) { |h, name| h.merge(const_get(name) => name) }.values
|
||||
end
|
||||
|
||||
def self.runtimes
|
||||
|
@ -77,7 +77,7 @@ module ExecJS
|
|||
Mustang,
|
||||
Node,
|
||||
JavaScriptCore,
|
||||
Spidermonkey,
|
||||
SpiderMonkey,
|
||||
JScript
|
||||
]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue