Skip to content

Commit

Permalink
Use rubygems/package_task instead of rake/gempackagetask
Browse files Browse the repository at this point in the history
rake/gempackagetask is deprecated
  • Loading branch information
samn committed Jan 16, 2013
1 parent 12eb82d commit 0f3bc2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
Expand Up @@ -13,8 +13,8 @@ require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
require 'rubygems/package_task'

$:.unshift(File.dirname(__FILE__) + "/lib")
require 'plist'
Expand Down Expand Up @@ -109,11 +109,11 @@ begin
RDoc::Task.new do |rdoc|
rdoc.title = "All-purpose Property List manipulation library"
rdoc.main = "README.rdoc"

rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'CHANGELOG')
rdoc.rdoc_files.include('lib/**')

rdoc.options = [
'-H', # show hash marks on method names in comments
'-N', # show line numbers
Expand Down Expand Up @@ -146,7 +146,7 @@ EOD
s.autorequire = 'plist'
end

Rake::GemPackageTask.new(spec) do |p|
Gem::PackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true
p.need_zip = true
Expand Down

0 comments on commit 0f3bc2a

Please sign in to comment.