Project

General

Profile

Activity

From 10/08/2011 to 10/14/2011

10/14/2011

11:54 PM Feature #5448 (Feedback): Singleton module's ::instance method should forward parameters
=begin
Singleton has only one instance, why do you need parameters?
What's wrong with:
class FooSingleton < Foo
include Singleton
def initialize
super(1)
end
end
=end
nobu (Nobuyoshi Nakada)
11:30 PM Feature #5448 (Rejected): Singleton module's ::instance method should forward parameters
Hi there,
Classes mixing in the Singleton module currently aren't allowed to have parameters for their initialize method. This should be changed, because sometimes it's necessary to give some initial state information to the single(t...
Quintus (Marvin Gülker)
08:53 PM Feature #5445: Need RUBYOPT -r before ARGV -r
Hello,

2011/10/14 Thomas Sawyer <transfire@gmail.com>:
> Libraries given by -r options in RUBYOPT should be loaded before ones in direct command line arguments.


How about adding a new environment variable, such as RUBYOPT...
mame (Yusuke Endoh)
11:25 AM Feature #5445: Need RUBYOPT -r before ARGV -r
=begin
A patch follows.
diff --git i/ruby.c w/ruby.c
index 2e6751f..3c8bb3a 100644
--- i/ruby.c
+++ w/ruby.c
@@ -1251,9 +1251,13 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
VALUE src_enc_name = opt->src...
nobu (Nobuyoshi Nakada)
12:47 AM Feature #5445 (Assigned): Need RUBYOPT -r before ARGV -r
Libraries given by -r options in RUBYOPT should be loaded before ones in direct command line arguments.
I use a custom load system for development that I have been using for years and it works very well for me. But Ruby has some edge ...
trans (Thomas Sawyer)
06:07 PM Bug #5447 (Third Party's Issue): Rails can't create a new app when a folder with accented letter is in the path
It's thor's bug. naruse (Yui NARUSE)
05:03 PM Bug #5447 (Closed): Rails can't create a new app when a folder with accented letter is in the path
On OS X Lion 10.7.2
With ruby 1.9.3-RC1 and ruby 1.9.3-head
rvm install 1.9.3-head
rvm --create 1.9.3-head@rails3.1.1
rvm --default use 1.9.3-head@rails3.1.1
gem install rails
cd Documents/EMC/Émilie/rails/
rails new test_app
...
gnal-ybur (Joël Brogniart)
05:15 PM Feature #5446: at_fork callback API
As you know, we can only call asynchronous-signal-safe function between fork and exec when the process is multi threaded.
but ruby code invocation definitely need to use malloc which not async-signal-safe. so, it's pretty hard to implem...
kosaki (Motohiro KOSAKI)
11:10 AM Feature #5446 (Closed): at_fork callback API
It would be good if Ruby provides an API for registering fork() handlers.
This allows libraries to automatically and agnostically reinitialize resources
such as open IO objects in child processes whenever fork() is called by a user
...
normalperson (Eric Wong)
01:54 PM Revision 6d7df91c (git): * ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
08:19 AM Bug #5244: Continuation causes Bus Error on Debian sparc
Discussion of this issue is ongoing in this thread on sparclinux mailing list: http://marc.info/?t=131806608400002&r=1&w=2. jurij (Jurij Smakov)
07:12 AM Feature #5444: Object.free
And, of course, the gem is not guaranteed across revisions. nobu (Nobuyoshi Nakada)
01:17 AM Feature #5444 (Rejected): Object.free
While it might be considered useful from some brave power users, we are not going to add such unsafe features to the core.
Use the gem.
matz.
matz (Yukihiro Matsumoto)
12:28 AM Feature #5444 (Rejected): Object.free
I came across this gem today:
http://github.com/banister/free
Which led me to wonder if it might not be good to have this feature built-in to the core language. While not useful in most cases, it could be very useful to power-use...
trans (Thomas Sawyer)
03:14 AM Revision 039f12b5 (git): * ext/pty/pty.c (pty_check): should return nil until the child
terminates or stops. [ruby-dev:44600] [Bug #2642]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:19 AM Revision 3a0e582e (git): * include/ruby/intern.h (rb_ary_reverse): export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:50 AM Feature #5421: -r option useless
Thank you, Eric. I do believe that may be the most helpful comment you have ever given me. Even beyond this particular issue, it provides me some additional clarity on how best to present issues in the future. trans (Thomas Sawyer)

10/13/2011

10:37 PM Bug #5442: heredoc inside Hash initialization
I see, thanks jhej (Jonatan Hejzlar)
10:23 PM Bug #5442 (Rejected): heredoc inside Hash initialization
That's identical to
Hash[:a, "some text\n"
,:b,'other']
and produces a same error. So it is consistent. Place the comma beforehand. i.e.
Hash[:a, <<-EOS, :b, 'other']
some text
EOS
shyouhei (Shyouhei Urabe)
10:06 PM Bug #5442 (Rejected): heredoc inside Hash initialization
Shouldn't this initialization be valid?
Hash[:a,<<-EOS
some text
EOS
,:b,'other']
gives the following error
syntax error, unexpected ',', expecting ']'
jhej (Jonatan Hejzlar)
09:16 PM Revision 4f731db7 (git): * cont.c (fiber_store): balance braces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:58 PM Revision f3a62db7 (git): * 2011-10-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:58 PM Revision c96c193e (git): * atomic.h (ATOMIC_INC, ATOMIC_DEC): return old values.
[ruby-dev:44596] [Bug #5439]
* signal.c (ruby_atomic_exchange): no needs to define on the
platforms where atomic.h is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:04 PM Bug #5439 (Closed): r33361以降sample/test.rb:systemがFになる
This issue was solved with changeset r33460.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (rb_gc_finalize_deferred, rb_objspace_call_finalizer):
...
nobu (Nobuyoshi Nakada)
03:41 PM Bug #5439: r33361以降sample/test.rb:systemがFになる
> 3.いまatomicに対応してるのはgccとVCだけなので、#if defined(__SUNPRO_CC) だったら http://www.unix.com/man-page/OpenSolaris/9f/atomic_ops/ の命令つかって、atomicに動くように実装する
Solaris10ではヘッダの場所が #include <atomic.h> となっているのがOpenSolarisと違いますが、関数の仕様は同じのようです。(もっとも、Solar...
ngoto (Naohisa Goto)
03:13 PM Bug #5439: r33361以降sample/test.rb:systemがFになる
代入前の値を知りたいときは ATOMIC_EXCHANGE 使わないとダメ。
やらないといけないことが3つあって
1.ATOMIC_SETに void キャストいれて、戻り値使おうとしたらコンパイルエラーになるようにする
2.指摘されてる間違った ATOMIC_SEC を ATOMIC_EXCHANGEに変換
3.いまatomicに対応してるのはgccとVCだけなので、#if defined(__SUNPRO_CC) だったら
http://w...
kosaki (Motohiro KOSAKI)
03:12 PM Bug #5439: r33361以降sample/test.rb:systemがFになる
その他のコンパイラの場合はそれはそれで修正すべきと思いますが、sparc上のccにはatomic test and setみたいなインストラクション(があるのか存じ上げませんが)を生成する方法はないのでしょうか? あるのならそちらを使うようにするのが筋という気がします。 shyouhei (Shyouhei Urabe)
01:48 PM Bug #5439 (Closed): r33361以降sample/test.rb:systemがFになる
r33361の変更により、ccでコンパイルすると、プログラム終了時にfinalizerが呼ばれなくなり、sample/test.rb:system にFが出ます。
(Solaris 10, sparc, Sun Studio 11 にて確認)
% make test
(中略)
sample/test.rb:eval .............................
sample/test.rb:system .FFFF.F.
samp...
ngoto (Naohisa Goto)
10:39 AM Revision 5558de40 (git): * atomic.h (ATOMIC_*): use atomic_ops(3C) when SunStudio on Solaris.
[ruby-dev:44596] [Bug #5439]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
09:19 AM Revision 123645aa (git): * atomic.h(ATOMIC_SET): add cast to void to prevent misuse.
[ruby-dev:44596] [Bug #5439]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
09:04 AM Revision 09d18bec (git): * 2011-10-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:04 AM Revision c180eabf (git): * gc.c (rb_gc_finalize_deferred, rb_objspace_call_finalizer):
should use ATOMIC_EXCHANGE() to check the previous value.
[ruby-dev:44596] [Bug #5439]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:44 AM Feature #3631 (Closed): [PATCH] lib/rake.rb: allow passing nil to sh() and ruby()
drbrain (Eric Hodel)
06:50 AM Feature #3631: [PATCH] lib/rake.rb: allow passing nil to sh() and ruby()
Patch was rejected upstream, so please close this issue. sunaku (Suraj Kurapati)
05:23 AM Bug #5437: Using fibers leads to huge memory leak
Robert Pankowecki <robert.pankowecki@gmail.com> wrote:
> ruby -v: ruby 1.9.3dev (2011-10-11 revision 33457) [x86_64-linux]

> fibers = []
>
> GC.start

GC.start is never guaranteed to release memory (especially not with
...
normalperson (Eric Wong)
04:23 AM Feature #5427: Not complex patch to improve `require` time (load.c)
On Mon, Oct 10, 2011 at 1:53 AM, Yui NARUSE <naruse@airemix.jp> wrote:
[...]
> It's too late for 1.9.3.
> Its feature is frozen on July 10.

It is not a feature, just an optimization. So if it works well, it can
be included,...
yeban (Anurag Priyam)
01:15 AM Feature #5427: Not complex patch to improve `require` time (load.c)
Patch applies cleanly, builds on my Win7 32bit using TDM-GCC 4.6.1 at `ruby 1.9.3dev (2011-10-11 revision 33457) [i386-mingw32]` and passes all `make test-all TESTS='openssl fiddle psych' && make test`
Planning to benchmark and test s...
jonforums (Jon Forums)
02:19 AM Bug #5438 (Closed): [PATCH] Add exception hierarchy in Exception class documentation.
[PATCH] * error.c: Add exception hierarchy in Exception class documentation. sdaubert (Sylvain Daubert)

10/12/2011

10:41 PM Bug #5433: PTY.spawn Kernel panic on macos lion
@argami_toro It seems there may be some circumstances for Lion kernel to panic.
It is not always. 1.9.3 happen to hit that.
When Apple disclose that exact condition, we are possible to workaround.
shyouhei (Shyouhei Urabe)
10:20 PM Bug #5433: PTY.spawn Kernel panic on macos lion
So i have a question if is kernel bug why give a kernel error in 1.9.2 and not 1.9.3 or 1.8.7. argami (Gamaliel Toro)
09:09 PM Bug #5433: PTY.spawn Kernel panic on macos lion
Motohiro KOSAKI wrote:
> > Obviously, kernel bug.
> ...
It is an Apple's fault.
The first thing to be done is to blame Apple, not to report here.
You are a customer of Apple, not us.
However if you are not a customer but an employ...
shyouhei (Shyouhei Urabe)
08:51 PM Bug #5433: PTY.spawn Kernel panic on macos lion
> Obviously, kernel bug.
Even if so, we need workaround. isn't it?
kosaki (Motohiro KOSAKI)
05:50 PM Bug #5433 (Third Party's Issue): PTY.spawn Kernel panic on macos lion
Obviously, kernel bug. nobu (Nobuyoshi Nakada)
10:06 PM Bug #5437 (Rejected): Using fibers leads to huge memory leak
It appears to me that there is something wrong with reallocating (reusing?) memory used by fibers. Here is a little script: rupert (Robert Pankowecki)
09:42 PM Feature #3187: Allow dynamic Fiber stack size
I would also welcome such improvement. rupert (Robert Pankowecki)
07:08 PM Bug #5432: ruby 1.9.2-p290 ext/openssl build failure on Solaris 10 with Sun Workshop 12.1 or 12.2
On my machine running Solaris 10 on sparc, with Oracle Solaris Studio 12.2 and openssl 1.0.0d, the issue does not occur, and "make test" is finished without error.
% export PATH=/opt/solstudio12.2/bin:$PATH
% ./configure --prefix=/...
ngoto (Naohisa Goto)
02:54 PM Feature #3631: [PATCH] lib/rake.rb: allow passing nil to sh() and ruby()
I submitted this patch directly to the Rake project:
https://github.com/jimweirich/rake/pull/79
If it is accepted there, then perhaps someday it will
find its way back into ruby-core. One can only dream. :)
sunaku (Suraj Kurapati)
02:41 PM Revision 9f3f24e2 (git): * 2011-10-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:41 PM Revision a31495b1 (git): * test/openssl/test_ssl.rb: Move duplicated tests for SSL::Session to
test_ssl_session.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Hiroshi Nakamura
11:23 AM Bug #4157: test_pty で、たまに出る Failure
きしもとです

> 同じことができるというのは事実誤認です。
>
> 少なくとも PTY.open と spawn には制御端末を設定する機能がありません。

わかりました。deprecated 以降についての提案は一旦ひっこめます。

あと、るりまの記述を確認していったところ、確認しきれなかったので、
どなたかわかるかたに質問したいのですが、

> 子プロセスの状態を監視するために SIGCHLD シグナルを捕捉します。...
metanest (Makoto Kishimoto)
09:29 AM Bug #4157: test_pty で、たまに出る Failure
2011年10月12日9:03 KISHIMOTO, Makoto <ksmakoto@dd.iij4u.or.jp>:

> 「テストがたまに fail」の原因は、ktrace してみると read の時点で読めて
> ない、ということ以外、皆目掴めないのですが、PTY.open と Kernel#spawn
> を組み合わせて同じことをやった場合は問題が出ないようですし、Kernel#spawn
> の新しい機能を使えば PTY#getpty(...
akr (Akira Tanaka)
09:23 AM Bug #4157: test_pty で、たまに出る Failure
きしもとです

PTY についてですが、さらにいくつか気になったので、中間まとめを作ります。

・(るりま)1.9.2 で protect_signal が削除されたことに対応していない
・(るりま)1.9.2 (?) で SIGCHLD の捕捉をおこなわなくなったことに
 対応していない
・PTY.check を第二引数 raise=true で実行すると、子プロセスが実行中でも
 PTY::ChildExited が発生する(これは...
metanest (Makoto Kishimoto)
07:33 AM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
I updated a patch.
> % ./ruby -e 'a = (1.0..12.7).step(1.3).to_a; p a.all? {|n| n <= 12.7 }, a.last'
> ...
This issue has 3 options:
(1) ignore
(2) return end
(3) change step
In this thread, we don't ignore it, so (2) or (3).
...
naruse (Yui NARUSE)
03:51 AM Feature #5427: Not complex patch to improve `require` time (load.c)
On 11 October 2011 04:42, Urabe Shyouhei wrote:
> On 10/10/2011 07:51 PM, Yura Sokolov wrote:
> ...
I was also curious how it performed so I made a benchmark.
Please have a look at https://gist.github.com/1278881
Eregon (Benoit Daloze)
01:02 AM Feature #5427: Not complex patch to improve `require` time (load.c)
11.10.2011 06:42, Urabe Shyouhei пишет:
> On 10/10/2011 07:51 PM, Yura Sokolov wrote:
> ...
With my application
Before patch:
RAILS_ENV=production rails runner 'puts $LOADED_FEATURES.size'
985
real 0m6.089s
user 0m5.644s
sys 0m0.308s
...
funny_falcon (Yura Sokolov)

10/11/2011

11:23 PM Feature #5434: Allow per-class whitelisting of methods safe to expose through DRb
えっと、ブラックリストもそうなんですけど
ホワイトリスト以外のメソッドも工夫したら
すり抜けられると思いますけどどうしますか?

うっかりミスを防ぐことはできるから
宣言としての効果があるという意味でしょうか。


盲腸みたいなもんでこの辺はなかったことにしたい
ので入れたくないですが、積極的に反対を表明する
元気もない感じ...。


On 2011/10/11, at 13:11, Shyouhei Urabe wrote:

>
...
Anonymous
01:11 PM Feature #5434 (Assigned): Allow per-class whitelisting of methods safe to expose through DRb
We have following pull-request.
https://github.com/ruby/ruby/pull/50
How do you feel? I can merge this if you are OK.
shyouhei (Shyouhei Urabe)
09:53 PM Bug #4157: test_pty で、たまに出る Failure
がさごそやっていてちょっと気になったのですが、

PTY.getpty の rdoc には、疑似端末のマスターデバイスにつながった r と w
のオブジェクトが IO と書かれていますが、コードのほうは File を生成して
います。
metanest (Makoto Kishimoto)
07:47 PM Bug #5433: PTY.spawn Kernel panic on macos lion
ok in this 2 i have the issue
ruby 1.9.2p312 (2011-08-11 revision 32926) [x86_64-darwin11.0.1]
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin11.0.1]
Both installed with RVM compiler is gcc-4.2
here is the log:
Interval Sin...
argami (Gamaliel Toro)
05:44 PM Bug #5433 (Feedback): PTY.spawn Kernel panic on macos lion
mrkn (Kenta Murata)
05:43 PM Bug #5433: PTY.spawn Kernel panic on macos lion
Gamaliel, please give us the precise information of "ruby -v".
Moreover, please tell us what compiler you use for compiling your ruby.
mrkn (Kenta Murata)
05:42 PM Bug #5433: PTY.spawn Kernel panic on macos lion
Any kernel panic logs? sorah (Sorah Fukumori)
06:48 AM Bug #5433: PTY.spawn Kernel panic on macos lion
On Ruby 1.9.2-p290 compiled with GCC (not LLVM-GCC) OS X 10.7.1 panics when I run your command. drbrain (Eric Hodel)
06:17 AM Bug #5433: PTY.spawn Kernel panic on macos lion
Just happen in 1.9.2 in 1.9.3-head its ok argami (Gamaliel Toro)
05:58 AM Bug #5433 (Third Party's Issue): PTY.spawn Kernel panic on macos lion
If you execute a PTY.spawn with a non existing command give a kernel panic.
Example
require 'pty'
PTY.spawn('nonexistent-command')
argami (Gamaliel Toro)
10:55 AM Bug #5432 (Assigned): ruby 1.9.2-p290 ext/openssl build failure on Solaris 10 with Sun Workshop 12.1 or 12.2
MartinBosslet (Martin Bosslet)
05:29 AM Bug #5432 (Closed): ruby 1.9.2-p290 ext/openssl build failure on Solaris 10 with Sun Workshop 12.1 or 12.2
I've tried building ruby 1.9.2-p290 and ruby 1.8.7-p352 on x86_64-sun-solaris2.10 (Solaris 10 10/08, update 6) with the no-cost Sun/Oracle Workshop toolchain. I've tried both the Workshop 12.1 and the latest, 12.2, with the same results... enchanter (Tim Mooney)
10:27 AM Bug #5425: Improves Array's uniq/uniq! example
Eric Hodel wrote:
> Please watch for trailing whitespace in your patches.
Will do. Sorry for that. The idea is to ease your work, not burden it :P.
alvaropereyra (Alvaro Pereyra Rabanal)
08:50 AM Bug #5425 (Closed): Improves Array's uniq/uniq! example
This issue was solved with changeset r33453.
Alvaro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (rb_ary_initialize): Improve explanation of Array.ne...
drbrain (Eric Hodel)
08:44 AM Bug #5425: Improves Array's uniq/uniq! example
Please watch for trailing whitespace in your patches. drbrain (Eric Hodel)
07:58 AM Bug #5412: Array documentation
I made a few minor changes to your patch:
I aligned the various example result (#=>) markers for better readability
I changed edited some wording for flow and removed some fancy words (like heterogenous) because they were explained...
drbrain (Eric Hodel)
07:55 AM Bug #5412 (Closed): Array documentation
This issue was solved with changeset r33451.
Andrea, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c: Add a description to Array, minor cleanups. Patch ...
drbrain (Eric Hodel)
06:10 AM Bug #5430 (Closed): [PATCH] Update documentation for PP
This issue was solved with changeset r33450.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/pp.rb: Move PP documentation to top of class PP. Patch...
drbrain (Eric Hodel)
06:06 AM Bug #5428 (Closed): [PATCH] Update documentation for Coverage
This issue was solved with changeset r33449.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/coverage/coverage.c (Init_coverage): Change list format...
drbrain (Eric Hodel)
05:54 AM Bug #5426 (Closed): Adds reference to BasicObject on Object
This issue was solved with changeset r33447.
Alvaro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c (Init_Object): Add reference to BasicObject, brief
...
drbrain (Eric Hodel)
05:54 AM Bug #5426: Adds reference to BasicObject on Object
Please trim your trailing whitespace.
I modified your patch slightly to make it a bit more readable.
drbrain (Eric Hodel)
05:18 AM Feature #5431: Check issue with ruby-1.9.3-rc1
> /home/verbus/ruby-1.9.3-rc1/test/dl/test_func.rb:92: [BUG] Segmentation fault
> ...
This is DL & S390 specific issue. and I don't think dl has s390 port.
Moreover, we haven't tested ruby on s390. So, we are welcome if you can contrib...
kosaki (Motohiro KOSAKI)
04:13 AM Feature #5431 (Rejected): Check issue with ruby-1.9.3-rc1
Error Message: You may have encountered a bug in the Ruby interpreter or extension libraries.
See attached file for details.
Verbus
verbus (Verbus Counts)
02:50 AM Revision 14c3e60d (git): Skip too heavy test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:33 AM Revision 62b19328 (git): merge revision(s) 33296:
* test/-ext-/old_thread_select/test_old_thread_select.rb:
select() with timeout may return early in old Linux kernels
with 250 Hz tickrate and no dynticks, so skip everything older
than 2.6.32 (which has lon...
kosaki (Motohiro KOSAKI)
02:21 AM Revision 82f2c168 (git): * 2011-10-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:21 AM Revision 2f75c644 (git): merge revision(s) 33203:
------------------------------------------------------------------------
r33203 | naruse | 2011-09-06 04:11:21 -0400 (Tue, 06 Sep 2011) | 1 line
Use assert_operator to show clear message.
------------------------------------------------...
kosaki (Motohiro KOSAKI)
12:53 AM Feature #5400: Remove flip-flops in 2.0
> I have no objection to deletion, but I'm just curious.
> Why do you want to delete it aggressively?
>
> --
> Yusuke Endoh <mame@tsg.ne.jp>

I just want to get rid of complexity in the language.

Currently, flip-flops a...
judofyr (Magnus Holm)

10/10/2011

11:50 PM Revision 48cbe202 (git): * array.c (rb_ary_initialize): Improve explanation of Array.new
parameters. Patch by Alvaro Pereyra Rabanal. [Ruby 1.9 - Bug #5425]
* array.c (rb_ary_s_try_convert): Fix typo (try => tries)
* array.c (rb_ary_rindex): Add spacing for block.
* array.c (rb_ary_uniq_bang): Describe block
* array.c (...
drbrain (Eric Hodel)
11:14 PM Revision 84405113 (git): merge revision(s) r33265:
* lib/pstore.rb, test/test_pstore.rb: suppress warnings with -v.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:55 PM Revision 06e3f349 (git): * array.c: Add a description to Array, minor cleanups. Patch by
Andrea Singh. [Ruby 1.9 - Bug #5412]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:10 PM Revision 627c179a (git): * lib/pp.rb: Move PP documentation to top of class PP. Patch by
Sylvain Daubert. [Ruby 1.9 - Bug #5430]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:06 PM Revision ccec5b49 (git): * ext/coverage/coverage.c (Init_coverage): Change list format and
describe Coverage.result output. Patch by Sylvain Daubert.
[Ruby 1.9 - Bug #5428]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:54 PM Revision 55b3a88b (git): * 2011-10-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:54 PM Revision ee8fd5f1 (git): * object.c (Init_Object): Add reference to BasicObject, brief
explanation of constant lookup. Based on patch by Alvaro Pereyra
Rabanal.
[Ruby 1.9 - Bug #5426]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:13 PM Bug #5401: Ruby 1.9.3 interpreter crash
I cannot reproduce this issue because therubyracer isn't able to install on my environment, Mac OS X 10.7 with Xcode 4.1.
Would you please make the smallest reproduction code.
mrkn (Kenta Murata)
05:23 AM Feature #5427: Not complex patch to improve `require` time (load.c)
It's too late for 1.9.3.
Its feature is frozen on July 10.
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/37865
naruse (Yui NARUSE)
04:53 AM Bug #5429: 64ビットなFreeBSDのioctlでビット31が1なリクエストの時の不具合
> == Linux
> extern int ioctl (int __fd, unsigned long int __request, ...) __THROW;
> manpageは以下の通りだが、実際のヘッダは異なる。
> int ioctl(int d, int request, ...);
> https://www.kernel.org/doc/man-pages/online/pages/man2/ioctl.2.html
>
...
kosaki (Motohiro KOSAKI)
01:52 AM Bug #5429: 64ビットなFreeBSDのioctlでビット31が1なリクエストの時の不具合
ざっと調べてみましたが、
== POSIX
int ioctl(int fildes, int request, ... /* arg */);
http://pubs.opengroup.org/onlinepubs/9699919799/functions/ioctl.html
== AIX
int ioctl (fd, request, .../*arg*/)
int fd;
int request;
int .../*arg*/;
...
naruse (Yui NARUSE)
12:39 AM Bug #5429 (Closed): 64ビットなFreeBSDのioctlでビット31が1なリクエストの時の不具合
64ビットなFreeBSD 8において、ioctl(2)のプロトタイプ宣言は以下のように
なっていて、
int
ioctl(int d, unsigned long request, ...);
ビット31(32ビットであればMSB)が1なリクエストでも、上位ビットがゼロ拡張
された64ビット値を期待しています。
それに対しrubyのtrunkではIO#ioctlの引数の値の範囲は符号付き32ビットに
なっていて、最終的にio.cのnogvl_...
metanest (Makoto Kishimoto)
03:25 AM Bug #5425: Improves Array's uniq/uniq! example
Thanks Benoit. I've fixed that typo and used the same explanation for both uniq and uniq!. Also made some other changes to other sections on the Array. alvaropereyra (Alvaro Pereyra Rabanal)
02:06 AM Bug #5412: Array documentation
Hi Eric,
I made the adjustments you requested. I added the * for blank lines and linked the references to other methods where possible. In some instances, like for Array#<< or Array#[] adding the hash mark didn't create the link. Not ...
madebydna (Andrea Singh)
01:37 AM Bug #5430 (Closed): [PATCH] Update documentation for PP
Move documentation block in front of class definition. sdaubert (Sylvain Daubert)

10/09/2011

10:42 PM Bug #5428 (Closed): [PATCH] Update documentation for Coverage
Format numbered list in Usage paragraph. Add a little explanation about array content from return hash. sdaubert (Sylvain Daubert)
09:32 PM Bug #5425: Improves Array's uniq/uniq! example
There is a typo in the example for uniq:
b.uniq!{ ...
Also, the added description how to pass a block should be the same in uniq and uniq! (I prefer the one of uniq!).
Thanks for documenting in sentences this behavior.
Eregon (Benoit Daloze)
08:04 AM Bug #5425 (Closed): Improves Array's uniq/uniq! example
Updates examples on uniq and uniq! with a more cleaner case. Changes wording to refer a block is possible. alvaropereyra (Alvaro Pereyra Rabanal)
05:51 PM Feature #5427: Not complex patch to improve `require` time (load.c)
Is there any chance for it or something like it to be included in 1.9.3 release? funny_falcon (Yura Sokolov)
05:49 PM Feature #5427 (Closed): Not complex patch to improve `require` time (load.c)
Currently `loaded_features` are unsorted, so that `rb_feature_p` ought to iterate over all `loaded_features` to figure: is requested feature loaded?
After this patch `loaded_features` is kept sorted by basename without extension (/usr...
funny_falcon (Yura Sokolov)
03:10 PM Revision ea627f36 (git): * 2011-10-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:10 PM Revision b8419bf8 (git): Skip test_array_literal. [Backport #5369]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:19 PM Revision 855c6b45 (git): merges r33398 from trunk into ruby_1_9_3.
--
* lib/time.rb (Time.strptime): use Time.at if d[:seconds] is set.
Reported by Christopher Eberz. [ruby-core:39903] Bug #5399
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
01:19 PM Revision 341d9e58 (git): * 2011-10-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:18 PM Revision b3da86e8 (git): merges r33379 and r33395 from trunk into ruby_1_9_3.
--
* gc.c (rb_gc_set_params): output GC parameter change messages only
if -w/-v options are specified. these messages are output to stderr,
not to stdout. [ruby-core:39795] [Bug #5380]
* test/ruby/test_gc.rb (test_gc_parameter): add...
yugui (Yuki Sonoda)
01:17 PM Revision b9762ef2 (git): merges 33352 from trunk into ruby_1_9_3.
--
* configure.in (pthread_np.h): needs pthread.h to be included
previously on OpenBSD. a patch by George Koehler <xkernigh AT
netscape.net> at [ruby-core:39752]. [Bug #5376]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ru...
yugui (Yuki Sonoda)
01:15 PM Revision 587016b4 (git): merges r33264 from trunk into ruby_1_9_3.
--
* lib/pstore.rb (PStore): always open in binary mode even if
default encodings are set. [Bug #5311] [ruby-core:39503]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
11:49 AM Bug #5193: ruby_thread_data_type linker errors fixed with RUBY_EXTERN
I've merged nobu's changes, and they're at rubyforge ( http://rubyforge.org/frs/?group_id=8883 )
I'm getting a segmentation fault running the "where" command in ruby-debug19. I've traced it to this ruby code:
id = context_frame_method(...
mark-moseley (Mark Moseley)
10:46 AM Feature #5421: -r option useless
Eric Hodel wrote:
> You should file a new feature request like "RUBYOPT should be parsed before ARGV so require may be overridden".
-T option should prohibit RUBYOPT, so the request should like:
"libraries given by -r options in RUB...
nobu (Nobuyoshi Nakada)
03:59 AM Feature #5421: -r option useless
This is the first time you have mentioned that you are using a custom load manager.
As I've shown above with your req.rb example, a custom loader works fine with -r. It is not a special case for RubyGems. It is a problem of when you...
drbrain (Eric Hodel)
08:09 AM Bug #5426 (Closed): Adds reference to BasicObject on Object
Currently Object doesn't references BasicObject. Patch adds a couple of small changes to it. Also adds some small updates to Class. alvaropereyra (Alvaro Pereyra Rabanal)
02:18 AM Revision 91e013c7 (git): * 2011-10-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:18 AM Revision a30fd3b6 (git): * test/psych/test_yamldbm.rb: don't run test if the system
don't support yaml/dbm.
* test/syck/test_yamldbm.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)

10/08/2011

05:24 PM Feature #4666: set ruby compatibility version to 1.9.3 in trunk
I this that this bug should be closed.
Either the ABI changed between 1.9.2 and 1.9.3, or it did not.
If it changed, then we are required to bump the SONAME, and that means upgrading the ruby compatibility level to 1.9.3.
If it ...
lucas (Lucas Nussbaum)
04:55 PM Feature #5421: -r option useless
Shall I try again to explain what should be obvious? I use a custom load manager for development. It works well and I have used it for years. However there are issues with special cases. autoload is one. -r is another. b/c of this my loa... trans (Thomas Sawyer)
03:16 PM Feature #5421: -r option useless
=begin
req.rb doesn't seem to match your description:
$ ruby -rmyplugin script.rb
It tells me "no such file" for myplugin.
Where is myplugin.rb? If it is in a gem this should work fine as I've shown above. If it's in th...
drbrain (Eric Hodel)
09:33 AM Feature #5421: -r option useless
How was this fixed? I updated to latest 1.9.3-rc1.
$ cat req.rb
p "Custom Require"
module Kernel
alias :require0 :require
def require(*a)
puts "Kernel#require"
p a
require0(*a)
end
...
trans (Thomas Sawyer)
06:45 AM Feature #5421 (Rejected): -r option useless
=begin
ruby -r uses RubyGems now, you probably need to upgrade your ruby:
$ gem19 which nokogiri
/usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0/lib/nokogiri.rb
$ ruby19 -rnokogiri -ve 'p Nokogiri'
ruby 1.9.3dev (2011-0...
drbrain (Eric Hodel)
11:59 AM Feature #5400: Remove flip-flops in 2.0
Hi,
Under the current plan, I am not going to remove flip-flop from 2.0,
since we are not going to made incompatible changes anytime soon. We
have to wait until 3.0.
matz.
matz (Yukihiro Matsumoto)
11:51 AM Feature #5400: Remove flip-flops in 2.0
I'll be a little sad if the flip flop operator is removed, but it is a Perlism, and Ruby is gradually getting rid of Perlisms. I suspect it won't be around in 100 years time, and I've heard that flip-flops aren't mentioned in the Ruby sp... agrimm (Andrew Grimm)
02:53 AM Feature #5400: Remove flip-flops in 2.0
On Tue Oct 04 2011 @ 4:43, Magnus Holm wrote:
> Nobody knows them. Nobody uses them. Let's just get rid of flip-flops,
> shall we?

As someone who came to Ruby from Perl, I also use/like the flip-flop
operator.

Having sa...
telemachus (Peter Aronoff)
11:34 AM Revision 27cec632 (git): merge revision(s) 33364:
------------------------------------------------------------------------
r33364 | naruse | 2011-09-29 20:18:18 -0400 (Thu, 29 Sep 2011) | 1 line
Fix wrong expectaion of r33363.
-----------------------------------------------------------...
kosaki (Motohiro KOSAKI)
11:32 AM Revision da8a6a65 (git): merge revision(s) 33363:
* array.c (ary_join_1): should not copy the encoding of non-string
element after string element. [ruby-core:39776] [Bug #5379]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33436 b2dd03c8-39d4-4d8f-98ff-823...
kosaki (Motohiro KOSAKI)
10:53 AM Revision 54ecf81f (git): merge revision(s) 33386:
* lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into the
Gem namespace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
10:38 AM Revision 370a64cf (git): merge revision(s) 33394:
------------------------------------------------------------------------
r33394 | naruse | 2011-10-03 21:25:04 -0400 (Mon, 03 Oct 2011) | 1 line
Fix test of gc introduced in r33379.
------------------------------------------------------...
kosaki (Motohiro KOSAKI)
10:37 AM Revision 8eecb0a9 (git): merge revision(s) 33379:
* gc.c (rb_gc_set_params): output GC parameter change messages only
if -w/-v options are specified. these messages are output to stderr,
not to stdout. [ruby-core:39795] [Bug #5380]
* test/ruby/test_gc.rb (te...
kosaki (Motohiro KOSAKI)
10:26 AM Revision 0accf1fb (git): merge revision(s) 33368:
* gc.c (add_heap_slots, init_heap): reset heaps_inc zero when
heap slots are expanded by environment variable RUBY_HEAP_MIN_SLOTS.
[ruby-core:39777] [Bug #5380]
* test/ruby/test_gc.rb (test_gc_parameter): add...
kosaki (Motohiro KOSAKI)
10:20 AM Bug #5423 (Assigned): readlineの入力待機中に端末のウィンドウサイズ変更すると入力内容が乱れる
sorah (Sorah Fukumori)
10:18 AM Bug #5423 (Closed): readlineの入力待機中に端末のウィンドウサイズ変更すると入力内容が乱れる
Readline.readline("> ")の入力待機中にターミナルのウィンドウサイズを変更すると、
入力内容がウィンドウサイズ変更に合わせて変化せず、画面が乱れます。
readlineがSIGWINCHに反応しないように設定されているのが原因のようです。
revision 24140で追加されたrl_catch_sigwinch = 0;が該当部分になります。
rl_catch_signals=0を設定した場合でも、SIGWINCHは反応すべき(rl...
matsuu (Takuto Matsuu)
09:48 AM Revision cc239463 (git): merge revision(s) 33391:
* proc.c (proc_call): Update documentation to match argument handling
of proc/Proc.new/lambda/->()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
09:42 AM Revision e1960cdb (git): merge revision(s) 33390:
* proc.c (proc_call): Fix documentation of Proc#call vs Proc#===.
[Ruby 1.9 - Bug #5349]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:56 AM Bug #5411: Some enum.c doc tweaks
Yours is better, I applied it! drbrain (Eric Hodel)
07:06 AM Feature #5422 (Closed): File.fnmatch != Dir.glob # {no,sets}
Hello,
The File.fnmatch methods do not support Dir.glob's set notation:
>> Dir.glob '{.g,t}*'
=> [".gem", "test"]
> ...
=> false
>> File.fnmatch? '{.g,t}*', '.gem'
=> false
Please add set notation to fnmatch() and make it eq...
sunaku (Suraj Kurapati)
06:54 AM Feature #2348: RBTree Should be Added to the Standard Library
On 08/10/2011, at 1:10 AM, James Gray wrote:
> On Fri, Oct 7, 2011 at 1:20 AM, Clifford Heath <clifford.heath@gmail.com> wrote:
>> On 07/10/2011, at 1:16 PM, Kenta Murata wrote:
>>> (2011.10.07 01:50 ), David Graham wrote:
>>>> Is t...
cjheath (Clifford Heath)
03:54 AM Bug #5412: Array documentation
Overall this patch is good, but needs some small adjustments.
The new additions to the top-level documentation should include a * even for blank lines.
When you're referring to other methods they should not be surrounded by "+" or "
drbrain (Eric Hodel)
03:21 AM Bug #5417 (Closed): Some documentation for Shell
This issue was solved with changeset r33427.
Carol, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/shell.rb: Document some methods of Shell. Patch by Carol...
drbrain (Eric Hodel)
 

Also available in: Atom