[#17480] Array#fill behavior — "Vladimir Sizikov" <vsizikov@...>
Hi,
[#17488] HOME and USERPROFILE aliasing under Windows — "John Lam (IRONRUBY)" <jflam@...>
MRI currently expects the HOME environment variable to be set under Windows=
[#17491] [Ruby 1.8.7 - Bug #213] (Open) Different ERB behavior across versions — Federico Builes <redmine@...>
Issue #213 has been reported by Federico Builes.
[#17503] Possible misbehaviour in mkmf.rb package — S駻gio Durigan J佖ior <sergiodj@...>
Hello all,
On Wednesday 02 July 2008, S駻gio Durigan J佖ior wrote:
[#17509] YAML in Ruby — Trans <transfire@...>
Might we ever imagine a time when YAML is an integral part of Ruby?
[#17518] [Ruby 1.8 - Bug #216] (Open) Memory leaks in 1.8.6p230 and p238 — Igal Koshevoy <redmine@...>
Issue #216 has been reported by Igal Koshevoy.
[#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.
Why not write it in ruby?
Kurt Stephens wrote:
I've split up the code of rubychecker. One git repo has the GNU Bash
[#17574] rubyspec reports for ruby_1_8, ruby_1_8_7, and v1_8_6_p265 — Stephen Bannasch <stephen.bannasch@...>
I wanted to learn more about specs recently started using git and so
Stephen Bannasch wrote:
[#17595] Crashes and hangups on latest 1_8 branch — "Vladimir Sizikov" <vsizikov@...>
Hi,
[#17609] [PATCH] Fix Makefile update-rubyspec task — Gaston Ramos <ramos.gaston@...>
Hi, I'm trying to run rubyspec tests on 1.8 branch and get this error:
[#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
It was designed to fix the following case:
Here's a third patch that fixes a bug in the second and uses a quicker
One more patch which fixes a few bugs in the the last one.
Hi,
Looks like version 22 doesn't support explicitly numbered regexp groups.
Hi,
Hi,
Alright, here's a version that fixes both the highlighting bug and the
Hi,
Are you asking me? If so, go right ahead. Also, for posterity's sake,
One more bugfix.
Hi,
[#17627] ncurses-specific functions in ruby's curses — "Kirill A. Shutemov" <kirill@...>
Is it possible to add ncurses-specific functions to curses ruby module?
On Sunday 06 July 2008, Kirill A. Shutemov wrote:
On Mon, Jul 07, 2008 at 10:25:42AM +0200, Marc Haisenko wrote:
On Monday 07 July 2008, Kirill A. Shutemov wrote:
[#17629] Proper exception out of throw? — "Vladimir Sizikov" <vsizikov@...>
Hi,
[#17644] Features to be included in Ruby 1.9.1 — "Yugui (Yuki Sonoda)" <yugui@...>
Hi, all
Dave Thomas wrote:
There are two things I would like to see added to 1.9.1. A one-byte
Hi,
Hi,
In article <E1KGF2L-0000Qx-K5@x61.netlab.jp>,
Hi,
[#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.
[#17690] [Ruby 1.8 - Feature #249] (Open) wish list item: binding.set_local_variable — Roger Pack <redmine@...>
Issue #249 has been reported by Roger Pack.
[#17694] Mark functions not called on exit — Charlie Savage <cfis@...>
Hi everyone,
Hi,
[#17699] Omissions on the ruby-lang.org website and in redmine — "Austin Ziegler" <halostatue@...>
As far as I can tell, there's nowhere on the ruby-lang.org website
On Jul 9, 2008, at 8:05 AM, Austin Ziegler wrote:
On Jul 9, 2008, at 6:07 PM, Ryan Davis wrote:
On Wed, Jul 9, 2008 at 5:14 PM, James Gray <james@grayproductions.net> wrote:
[#17708] [Ruby 1.8 - Bug #252] (Open) Array#sort doesn't respect overridden <=> — Ryan Davis <redmine@...>
Issue #252 has been reported by Ryan Davis.
Issue #252 has been updated by Vladimir Sizikov.
Hi,
Nobuyoshi Nakada wrote:
[#17759] Ruby 1.9.1 Feature and 1.9.0-3 release plan — "Yugui (Yuki Sonoda)" <yugui@...>
Thank you for your replies to [ruby-core:17644]. < all
[#17785] [Ruby 1.9 - Bug #277] (Open) 1.9/trunk: build broken in ruby/ruby.h — Ollivier Robert <redmine@...>
Issue #277 has been reported by Ollivier Robert.
[#17812] Tracing versus coverage (was Re: Re: Features to be included in Ruby 1.9.1) — "Rocky Bernstein" <rocky.bernstein@...>
Sorry for not noticing sooner. It occurs to me that the built-in
It seems to me what you need is not a coverage system but a general hook
I just looked at the code to set the coverage hash and it seems to
Hi Rocky,
[#17822] rdoc defines Hash#method_missing — "Yusuke ENDOH" <mame@...>
Hi,
[#17829] FAILURE of "expand_path" — "C.E. Thornton" <admin@...>
Core,
C.E. Thornton wrote:
Urabe Shyouhei wrote:
On Sat, Jul 19, 2008 at 04:27:09AM +0900, C.E. Thornton wrote:
[#17833] Object allocation tracking — Christopher Thompson <cthompson@...>
Please excuse the blog spam.
[#17843] Exapand_path Patch good as stands. — "C.E. Thornton" <admin@...>
Core,
[#17865] Expand_Path: New Patch - Modified Processing — "C.E. Thornton" <admin@...>
Core,
Hi,
Hi,
[#17871] duping the NilClass — "Nasir Khan" <rubylearner@...>
While nil is an object, calling dup on it causes TypeError. This doesnt seem
Nasir Khan wrote:
On Sun, Jul 20, 2008 at 7:55 PM, Urabe Shyouhei <shyouhei@ruby-lang.org>
Meinrad Recheis wrote:
Urabe Shyouhei wrote:
I write a lot of hand crafted dup or clone because I want control as well as
Hi --
+1 to David. A convenient way to do Marshal idiom should be a new
On Mon, Jul 21, 2008 at 8:21 AM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:
Hi --
On Mon, Jul 21, 2008 at 1:02 PM, David A. Black <dblack@rubypal.com> wrote:
Hi --
On Mon, Jul 21, 2008 at 5:18 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.
[#17915] select returning an enumerator — "David A. Black" <dblack@...>
Hi --
[#17922] [Ruby 1.9 - Bug #345] (Open) 1.9 racc appears to seg fault — Roger Pack <redmine@...>
Issue #345 has been reported by Roger Pack.
[#17943] RUBY_ENGINE? — "Vladimir Sizikov" <vsizikov@...>
Hi,
In article <3454c9680807241200xf7cc766qb987905a3987bb78@mail.gmail.com>,
On Thu, Jul 24, 2008 at 7:46 PM, Ryan Davis <ryand-ruby@zenspider.com> wrote:
Hi,
In article <3454c9680807250054i70db563duf44b42d92ba41bfb@mail.gmail.com>,
On Sat, Jul 26, 2008 at 5:09 AM, Tanaka Akira <akr@fsij.org> wrote:
Hi,
Since this thread seemed to die out, I'll ask again:
Hi,
Hi all.
Hi,
Yukihiro Matsumoto wrote:
[#17954] Expand_path -- Proposal: An alternate method — "C.E. Thornton" <admin@...>
HI,
Hi,
Yukihiro Matsumoto wrote:
[#17973] Proposal of GC::Profiler — Narihiro Nakamura <authorNari@...>
Hi.
On Fri, 2008-07-25 at 23:59 +0900, Narihiro Nakamura wrote:
[#18016] Re: Hex string literals [Patch] — gdefty@...
Before posting the message below I thought long
[#18029] [Ruby 1.9 - Bug #378] (Open) rbconfig.rb:173: [BUG] Stack consistency error — Anonymous <redmine@...>
Issue #378 has been reported by Anonymous.
[#18033] JRuby adding ConcurrencyError for fatal concurrent modification — Charles Oliver Nutter <charles.nutter@...>
In order to limit or reduce the likelihood that multiple threads
Hi,
Yukihiro Matsumoto wrote:
[ruby-core:17753] Re: Release Plan: Ruby 1.9.0-2
Hi,
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.
> > === miniunit isn't extensible
> >
> > Unfortunately Test::Unit doesn't keep improving itself for a
> > few years. But there are many improvements in the
> > world. e.g.: RSpec provides BDD style syntax, multiple
> > setup/teardown (before/after) mechanism, new test (example)
> > status (pending) and so on. RSpec and Mocha provides a mock
> > system.
> >
> > Some advanced users (like ActiveSupport, Mocha and so on)
> > extend Test::Unit by overriding existing methods and/or with
> > Test::Unit's internal API because Test::Unit doesn't provide
> > extensible interface. It causes ugly hacks.
>
> miniunit is compatible with ActiveSupport already. Chad Fowler did two
> 1-line changes to make miniunit work with flexmock. I'm sure mocha
> will take a change or two, but it won't be much.
>
> The ugly hacks are required for test/unit, not for miniunit. Making
> miniunit work with these hacks has been ugly and painful, but it is
> something we can address with the library authors and clean up over
> time.
e.g. active_support/testing/setup_and_teardown.rb:
For test/unit:
def run_with_callbacks_and_testunit(result) #:nodoc:
return if @method_name.to_s == "default_test"
yield(Test::Unit::TestCase::STARTED, name)
@_result = result
begin
run_callbacks :setup
setup
__send__(@method_name)
rescue Test::Unit::AssertionFailedError => e
add_failure(e.message, e.backtrace)
rescue *PASSTHROUGH_EXCEPTIONS
raise
rescue Exception
add_error($!)
ensure
begin
teardown
run_callbacks :teardown, :enumerator => :reverse_each
rescue Test::Unit::AssertionFailedError => e
add_failure(e.message, e.backtrace)
rescue *PASSTHROUGH_EXCEPTIONS
raise
rescue Exception
add_error($!)
end
end
result.add_run
yield(Test::Unit::TestCase::FINISHED, name)
end
alias_method :run, :run_with_callbacks_and_testunit
For miniunit:
def run_with_callbacks_and_miniunit(runner)
result = '.'
begin
run_callbacks :setup
result = super
rescue Exception => e
result = runner.puke(self.class, self.name, e)
ensure
begin
teardown
run_callbacks :teardown, :enumerator => :reverse_each
rescue Exception => e
result = runner.puke(self.class, self.name, e)
end
end
result
end
alias_method :run, :run_with_callbacks_and_miniunit
"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.
> > 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:
>
> def assert_sorted(actual, message=nil, &block)
> expected = actual.sort(&block)
> message ||= "Expected order:\n#{expected.inspect}\nbut got order:
> \n#{actual.inspect}\n"
> assert_block(message) { expected == actual }
> end
>
> vs:
>
> def assert_sorted(actual, message=nil, &block)
> expected = actual.sort(&block)
> assert_equal expected, actual, "Order is wrong:"
> end
I couldn't understand why test/unit version is:
> def assert_sorted(actual, message=nil, &block)
> expected = actual.sort(&block)
> message ||= "Expected order:\n#{expected.inspect}\nbut got order:\n#{actual.inspect}\n"
> assert_block(message) { expected == actual }
> end
We can write it same as miniunit version:
> def assert_sorted(actual, message=nil, &block)
> expected = actual.sort(&block)
> assert_equal expected, actual, "Order is wrong:"
> end
> > I want users to be simple rather than testing framework is
> > simple.
>
> I want both to be simple. These aren't mutually exclusive.
I don't think so in many cases. It may be true in some cases.
> > (*) 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 . -name \*.rb | xargs grep -l Filter
> ./unit/assertions.rb
> ./unit/error.rb
> ./unit/testcase.rb
> ./unit/util/backtracefilter.rb
> % find lib/test -name \*.rb | xargs wc -l
> 14 lib/test/unit/assertionfailederror.rb
> 622 lib/test/unit/assertions.rb # HERE?
> 220 lib/test/unit/autorunner.rb
> 107 lib/test/unit/collector/dir.rb
> 34 lib/test/unit/collector/objectspace.rb
> 43 lib/test/unit/collector.rb
> 56 lib/test/unit/error.rb # HERE?
> 51 lib/test/unit/failure.rb
> 160 lib/test/unit/testcase.rb # HERE?
> 80 lib/test/unit/testresult.rb
> 76 lib/test/unit/testsuite.rb
> 127 lib/test/unit/ui/console/testrunner.rb
> 268 lib/test/unit/ui/fox/testrunner.rb
> 416 lib/test/unit/ui/gtk/testrunner.rb
> 465 lib/test/unit/ui/gtk2/testrunner.rb
> 68 lib/test/unit/ui/testrunnermediator.rb
> 46 lib/test/unit/ui/testrunnerutilities.rb
> 260 lib/test/unit/ui/tk/testrunner.rb
> 40 lib/test/unit/util/backtracefilter.rb # HERE?
> 90 lib/test/unit/util/observable.rb
> 48 lib/test/unit/util/procwrapper.rb
> 280 lib/test/unit.rb
> 3571 total
>
> % 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.
> > === miniunit just provides minimal features
> >
> > miniunit provides some advanced features: mock system and
> > BDD style syntax. But they just provides limited
> > functions. e.g. Mini::Mock can't handle multi expects for
> > the same name.
>
> I don't really see how mini/spec is limited. I talked to David
> Chelimsky at railsconf only feature it is really lacking from rspec is
> nested contexts.
I can't find a feature that is corresponding should_receive.
IMHO, powerful mock support is the very useful feature in
RSpec.
And it seems that defining custom must_* method is a
bother. Should we use Object.infect_with_assertions?
> > Most of users prefer to useful system rather than simple
> > system but limited features because they want to write their
> > tests simply like Ryan wants miniunit to be simple.
>
> again... I'm not seeing this as a problem. miniunit is simple. it also
> supports nearly every project out there already. For those that
> require test/unit internals, things are actually cleaner now. They can
> either require test/unit as a gem, or miniunit... it'll still work on
> 1.8 and 1.9.
>
> > Most of users will use RSpec rather than Mini::Spec if they
> > want to use BDD style syntax.
>
> yup. how is this a problem? This is only 82 lines of overhead.
>
> > Most of users will use Mocha or RSpec rather than Mini::Mock
> > if they want to use a mock system.
>
> yup. how is this a problem? This is only 31 lines of overhead.
I want said that: Their only has limited features. So their
are not miniunit's benefits. They are needless
features in the standard testing framework. They are just
simple.
> > Yes, I think that miniunit is very good solution for Ruby
> > implementation developers because it has very small
> > dependencies. It doesn't use standard libraries like
> > OptionParser. But users doesn't require very small
> > dependencies. They want useful tools rather than very small
> > dependencies.
>
> again... I don't see small as bad.
I didn't say that small is bad. I just said that too minimal
is bad for users convenience.
Thanks,
--
kou