Rakefile in loggability-0.10.1 vs Rakefile in loggability-0.11.0
- old
+ new
@@ -6,10 +6,12 @@
require 'hoe'
rescue LoadError
abort "This Rakefile requires 'hoe' (gem install hoe)"
end
+GEMSPEC = 'loggability.gemspec'
+
Hoe.plugin :mercurial
Hoe.plugin :signing
Hoe.plugin :deveiate
Hoe.plugin :bundler
@@ -57,6 +59,18 @@
rdoc.rdoc_files.include( "*.rdoc", "ChangeLog", "lib/**/*.rb" )
rdoc.generator = :fivefish
rdoc.rdoc_dir = 'doc'
end
end
+
+task :gemspec => GEMSPEC
+file GEMSPEC => __FILE__ do |task|
+ spec = $hoespec.spec
+ spec.files.delete( '.gemtest' )
+ spec.version = "#{spec.version}.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
+ File.open( task.name, 'w' ) do |fh|
+ fh.write( spec.to_ruby )
+ end
+end
+
+task :default => :gemspec