1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00
therubyrhino/Rakefile
2010-08-10 12:16:14 -05:00

36 lines
1 KiB
Ruby

require 'rubygems'
require './lib/rhino'
Gem::Specification.new do |gemspec|
$gemspec = gemspec
gemspec.name = gemspec.rubyforge_project = "therubyrhino"
gemspec.version = Rhino::VERSION
gemspec.summary = "Embed the Rhino JavaScript interpreter into JRuby"
gemspec.description = "Call javascript code and manipulate javascript objects from ruby. Call ruby code and manipulate ruby objects from javascript."
gemspec.email = "cowboyd@thefrontside.net"
gemspec.homepage = "http://github.com/cowboyd/therubyrhino"
gemspec.authors = ["Charles Lowell"]
gemspec.extra_rdoc_files = ["README.rdoc"]
gemspec.files = Rake::FileList.new("**/*").tap do |manifest|
manifest.exclude "*.gem"
end
end
desc "Build gem"
task :gem => :gemspec do
Gem::Builder.new($gemspec).build
end
desc "build the gemspec"
task :gemspec => :clean do
File.open("#{$gemspec.name}.gemspec", "w") do |f|
f.write($gemspec.to_ruby)
end
end
task :clean do
sh "rm -rf *.gem"
end
for file in Dir['tasks/*.rake']
load file
end