1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00
therubyrhino/Rakefile

37 lines
1 KiB
Text
Raw Normal View History

2010-05-24 18:04:34 -04:00
require 'rubygems'
require './lib/rhino'
2010-08-10 13:15:04 -04:00
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
2010-05-24 18:04:34 -04:00
2010-08-10 13:15:04 -04:00
desc "Build gem"
task :gem => :gemspec do
Gem::Builder.new($gemspec).build
end
2010-05-24 18:04:34 -04:00
2010-08-10 13:15:04 -04:00
desc "build the gemspec"
task :gemspec => :clean do
File.open("#{$gemspec.name}.gemspec", "w") do |f|
f.write($gemspec.to_ruby)
end
2010-05-24 18:04:34 -04:00
end
2010-08-10 13:15:04 -04:00
task :clean do
sh "rm -rf *.gem"
end
2010-05-24 18:04:34 -04:00
2010-08-10 13:15:04 -04:00
for file in Dir['tasks/*.rake']
load file
end