Fix gem packaging for rubygems 2.0

This commit is contained in:
Samuel Cochran 2013-03-12 10:19:40 +11:00
parent e8ca2a8fcf
commit 6dfed04dd9

View File

@ -1,4 +1,5 @@
require 'rubygems'
require 'rubygems/package'
require File.expand_path('../lib/mail_catcher/version', __FILE__)
spec_file = File.expand_path __FILE__ + '/../mailcatcher.gemspec'
@ -35,8 +36,7 @@ multitask "build" => ["build:sass", "build:coffee"]
desc "Package as Gem"
task "package:gem" do
builder = Gem::Builder.new spec
builder.build
Gem::Package.build spec
end
task "package" => ["build", "package:gem"]