Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (31 sloc) 1.37 kB
require "rubygems"
require "hoe"
require "rake/extensiontask"
require "./lib/johnson/version.rb"
HOE = "johnson", Johnson::VERSION do |p|
p.developer "John Barnette", ""
p.developer "Aaron Patterson", ""
p.developer "Yehuda Katz", ""
p.developer "Matthew Draper", ""
p.history_file = "CHANGELOG.rdoc"
p.readme_file = "README.rdoc"
p.summary = "Johnson wraps JavaScript in a loving Ruby embrace."
p.url = ""
p.extra_rdoc_files = [p.readme_file]
p.test_globs = %w(test/**/*_test.rb)
p.clean_globs << "lib/johnson/spidermonkey.bundle"
p.clean_globs << "tmp"
p.clean_globs << "vendor/spidermonkey/**/*.OBJ"
p.clean_globs << "ext/**/*.{o,so,bundle,a,log}"
p.extra_deps << "rake"
p.extra_dev_deps << "rake-compiler"
p.spec_extras = { :extensions => %w(Rakefile) }
end "spidermonkey", HOE.spec do |ext|
ext.lib_dir = "lib/johnson"
task :test => :compile
Dir["lib/tasks/*.rake"].each { |f| load f }
# HACK: If Rake is running as part of the gem install, clear out the
# default task and make the extensions compile instead.
Rake::Task[:default].prerequisites.replace %w(compile) if ENV["RUBYARCHDIR"]
Jump to Line
Something went wrong with that request. Please try again.