Skip to content

Commit

Permalink
Updated gem:create task for Rubygems 2.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
djberg96 committed Aug 10, 2013
1 parent 6610054 commit 55e9556
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Expand Up @@ -34,7 +34,12 @@ namespace :gem do
desc 'Create the io-extra gem'
task :create => [:clean] do
spec = eval(IO.read('io-extra.gemspec'))
Gem::Builder.new(spec).build
if Gem::VERSION.to_f >= 2.0
require 'rubygems/package'
Gem::Package.build(spec)
else
Gem::Builder.new(spec).build
end
end

desc "Install the io-extra library as a gem"
Expand Down

0 comments on commit 55e9556

Please sign in to comment.