2006-05-11 21:26:28 -04:00
|
|
|
require 'rake'
|
|
|
|
require 'rake/testtask'
|
|
|
|
require 'rake/clean'
|
|
|
|
require 'rake/gempackagetask'
|
|
|
|
require 'rake/rdoctask'
|
|
|
|
require 'tools/rakehelp'
|
|
|
|
require 'fileutils'
|
|
|
|
include FileUtils
|
|
|
|
|
|
|
|
setup_tests
|
|
|
|
setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]
|
|
|
|
|
|
|
|
setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
|
|
|
|
|
|
|
|
desc "Does a full compile, test run"
|
|
|
|
task :default => [:test, :package]
|
|
|
|
|
2006-10-24 17:21:55 -04:00
|
|
|
version="0.2.1"
|
2006-05-11 21:26:28 -04:00
|
|
|
name="mongrel_upload_progress"
|
|
|
|
|
|
|
|
setup_gem(name, version) do |spec|
|
|
|
|
spec.summary = "The mongrel_upload_progress GemPlugin"
|
|
|
|
spec.description = spec.summary
|
|
|
|
spec.author="Nobody"
|
2006-09-04 17:24:48 -04:00
|
|
|
spec.add_dependency('mongrel', '>= 0.3.13.3')
|
2006-05-11 21:26:28 -04:00
|
|
|
spec.add_dependency('gem_plugin', '>= 0.2.1')
|
|
|
|
spec.files += Dir.glob("resources/**/*")
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
task :install => [:test, :package] do
|
2006-06-10 03:02:19 -04:00
|
|
|
sh %{gem install pkg/#{name}-#{version}.gem}
|
2006-05-11 21:26:28 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
task :uninstall => [:clean] do
|
2006-06-10 03:02:19 -04:00
|
|
|
sh %{gem uninstall #{name}}
|
2006-05-11 21:26:28 -04:00
|
|
|
end
|
|
|
|
|