Rakefile in gis-distance-1.0.1 vs Rakefile in gis-distance-1.0.2
- old
+ new
@@ -7,17 +7,13 @@
CLEAN.include('**/*.gem', '**/*.log')
namespace 'gem' do
desc 'Create the gis-distance gem'
task :create => [:clean] do
+ require 'rubygems/package'
spec = eval(IO.read('gis-distance.gemspec'))
-
- if Gem::VERSION < "2.0"
- Gem::Builder.new(spec).build
- else
- require 'rubygems/package'
- Gem::Package.build(spec)
- end
+ spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
+ Gem::Package.build(spec, true)
end
desc 'Install the gis-distance gem'
task :install => [:create] do
file = Dir["*.gem"].first