Project

General

Profile

Actions

Bug #5032

closed

Gem::Specification#loaded? が常に false を返す

Added by okkez (okkez _) almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
ruby -v:
1.9.3
Backport:
[ruby-dev:44117]

Description

1.9.3 の RubyGems で Gem::Specification#loaded? が deprecated になったのですが、
常に false を返すようです。かわりに使えと言われる Gem::Specification#activated? は gemspec がロードできているときは
ちゃんと true を返してくれます。

rabbit の 1.0.0 では Gem::Specification#loaded? を使っているので新しい RubyGems を使うとちゃんと動きません。

Updated by naruse (Yui NARUSE) almost 13 years ago

  • Status changed from Open to Assigned
  • Assignee set to zenspider (Ryan Davis)

TITLE: Gem::Specification#loaded? always returns false

BODY:

On 1.9.3 RubyGems deprecates Gem::Specification#loaded? and always returns false.
It says to use Gem::Specification#activated? and it returns true when gemspec is loaded.

rabbit 1.0.0. uses Gem::Specification#loaded? and doesn't work with latest RubyGems.
(so they released rabbit 1.0.1)

Updated by drbrain (Eric Hodel) almost 13 years ago

  • Assignee changed from zenspider (Ryan Davis) to drbrain (Eric Hodel)
Actions #3

Updated by drbrain (Eric Hodel) over 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r32652.
okkez, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/rubygems/specification.rb: Restore behavior of
    Gem::Specification#loaded. [Ruby 1.9 - Bug #5032]
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0