[#17566] rubychecker - runs checks on a Ruby interpreter — Igal Koshevoy <igal@...>

I've put together a shell script that runs checks on a Ruby interpreter.

14 messages 2008/07/03

[#17615] [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...>

At the moment, ruby-mode.el uses font-lock-keywords as opposed to

22 messages 2008/07/05
[#17657] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Yukihiro Matsumoto <matz@...> 2008/07/08

[#17678] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/09

It was designed to fix the following case:

[#17755] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/13

Here's a third patch that fixes a bug in the second and uses a quicker

[#17772] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

One more patch which fixes a few bugs in the the last one.

[#17773] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17776] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

Looks like version 22 doesn't support explicitly numbered regexp groups.

[#17779] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17783] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17788] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

Alright, here's a version that fixes both the highlighting bug and the

[#17793] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/16

Hi,

[#17644] Features to be included in Ruby 1.9.1 — "Yugui (Yuki Sonoda)" <yugui@...>

Hi, all

27 messages 2008/07/08

[#17674] [Ruby 1.8 - Bug #238] (Open) Ruby doesn't respect the Windows read-only flag — Jim Deville <redmine@...>

Issue #238 has been reported by Jim Deville.

10 messages 2008/07/08

[#17708] [Ruby 1.8 - Bug #252] (Open) Array#sort doesn't respect overridden <=> — Ryan Davis <redmine@...>

Issue #252 has been reported by Ryan Davis.

13 messages 2008/07/09

[#17871] duping the NilClass — "Nasir Khan" <rubylearner@...>

While nil is an object, calling dup on it causes TypeError. This doesnt seem

33 messages 2008/07/20
[#17872] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/20

Nasir Khan wrote:

[#17873] Re: duping the NilClass — "Meinrad Recheis" <meinrad.recheis@...> 2008/07/20

On Sun, Jul 20, 2008 at 7:55 PM, Urabe Shyouhei <shyouhei@ruby-lang.org>

[#17877] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/20

Meinrad Recheis wrote:

[#17879] Re: duping the NilClass — Kurt Stephens <ks@...> 2008/07/20

Urabe Shyouhei wrote:

[#17880] Re: duping the NilClass — "Nasir Khan" <rubylearner@...> 2008/07/21

I write a lot of hand crafted dup or clone because I want control as well as

[#17881] Re: duping the NilClass — "David A. Black" <dblack@...> 2008/07/21

Hi --

[#17882] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/21

+1 to David. A convenient way to do Marshal idiom should be a new

[#17885] Re: duping the NilClass — "Robert Dober" <robert.dober@...> 2008/07/21

On Mon, Jul 21, 2008 at 8:21 AM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

[#17887] Re: duping the NilClass — "David A. Black" <dblack@...> 2008/07/21

Hi --

[#17889] Re: duping the NilClass — "Robert Dober" <robert.dober@...> 2008/07/21

On Mon, Jul 21, 2008 at 1:02 PM, David A. Black <dblack@rubypal.com> wrote:

[#17883] [Ruby 1.9 - Bug #340] (Open) 1.9/trunk does not work when compiled with llvm-gcc4 2.3 (gcc 4.2.1) — Ollivier Robert <redmine@...>

Issue #340 has been reported by Ollivier Robert.

14 messages 2008/07/21

[#17943] RUBY_ENGINE? — "Vladimir Sizikov" <vsizikov@...>

Hi,

56 messages 2008/07/24
[#17950] Re: RUBY_ENGINE? — Tanaka Akira <akr@...> 2008/07/25

In article <3454c9680807241200xf7cc766qb987905a3987bb78@mail.gmail.com>,

[#17958] Re: RUBY_ENGINE? — "Vladimir Sizikov" <vsizikov@...> 2008/07/25

Hi,

[#17981] Re: RUBY_ENGINE? — Tanaka Akira <akr@...> 2008/07/26

In article <3454c9680807250054i70db563duf44b42d92ba41bfb@mail.gmail.com>,

[ruby-core:17756] Re: Release Plan: Ruby 1.9.0-2

From: Eric Hodel <drbrain@...7.net>
Date: 2008-07-13 23:08:05 UTC
List: ruby-core #17756
On Jul 12, 2008, at 18:59 PM, Kouhei Sutou wrote:
> I stop to object that Test::Unit is replaced with miniunit.
> Because nobody objects it except me. It will mean that my
> opinion doesn't make sense. If Matz says 'go', Test::Unit
> will be replaced with miniunit.
>
> I'll write my opinions in this mail below. I'm happy if my
> opinions are considered a bit in the future. It's OK for me
> if they aren't considered.
>
>
> In <6F321A58-07AD-4CD1-90A1-D555991A05AD@zenspider.com>
>  "[ruby-core:17389] Re: Release Plan: Ruby 1.9.0-2" on Tue, 24 Jun  
> 2008 10:21:45 +0900,
>  Ryan Davis <ryand-ruby@zenspider.com> wrote:
>
>>> * miniunit isn't extensible.
>>
>> false. it is ruby. it is just as extendable as test/unit, if not  
>> more,
>> since it is cleaner.
>
> It seems that test/unit isn't easy to extend. So miniunit
> isn't easy to extend. An example is below.
>
> e.g. active_support/testing/setup_and_teardown.rb:
>
> [...]
>
> "ugly hacks" as I said means that overriding existing method
> with using internal API and aliasing it. Example internal
> API is add_failure for test/unit case, runner.puke for
> miniunit.
>
> If test/unit and/or miniunit are/is easy to extend,
> active_support/testing/setup_and_teardown.rb doesn't need to
> overriding existing run method.

I think this is a poor example.

The ugly hacks Rails makes for test/unit and miniunit would not be  
necessary if they would create a Rails::TestCase.  This would be very  
pretty in both test/unit and minunit if they would switch to a  
subclass and modules to add additional setup and teardown for whatever  
extras they need.

Rails has an unhealthy and unnatural fetish of aliasing methods and  
replacing them instead of using the more-natural inheritance  
mechanisms ruby provides.  (I believe there would be no difference  
between miniunit ugly hacks and test/unit ugly hacks using subclassing  
and modules.)

>>> miniunit doesn't provide extensible interface because it
>>> introduces complex mechanism. But we need it to avoid
>>> ugly hacks.(*) If miniunit keep simple, we will be dirty.
>>
>> I disagree. I've found a number of people (besides just me) that find
>> extending miniunit to be MUCH MUCH easier than test/unit. I rely on
>> basic idiomatic ruby to make miniunit much more approachable. See  
>> Phil
>> Hagelberg's previous email as evidence.
>>
>> Here is a real world (idiomatic) example of test/unit extension vs
>> miniunit:
>>
>> [...]
>
> I couldn't understand why test/unit version is:
>
>> [...]
>
> We can write it same as miniunit version:
>
>> [...]

Perhaps the example was too simplistic.  I have found making a good,  
user-friendly custom assertion failure message awkward in test/unit.

>>> (*) How do we add new command line option? How do we get
>>>   colorized output? How do we get diff between expected
>>>   and actual values? Need another filter command? Need to
>>>   overriding existing methods? It doesn't conflict with
>>>   other extension?
>>
>> And you think that these are addressed better in test/unit? Tell  
>> me...
>> where in the files below does colorized output go? How about
>> commandline options? Filtering?
>>
>> [...]
>>
>> % find lib/mini -name \*.rb | xargs wc -l
>>       31 lib/mini/mock.rb
>>       82 lib/mini/spec.rb
>>      436 lib/mini/test.rb                      # ALL HERE
>>      549 total
>
> colorized output:
>        127 lib/test/unit/ui/console/testrunner.rb # ALL HERE
>
> commandline options:
>        220 lib/test/unit/autorunner.rb # ALL HERE
>
> IMHO, putting all features in a large file isn't related to
> easy to extend.

There's 347 lines of output and commandline option handling in test/ 
unit.  That's 80% the line count of miniunit's entire functionality.

In This Thread