Use proper Gem names for checksums.

This ensures that it also works for JRuby and the likes.
This commit is contained in:
Yorick Peterse 2014-09-14 03:47:35 +02:00
parent 77bcf2f17b
commit 7db6732f14
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
desc 'Creates a SHA512 checksum of the current version' desc 'Creates a SHA512 checksum of the current version'
task :checksum do task :checksum do
checksums = File.expand_path('../../checksum', __FILE__) checksums = File.expand_path('../../checksum', __FILE__)
name = "#{GEMSPEC.name}-#{GEMSPEC.version}.gem" name = "#{GEMSPEC.full_name}.gem"
path = File.join(File.expand_path('../../pkg', __FILE__), name) path = File.join(File.expand_path('../../pkg', __FILE__), name)
checksum_name = File.basename(path) + '.sha512' checksum_name = File.basename(path) + '.sha512'