[#10492] Ruby 1.8.6 preview3 has been released — "Akinori MUSHA" <knu@...>

Hi,

26 messages 2007/03/04
[#10500] Re: Ruby 1.8.6 preview3 has been released — Hugh Sasse <hgs@...> 2007/03/05

On Mon, 5 Mar 2007, Akinori MUSHA wrote:

[#10507] Dynamic Array#join with block — <noreply@...>

Patches item #9055, was opened at 2007-03-05 19:57

12 messages 2007/03/05
[#10520] Re: [ ruby-Patches-9055 ] Dynamic Array#join with block — Nobuyoshi Nakada <nobu@...> 2007/03/06

Hi,

[#10594] grave bug in 1.8.6's thread implementation — Sylvain Joyeux <sylvain.joyeux@...4x.org>

In ext/thread/thread.c, remove_one leaves the list in an inconsistent state.

15 messages 2007/03/14
[#10596] Re: [PATCH] grave bug in 1.8.6's thread implementation — MenTaLguY <mental@...> 2007/03/14

On Thu, 15 Mar 2007 00:15:57 +0900, Sylvain Joyeux <sylvain.joyeux@m4x.org> wrote:

[#10597] Re: [PATCH] grave bug in 1.8.6's thread implementation — Sylvain Joyeux <sylvain.joyeux@...4x.org> 2007/03/14

> > The fix is in thread-mutex-remove_one.diff.

[#10598] Re: [PATCH] grave bug in 1.8.6's thread implementation — MenTaLguY <mental@...> 2007/03/14

On Thu, 15 Mar 2007 01:19:04 +0900, Sylvain Joyeux <sylvain.joyeux@m4x.org> wrote:

[#10599] Re: [PATCH] grave bug in 1.8.6's thread implementation — Sylvain Joyeux <sylvain.joyeux@...4x.org> 2007/03/14

On Wednesday 14 March 2007 17:29, MenTaLguY wrote:

[#10600] Re: [PATCH] grave bug in 1.8.6's thread implementation — MenTaLguY <mental@...> 2007/03/14

On Thu, 15 Mar 2007 01:48:42 +0900, Sylvain Joyeux <sylvain.joyeux@m4x.org> wrote:

[#10615] Multiton in standard library — TRANS <transfire@...>

Hi--

16 messages 2007/03/15
[#10619] Re: Multiton in standard library — Tom Pollard <tomp@...> 2007/03/16

[#10620] Re: Multiton in standard library — TRANS <transfire@...> 2007/03/16

On 3/15/07, Tom Pollard <tomp@earthlink.net> wrote:

[#10646] Marshal.dump shouldn't complain about singletons if the _dump method is defined — <noreply@...>

Bugs item #9376, was opened at 2007-03-19 15:58

12 messages 2007/03/19
[#10647] Re: [ ruby-Bugs-9376 ] Marshal.dump shouldn't complain about singletons if the _dump method is defined — Urabe Shyouhei <shyouhei@...> 2007/03/19

noreply@rubyforge.org wrote:

[#10648] Re: [ ruby-Bugs-9376 ] Marshal.dump shouldn't complain about singletons if the _dump method is defined — Sylvain Joyeux <sylvain.joyeux@...4x.org> 2007/03/19

On Monday 19 March 2007 18:01, Urabe Shyouhei wrote:

[#10651] Re: [ ruby-Bugs-9376 ] Marshal.dump shouldn't complain about singletons if the _dump method is defined — Yukihiro Matsumoto <matz@...> 2007/03/19

Hi,

[#10665] Re: [ ruby-Bugs-9376 ] Marshal.dump shouldn't complain about singletons if the _dump method is defined — "Chris Carter" <cdcarter@...> 2007/03/20

On 3/19/07, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

[#10712] Ruby Method Signatures (was Re: Multiton in standard library) — "Rick DeNatale" <rick.denatale@...>

On 3/19/07, TRANS <transfire@gmail.com> wrote:

10 messages 2007/03/21
[#10715] Re: Ruby Method Signatures (was Re: Multiton in standard library) — Jos Backus <jos@...> 2007/03/22

On 3/19/07, TRANS <transfire@gmail.com> wrote:

[#10798] Virtual classes and 'real' classes -- why? — "John Lam (CLR)" <jflam@...>

I was wondering if someone could help me understand why there's a parallel =

12 messages 2007/03/28
[#10799] Re: Virtual classes and 'real' classes -- why? — MenTaLguY <mental@...> 2007/03/28

On Thu, 29 Mar 2007 04:44:16 +0900, "John Lam (CLR)" <jflam@microsoft.com> wrote:

[ ruby-Bugs-5990 ] Inheritance and Autorunner: Default_test causes a problem

From: <noreply@...>
Date: 2007-03-21 19:28:44 UTC
List: ruby-core #10709
Bugs item #5990, was opened at 2006-10-02 10:05
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5990&group_id=426

Category: Standard Library
Group: 1.8.5
>Status: Closed
Resolution: None
Priority: 3
Submitted By: M B (mrbright)
Assigned to: Ryan Davis (zenspider)
Summary: Inheritance and Autorunner: Default_test causes a problem

Initial Comment:
I have created an inherited TestCase object.  When running the TestSuite with -n /Regexp/ Ruby pukes.  
The error:
f:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:132:in `=~': cannot convert Symbol
into String (TypeError)
        from f:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:134:in `options'
        from f:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:132:in `[]'
        from f:/ruby/lib/ruby/1.8/test/unit/collector.rb:26:in `include?'
        from f:/ruby/lib/ruby/1.8/test/unit/collector.rb:25:in `each'
        from f:/ruby/lib/ruby/1.8/test/unit/collector.rb:25:in `include?'
        from f:/ruby/lib/ruby/1.8/test/unit/collector.rb:18:in `add_suite'
        from f:/ruby/lib/ruby/1.8/test/unit/collector.rb:18:in `find_all'
        from f:/ruby/lib/ruby/1.8/test/unit/collector.rb:18:in `each'
         ... 7 levels...
        from f:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:194:in `run'
        from f:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:14:in `run'
        from f:/ruby/lib/ruby/1.8/test/unit.rb:285
        from f:/ruby/lib/ruby/1.8/test/unit.rb:283


The actual Code is:
autorunner.rb: line 132 
  Was:  @filters << proc{|t| n =~ t.method_name ? true : nil}
  Changed: @filters << proc{|t| n =~ t.method_name.to_s ? true : nil}

When I would run the thing, I found that the default_test method, which I am consequently refusing to run but overwriting my class, it would return a Class type of "Symbol".  By putting in the .to_s method call, the system is then able to compensate appropriately.

I hope this makes sense.

My Inherited class overwrites the Run method with the following:
  def run(*args) #:nodoc:
    return if @method_name.to_s == "default_test"
    super
  end  

I do this so that I can exclude the default_test object from my class.

Thanks for a great product!


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

>Comment By: Ryan Davis (zenspider)
Date: 2007-03-21 12:28

Message:
the standard way of doing this is a much simpler:

undef_method :default_test

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

Comment By: M B (mrbright)
Date: 2006-11-02 08:04

Message:
I am providing a Series of files that will demonstrate what
I am talking about.

The File: rubyExample.tar.gz - 
  md5sum: c8406ea43910b2483adf7729f62214d6
To demonstrate:
  ruby trial.rb -n /01/

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

Comment By: Ryan Davis (zenspider)
Date: 2006-11-01 22:40

Message:
Please provide a minimally reproducible test case.

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

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

In This Thread

Prev Next