[Rubygems-developers] [ rubygems-Bugs-25743 ] Gem::Platform#=== bug - returns false when it should return true

noreply at rubyforge.org noreply at rubyforge.org
Thu Apr 30 22:19:04 EDT 2009


Bugs item #25743, was opened at 2009-04-30 19:15
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25743&group_id=126

Category: other
Group: v1.3.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Nobody (None)
Summary: Gem::Platform#=== bug - returns false when it should return true

Initial Comment:
As per IRC, this appears to be a bug:

irb(main):005:0> s1 = Gem::Platform.new(['universal', 'darwin', '9'])
=> #<Gem::Platform:0x822bac @cpu="universal", @os="darwin", @version="9">

irb(main):006:0> s2 = Gem::Platform.new(['x86', 'darwin', '8'])
=> #<Gem::Platform:0x820d02 @cpu="x86", @os="darwin", @version="8">

irb(main):007:0> s1 === s2
=> false

This caused a user on a newer version of OS X some grief when they tried to install sys-proctable, but it was failing because their platform was 'universal-darwin' but the gem is built as 'x86-darwin'.

Regards,

Dan


----------------------------------------------------------------------

>Comment By: Daniel Berger (djberg96)
Date: 2009-04-30 19:19

Message:
And not a minute after I posted this, I think the problem is actually the versions, i.e. 8 vs 9.

So, perhaps this is expected behavior after all.

Dan

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25743&group_id=126


More information about the Rubygems-developers mailing list