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


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

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25743&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to