Rakefile in comicvine-0.1.2 vs Rakefile in comicvine-0.1.3
- old
+ new
@@ -17,10 +17,10 @@
end
# Default task
task :default => :test
-task :gen_checksum do
+Rake::Task['build'].enhance do
require 'digest/sha2'
built_gem_path = 'pkg/comicvine-'+ComicVine::VERSION+'.gem'
checksum = Digest::SHA256.new.hexdigest(File.read(built_gem_path))
checksum_path = 'checksum/comicvine-'+ComicVine::VERSION+'.gem.sha256'
File.open(checksum_path, 'w' ) {|f| f.write(checksum) }
\ No newline at end of file