Commit f47a4b5a by Jon Yurek

Added gem build task, gemspec cleans first

parent 037db684
......@@ -42,6 +42,7 @@ task :clean do |t|
FileUtils.rm_rf "pkg"
FileUtils.rm "test/debug.log" rescue nil
FileUtils.rm "test/paperclip.db" rescue nil
Dir.glob("paperclip-*.gem").each{|f| FileUtils.rm f }
end
spec = Gem::Specification.new do |s|
......@@ -69,8 +70,13 @@ spec = Gem::Specification.new do |s|
end
desc "Generate a gemspec file for GitHub"
task :gemspec do
task :gemspec => :clean do
File.open("#{spec.name}.gemspec", 'w') do |f|
f.write spec.to_ruby
end
end
desc "Build the gem into the current directory"
task :gem => :gemspec do
`gem build #{spec.name}.gemspec`
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment