middleman/vendor/gems/gems/smusher-0.4.2/Rakefile

31 lines
1 KiB
Ruby
Raw Normal View History

2009-11-17 20:13:32 +01:00
desc "Run all specs in spec directory"
task :default do |t|
require 'spec'
options = "--colour --format progress --loadby --reverse"
files = FileList['spec/**/*_spec.rb']
system("spec #{options} #{files}")
end
begin
require 'jeweler'
project_name = 'smusher'
Jeweler::Tasks.new do |gem|
gem.name = project_name
gem.summary = "Automatic Lossless Reduction Of All Your Images"
gem.email = "grosser.michael@gmail.com"
gem.homepage = "http://github.com/grosser/#{project_name}"
gem.authors = ["Michael Grosser"]
%w[rake json httpclient].each{|d| gem.add_dependency d}
gem.rubyforge_project = 'smusher'
end
# fake task so that rubyforge:release works
task :rdoc do
`mkdir rdoc`
`echo documentation is at http://github.com/grosser/#{project_name} > rdoc/README.rdoc`
end
Jeweler::RubyforgeTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end