Rakefile in win32-security-0.2.3 vs Rakefile in win32-security-0.2.4
- old
+ new
@@ -7,10 +7,15 @@
namespace :gem do
desc "Create the win32-security gem"
task :create => [:clean] do
spec = eval(IO.read('win32-security.gemspec'))
- Gem::Builder.new(spec).build
+ if Gem::VERSION < "2.0.0"
+ Gem::Builder.new(spec).build
+ else
+ require 'rubygems/package'
+ Gem::Package.build(spec)
+ end
end
desc "Install the win32-security gem"
task :install => [:create] do
ruby 'win32-security.gemspec'