mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
ExecJS 0.1.0
This commit is contained in:
parent
608086f092
commit
02ae49735a
3 changed files with 48 additions and 12 deletions
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
Copyright (c) 2011 Sam Stephenson
|
||||||
|
Copyright (c) 2011 Josh Peek
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -30,4 +30,14 @@ A longer example, demonstrating how to invoke the CoffeeScript compiler:
|
||||||
|
|
||||||
context = ExecJS.compile(source)
|
context = ExecJS.compile(source)
|
||||||
context.call("CoffeeScript.compile", "square = (x) -> x * x", :bare => true)
|
context.call("CoffeeScript.compile", "square = (x) -> x * x", :bare => true)
|
||||||
# => var square;\nsquare = function(x) {\n return x * x;\n};"
|
# => "var square;\nsquare = function(x) {\n return x * x;\n};"
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
$ gem install execjs
|
||||||
|
|
||||||
|
# License
|
||||||
|
|
||||||
|
Copyright (c) 2011 Sam Stephenson and Josh Peek.
|
||||||
|
|
||||||
|
Released under the MIT license. See `LICENSE` for details.
|
|
@ -1,29 +1,34 @@
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "execjs"
|
s.name = "execjs"
|
||||||
s.version = "0.0.0"
|
s.version = "0.1.0"
|
||||||
s.date = "2011-02-06"
|
s.date = "2011-03-10"
|
||||||
|
|
||||||
s.homepage = "https://github.com/sstephenson/execjs"
|
s.homepage = "https://github.com/sstephenson/execjs"
|
||||||
s.summary = "Run JavaScript from Ruby"
|
s.summary = "Run JavaScript code from Ruby"
|
||||||
s.description = <<-EOS
|
s.description = <<-EOS
|
||||||
ExecJS lets you run JavaScript code from Ruby.
|
ExecJS lets you run JavaScript code from Ruby.
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
s.files = [
|
s.files = [
|
||||||
"lib/execjs.rb",
|
|
||||||
"lib/execjs/external_runtime.rb",
|
|
||||||
"lib/execjs/rhino_runtime.rb",
|
|
||||||
"lib/execjs/runtimes.rb",
|
|
||||||
"lib/execjs/support",
|
"lib/execjs/support",
|
||||||
"lib/execjs/support/basic_runner.js",
|
"lib/execjs/support/basic_runner.js",
|
||||||
|
"lib/execjs/support/jscript_runner.js",
|
||||||
|
"lib/execjs/support/json2.js",
|
||||||
"lib/execjs/support/node_runner.js",
|
"lib/execjs/support/node_runner.js",
|
||||||
"lib/execjs/v8_runtime.rb"
|
"lib/execjs/support/which.bat",
|
||||||
|
"lib/execjs/external_runtime.rb",
|
||||||
|
"lib/execjs/ruby_racer_runtime.rb",
|
||||||
|
"lib/execjs/ruby_rhino_runtime.rb",
|
||||||
|
"lib/execjs/runtimes.rb",
|
||||||
|
"lib/execjs.rb",
|
||||||
|
"LICENSE",
|
||||||
|
"README.md"
|
||||||
]
|
]
|
||||||
|
|
||||||
s.add_development_dependency "therubyracer"
|
s.add_development_dependency "therubyracer"
|
||||||
s.add_development_dependency "therubyrhino"
|
s.add_development_dependency "therubyrhino"
|
||||||
|
|
||||||
s.authors = ["Sam Stephenson"]
|
s.authors = ["Sam Stephenson", "Josh Peek"]
|
||||||
s.email = "sstephenson@gmail.com"
|
s.email = ["sstephenson@gmail.com", "josh@joshpeek.com"]
|
||||||
s.rubyforge_project = "execjs"
|
s.rubyforge_project = "execjs"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue