Project

General

Profile

Actions

Bug #653

closed

`rake gem' emits a warning

Added by mame (Yusuke Endoh) almost 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
ruby -v:
Backport:
[ruby-core:19351]

Description

=begin
Hi,

rake seems to call Gem.manage_gems which is deprecated at
lib/rake/gempackagetask.rb.

$ sow19 foo
(snip)
$ cd fo/
$ rake19
(in /tmp/foo)
<internal:0:Warning: Gem::manage_gems is deprecated and will be
removed on or after March 2009.
Hoe email value not set. aborting

Is it ok to merely remove the call?

Index: lib/rake/gempackagetask.rb

--- lib/rake/gempackagetask.rb (revision 19808)
+++ lib/rake/gempackagetask.rb (working copy)
@@ -9,12 +9,6 @@
require 'rubygems/user_interaction'
require 'rubygems/builder'

-begin

  • Gem.manage_gems
    -rescue NoMethodError => ex
  • Using rubygems prior to 0.6.1

-end

module Rake

# Create a package based upon a Gem spec.  Gem packages, as well as

--
Yusuke ENDOH
=end

Actions

Also available in: Atom PDF