Rakefile in net_dav-0.0.1 vs Rakefile in net_dav-0.0.2

- old
+ new

@@ -8,12 +8,13 @@ gem.summary = %Q{WebDAV client library in the style of Net::HTTP} gem.description = %Q{WebDAV client library in the style of Net::HTTP} gem.email = "c1.github@niftybox.net" gem.homepage = "http://github.com/devrandom/net_dav" gem.authors = ["Miron Cuperman"] - gem.add_development_dependency "rspec", ">= 1.2.9" gem.add_dependency "nokogiri", ">= 1.3.0" + gem.add_development_dependency "rspec", ">= 1.2.0" + # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" @@ -32,9 +33,18 @@ end task :spec => :check_dependencies task :default => :spec + +task :release => [:clean, :gemspec, 'gemcutter:release'] + +task :clean do + Dir.glob("**/*~").each do |file| + File.unlink file + end + puts "cleaned" +end require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : ""