Sha256: 92b90bd48f0633b36860844ba7242c3ab92622b0d7384434d17859dfdb45aac5
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
require 'rubygems' require 'rake/gempackagetask' PLUGIN = "merb_test_unit" NAME = "merb_test_unit" VERSION = "0.9.3" AUTHOR = "Yehuda Katz" EMAIL = "ykatz@engineyard.com" HOMEPAGE = "http://merb-plugins.rubyforge.org/merb-test_unit/" SUMMARY = "Merb plugin that provides Test::Unit 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.3') s.require_path = 'lib' s.autorequire = PLUGIN s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,test_unit_generators}/**/*") end windows = (PLATFORM =~ /win32|cygwin/) rescue nil SUDO = windows ? "" : "sudo" Rake::GemPackageTask.new(spec) do |pkg| pkg.gem_spec = spec end desc "Install merb_test_unit" task :install => [:package] do sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources} 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb_test_unit-0.9.3 | Rakefile |