Activity
From 06/02/2011 to 06/08/2011
06/08/2011
-
11:58 PM Bug #4855 (Closed): rb_context_t::saved_thread::machine_stack_(start|end) should be cleared
- 近永と申します。英語で説明するのが難しいのでruby-devで失礼します。
#4827 の調査の途上で再現スクリプトを valgrind つきで実行すると以下のように
不正な領域を machine stack として mark しようとしているようなメッセージが出ました。
(ただし FIBER_USE_NATIVE=0 にした場合です)。
==27771== Invalid read of size 4
==27771== at 0x809AC1... -
11:53 PM Feature #4824: Provide method Kernel#executed?
- Em 08-06-2011 11:28, Nobuyoshi Nakada escreveu:
> Hi,
>
> At Wed, 8 Jun 2011 16:44:55 +0900,
> Charles Oliver Nutter wrote in [ruby-core:36833]:
>> I might be more inclined to a keyword or pseudo constant along the
>> lines ... -
11:29 PM Feature #4824: Provide method Kernel#executed?
- Hi,
At Wed, 8 Jun 2011 16:44:55 +0900,
Charles Oliver Nutter wrote in [ruby-core:36833]:
> I might be more inclined to a keyword or pseudo constant along the
> lines of `__FILE__`, like `__MAIN__` that produces true iff `__FI... -
09:23 PM Feature #4824: Provide method Kernel#executed?
- Em 08-06-2011 08:50, Bill Kelly escreveu:
> Why would one expect `__MAIN__` to be any more or less of a
> constant than `__FILE__` or `__LINE__` or `__method__` ?
>
> Seems to me its behavior would be consistent with the others.... -
08:53 PM Feature #4824: Provide method Kernel#executed?
- Hi,
Rodrigo Rosenfeld Rosas wrote:
>
> I like the idea too. I just think that Ruby is very simple to start with
> because it is very consistent and with a few rules. Someone would expect
> `__MAIN__` to be a constant, wh... -
08:31 PM Feature #4824: Provide method Kernel#executed?
- Actually, maybe something like the snippet below would be ideal:
~~~ruby
if defined?(__MAIN__) ...
~~~
This means `__MAIN__` is still a constant, but one defined by the interpreter in some conditional way that is injected only in... -
08:29 PM Feature #4824: Provide method Kernel#executed?
- Em 08-06-2011 06:13, Ryan Davis escreveu:
> On Jun 8, 2011, at 00:44 , Charles Oliver Nutter wrote:
>
>> I might be more inclined to a keyword or pseudo constant along the
>> lines of `__FILE__`, like `__MAIN__` that produces tr... -
06:23 PM Feature #4824: Provide method Kernel#executed?
- On Jun 8, 2011, at 00:44 , Charles Oliver Nutter wrote:
> I might be more inclined to a keyword or pseudo constant along the
> lines of `__FILE__`, like `__MAIN__` that produces true iff `__FILE__
> $0`. Something we can static... -
04:53 PM Feature #4824: Provide method Kernel#executed?
- On Mon, Jun 6, 2011 at 7:09 AM, Rodrigo Rosenfeld Rosas
<[email protected]> wrote:
>
> Issue #4824 has been updated by Rodrigo Rosenfeld Rosas.
>
>
> Ruby allows a question mark in method names exactly for avoiding writing ... -
11:29 PM Bug #4828: crash in test_thread_instance_variable
- Hi,
At Wed, 8 Jun 2011 23:11:29 +0900,
Tomoyuki Chikanaga wrote in [ruby-core:36849]:
> But I'm hesitating to close this ticket. Is this patch fixes root problem of this issue?
> I suspect it is just a makeshift fix.
At ... -
11:25 PM Bug #4828: crash in test_thread_instance_variable
- wow, the patch fixes warnings on valgrind ruby -e'class << Thread.current; end'
-
11:11 PM Bug #4828: crash in test_thread_instance_variable
- I refined my patch to use rb_typeddata_is_kind_of() to check Thread and Mutex object,
because rb_obj_is_kind_of() might raise exception and use of rb_typeddata_is_kind_of() seems more efficient.
I'll check in it later.
But I'm hesit... -
10:09 PM Bug #4827 (Closed): meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
- Thank you for your checking.
I committed it at r31954. -
09:23 PM Feature #4840: Allow returning from require
- One real use case I see would be avoiding global state (like CommonJS). However, if an already required file return `nil`, this is not possible.
-
08:59 PM Feature #4840: Allow returning from require
- On 08/06/11 01:33, Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: [ruby-core:36811] Re: [Ruby 1.9 - Feature #4840][Open] Allow returning from require"
> on Tue, 7 Jun 2011 19:10:15 +0900, Yusuke ENDOH <[email protected]> ... -
06:29 PM Feature #4840: Allow returning from require
- On Wed, Jun 8, 2011 at 4:22 AM, Ryan Davis <[email protected]> wrote:
> How about raising a specific exception that is rescued by #require instead?
>
> ~~~ruby
> class AbortRequire < StandardError; end
...
> raise Abo... -
06:23 PM Feature #4840: Allow returning from require
- On Jun 7, 2011, at 17:33 , Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: [ruby-core:36811] Re: [Ruby 1.9 - Feature #4840][Open] Allow returning from require"
> on Tue, 7 Jun 2011 19:10:15 +0900, Yusuke ENDOH <mame@t... -
05:53 PM Feature #4840: Allow returning from require
- On Wed, Jun 8, 2011 at 8:38 AM, Charles Oliver Nutter
<[email protected]>wrote:
> exit_script if defined? GitoriousConfig
>
This could be confusing, if you happen to view the entire program as a
script. You might think... -
04:53 PM Feature #4840: Allow returning from require
- On Tue, Jun 7, 2011 at 7:33 PM, Yukihiro Matsumoto <[email protected]> wrote:
> Ah, I understand the request. But returning from outside of a method
> makes me so weird.
I agree with both the feature and the fact that return ... -
09:53 AM Feature #4840: Allow returning from require
- Hi,
In message "Re: [ruby-core:36811] Re: [Ruby 1.9 - Feature #4840][Open] Allow returning from require"
on Tue, 7 Jun 2011 19:10:15 +0900, Yusuke ENDOH <[email protected]> writes:
>Agreed.
Ah, I understand the request.... -
09:19 PM Feature #4025: Add Assertion class to Core
- Pretty sure Assertion has to be subclass of Exception, because the way test runners work is to use #rescue to catch Assertion failure and other exceptions. Test framework developers can still subclass it for their own specific purposes, ...
-
05:08 PM Feature #4778: IO#each_chomped
- Trivial Ruby impl...
class IO
def each_chomped
each {|x| yield x.chomp!}
end
end
Of course if you don't mind the whole file being read into memory:
io.each.map(&:chomp).each { ...
Might be a way to pipeline that w... -
05:01 PM Feature #4830: Provide Default Variables for Array#each and other iterators
- I've gone back and forth on whether I like this feature in Groovy. For simple iterations or chained iterations, it definitely shortens things up:
some_array.map { foo(it) }.select { bar(it) }.each { baz(it) }
versus
some_array.m... -
04:51 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
- What's the effect of the EPHEMERAL flag if someone takes an object with an attached ephemeral class and starts making singleton changes to that object? Do those changes properly flush cache?
If this flag only helps cases where you're ... -
04:38 PM Bug #4854 (Closed): Invalid locale_charmap (CP0) when running as Windows Service
- When ruby process is run as Windows Service the console codepage is not set, GetConsoleCP returns 0.
As a result function rb_locale_charmap refers to not existing codepage: CP0.
It has a dramatic performance drawback on the system when... -
12:57 PM Revision c84bb5df (git): * ChangeLog: fix some typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:52 PM Revision 5cf9a75c (git): * ChangeLog: add ticket link
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:50 PM Revision 3621b2de (git): * 2011-06-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:50 PM Revision 6d9e64d3 (git): * cont.c (root_fiber_alloc): set root fiber's status RUNNING.
- in cont_mark() only RUNNING fiber's machine stack is marked.
root fiber's status should be RUNNING at the beginning regardless of
FIBER_USE_NATIVE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31954 b2dd03c8-39d4-4d8f-98ff-823f... -
07:59 AM Bug #4853: ext/tk/extconf.rb fails on Mac OS X
- 永井@知能.九工大です.
From: Nobuyoshi Nakada <[email protected]>
Subject: [ruby-dev:43656] [Ruby 1.9 - Bug #4853] ext/tk/extconf.rb fails on Mac OS X
Date: Wed, 8 Jun 2011 05:44:00 +0900
Message-ID: <redmine.journal-17583.20110608054... -
07:59 AM Bug #4853: ext/tk/extconf.rb fails on Mac OS X
- 永井@知能.九工大です.
From: Nobuyoshi Nakada <[email protected]>
Subject: [ruby-dev:43656] [Ruby 1.9 - Bug #4853] ext/tk/extconf.rb fails on Mac OS X
Date: Wed, 8 Jun 2011 05:44:00 +0900
Message-ID: <redmine.journal-17583.20110608054... -
05:40 AM Bug #4853 (Closed): ext/tk/extconf.rb fails on Mac OS X
- =begin
trunkのext/tk/extconf.rbがDarwin 9.8で通りません。r31894でも
r31947でも同じです。
configuring tk
check functions.........
check struct members..
check libraries....
Use ActiveTcl libraries (if available).
Search tclConfig.sh a... -
12:19 AM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
- Yukihiro Matsumoto wrote:
> Hi,
> ...
I understand.
But the central point should be: the OO model (consistency) breaks essentially.
I feel uncomfortable to ask a 3rd time, thus I assume that for now there is no workaround availab...
06/07/2011
-
11:53 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
- Hi,
In message "Re: [ruby-core:36822] [Ruby 1.9 - Feature #4845] Provide Class#cb_object_instantiated_from_literal(object)"
on Tue, 7 Jun 2011 23:32:31 +0900, Lazaridis Ilias <[email protected]> writes:
|Yukihiro Matsu... -
11:32 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
- Yukihiro Matsumoto wrote:
> Besides that, I strongly discourage to intercept literal creation, since it would change the semantics of the fundamental object model.
Discouraging and disabling are two different things.
The fundament... -
10:53 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
- Hi,
In message "Re: [ruby-core:36809] [Ruby 1.9 - Feature #4845] Provide Class#cb_object_instantiated_from_literal(object)"
on Tue, 7 Jun 2011 18:42:34 +0900, Lazaridis Ilias <[email protected]> writes:
|Nobuyoshi Naka... -
10:50 PM Feature #4845 (Rejected): Provide Class#cb_object_instantiated_from_literal(object)
- Besides that, I strongly discourage to intercept literal creation, since it would change the semantics of the fundamental object model.
matz. -
06:42 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
- Nobuyoshi Nakada wrote:
> > * minimal overhead if not used (C-level if *ptr available, call)
> ...
I admit I don't know your current implementation.
Can you please point me to the relevant source code?
And please rethink the "pri... -
06:02 PM Feature #4845 (Assigned): Provide Class#cb_object_instantiated_from_literal(object)
- > * minimal overhead if not used (C-level if *ptr available, call)
Not true. -
03:01 AM Feature #4845 (Rejected): Provide Class#cb_object_instantiated_from_literal(object)
- (assuming that this is not a bug, but a speed tradeoff / known issue)
class String
alias_method :orig_initialize, :initialize
def initialize(val)
orig_initialize "OBSERVED: " + val
end
def my_method_test
print ... -
11:41 PM Bug #4827: meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
- nagachika's patch works great. Thanks!
This patch should be committed. -
11:29 PM Bug #4827: meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
- Hi,
I think the following tiny patch will fix this problem.
Please check it out.
diff --git a/cont.c b/cont.c
index 72e1117..770cfeb 100644
--- a/cont.c
+++ b/cont.c
@@ -1148,8 +1148,8 @@ root_fiber_alloc(rb_thread_t *th)
#i... -
12:37 AM Bug #4827: meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
- Hi,
I've created small script which can reproduce "crash in rb_method_entry_get_without_cache()".
script:
GC.stress = true
a = [0].map {|i| Fiber.new{Fiber.yield}.resume }
p a # => [BUG] Segmentation fault
result:
ruby 1.9.3... -
11:19 PM Bug #4844: RVM crash while running resque worker pool
- Hi,
I've attached pool.rb which you can correlate the stacktrace with. -
03:38 AM Bug #4844: RVM crash while running resque worker pool
- Can you show the reproducible code?
-
02:33 AM Bug #4844 (Closed): RVM crash while running resque worker pool
- I can manage to make this crash happen regularly when running resque-pool on fast running jobs
/mnt/backupify-production/shared/bundle/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/core_ext/kernel/agnostics.rb:7: [BUG] Segm... -
08:53 PM Feature #4840: Allow returning from require
- Hello,
2011/6/7 Rodrigo Rosenfeld Rosas <[email protected]>:
> This patch is so small, that it seems strange that it affects only
> requires... Won't it have side effects? Notice that I didn't test it yet.
I'm not sure.
... -
08:23 PM Feature #4840: Allow returning from require
- Em 07-06-2011 05:14, Haase, Konstantin escreveu:
> How will that work with require? Remember it will only load the file once. Return false otherwise? (Which would be kinda compatible with the current behavior and using raise/throw). O... -
08:23 PM Feature #4840: Allow returning from require
- Em 07-06-2011 07:10, Yusuke ENDOH escreveu:
> Hello,
>
> ...
>
> Agreed. It would be also useful to write platform-specific code:
>
> ~~~ruby
> require "test/unit"
>
> return unless /mswin|cygwin|mingw|bccwin/... -
07:23 PM Feature #4840: Allow returning from require
- Hello,
2011/6/6 Rodrigo Rosenfeld Rosas <[email protected]>:
> I have a situation where there is some code in Gitorious like:
>
> unless defined? GitoriousConfig
> Â # tons of lines here
> end
>
> And I would it to look like
... -
05:23 PM Feature #4840: Allow returning from require
- How will that work with require? Remember it will only load the file once. Return false otherwise? (Which would be kinda compatible with the current behavior and using raise/throw). Or should those values be cached? If you want to use r...
-
07:23 AM Feature #4840: Allow returning from require
- On 07/06/2011, at 12:18 AM, Michael Edgar wrote:
> On Jun 6, 2011, at 10:11 AM, Rodrigo Rosenfeld Rosas wrote:
>> It would be great to allow return from a required file or some
>> other keyword (break, etc or a new one)
>
> ... -
12:23 AM Feature #4840: Allow returning from require
- I think using "return" is quite natural in this case, as long as we
can use it in module/class-definitions too.
// Magnus Holm
On Mon, Jun 6, 2011 at 16:18, Michael Edgar <[email protected]> wrote:
> On Jun 6, 2011, at 10:1... -
08:52 PM Bug #4843 (Closed): typo in doc/irb/irb.rd* (and doc/ChangeLog-YARV)
- This issue was solved with changeset r31953.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/irb/irb.rd: fix typo. patch by Nobuhiro IMAI.
[Bug #4... -
01:42 AM Bug #4843 (Closed): typo in doc/irb/irb.rd* (and doc/ChangeLog-YARV)
- http://redmine.ruby-lang.org/issues/4837 を処理していて気づいたのですが、
doc/irb/irb.rd* に source を souce としているタイポあります。
ついでに doc/ChangeLog-YARV にも見つけたので、まとめてパッチにしました。
-
08:15 PM Bug #4451 (Rejected): Date#step does not raise ArgumentError for 0 step
-
08:12 PM Bug #4776 (Rejected): DateTime.new! has been disabled
- not a bug.
it's for only internal use.
he must have known it.
i once talked to the authour of tzinfo about Rational.new!.
anyway now DateTime.new! is not reasonable at all.
it does not depend on the current internal structure.
... -
02:37 AM Bug #4776: DateTime.new! has been disabled
- Hello? :(
-
07:56 PM Bug #4848 (Rejected): DateTime.jd raises 'invalid fraction' when called with more than one argument
- i've never seen such a nonsense patch.
this is not a bug.
you cannot specify both fraction and hour.
DateTime.new(2001,2,28.5,12) should mean 2001-03-31??
we have to be cautious about such a abuse.
-
06:09 AM Bug #4848: DateTime.jd raises 'invalid fraction' when called with more than one argument
- =begin
The second example has gone partially missing above (because RedMine doesn't appear to be escaping the < and >). It should have read:
>> DateTime.jd(Rational(39014323, 16))
#<DateTime: 1963-12-31T04:30:00+00:00 ((2438395j,1... -
06:01 AM Bug #4848 (Rejected): DateTime.jd raises 'invalid fraction' when called with more than one argument
- Since trunk revision 31862, the DateTime.jd function raises an ArgumentError with message 'invalid fraction' when it is called with more than one argument. For example,
>> DateTime.jd(Rational(39014323, 16), 0)
ArgumentError: invalid... -
01:37 PM Bug #4835 (Closed): Compilation failure of ext/tk with recent ActiveTcl
- This issue was solved with changeset r31947.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/tk/extconf.rb: use $defs not $CPPFLAGS to get rid of
comm... -
06:23 AM Bug #4835: Compilation failure of ext/tk with recent ActiveTcl
- 永井@知能.九工大です.
From: Nobuyoshi Nakada <[email protected]>
Subject: [ruby-dev:43637] Re: [Ruby 1.9 - Bug #4835] Compilation failure of ext/tk with recent ActiveTcl
Date: Mon, 6 Jun 2011 19:03:09 +0900
Message-ID: <4deca5da.610c... -
06:23 AM Bug #4835: Compilation failure of ext/tk with recent ActiveTcl
- 永井@知能.九工大です.
From: Nobuyoshi Nakada <[email protected]>
Subject: [ruby-dev:43637] Re: [Ruby 1.9 - Bug #4835] Compilation failure of ext/tk with recent ActiveTcl
Date: Mon, 6 Jun 2011 19:03:09 +0900
Message-ID: <4deca5da.610c... -
12:29 PM Bug #4803: RCLASS_SUPER won't compile for C extensions as of revision 31627
- Hi,
At Mon, 6 Jun 2011 23:47:57 +0900,
Roger Pack wrote in [ruby-core:36791]:
> > rb_class_superclass() since 1.4.0.
>
> Appears it has become public with 1.9.3?
Sure, it had been static, sorry.
So you can use it... -
11:52 AM Revision 58aa09cb (git): * doc/irb/irb.rd: fix typo. patch by Nobuhiro IMAI.
- [Bug #4843] [ruby-dev:43639]
* doc/irb/irb.rd.ja: ditto.
* doc/ChangeLog-YARV: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:56 AM Revision 733be259 (git): * lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of
- Windows has been fixed at r29969.
* test/rubygems/test_gem_stream_ui.rb: now can run tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:38 AM Revision 04b81ae7 (git): * test/rubygems/test_gem.rb (TestGem#{test_self_user_home_userprofile,
- test_self_user_home_user_drive_and_path}): should simply ignore
meaningless tests instead of skipping them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:16 AM Revision 01fd0228 (git): * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
- should show some messages when skippning tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:47 AM Feature #4849 (Closed): io/wait should have a way to avoid FIONREAD
- I would like an API method for io/wait which bypasses FIONREAD. Some IO
objects I work with (e.g. Linux eventfd[1]) to not support FIONREAD.
I can implement any proposed API for io/wait, but I don't know what it should
be. Perhaps... -
05:00 AM Revision b59179c8 (git): * ext/date/date_core.c (date_s_today, datetime_s_now): check the
- result of localtime_r().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:50 AM Revision 8137c555 (git): * time.c (rb_gmtime_r2): adjust indent.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:37 AM Revision 5b3bf854 (git): * ext/tk/extconf.rb: use $defs not $CPPFLAGS to get rid of
- command line escape issues on Windows. fixed #4835.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:36 AM Bug #4847 (Closed): Documentation Error for Hash#reject
- The documentation for Hash#reject fails to note that, when called without a block, an enumerator is returned.
A small patch correcting this is attached.
-
03:35 AM Bug #4846 (Closed): Permission denied - /tmp/nonexisting
- This issue was solved with changeset r31945.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/ruby/test_io.rb (TestIO#test_s_{,bin}write): do not cr... -
03:32 AM Bug #4846 (Closed): Permission denied - /tmp/nonexisting
- =begin
なぜか chkbuild が所有者になっている /tmp/nonexisting というファイルが存在していて、
test_s_binwrite(TestIO) と test_s_write(TestIO) が以下の Failure になります。
[Errno::EINVAL] exception expected, not
Class: <Errno::EACCES>
Message: <"Permission denied - /t... -
02:59 AM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
- Akira Tanaka <[email protected]> wrote:
> I don't against for the ephemeral class flag but
> it needs discussion with ko1 and/or matz.
Can either of them comment please? I would really like to see
this performance regression fixe...
06/06/2011
-
11:39 PM Bug #4821: Random Segfaults (in start_thread?)
- It seems in garbage collection; marking or freeing some invalid objet causes segv.
But the murderer is not clear. -
11:30 PM Bug #4821: Random Segfaults (in start_thread?)
- There is another segfault:
OSX Crash Reporter:
Process: ruby [56504]
Path: ~/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
Identifier: ruby
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Pr... -
11:24 PM Bug #4841 (Closed): WEBrick threading leads to infinite loop
- In a multi-threaded environment, the callback in WEBrick web server does not appear to work properly. If shutdown is called right after start, the server can entire an infinite loop and need to be killed using Ctrl-C.
Reproducible on ... -
11:11 PM Feature #4840 (Closed): Allow returning from require
- I have a situation where there is some code in Gitorious like:
~~~ruby
unless defined? GitoriousConfig
# tons of lines here
end
~~~
And I would it to look like
~~~ruby
return if defined? GitoriousConfig
#tons of lines ... -
09:09 PM Feature #4824: Provide method Kernel#executed?
- Ruby allows a question mark in method names exactly for avoiding writing methods beggining with "`is_`" like in Java. I don't mind two word methods, but I don't want the first word to be a "`is`" when it is finished with a question mark....
-
08:50 PM Feature #4824: Provide method Kernel#executed?
- Clifford Heath wrote:
[...] - omitting, to focus on essence
> > And at this point, the "dispute" is about the method name.
> ...
The status of this issue (#4824) is "agreed providing a method" (= provide an OO construct) and more a... -
03:23 PM Feature #4824: Provide method Kernel#executed?
- On 06/06/2011, at 3:51 PM, Lazaridis Ilias wrote:
> So maybe all rarely used methods should be written in long
> descriptive statements, to overcome non-semantic-hiding and become
> more productive?
I thought you prided y... -
02:51 PM Feature #4824: Provide method Kernel#executed?
- Clifford Heath wrote:
[...]
> > But "`if __FILE__ == $PROGRAM_NAME`" is quite long.
[...]
> ...
[...]
So maybe all rarely used methods should be written in long descriptive statements, to overcome non-semantic-hiding and become... -
06:53 AM Feature #4824: Provide method Kernel#executed?
- On 05/06/2011, at 11:29 PM, Benoit Daloze wrote:
> Clifford Heath wrote:
>> That is, the problem is that it's not obvious to a newcomer that
>> `__FILE__` means
>> the current source-code file, or that `$0` means the name of t... -
08:15 PM Feature #4830: Provide Default Variables for Array#each and other iterators
- I'm not saying we should copy Groovy syntax or ideas. I'm just showing that this is already done in Groovy.
At first I liked the idea of not needing to define an internal variable, but as I started to use it, I run into trouble where ... -
04:32 PM Feature #4830: Provide Default Variables for Array#each and other iterators
- [please, if possible, delete the non-relevant quoted message in your reply. You can still do this via http://redmine.ruby-lang.org/issues/4830]
Rodrigo Rosenfeld Rosas wrote:
> Sorry, forgot to say that for hashes this becomes:
> ..... -
03:59 AM Feature #4830: Provide Default Variables for Array#each and other iterators
- ignore... can't remove this comment - ammended with the above
-
03:59 AM Feature #4830: Provide Default Variables for Array#each and other iterators
- I would just like to point it out that in Groovy, one can write either:
[1, 2].each{ println it }
or
[1, 2].each{ number -> println number }
[key_name: 'value', another_key: 'another_value'].each{ println "${it.key}: ${it.v... -
03:53 AM Feature #4830: Provide Default Variables for Array#each and other iterators
- On Mon, Jun 06, 2011 at 01:07:05AM +0900, Lazaridis Ilias wrote:
>
> Issue #4830 has been updated by Lazaridis Ilias.
>
>
> Nobuyoshi Nakada wrote:
> > At Sun, 5 Jun 2011 17:23:26 +0900,
> > Lazaridis Ilias wrote in [rub... -
01:06 AM Feature #4830: Provide Default Variables for Array#each and other iterators
- Nobuyoshi Nakada wrote:
> Hi,
> ...
I don't know the underlying implementation, so I suggested simply from a users view.
If the arrays gets "value" instead of "item", it would be fine, of course.
-
12:23 AM Feature #4830: Provide Default Variables for Array#each and other iterators
- Hi,
At Sun, 5 Jun 2011 17:23:26 +0900,
Lazaridis Ilias wrote in [ruby-core:36750]:
> for arrays: use "item" by default
> for hashes: use "key" and "value" by default
Why different names?
There is no way to tell what... -
12:20 AM Feature #4830 (Assigned): Provide Default Variables for Array#each and other iterators
-
07:23 PM Bug #4835: Compilation failure of ext/tk with recent ActiveTcl
- なかだです。
At Mon, 6 Jun 2011 18:35:11 +0900,
Hidetoshi NAGAI wrote in [ruby-dev:43636]:
> I don't have Visual C++.
> Does it properly recognize '-D"uintptr_t=unsigned int"'?
$CPPFLAGSではなく$defsを使ってみてください。
diff --git... -
07:23 PM Bug #4835: Compilation failure of ext/tk with recent ActiveTcl
- なかだです。
At Mon, 6 Jun 2011 18:35:11 +0900,
Hidetoshi NAGAI wrote in [ruby-dev:43636]:
> I don't have Visual C++.
> Does it properly recognize '-D"uintptr_t=unsigned int"'?
$CPPFLAGSではなく$defsを使ってみてください。
diff --git... -
06:53 PM Bug #4835: Compilation failure of ext/tk with recent ActiveTcl
- From: Yuki Sonoda <[email protected]>
Subject: [ruby-dev:43635] [Ruby 1.9 - Bug #4835] Compilation failure of ext/tk with recent ActiveTcl
Date: Mon, 6 Jun 2011 14:44:47 +0900
Message-ID: <redmine.journal-17531.20110606144436@ruby-la... -
06:53 PM Bug #4835: Compilation failure of ext/tk with recent ActiveTcl
- From: Yuki Sonoda <[email protected]>
Subject: [ruby-dev:43635] [Ruby 1.9 - Bug #4835] Compilation failure of ext/tk with recent ActiveTcl
Date: Mon, 6 Jun 2011 14:44:47 +0900
Message-ID: <redmine.journal-17531.20110606144436@ruby-la... -
02:44 PM Bug #4835 (Closed): Compilation failure of ext/tk with recent ActiveTcl
- Recent version of ActiveTcl contains "-Duintptr_t=unsigned\ int" in TCL_DEFS. But this escape by backslash is not recognized correctly by cl.exe. So compilation of ext/tk with Visual C++ fails.
- 06:35 PM Revision 81894831 (git): * 2011-06-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:35 PM Revision e301f4c1 (git): * test/ruby/test_io.rb (TestIO#test_s_{,bin}write): do not create a file
- under /tmp. [Bug #4846]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:06 PM Revision 4d85a0df (git): * cont.c: use #if FIBER_USE_NATIVE instead of #ifdef.
- you can suppress use of setcontext for Fiber with compile option
-DFIBER_USE_NATIVE=0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:00 PM Revision dc62f1b6 (git): * test/date/test_switch_hitter.rb: added a test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:41 PM Revision 0ac1621a (git): * ChangeLog: fix a typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:38 PM Revision 86768527 (git): * ext/date/date_core.c: added notes.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:31 PM Revision 961143f6 (git): * ChangeLog: fix a typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:05 PM Revision 2cdd0a87 (git): * ext/date/date_core.c: flattened format to strftimev.
- * ext/date/date_core.c (date_strftime_internal): taints run.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:34 AM Bug #4834 (Closed): Adding documentation for prettyprint library
- Adding documentation for the current_group and fill_breakable attribute methods in the prettyprint library. Documentation attached as a patch.
-
10:44 AM Bug #4833 (Closed): Documentation improvement for WEBRick submodules
- I've added documentation to the WEBrick::Log, WEBrick::BasicLog and WEBrick::HTTPStatus modules.
Patchs included. -
10:21 AM Bug #4826 (Closed): Date fails RubySpec
- なるほど、46f643b17d と 0396550b で RubySpec 側を直しました。
ありがとうございました。 -
09:53 AM Bug #4803: RCLASS_SUPER won't compile for C extensions as of revision 31627
- Hi,
At Sat, 4 Jun 2011 01:33:38 +0900,
Roger Pack wrote in [ruby-core:36721]:
> just ran into this, as well
>
> https://gist.github.com/1006162
>
> If there's a work around do let us know :)
rb_class_superclass()... - 06:11 AM Revision 5574d874 (git): * include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from
- defines.h to missing.h. (couldn't use RUBY_EXTERN there.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:38 AM Revision f4e499de (git): * test/rdoc/test_rdoc_markup_pre_process.rb (TestRDocMarkupPreProcess#
- {test_include_file,test_include_file_encoding_incompatible}): no
need to write such workaround. don't hide the bug of ruby (and the
bug is already fixed).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31937 b2dd03c8-39d4-4d8f-... - 05:12 AM Revision 3c9e6c7a (git): * ext/date/date_core.c (valid_jd_sub): need to convert from VALUE to
- double.
* ext/date/date_core.c (offset_to_sec): get rid of a compiler warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:09 AM Revision f0bd1c21 (git): * include/ruby/defines.h (rb_inifinity, rb_nan): export for Windows.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:47 AM Revision 55ddfcee (git): * lib/test/unit.rb(Test::Unit::Runner#puke):
- Add overriding from MiniTest::Unit#puke. This reverts minitest's fix
that skip messages are hidden when not verbose mode (-v option).
To hide skip messages, use --hide-skip option instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby... -
01:53 AM Revision 80651eda (git): * lib/net/http.rb: don't use autoload.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:46 AM Revision 005a7bb5 (git): merges a part of r31717 from trunk into ruby_1_9_2.
- --
* ext/tk/lib/tk/extconf.rb: search directories for 64bit library (e.g.
* /usr/lib64), and bug fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:41 AM Revision 55ea66cb (git): * 2011-06-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:41 AM Revision 6c56c40b (git): * ext/psych/parser.c (parse): release event objects to plug memory
- leak. Thanks Mark J. Titorenko!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:41 AM Bug #4828: crash in test_thread_instance_variable
- hi,
following patch suppress the error.
diff --git a/gc.c b/gc.c
index 28fa233..3499b02 100644
--- a/gc.c
+++ b/gc.c
@@ -3005,7 +3005,7 @@ rb_objspace_call_finalizer(rb_objspace_t *objspace)
while (p < pend) {
if (BUI... -
12:33 AM Feature #4831 (Closed): Integer#prime_factors
- Hello,
lib/prime provides Integer#prime_division, but I always forget the name.
I think that #prime_factors is more suitable. I'd like to hear opinions
of English natives. What do you think?
--
Yusuke Endoh <[email protected]>
06/05/2011
-
11:23 PM Bug #4777: Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONT
- Hello,
2011/6/5 Motohiro KOSAKI <[email protected]>:
> And, more importantly, this fixing patch was already backported to 2.6.38.4.
> Thus, the issue is really Ubuntu specific, unfortunately.
The patch was backport... -
10:45 PM Bug #4777: Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONT
- OK, I and Endoh-san investigated more. I bet the guilty linux regression is below.
Ruby's timer thread is using pthread_cond_timedwait() and it is using futex_wait() internally.
And, more importantly, this fixing patch was already b... -
11:03 PM Bug #4608 (Third Party's Issue): Ctrl-c to interrupt script causes hang and 100% cpu's core load
- I think this is the same issue with Bug #4777.
-
10:38 PM Revision 9c36cb39 (git): * test/drb/ut_array.rb: uses 'druby://localhost:0' instead of nil
- as well as test/drb/ut_drb.rb. This fixes the same problem as
[ruby-dev:23078].
* test/drb/ut_array_drbssl.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:37 PM Revision 3c1a077f (git): merges a part of r31717 and a part of r31742.
- Fixes a problem in Tk.mainloop.
--
* ext/tk/lib/tk.rb: hang-up at exit before calling Tk.mainloop.
--
* ext/tk/lib/tk.rb: fail to start Tk.mainloop (exit immediately) on
some environment (reported on [ruby-talk:381444]).
git-svn-id: s... -
10:29 PM Feature #4824: Provide method Kernel#executed?
- Clifford Heath wrote:
> That is, the problem is that it's not obvious to a newcomer that __FILE__ means
> ...
`$PROGRAM_NAME` is an alias for `$0`.
But "`if __FILE__ == $PROGRAM_NAME`" is quite long.
-
04:29 PM Feature #4824: Provide method Kernel#executed?
- On 05/06/2011, at 4:01 PM, Lazaridis Ilias wrote:
> The clarity of the method name should be rated in it's OO context,
> like this:
I dispute the need for a method. That just forces someone to the
documentation
to know ... -
03:01 PM Feature #4824: Provide method Kernel#executed?
- Some notes subjecting the naming:
The clarity of the method name should be rated in it's OO context, like this:
~~~ruby
if self.executed? # or .started? .launched?, which means *not* .included? .required? .loaded?
# do main cod... -
03:53 AM Feature #4824: Provide method Kernel#executed?
- Some other suggestions:
~~~ruby
if main?
if first_script?
if main_script?
if run_script?
~~~
-Stephen
-
08:04 PM Feature #4830: Provide Default Variables for Array#each and other iterators
- [please, if possible, delete the non-relevant quoted message in your reply.]
Magnus Holm wrote:
> What happens in this case?
> ...
Possibly the same as with
item = 1
[1, 2, 3].each { |item| print item }
The outer loca... -
07:23 PM Feature #4830: Provide Default Variables for Array#each and other iterators
- What happens in this case?
```ruby
item = 1
[1, 2, 3].each { print item }
```
// Magnus Holm
-
05:23 PM Feature #4830 (Rejected): Provide Default Variables for Array#each and other iterators
- for arrays: use "item" by default
for hashes: use "key" and "value" by default
names = ["Jane", "Michele", "Isabella"]
names.each { |name| print name, "\n" }
names.each { print item, "\n" }
contact = {name:"Jane", phone:"12345... -
07:23 PM Feature #4822: String#capitalize improvements
- Anurag Priyam wrote:
> > Hmm, how about this?
> ...
As my example, this can't be perfect.
Such function should be provided by third party, like gems. -
06:29 PM Feature #4822: String#capitalize improvements
- > Hmm, how about this?
> str.gsub(/\w.*?[.!?](?:\s+|\z)/){|c|c.capitalize}
This solves my problem better than what I was doing. Thanks. Do you
think that other's could also benefit from such an extension to
`capitalize`, or i... -
07:17 PM Feature #4774 (Closed): User Friendly Handling of "Encoding::ConverterNotFoundError"
-
06:15 PM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
- Yui NARUSE wrote:
> Lazaridis Ilias wrote:
> ...
[...]
> > I start to understand that you want to tell me this:
> ...
I understand.
If it's so, then there is no need to do something more.
You can close/reject this issue (I ca... -
03:45 PM Bug #4828: crash in test_thread_instance_variable
- git bisect has been finished.
I hope every developers confirm test-all result *brefore* commit.
d22130922e7842226d38d59680e4bbb48a28a5f0 is the first bad commit
commit d22130922e7842226d38d59680e4bbb48a28a5f0
Author: ryan <ryan@b... -
03:16 PM Bug #4828: crash in test_thread_instance_variable
- Hm, Linux crash too.
-
02:51 PM Bug #4828: crash in test_thread_instance_variable
- Hm,
I've spent my time for printf() debugging. and I've found thread_free() is called twice, 1) from run_final() 2) from ruby_vm_destruct().
It seems silly. -
01:52 PM Bug #4828 (Closed): crash in test_thread_instance_variable
- "make test-all" on MacOS X makes following failure. It is very frequently happen.
1) Failure:
test_thread_instance_variable(TestThread) [/Users/kosaki/ruby/test/ruby/test_thread.rb:583]:
[ruby-core:35192].
<[]> expected but was
... -
03:23 PM Bug #3924: Performance bug (in require?)
- On 1/06/11 8:17 AM, Masaya Tarui wrote:
>
> Issue #3924 has been updated by Masaya Tarui.
>
>
>
> Hello,
>
> Require performance has been imporved a little at r31875, i think.
nice! It sure has.
> Please compare t... -
03:15 PM Feature #4796: Coverage should be restartable
- I tried this patch and it works as expected. Here is a patch for the test case, slightly cleaned up:
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb
index ace49d3..56966b1 100644
--- a/test/coverage/test... -
02:35 PM Revision ecaf7975 (git): * eval.c: remove rb_thread_stop_timer_thread function declaration.
- Instead, include vm_core.h.
* process.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:21 PM Bug #4829 (Closed): test_thread.rb reposet "malloc: *** pointer being freed was not allocated" on Mac OS X
- #4828 と全く同一でしたので duplicate として閉じます。
-
01:58 PM Bug #4829 (Closed): test_thread.rb reposet "malloc: *** pointer being freed was not allocated" on Mac OS X
- r31885 以降の trunk で make test-all TESTS="-vq ruby/test_thread.rb" を実行すると以下のように
free に不正なポインタを渡したというメッセージが出て Failure になります。
1) Failure:
test_thread_instance_variable(TestThread) [/Users/nagachika/opt/ruby-trunk/src/ruby/test/ruby/te... -
01:37 PM Bug #4827: meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
- crash in rb_method_entry_get_without_cache() is more frequently happen.
--------------------------------------------
Process: ruby-193 [8880]
Path: /Users/kosaki/ruby/ruby-193
Identifier: ruby-193
Version: ... -
05:11 AM Bug #4827 (Closed): meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
- TestFiber#test_term = 0.00 s = .
TestFiber#test_throw = 0.00 s = .
TestFiber#test_tls = 0.00 s = .
/Users/kosaki/ruby/lib/test/unit/parallel.rb:133: [BUG] Segmentation fault
ruby 1.9.3dev (2011-06-04 trunk 31919) [x86_64-darwin10.7.4... -
12:48 PM Revision 4010bc1e (git): * thread_pthread.c (thread_timer): add to care a spurious wakeup.
- When native_cond_timedwait() return 0 by spurious wakeup, we
don't have to neither 1) call timer_thread_function and 2)
exit the timer thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31926 b2dd03c8-39d4-4d8f-98ff-823fe69... - 08:53 AM Revision 64097bd7 (git): * ext/date/date_core.c (m_real_cwyear): new. derived from m_cwyear.
- * ext/date/date_strftime.c: trivial changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:23 AM Revision f6554c20 (git): * ext/tk/config_list.in: add new options for tcltklib.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:53 AM Bug #4826: Date fails RubySpec
- 6-12)
改暦日は現実的な範囲で。改暦日の範囲が限定されています。範囲外の日を指
定すると警告の上で無視するようになりました。
13)
テストとして少しおかしい、このテストに書いてある
BigDecimal::FloatDomainError は意味不明です。
ここで与えられている BigDecimal は、以前のコードでは浮動小数点数に感染
して無限大になるので、振舞いは Float#floor のもの。
... -
05:53 AM Feature #4801: Shorthand Hash Syntax for Strings
- On Sat, Jun 04, 2011 at 02:17:28AM +0900, Piotr Szotkowski wrote:
> // Apologies for the delayed reply – it takes
> // a bit to digest such a detailed response! :)
Oh, don't apologize - my fault for being way too elaborate and ... - 01:13 AM Revision a975bf24 (git): * ext/date/date_tmx.h: now does not place decoded data. allows to
- access indirectly via functions on demand.
* ext/date/date_strftime.c: ditto.
* ext/date/date_core.c: ditto.
* ext/date/date_core.c ({d|dt}_lite_to_s): use strftime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
06/04/2011
-
11:53 PM Feature #4824: Provide method Kernel#executed?
- On Sat, Jun 04, 2011 at 11:17:01PM +0900, Yukihiro Matsumoto wrote:
>
> I agree providing a method to tell whether it is loaded as a library
> or is executed as a command is more elegant than '__FILE__ == $0',
> but I am still ... -
11:16 PM Feature #4824: Provide method Kernel#executed?
- I agree providing a method to tell whether it is loaded as a library or is executed as a command is more elegant than '__FILE__ == $0', but I am still afraid #executed? can mean multiple ways so that the name can cause confusion. We nee...
-
07:59 PM Feature #4824 (Assigned): Provide method Kernel#executed?
- The current construct to execute main code looks not very elegant:
~~~ruby
if __FILE__ == $0
my_main() # call any method or execute any code
end
~~~
With a `Kernel#executed?` method, this would become more elegant:
... -
09:44 PM Bug #4826 (Closed): Date fails RubySpec
- 最近の Date の変更で、以下のように RubySpec が失敗しています。
RubySpec 側を直した方がいい物もあるような気がしますが、Date 側の問題もあるようなので確認頂けますか。
spec 側を直すべきものについてはあるべき挙動を教えて頂ければそう直します。
なお、RubySpec は http://rubyspec.org/ です。
RubySpec を実行するには、git をインストールした上で、
make update-rubys... -
09:32 PM Bug #4825 (Closed): BigDecimal#new is broken
- RubySpec にて以下のテストが失敗しています。
BigDecimal.new creates a new object of class BigDecimal FAILED
Expected #<BigDecimal:445ef968,'0.1E0',9(18)>
to equal (1/10)
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/bigdec... - 09:25 PM Revision 2473b2ce (git): * 2011-06-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 09:25 PM Revision fab22d5d (git): * NEWS: wrote about changes of date.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:23 AM Feature #4818: Add method marshalable?
- On Fri, Jun 3, 2011 at 1:44 PM, Joel VanderWerf
<joelvanderwerf / gmail.com> wrote:
> On 06/02/2011 07:07 PM, Joey Zhou wrote:
> ...
Or:
```ruby
hash = Hash.new { |h, k| h[k] = k * 2 }
class << hash
def marshal_dump
Hash[... -
08:17 AM Bug #4820: EXC_CRASH (SIGABRT)
- $ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
Rails development is Ruby on Rails in development mode.
Environment: MacBook Pro, 2.26GHz, 4G ram, OS X 10.6.7 (all updates applied), XCode 3.2.6
STEPS... - 08:02 AM Revision 6dc8503f (git): * ext/date/date_core.c (d_lite_inspect): changed the format.
- * ext/date/date_core.c: refactoring and fixing some bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:36 AM Bug #4823 (Closed): [doc] monitor
- Improved monitor.rb doc a bit.
-
04:10 AM Bug #4815 (Closed): RubyGems test failed
- This issue was solved with changeset r31915.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/rubygems/test_gem_commands_which_command.rb:
"missing" ex... -
03:49 AM Revision 83ef8ee7 (git): clone_const_i
- * class.c (clone_const_i, class_instance_method_list): get rid of
type-punning function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:32 AM Revision bf1a04b1 (git): * test/ruby/test_module.rb (TestModule#test_mix_const): test for
- constant mix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:30 AM Revision 40930b71 (git): * class.c (check_mix_method_i, do_mix_method_i): not mix methods
- renamed as nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 AM Bug #4803: RCLASS_SUPER won't compile for C extensions as of revision 31627
- just ran into this, as well
https://gist.github.com/1006162
If there's a work around do let us know :)
-roger-
06/03/2011
-
10:17 PM Feature #4822: String#capitalize improvements
- Anurag Priyam wrote:
> > You should use String#titleize provided by ActiveSupport.
> ...
Hmm, how about this?
str.gsub(/\w.*?[.!?](?:\s+|\z)/){|c|c.capitalize}
Of course, this is wrong for example "iPhone is designed by Apple in Ca... -
09:53 PM Feature #4822: String#capitalize improvements
- > You should use String#titleize provided by ActiveSupport.
> http://as.rubyonrails.org/classes/ActiveSupport/CoreExtensions/String/Inflections.html#M000381
But that capitalizes all the words in a string, no?. I am talking
abou... -
09:15 PM Feature #4822: String#capitalize improvements
- You should use String#titleize provided by ActiveSupport.
http://as.rubyonrails.org/classes/ActiveSupport/CoreExtensions/String/Inflections.html#M000381 -
08:50 PM Feature #4822: String#capitalize improvements
- > I am not sure what would it take to implement this.
I hacked up a quick, and dirty implementation in Ruby.
class String
alias _capitalize capitalize
def capitalize(regexp=nil)
return _capitalize unless regexp
... -
07:59 PM Feature #4822 (Rejected): String#capitalize improvements
- I think it would be helpful if `String#capitalize` could capitalize _sentences_, and not just the first letter of a string. We could optionally pass a regexp to identify sentence boundaries. If we don't pass this parameter `capitalize` b...
-
08:48 PM Bug #4433 (Closed): parallel_test中workerがrequireのwrong argument type StringIO (expected File) (TypeError)で落ちる
- This issue was solved with changeset r31910.
Shota, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/test/unit/parallel.rb: Keep $stdin, $stdout before run tes... -
07:20 PM Bug #4820 (Feedback): EXC_CRASH (SIGABRT)
- We need to the following additional information for fixing:
* What did you do to reproduce? what is "rails development"?
* we need raw output of `ruby -v`. Not only version number. (We need like platform str... like [x86_64-darwin10... -
02:24 PM Bug #4820 (Rejected): EXC_CRASH (SIGABRT)
- Ruby is crashing sporadically during rails development.
See crash logs: https://gist.github.com/982118
Have completely removed and reinstalled Xcode (3.2.6), ruby (via RPM), all gems. Still crashes. - 07:10 PM Revision a8009c20 (git): * 2011-06-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:09 PM Revision 1de2e1fd (git): * test/rubygems/test_gem_commands_which_command.rb:
- "missing" exists on ruby's top source directory. [Bug #4815]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:23 PM Bug #4808: thread_wait_for() eats 100% of CPU power
- >> 亀レスですいません。最近 Ruby/tk にCPU使用率を下げるコミットがいくつか
>> 入っているようですが、r31893 では不十分だったということなんでしょうか?
>> それとも、全然別件の改善なのでしょうか?
>
> ごめんなさい.紛らわしかったですね.
> 当初報告した問題は r31893 で解消しました.ありがとうございます.
>
> ですが,それでもなお CPU 利用率が高かったので,
> 以前と異なる方法で thr... -
06:23 PM Bug #4808: thread_wait_for() eats 100% of CPU power
- >> 亀レスですいません。最近 Ruby/tk にCPU使用率を下げるコミットがいくつか
>> 入っているようですが、r31893 では不十分だったということなんでしょうか?
>> それとも、全然別件の改善なのでしょうか?
>
> ごめんなさい.紛らわしかったですね.
> 当初報告した問題は r31893 で解消しました.ありがとうございます.
>
> ですが,それでもなお CPU 利用率が高かったので,
> 以前と異なる方法で thr... -
06:23 AM Bug #4808: thread_wait_for() eats 100% of CPU power
- 永井@知能.九工大です.
From: KOSAKI Motohiro <[email protected]>
Subject: [ruby-dev:43611] Re: [Ruby 1.9 - Bug #4808][Open] thread_wait_for() eats 100% of CPU power
Date: Thu, 2 Jun 2011 22:37:45 +0900
Message-ID: <BANLkTi=yran... -
06:23 AM Bug #4808: thread_wait_for() eats 100% of CPU power
- 永井@知能.九工大です.
From: KOSAKI Motohiro <[email protected]>
Subject: [ruby-dev:43611] Re: [Ruby 1.9 - Bug #4808][Open] thread_wait_for() eats 100% of CPU power
Date: Thu, 2 Jun 2011 22:37:45 +0900
Message-ID: <BANLkTi=yran... -
06:11 PM Bug #4821 (Rejected): Random Segfaults (in start_thread?)
- Rails application regularly encounters segfaults in random places (with or without mongomapper or zeromq, which are used in app).
Here output:
Started POST "/config/change_object_options" for 127.0.0.1 at 2011-06-03 12:13:41 +0400
... -
02:06 PM Bug #4819 (Closed): Documentation improvement for WEBrick::Utils
- I've added documentation to the WEBrick::Utils module.
Patch included. -
01:34 PM Feature #4818 (Assigned): Add method marshalable?
-
11:07 AM Feature #4818 (Assigned): Add method marshalable?
- Some objects can not be marshaled. Maybe there should be a method to tell it.
hash = Hash.new {|h,k| k * 2}
this hash can't be marshaled because it has a default proc. If existing such method:
Marshal.marshalable?(hash) #=> meth... -
01:07 PM Revision 7ad69031 (git): * lib/rubygems/test_case.rb: Refix for test-all in separate directory.
- r31147 + r31151.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 PM Revision 259f8416 (git): ChangeLog for r31910
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 11:59 AM Revision 7bc3e952 (git): * ext/date/date_core.c (d_lite_plus): get rid of compiler warnings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 11:58 AM Revision 799fafc0 (git): * include/ruby/missing.h, numeric.c (round): moved prototype of round()
- from numeric.c to missing.h. (note: round() is C99 feature, so ruby
provides it if not exists in C runtime.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:48 AM Revision d1a7670b (git): * lib/test/unit/parallel.rb: Keep $stdin, $stdout before run testcase
- and restore after run. Because some test break $stdin, $stdout.
Fixes [Bug #4433] [ruby-core:35353]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 10:59 AM Revision 19c78f9b (git): * io.c (io_fflush): windows -- call fsync() only when the FD is tied to
- file, because if the FD is pipe, it blocks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:32 AM Bug #4759 (Closed): Successful URI.parse to URI::HTTP can result in an error in request_uri
- This issue was solved with changeset r31907.
Markus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/http.rb (URI::HTTP#request_uri): return nil when the ... -
09:26 AM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
- Lazaridis Ilias wrote:
> Yui NARUSE wrote:
> ...
Yes.
> * The "ibm737-tbl.rb" (relevant for Windows Greek) was accidentally not included to ruby 1.9
Yes.
> ...
Yes, in the meaning of "run ruby and fail". -
09:22 AM Feature #4778 (Assigned): IO#each_chomped
-
09:21 AM Bug #4799 (Assigned): M17N tests are too JP specific
-
09:21 AM Bug #4817 (Third Party's Issue): Seg Fault Around xml_printer.rb
- It seems because of ruby-debug-ide.
-
06:38 AM Bug #4817 (Third Party's Issue): Seg Fault Around xml_printer.rb
- Following is the error as reported. I am running Ruby from Ruby Mine. This occurs every time I attempt to run the appliction using the debugger. Webrick fails to load.
Ruby is running on a Windows 7 64 bit machine.
C:/Ruby192/li... -
05:53 AM Bug #4814: minitest 2.2.x and test/unit do not get along
- On Jun 2, 2011, at 03:56 , Shota Fukumori wrote:
> could test again with `make TESTS -
04:53 AM Bug #3924: Performance bug (in require?)
- On 31/05/11 3:55 PM, Xavier Shay wrote:
> Two other options that maybe you will like:
> 1) store some metadata against entries in $LOADED_FEATURES to indicate
> whether they have been cached. rb_ary_push will not set this, so a qu... -
01:53 AM Bug #4683: [PATCH] io.c: copy_stream execute interrupts and retry
- Akira Tanaka <[email protected]> wrote:
> Issue #4683 has been updated by Akira Tanaka.
>
> File copy_stream_interrupt_handling-2.patch added
Patch looks good, thanks! Can you please commit?
> Adding public functions needs ... -
01:13 AM Bug #4777: Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONT
- Ok. I upgraded to the 2.6.39 kernel (using the kernel-ppa) and the problem went away. I know that there were some issues with 2.6.38 + bash related to signal handling*, although it is not clear to me if there was any kernel change to add...
- 12:32 AM Revision 3862d95f (git): * 2011-06-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:32 AM Revision a83f125c (git): * lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri
- is path-rootless form. Bug #4759
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
06/02/2011
-
10:53 PM Bug #4808: thread_wait_for() eats 100% of CPU power
- > いつからかは把握できていませんが (少なくとも 1.9.2p0 では発生しません),
> thread_wait_for() が CPU パワーを大量に消費するようになっています.
> # これが原因で,Ruby/Tk も CPU を 100 % 消費してしまいます.
>
> このままリリースになってしまうとかなりまずいと思いますので,
> 優先度 High で急ぎ報告だけあげておきます.
亀レスですいません。最近 Ruby/tk に... -
10:53 PM Bug #4808: thread_wait_for() eats 100% of CPU power
- > いつからかは把握できていませんが (少なくとも 1.9.2p0 では発生しません),
> thread_wait_for() が CPU パワーを大量に消費するようになっています.
> # これが原因で,Ruby/Tk も CPU を 100 % 消費してしまいます.
>
> このままリリースになってしまうとかなりまずいと思いますので,
> 優先度 High で急ぎ報告だけあげておきます.
亀レスですいません。最近 Ruby/tk に... -
10:23 PM Bug #4777 (Third Party's Issue): Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONT
- Nice information!!
But unfortunately, I've confirmed ruby-1.9.2p180 + Fedora15 + your test case doesn't reproduce the issue.
Also strace doesn't show any ruby fault. We have to conclude it's Ubuntu specific issue. I'm sorry.
-
01:01 AM Bug #4777: Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONT
- I have reproduced the same issue with Ubuntu 11.04 + ruby 1.9.2-p180 (I have not tried with other ubuntu versions). Here is a simple test script to reproduce the problem:
#!/usr/bin/env ruby
`/bin/true`
begin
require 'nonexis... -
08:20 PM Bug #4683: [PATCH] io.c: copy_stream execute interrupts and retry
- Adding public functions needs a discussion with ko1.
copy_stream_interrupt_handling-2.patch uses internal.h to share
declarations between io.c and thread.c. -
08:05 PM Feature #4806: A few Issues subjecting the Issue Tracker
- Yui NARUSE wrote:
> Lazaridis Ilias wrote:
[...]
> ...
Much better, but still a small detail:
1.9.2
about 10 months late (08/18/2010)
You should close 1.9.2, as it is released.
If you need a milestone for the maintenance... -
10:16 AM Feature #4806: A few Issues subjecting the Issue Tracker
- Lazaridis Ilias wrote:
> Yui NARUSE wrote:
> ...
Hmm, I fixed them.
> > > b) Please provide a "Category" "Project", thus issues subjecting the project infrastructure can be categorized.
> ...
Added. -
07:56 PM Bug #4814: minitest 2.2.x and test/unit do not get along
- could test again with `make TESTS="-v testunit/test_parallel.rb" test-all` at r31902?
I can't reproduce at `ruby 1.9.3dev (2011-06-02 trunk 31902) [x86_64-darwin10.7.0]`. -
07:29 PM Bug #4814: minitest 2.2.x and test/unit do not get along
- On Jun 1, 2011, at 21:33 , Shota Fukumori wrote:
> How I reproduce this issue?
make test-all was all I was doing.
The only oddity is that I delete the drb tests first because they fail spectacularly on osx (75 seconds per error... -
01:33 PM Bug #4814 (Feedback): minitest 2.2.x and test/unit do not get along
- Hi,
How I reproduce this issue? -
10:30 AM Bug #4814: minitest 2.2.x and test/unit do not get along
- Hi, ryan
Thank you for running test-all before commit.
But can you make a ticket when the commit will break test-all?
Especially for r31885, which broke installation, breaks continuous integration. -
07:37 AM Bug #4814 (Rejected): minitest 2.2.x and test/unit do not get along
- TestParallel tests are broken on trunk after my update of minitest (+ your patch to test/unit to get tests running).
32) Failure:
test_jobs_status(TestParallel::TestParallel) [/Users/ryan/Work/svn/ruby/ruby/test/testunit/test_parall... -
05:59 PM Feature #4801: Shorthand Hash Syntax for Strings
- On Thu, Jun 02, 2011 at 01:47:30PM +0900, Clifford Heath wrote:
> On 02/06/2011, at 1:29 PM, Kurt Stephens wrote:
> >Good point. However, if the internal symbol table used weak references to
> >Symbol objects,
> >all dynamic Sy... -
01:53 PM Feature #4801: Shorthand Hash Syntax for Strings
- On 02/06/2011, at 1:29 PM, Kurt Stephens wrote:
> Good point. However, if the internal symbol table used weak
> references to Symbol objects,
> all dynamic Symbols that are not pinned down by code could be
> garbage collect... -
12:23 PM Feature #4801: Shorthand Hash Syntax for Strings
- Clifford Heath wrote:
> ... the problem
> Cezary is talking about is where code that creates Symbols dynamically
> from Strings, that can create a potentially unbounded number of Symbols,
> none of which can be GC'd.
A... -
10:23 AM Feature #4801: Shorthand Hash Syntax for Strings
- On 02/06/2011, at 10:28 AM, Kurt Stephens wrote:
> A String used as inline or static nmenomic in real code is pinned
> down anyway and will not be GCed.
Yes it will. What's pinned down is a call to a constructor (with a
p... -
04:30 PM Feature #1081 (Closed): add File::write() convenience method
- This issue was solved with changeset r31902.
Suraj, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c: Add File.write, File.binwrite. [Feature #1081] [ruby-cor... - 02:52 PM Revision fe8002b1 (git): * lib/csv.rb: Improve the line ending detection algorithm
- (patch by Alexey).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:29 PM Bug #4813: test_minitest.rb failed on win32-x64
- wait, wait...
this is ruby's bug not minitest's.
IO#rewind do flush internally.
so, if this patch corrects some bugs, the internal flush process is something wrong. -
06:05 AM Bug #4813 (Closed): test_minitest.rb failed on win32-x64
- Thanks! I'll have this merged back into core in a sec. This will break other tests (intentionally) so I need to write up a ticket for sora first.
-
12:56 AM Bug #4813 (Closed): test_minitest.rb failed on win32-x64
- minitest.rb with external command 'diff' may fail on (at least on my) win32-x64 ruby.
Above patch fixed this.
--- lib/minitest/unit.rb~ 2011-06-01 22:09:05.000000000 +0900
+++ lib/minitest/unit.rb 2011-06-02 00:44:19.000000000 +0900... -
12:04 PM Bug #4815 (Closed): RubyGems test failed
- Following tests are failed.
This is because $LOAD_PATH includes the current directory which test-all is running,
and top source directory of ruby has the directory named "missing".
So test_execute_one_missing and test_execute_missing,... - 11:06 AM Revision fd8010fc (git): * io.c (rb_io_s_write, rb_io_s_binwrite): return!!!
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:02 AM Revision 61ac67c1 (git): merge revision(s) 31731:31734:
- * variable.c (rb_autoload_load): There is a race condition while
autoloading. When two or more threads touch a single autoloaded
constant at a time, one of them does the require, but others
behave od... -
10:02 AM Revision 6e96241d (git): patchlevel++
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@31903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:30 AM Revision 7b3948f0 (git): * io.c: Add File.write, File.binwrite. [Feature #1081] [ruby-core:21701]
- * test/ruby/test_io.rb: Test for File.write, File.binwrite.
* NEWS: News for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:24 AM Bug #4812 (Closed): tool/rbinstall.rb does not work with rubygems 1.8.5
- Looks like nobu beat you to the punch. Thanks tho!
-
06:23 AM Bug #4757: Attempt to make Enumerator docs more clear (patch included)
- On Jun 1, 2011, at 08:20 , Yusuke ENDOH wrote:
> The sample code looks very good! Thank you!
> But it is hard for me to parse the explanation:
>
> "Set the value for the next yield in the enumerator returns."
totally ... -
12:23 AM Bug #4757: Attempt to make Enumerator docs more clear (patch included)
- The sample code looks very good! Thank you!
But it is hard for me to parse the explanation:
"Set the value for the next yield in the enumerator returns."
2011/6/1 Eric Hodel <[email protected]>:
>
> Issue #4757 has been... -
05:06 AM Bug #4762: Adding documentation for mathn
- Awesome! Thanks Eric.
-
03:55 AM Feature #4086: Feature request: add String#contain? and {Enumerable,Array}#contain? methods
- No negative feedback so I created a patch for it. It would be great to have it reviewed before next feature freeze, whoever may do that.
Thanks!
-roger- - 03:35 AM Revision 2b0363df (git): * io.c (io_flush, rb_io_flush): need to fsync() when ruby calls internal
- flush. [ruby-core:36670] [Bug #4813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:46 AM Bug #4811 (Closed): Tk extconf.rb failed
- This issue was solved with changeset r31894.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/tk/extconf.rb: fix for uninitialized global variables. [Rub...