diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0db3dc6 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/readme.md b/README.md similarity index 82% rename from readme.md rename to README.md index 3e6159c..5d1ca3f 100644 --- a/readme.md +++ b/README.md @@ -30,4 +30,14 @@ A longer example, demonstrating how to invoke the CoffeeScript compiler: context = ExecJS.compile(source) 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. diff --git a/execjs.gemspec b/execjs.gemspec index 1a194e7..db1d3b6 100644 --- a/execjs.gemspec +++ b/execjs.gemspec @@ -1,29 +1,34 @@ Gem::Specification.new do |s| - s.name = "execjs" - s.version = "0.0.0" - s.date = "2011-02-06" + s.name = "execjs" + s.version = "0.1.0" + s.date = "2011-03-10" s.homepage = "https://github.com/sstephenson/execjs" - s.summary = "Run JavaScript from Ruby" + s.summary = "Run JavaScript code from Ruby" s.description = <<-EOS ExecJS lets you run JavaScript code from Ruby. EOS 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/basic_runner.js", + "lib/execjs/support/jscript_runner.js", + "lib/execjs/support/json2.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 "therubyrhino" - s.authors = ["Sam Stephenson"] - s.email = "sstephenson@gmail.com" + s.authors = ["Sam Stephenson", "Josh Peek"] + s.email = ["sstephenson@gmail.com", "josh@joshpeek.com"] s.rubyforge_project = "execjs" end