Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (38 sloc) 1.158 kb
require 'rubygems'
require 'rake/gempackagetask'
PLUGIN = "merb-test"
NAME = "merb-test"
VERSION = "0.9.0"
AUTHOR = "Yehuda Katz"
EMAIL = "ykatz@engineyard.com"
HOMEPAGE = "http://merb-plugins.rubyforge.org/merb-test/"
SUMMARY = "Merb plugin that provides common test support"
spec = Gem::Specification.new do |s|
s.name = NAME
s.version = VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
s.add_dependency('merb-core', '>= 0.9.0')
s.add_dependency('hpricot', '>= 0.6')
s.require_path = 'lib'
s.autorequire = PLUGIN
s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
task :install => [:package] do
sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
end
namespace :jruby do
desc "Run :package and install the resulting .gem with jruby"
task :install => :package do
sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri}
end
end
Jump to Line
Something went wrong with that request. Please try again.