[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

[ ruby-Bugs-1013 ] RSS: Can't make children of RSS::Rss

From: noreply@...
Date: 2004-11-02 04:17:48 UTC
List: ruby-core #3680
Bugs item #1013, was opened at 2004-11-01 23:17
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1013&group_id=426

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Francis Hwang (francis)
Assigned to: Nobody (None)
Summary: RSS: Can't make children of RSS::Rss

Initial Comment:
I have a class, BlendedFeed, that is a child of RSS::Rss. This worked fine in 1.8, but now in 1.9 it breaks #to_s:

ArgumentError: negative argument
    /usr/local/lib/ruby/1.9/rss/rss.rb:630:in `*'
    /usr/local/lib/ruby/1.9/rss/rss.rb:630:in `calc_indent'
    /usr/local/lib/ruby/1.9/rss/0.9.rb:54:in `to_s'
    ../test/ts_feedblender.rb:47:in `test_to_s'

Looks like the culprit is this line in Element.inherited:

@indent_size = name.split(/::/).size - 2

which basically assumes you'll never inherit from RSS::Rss, or that if you do you'll jump through hoops to have your class name fool this line. Can this be fixed?

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

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1013&group_id=426

In This Thread

Prev Next