Rakefile in crypt-fog-1.0.2 vs Rakefile in crypt-fog-1.0.3

- old
+ new

@@ -1,20 +1,17 @@ require 'rake' require 'rake/testtask' require 'rake/clean' -CLEAN.include("*.gem", "*.rbc") +CLEAN.include("*.gem", "*.rbc", "*.lock") namespace :gem do desc 'Build the crypt-fog gem' task :create => [:clean] do - spec = eval(IO.read('crypt-fog.gemspec')) require 'rubygems/package' - if Gem::VERSION < "2.0" - Gem::Builder.new(spec).build - else - Gem::Package.build(spec) - end + spec = eval(IO.read('crypt-fog.gemspec')) + spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem') + Gem::Package.build(spec) end desc 'Install the crypt-fog library as a gem' task :install => [:create] do file = Dir["*.gem"].first