Project

General

Profile

Activity

From 02/20/2012 to 02/26/2012

02/26/2012

11:33 PM Feature #6012: Proc#source_location also return the column
BTW & OT: When is any one going to explain how we format code examples as monospace text on this site? trans (Thomas Sawyer)
11:32 PM Feature #6012: Proc#source_location also return the column
Would this effect Method#source_location too?
I'm not sure I am really digging this idea. First of all it means I have to go back and fix some code. Secondly it means I have to always worry about the additional piece of data even thou...
trans (Thomas Sawyer)
06:26 PM Bug #6089 (Closed): Test suite fails with OpenSSL 1.0.1
It seems that the patch [1] changes the behavior of openssl and makes the test_x509cert.rb fail:
1) Failure:
test_dsig_algorithm_mismatch(OpenSSL::TestX509Certificate) [test/openssl/test_x509cert.rb:175]:
OpenSSL::X509::Certificat...
vo.x (Vit Ondruch)
06:23 PM Feature #5958: ThreadGroup#join
(2012/02/26 17:32), Masaki Matsushita wrote:
> I think `ThreadGroup#join` may be more useful if it catches exceptions from all its threads and handles them like the following.
> ...

This behavior is very confusing for me.
I know it...
ko1 (Koichi Sasada)
05:32 PM Feature #5958: ThreadGroup#join
Koichi Sasada wrote:
> What should happen when at least one thread causes an exception?
Under the patch, joining thread also causes the exception if the thread is being joined.
Otherwise, nothing will happen on joining thread.
It b...
Glass_saga (Masaki Matsushita)
05:28 PM Revision 660a3298 (git): merge revision(s) 34821:
* regparse.c (add_code_range_to_buf0): wrong condition of duplicated
warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:58 PM Bug #6058: Stack overflow in SEGV Handler
r34817 の修正で私の手元でも直っていることを確認しました(ありがとうございます!)。
一応ご報告しておきます。
authorNari (Narihiro Nakamura)
05:48 AM Bug #6058: Stack overflow in SEGV Handler
ああ、思い出した。もともと buf[256] をここで使ってなかったのは
・ファイル名、行番号はスクリプト依存なので非常に長いファイル名を故意に生成可能なので二重SEGVを防ぐために上限を決める必要がある。ふつうファイル名は256程度で十分だろう
・fmt引数はRuby本体からわたされるので、長すぎるfmtがわたされたら呼び出し側のバグだろう
という意図でした。なので、256のままでいいのかちょっと自信がありません。たぶん大丈夫だと思いますが
kosaki (Motohiro KOSAKI)
05:44 AM Bug #6058 (Assigned): Stack overflow in SEGV Handler
workaroundとしてはこれで直りそうですが、元々のSEGVがあんまりなっとくいってないのでしばらく開き続けさせてください。ひまが出来たら追っかける kosaki (Motohiro KOSAKI)
05:37 AM Bug #6058 (Closed): Stack overflow in SEGV Handler
This issue was solved with changeset r34817.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* error.c (report_bug): use buf and snprintf to avoid consumi...
naruse (Yui NARUSE)
02:32 PM Revision a77ea177 (git): * regparse.c (add_code_range_to_buf0): wrong condition of duplicated
warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:08 PM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
=begin
This patch updates existing (({return Qnil; /* not reached */})) with (({UNREACHABLE;}))
I did not change (({trace_en()})) in variable.c as it seems to return, I think the (({/* not reached */})) should be removed, but can you...
drbrain (Eric Hodel)
01:39 PM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
This patch updates all -Wreturn-type warning locations to use the UNREACHABLE macro. drbrain (Eric Hodel)
07:02 AM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
Thank you, I will post an updated patch using UNREACHABLE drbrain (Eric Hodel)
01:52 PM Bug #6001: Retry idempotent HTTP requests for more errors
Eric Hodel wrote:
> If I update to (({assert_raises(EOFError, IOError, Errno::ECONNRESET) {})) may I commit?
Yes, please
naruse (Yui NARUSE)
06:57 AM Bug #6001: Retry idempotent HTTP requests for more errors
=begin
If I update to (({assert_raises(EOFError, IOError, Errno::ECONNRESET) {})) may I commit?
=end
drbrain (Eric Hodel)
06:15 AM Bug #6001: Retry idempotent HTTP requests for more errors
> - assert_raises(EOFError) {
> ...
On my environment, EOFError and Errno::ECONNRESET may happen.
Others are ok.
naruse (Yui NARUSE)
11:30 AM Feature #6082: io_binwrite()内でwritev()を使う
Nobuyoshi Nakada wrote:
>sys/uio.hが必要です。
ご指摘とpatchをありがとうございます。
なかださんのpatchを適用して1つにまとめたpatchを添付します。
Glass_saga (Masaki Matsushita)
11:26 AM Bug #5966 (Closed): ->{} doesn't work in BasicObject
This issue was solved with changeset r34819.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c (iseq_compile_each): call on special object instead...
nobu (Nobuyoshi Nakada)
04:23 AM Bug #5966: ->{} doesn't work in BasicObject
Hi,

(2012/02/11 6:56), Nobuyoshi Nakada wrote:
> File 0001-Bug-5966-lambda-in-BasicObject.patch added
> Status changed from Open to Assigned
> Assignee set to Koichi Sasada

Thank you. Please commit it.

> I'm not su...
ko1 (Koichi Sasada)
07:53 AM Bug #5765: [PATCH] modernize Timeout usage in net/{http,pop,smtp,telnet}
Eric Hodel <drbrain@segment7.net> wrote:
> I like this patch.
>
> This patch will collide with #6001, though, since I introduce
> Net::HTTP::OpenTimeout as a subclass of Timeout::Error. Should we add
> Net::OpenTimeout inste...
normalperson (Eric Wong)
07:22 AM Bug #5765: [PATCH] modernize Timeout usage in net/{http,pop,smtp,telnet}
The attached patch combines the original patch with the introduction of Net::OpenTimeout. drbrain (Eric Hodel)
07:15 AM Bug #5765: [PATCH] modernize Timeout usage in net/{http,pop,smtp,telnet}
I like this patch.
This patch will collide with #6001, though, since I introduce Net::HTTP::OpenTimeout as a subclass of Timeout::Error. Should we add Net::OpenTimeout instead of Net::HTTP::OpenTimeout?
See also #6088 where I intr...
drbrain (Eric Hodel)
06:23 AM Bug #5765: [PATCH] modernize Timeout usage in net/{http,pop,smtp,telnet}
Koichi Sasada <redmine@ruby-lang.org> wrote:
> Any progress?

Patch still applies to trunk with offsets. I was hoping somebody
else can review it (I never trust anything I write :)

> I think it is good timing that you beco...
normalperson (Eric Wong)
07:24 AM Feature #6088: Add Net::ReadTimeout to distinguish which operation failed
The attached patch adds Net::ReadTimeout to Net::Telnet. drbrain (Eric Hodel)
07:14 AM Feature #6088 (Closed): Add Net::ReadTimeout to distinguish which operation failed
This relates to #5765 which improves use of timeout in net/ and #6001 which introduces Net::HTTP::OpenTimeout.
This patch introduces Net::ReadTimeout as a subclass of Timeout::Error and raises it when a read operation takes too long. ...
drbrain (Eric Hodel)
06:21 AM Bug #6087: How should inherited methods deal with return values of their own subclass?
I would think these methods should be using `self.class.new` for constructors thus returning the subclass. Although, that might not always possible. trans (Thomas Sawyer)
06:02 AM Bug #6087 (Closed): How should inherited methods deal with return values of their own subclass?
Just noticed that we still don't have a consistent way to handle return values:
```ruby
class A < Array
end
a = A.new
a.flatten.class # => A
a.rotate.class # => Array
(a * 2).class # => A
(a + a).class # => Array
```
S...
marcandre (Marc-Andre Lafortune)
06:02 AM Bug #4821 (Feedback): Random Segfaults (in start_thread?)
naruse (Yui NARUSE)
05:35 AM Feature #1586: Including a module already present in ancestors should not be ignored
Koichi Sasada wrote:
> I want to change this behavior as permitting multiple modules in an ancestors list (option B).
> ...
That would be great.
I'm assuming it be allowed to include a module multiple times in a row too?
~~~ruby
...
marcandre (Marc-Andre Lafortune)
05:19 AM Feature #1586 (Open): Including a module already present in ancestors should not be ignored
I want to change this behavior as permitting multiple modules in an ancestors list (option B).
Can I do it? (If I can, I'll implement it after this Apr).
ko1 (Koichi Sasada)
04:13 AM Feature #6074: Allow alias arguments to have a comma
I might have sounded more negative than I intended, so let me say that I also agree that we should allow a comma. marcandre (Marc-Andre Lafortune)
03:26 AM Revision 331d6b34 (git): merge revision(s) 34819:
* compile.c (iseq_compile_each): call on special object instead of
self. since stabby lambda is a syntax, so it should not be
affected by the context. [ruby-core:42349][Bug #5966]
* insns.def (send): no spe...
nobu (Nobuyoshi Nakada)
02:26 AM Revision 6a8d0097 (git): * compile.c (iseq_compile_each): call on special object instead of
self. since stabby lambda is a syntax, so it should not be
affected by the context. [ruby-core:42349][Bug #5966]
* insns.def (send): no special deal for FCALL. self should be put
on TOS instead.
git-svn-id: svn+ssh://ci.ruby-lang...
nobu (Nobuyoshi Nakada)
01:06 AM Feature #5690: Module#qualified_const_get
@Xavier Let me "qualify" that ;-) I think your reasoning made very good sense for adding to ActiveSupport. But becoming part of Ruby, there is the opportunity to do it "right", as your last statement concurs.
trans (Thomas Sawyer)
01:04 AM Feature #5690: Module#qualified_const_get

I don't think the name is particularly obvious. Nevertheless, I am hopeful that it won't matter. I think `const_get` can accommodate. In fact, I think it can even be made to handle:
const_get('Foo', 'Bar::Baz') #=> Foo::Bar::Baz
...
trans (Thomas Sawyer)
12:58 AM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
Yusuke Endoh wrote:
> I agree with akr; Martin's proposal depends on the type long, which
> ...
Having something like that would of course be pure luxury :) I really
like it because it is friendly to clients in the sense that
they c...
MartinBosslet (Martin Bosslet)
12:51 AM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
Akira Tanaka wrote:
> 2012/2/25 Martin Bosslet <Martin.Bosslet@googlemail.com>:

> ...
I meant that it would become tightly coupled without further
comment on the expected transfer format. If the internal
representation happens to...
MartinBosslet (Martin Bosslet)

02/25/2012

11:42 PM Feature #6070: The scope of for loop variables
Hi,
> I agree with your opinion regarding the current side effect problems of
> ...
Thanks for your agreement:)
I've updated my patch, whose changes are:
* use NODE_MEMO to avoid memory leak when parsing of expr_value failed.
...
shugo (Shugo Maeda)
03:23 AM Feature #6070: The scope of for loop variables
On Fri, Feb 24, 2012 at 02:25:57PM +0900, Shugo Maeda wrote:
>
> Issue #6070 has been updated by Shugo Maeda.
>
> File for_loop_scope_fix_2.diff added
>
> Hi,
>
> Shugo Maeda wrote:
> > There is at least one problem in this...
Anonymous
09:10 PM Bug #6036: Test failures in Fedora Rawhide/17
Could you make another ticket ans assign it to Martin Boßlet about openssl? naruse (Yui NARUSE)
12:34 AM Bug #6036: Test failures in Fedora Rawhide/17
It seems that the patch [1] changes the behavior of openssl and makes the test_x509cert.rb fail:
1) Failure:
test_dsig_algorithm_mismatch(OpenSSL::TestX509Certificate) [test/openssl/test_x509cert.rb:175]:
OpenSSL::X509::Certific...
vo.x (Vit Ondruch)
08:37 PM Revision 767848e0 (git): * 2012-02-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:37 PM Revision d068ac8e (git): * error.c (report_bug): use buf and snprintf to avoid consuming stack.
[ruby-dev:45272] [Bug #6058]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:37 PM Revision 2646c694 (git): avoid rdoc's warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:23 PM Feature #6074: Allow alias arguments to have a comma
Hi,
(12/02/25 13:51), Koichi Sasada wrote:
> I think there are no reason why comma should be rejected.
It's simple.
~~~diff
diff --git a/parse.y b/parse.y
index e47dac4..f55e754 100644
--- a/parse.y
+++ b/parse.y
@@ -979,4...
nobu (Nobuyoshi Nakada)
01:51 PM Feature #6074: Allow alias arguments to have a comma
I think there are no reason why comma should be rejected.
ko1 (Koichi Sasada)
09:53 AM Feature #6074: Allow alias arguments to have a comma
Hello,

2012/2/24 Thomas Sawyer <transfire@gmail.com>:
> Btw, is there a reason why `alias` is a keyword and not a method?

Just historical reason, I guess. A keyword-style `alias` was
first introduced, and then alias_metho...
mame (Yusuke Endoh)
08:08 AM Feature #6074: Allow alias arguments to have a comma
Yes, I have almost exclusively used #alias_method in the past, but it's always seems rather silly to have to use the longer term. And I bet it would be an easy adjustment to support a comma.
Btw, I really dislike using the non-symbol ...
trans (Thomas Sawyer)
07:41 AM Feature #6074: Allow alias arguments to have a comma
If that this is your biggest pet peeve, you must really love Ruby!
Just use `alias_method` instead. The `alias` keyword is more general and allows other aliases like global variables; also you don't need to give symbols to `alias`, yo...
marcandre (Marc-Andre Lafortune)
07:46 PM Feature #5690: Module#qualified_const_get
I wrote qualified_const_get in Active Support. The rationale for that name was: 1) I didn't want to touch const_get. const_get is supposed to raise an exception if the argument is not a valid constant name and "Foo::Bar" is not a valid c... fxn (Xavier Noria)
07:01 PM Feature #5690: Module#qualified_const_get
Please, can we avoid the use such abstract name.
Is the speed hit too great that Ruby's can't just use `#const_get` for this as well? I suspect the Rail's method name was chosen simply to avoid a monkey patch.
Of course, in Facets ...
trans (Thomas Sawyer)
01:53 PM Feature #5690: Module#qualified_const_get
(2011/11/30 12:10), Yehuda Katz wrote:
> It would be great if there was a way to dynamically load a constant path:
>
> ```ruby
> module Foo
> module Bar
> module Baz
> end
> end
> end
>
> Foo.qualifie...
ko1 (Koichi Sasada)
07:12 PM Feature #5825: Sweet instance var assignment in the object initializer
I think it's really not such a good idea. Often you'll just end up having to redo it anyway when you finally decide to coerce and/or validate arguments to make your code more robust, e,g,
~~~ruby
def initialize(@name, @age, @location...
trans (Thomas Sawyer)
02:25 PM Feature #5825: Sweet instance var assignment in the object initializer
if my memory serves me right, matz dislikes such a style of arguments.
Matz, could you explain the reason again?
I know some people like this style.
ko1 (Koichi Sasada)
06:23 PM Feature #6083: Hide a Bignum definition
> Binary hackers can handle C structs even if it is a hidden private struct.
> So it should be enough simply to declare "struct RBignunm is not a public API".

I disagree. As far as we consider there is backdoor, every binary
co...
kosaki (Motohiro KOSAKI)
05:17 PM Feature #6083: Hide a Bignum definition
Binary hackers can handle C structs even if it is a hidden private struct.
So it should be enough simply to declare "struct RBignunm is not a public API".
naruse (Yui NARUSE)
02:02 PM Feature #6083 (Closed): Hide a Bignum definition
Now, the struct RBignum which is a definition of Bignum in C is located in include/ruby/ruby.h. It means we can't change implementation of Bignum. For example, using GMP as Bignum representation.
I propose to move the struct RBignum...
ko1 (Koichi Sasada)
06:09 PM Bug #6081 (Assigned): [PATCH] io.c (do_io_advise): raise exception without segfaulting
kosaki (Motohiro KOSAKI)
11:49 AM Bug #6081 (Closed): [PATCH] io.c (do_io_advise): raise exception without segfaulting
IO objects (e.g. pipes) may have Qnil for fptr->pathv. Calling
RSTRING_PTR on Qnil is unsafe and causes a segmentation fault.
This issue also affects 1.9.3 and will need to be backported.
normalperson (Eric Wong)
06:03 PM Bug #6066 (Open): Fix "control may reach end of non-void function" warnings for clang
No, the commit just checks the function, and defines UNREACHABLE macro. nobu (Nobuyoshi Nakada)
05:19 PM Bug #6066 (Closed): Fix "control may reach end of non-void function" warnings for clang
r34784 uses __builtin_unreachable(). naruse (Yui NARUSE)
05:38 PM Bug #5411: Some enum.c doc tweaks
[removed] bt (Bernd Homuth)
04:30 PM Bug #6086 (Rejected): Number of arguments and named parameters
While working on the messages of "wrong number of arguments" error (see #6085), I realized that the new named parameter feature can lead to misleading error messages:
def foo(x: 42)
end

arg = {x: :bar}
foo(arg) # => nil...
marcandre (Marc-Andre Lafortune)
04:29 PM Feature #6082: io_binwrite()内でwritev()を使う
なかだです。

(12/02/25 13:33), Masaki Matsushita wrote:
> patchを添付します。

sys/uio.hが必要です。


diff --git i/configure.in w/configure.in
index c760c53..67f5a54 100644
--- i/configure.in
+++ w/configure.in
@@ -1144,7 +1144,...
nobu (Nobuyoshi Nakada)
01:33 PM Feature #6082 (Rejected): io_binwrite()内でwritev()を使う
io.cのio_binwrite()内で、writev()を用いる事を提案します。
現在のio_binwrite()は、実際にシステムコールを呼ぶ時には渡された文字列がwbufに収まるならばMEMMOVE()で収めてしまってio_fflush()し、
収まらなければfflushした後に再度rb_write_internal()を呼んでいますが、writev()を用いる事でMEMMOVE()の必要がなくなり、
wbufと渡された文字列を結合する事なく一度のシステ...
Glass_saga (Masaki Matsushita)
04:23 PM Bug #5747: Proc#curry doesn't always detect too many arguments
Hi,
Koichi Sasada wrote:
> Any progress on it?
I'm having some problems running all tests, but here is what I've done so far.
The first patches defines various `min_max_arity` functions to get min and max number of (non-ignored...
marcandre (Marc-Andre Lafortune)
01:45 PM Bug #5747: Proc#curry doesn't always detect too many arguments
Any progress on it?
ko1 (Koichi Sasada)
03:47 PM Bug #6085 (Closed): Treatment of Wrong Number of Arguments
For brevity, let me abbreviate:
WNA = "wrong number of arguments"
Ruby could provide more accurate information when raising an ArgumentError for WNA.
Example:
def foo(a, b=42); end
foo # => WNA (0 for 1)
f...
marcandre (Marc-Andre Lafortune)
03:23 PM Bug #5765: [PATCH] modernize Timeout usage in net/{http,pop,smtp,telnet}
2012/2/25 Koichi Sasada <redmine@ruby-lang.org>:
> I think it is good timing that you become a committer :)
> (I'm sorry if you already are)

An enthusiastic +1.

--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:09 PM Bug #5765: [PATCH] modernize Timeout usage in net/{http,pop,smtp,telnet}
Any progress?
I think it is good timing that you become a committer :)
(I'm sorry if you already are)
ko1 (Koichi Sasada)
03:23 PM Feature #5995: calling io_advise_internal() in read_all()
Hello,

2012/2/25 Masaki Matsushita <glass.saga@gmail.com>:
> Yusuke Endoh wrote:
>> Did you run my program?
>
> Yes. I ran your program in [ruby-core:42683] and I really experienced performance improvement on my environment...
mame (Yusuke Endoh)
02:02 PM Feature #5995: calling io_advise_internal() in read_all()
Yusuke Endoh wrote:
> Did you run my program?
Yes. I ran your program in [ruby-core:42683] and I really experienced performance improvement on my environment.
Results are in [ruby-core:42684] and they can be reproduced.
I'm wonde...
Glass_saga (Masaki Matsushita)
12:26 PM Feature #5995 (Assigned): calling io_advise_internal() in read_all()
Kosaki-san, can you check [ruby-core:42772]?
Matsushita-san,
I'm not sure if the mechanism you said is right because just
using posix_fadvise did not bring any speed improvement in my
experiment of [ruby-core:42683]. Did you run m...
mame (Yusuke Endoh)
03:13 PM Feature #3131 (Closed): add Kernel#Hash() method like Kernel#Array()
This has already done, only missed to close. naruse (Yui NARUSE)
02:46 PM Feature #3131: add Kernel#Hash() method like Kernel#Array()
Who should work on it? ko1 (Koichi Sasada)
03:10 PM Bug #6084: Ruby 1.9.3p125 Segfault while running nanoc compile
Could you show the small reproducible code? naruse (Yui NARUSE)
03:05 PM Bug #6084 (Rejected): Ruby 1.9.3p125 Segfault while running nanoc compile
Ruby interpreter segfaults with the compile command of nanoc for Ruby 1.9.3p125 under Windows. My windows version is Windows 7 Professional x64. While having checked with nanoc developer, this error does not appear on 1.9.3p0, and it is ... Phrozen (Guillermo Estrada)
03:07 PM Feature #5958: ThreadGroup#join
What should happen when at least one thread causes an exception?
ko1 (Koichi Sasada)
02:48 PM Revision 3806abfe (git): merge revision(s) 34792:
* file.c (utime_internal): fix a variable missed to replace.
[ruby-core:42864] [Bug #6077]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:47 PM Feature #5992 (Closed): DL and fiddle should support intrinsic types, size_t, ptrdiff_t and intptr_t
This issue was solved with changeset r34800.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/dl/dl.c (Init_dl): support intrinsic types, size_t, pt...
nobu (Nobuyoshi Nakada)
03:28 AM Feature #5992: DL and fiddle should support intrinsic types, size_t, ptrdiff_t and intptr_t
Nobu,
This looks good. Will you apply please?
tenderlovemaking (Aaron Patterson)
02:31 PM Feature #5543: rb_thread_blocking_region() API is poorly designed
Christopher Huff wrote:
> VALUE is actively misleading, given that a VALUE can not be constructed by the function, and the writer of the code will most likely not want to return a pre-constructed one. "void *" is the obvious choice, not...
ko1 (Koichi Sasada)
02:12 PM Bug #5750: Thread.current local-variables behavior
Suggestions are welcome!
ko1 (Koichi Sasada)
01:53 PM Bug #5719: Hash::[] can't handle 100000+ args
(2011/12/07 14:26), Martin Dürst wrote:
> This is related to http://redmine.ruby-lang.org/issues/982. In terms of what needs to be done, it may even be "the same" bug, although 982 is about a very long array literal, and this is about...
ko1 (Koichi Sasada)
01:43 PM Bug #5739 (Feedback): [BUG] object allocation during garbage collection phase
Can you reproduce it on 1.9.3 yet?
3rd party extensions often make such a bug.
ko1 (Koichi Sasada)
01:23 PM Feature #5583: Optionally typing
Shugo Maeda wrote:
> I prefer method annotations to special syntax.
Me too. Any discussion about it?
ko1 (Koichi Sasada)
12:32 PM Revision 0f377c1c (git): merge revision(s) 34786,34787,34788,34789:
* dir.c, file.c, io.c: use rb_sys_fail_path.
* error.c: new functions to deal exceptions with string instances.
* dir.c, file.c, io.c (rb_sys_fail_path): use rb_sys_fail_str.
* test/ruby/test_literal.rb (TestRu...
naruse (Yui NARUSE)
12:25 PM Revision 5e808b6b (git): merge revision(s) 34794,34795:
* dir.c (dir_initialize): keep path in original encoding.
* error.c (syserr_initialize): prefer the encoding of message over
locale. [ruby-dev:45279][Bug #6071]
* dir.c (dir_inspect), io.c (rb_io_inspect): ke...
naruse (Yui NARUSE)
12:04 PM Feature #6073: Proposal of extending syntax of for loop
Hi,
Shouichi KAMIYA wrote:
> Yes Scala's yield feature in for loop is powerful and it'll be good if we can use that feature in Ruby.
> ...
I think it's good to support both each and map/flat_map.
It may be possible to use yield ins...
shugo (Shugo Maeda)
10:29 AM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
2012/2/25 Martin Bosslet <Martin.Bosslet@googlemail.com>:
>
> One comment, which is also in reply to why I believe it
> could be dangerous to simply promote rb_big_(un)pack to
> public API: rhey are tightly coupled to our intern...
akr (Akira Tanaka)
09:23 AM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
Hello,

2012/2/25 Martin Bosslet <Martin.Bosslet@googlemail.com>:
> Kenta Murata wrote:
>> I also believe it is useful that the feature to dump a Bignum to C array.
>
>> I made a patch for realizing the feature.
>> Please ...
mame (Yusuke Endoh)
05:34 AM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
Kenta Murata wrote:
> I also believe it is useful that the feature to dump a Bignum to C array.
> ...
Great, I would really appreciate that, thank you!
One comment, which is also in reply to why I believe it
could be dangerous to simply...
MartinBosslet (Martin Bosslet)
09:53 AM Feature #4043: グローバル関数current_classの提案
きしもとです

On Wed, 15 Feb 2012 18:05:12 +0900
Shyouhei Urabe <shyouhei@ruby-lang.org> wrote:
> Issue #4043 has been updated by Shyouhei Urabe.
>
>
> Makoto Kishimoto wrote:
> > 採用を妨げるものとしては何がありますでしょうか?
>
> やっぱ名前じゃないで...
metanest (Makoto Kishimoto)
09:29 AM Feature #6079: Hash#each_sorted
Hello,

2012/2/25 Marc-Andre Lafortune <ruby-core@marc-andre.ca>:
> I feel there is no need for `each_sorted` as it is equivalent to `sort.each` (and 2 characters longer).

Agreed. If we can implement the feature without crea...
mame (Yusuke Endoh)
07:35 AM Feature #6079: Hash#each_sorted
I feel there is no need for `each_sorted` as it is equivalent to `sort.each` (and 2 characters longer). Try:
{1 => 2, 0 => 4}.sort.each{|k, v| p "#{k} => #{v}"}
marcandre (Marc-Andre Lafortune)
06:21 AM Feature #6079 (Rejected): Hash#each_sorted
I often use my own mixin'd Hash#each_sorted that sorts the hash keys and then calls the block with the key and value. It would be useful to be added to Hash. (If this is already in Hash or Enumerable, I didn't see it.)
class Hash
d...
walker (Walter Urbaniak)
08:42 AM Revision a38958a5 (git): * ext/dbm/extconf.rb (headers): try ambiguous headers at last.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:11 AM Revision 1b21d03d (git): merge revision(s) 34809:
* lib/fileutils.rb: use chomp(?/) instead of sub to optimize and avoid
to regexping invalid string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:10 AM Revision f7f7f93a (git): merge revision(s) 34795:
* dir.c (dir_inspect), io.c (rb_io_inspect): keep encoding of path.
[Bug #6072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:08 AM Revision 9a93699a (git): * lib/fileutils.rb: use chomp(?/) instead of sub to optimize and avoid
to regexping invalid string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:07 AM Feature #4890: Enumerable#lazy
Yusuke Endoh wrote:
>
> ...
Hi,
I've come up with patch in C - just two lazy methods added so far: map and select.
Please, see this PR for more info https://github.com/ruby/ruby/pull/100
The idea is very simple - block that pas...
gregolsen (Innokenty Mikhailov)
07:58 AM Revision 9167535c (git): * common.mk (check, test-all): no exntension builds before test-all,
but check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Revision aced01ee (git): Fix r34779. Raised error on connection reset varies on environments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:39 AM Revision 7e2e3dc8 (git): merge revision(s) 34803:
* complex.c (nucomp_marshal_load): raise error on invalid data.
reported by John Firebaugh [ruby-core:42860] [Bug #6076]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:31 AM Revision 51438b1c (git): ad comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:26 AM Revision 90560985 (git): update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:20 AM Revision eeff98c4 (git): * complex.c (nucomp_marshal_load): raise error on invalid data.
reported by John Firebaugh [ruby-core:42860] [Bug #6076]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:08 AM Revision 57657a0b (git): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:08 AM Revision 6f24054f (git): Add News for r34367 [ruby-core:29462] [Feature #3131]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:55 AM Bug #6077 (Closed): Segmentation faults on trunk after r34788
This issue was solved with changeset r34792.
Michael, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* file.c (utime_internal): fix a variable missed to replace.
...
nobu (Nobuyoshi Nakada)
04:36 AM Bug #6077 (Closed): Segmentation faults on trunk after r34788
trunk fails to pass tests due to segmentation fauls, the issue seems to be introduced in r34788 (https://github.com/ruby/ruby/commit/adcb7e9e7b142427c97251fdb6340433f65fe811).
64-bit Linux: https://gist.github.com/7be5c691bcd7a66888d3...
antares (Michael Klishin)
05:47 AM Revision b4288080 (git): * ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t
and intptr_t. [ruby-core:42460][Feature #5992]
* ext/fiddle/fiddle.c (Init_fiddle): ditto.
* ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34800 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)
05:23 AM Feature #5221: LoadEerror#path
(2011/08/26 2:45), Aaron Patterson wrote:
> Can we make it use a regular ivar for `path` rather than an ivar with no
> "@"? Using private ivars like this makes life hard for doing
> introspection (like the introspection required ...
ko1 (Koichi Sasada)
04:39 AM Feature #5221: LoadEerror#path
I've reduced the diff slightly. May I commit this? tenderlovemaking (Aaron Patterson)
05:04 AM Bug #6001: Retry idempotent HTTP requests for more errors
=begin
Please check this improved patch.
The new patch separates open and connect errors from response read/write errors. This allows OpenSSL::SSL::SSLError to be rescued only when there is an error in the connection (from SSL_read ...
drbrain (Eric Hodel)
04:37 AM Bug #6078 (Closed): The name of a module nested in an anonymous module depends on how it was created
If a module is nested under an anonymous module, the nested modules name will depend on how the module is created. See below:
$ irb
1.9.3p125 :001 > m = Module.new
=> #<Module:0x000001009e1398>
1.9.3p125 :002 > n = Module.new
=...
brixen (Brian Shirai)
04:18 AM Bug #5390: YAML.load が、正しく解析できないエンコーディングの文字列も受け付けてしまう
返事が遅くなって、ごめんなさい。
YAML のファイルフォーマットは UTF8, UTF16LE, と UTF16BE のみサポートしますが、Psych だけは String をパースする時に文字コードを UTF8 に変換します。
例: https://gist.github.com/1902995
ファイルを使用する場合、ファイルの文字例は以下の UTF8 、UTF16LE 、 UTF16BEの一つのみ使用可能です。
例:https://gis...
tenderlovemaking (Aaron Patterson)
03:31 AM Bug #4821: Random Segfaults (in start_thread?)
I've tried, but I can't seem to reproduce this. Christian, are you still seeing these issues? If so, could you post an application that reproduces the problem? I'm happy to do this off-list if it's more convenient. tenderlovemaking (Aaron Patterson)
02:09 AM Revision d9adb03d (git): * ext/curses/curses.c (Init_curses): use rb_define_const once for
Curses::VERSION.
* ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:36 AM Revision aa281e75 (git): * ext/curses/curses.c (Init_curses): make Curses::VERSION
understandable without context.
* ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

02/24/2012

10:54 PM Revision 001f7275 (git): * test/test_curses.rb: property.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:54 PM Revision 785521bd (git): * parse.y (parser_tokadd_string): insert a backslash only if
quoted by single quotes. [ruby-dev:45281] [Bug #6069]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:53 PM Revision eec0b2d8 (git): * dir.c (dir_inspect), io.c (rb_io_inspect): keep encoding of path.
[Bug #6072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:53 PM Revision 85738261 (git): * dir.c (dir_initialize): keep path in original encoding.
* error.c (syserr_initialize): prefer the encoding of message over
locale. [ruby-dev:45279][Bug #6071]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:55 PM Revision cc07e34b (git): * 2012-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:55 PM Revision cbd6a464 (git): * file.c (utime_internal): fix a variable missed to replace.
[ruby-core:42864] [Bug #6077]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:46 PM Bug #6036: Test failures in Fedora Rawhide/17
It seems that the errors are due to updated openssl library: openssl-1.0.1-0.1.beta2.fc17 ... there is a lot of errors around, Python, MySql ... vo.x (Vit Ondruch)
01:19 AM Bug #6036: Test failures in Fedora Rawhide/17
Akira Tanaka wrote:
> 2012/2/22 Vit Ondruch <v.ondruch@tiscali.cz>:
> ...
Yes, that might be. I just noted that the "TestPathname#test_pathsubext_510" was last entry in my log, so there might be other tests passed, but not flushed yet....
vo.x (Vit Ondruch)
08:31 PM Feature #6074 (Rejected): Allow alias arguments to have a comma
This is one my biggest pet peeves with Ruby. I am always typing:
~~~ruby
alias :foo, :bar
~~~
And getting a damn syntax error.
Btw, is there a reason why `alias` is a keyword and not a method?
trans (Thomas Sawyer)
03:09 PM Feature #6073: Proposal of extending syntax of for loop
Hi,
Thank you for your quick response.
Shugo Maeda wrote:
> Scala's for expression is more powerful.
> ...
Yes Scala's yield feature in for loop is powerful and it'll be good if we can use that feature in Ruby.
However, it seems...
shouichi (Shouichi Kamiya)
02:48 PM Feature #6073: Proposal of extending syntax of for loop
Hi,
Shouichi KAMIYA wrote:
> I propose to extend syntax of for loop which allows us to write multiple loop with guard easily.
> ...
I'm interested in your idea.
# Feature #6070 was preparation for the same proposal.
> for i in 1...
shugo (Shugo Maeda)
02:29 PM Feature #6073: Proposal of extending syntax of for loop
Oh and this is my fork on Github.
https://github.com/shouichi/ruby
shouichi (Shouichi Kamiya)
02:19 PM Feature #6073 (Rejected): Proposal of extending syntax of for loop
Hi,
I propose to extend syntax of for loop which allows us to write multiple loop with guard easily.
This extension is inspired by Scala. Here is a example
for i in 1..4 when i % 2 == 0
j in 5..8 when j % 4 == 0
puts "#{i}...
shouichi (Shouichi Kamiya)
02:49 PM Revision 76dc4b9a (git): merge revision(s) 34755:
* lib/ostruct.rb (delete_field): Bug fix so previous value is
returned. Patch by Nick Recobra [Bug #6063]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:25 PM Feature #6070: The scope of for loop variables
Hi,
Shugo Maeda wrote:
> There is at least one problem in this patch. The problem is that it cannot handle
> ...
I've fixed my patch to fix the problem.
By the attached patch, the scope of variables in expr_value is not limited in...
shugo (Shugo Maeda)
08:23 AM Feature #6070: The scope of for loop variables
Hi,

2012/2/24 Shugo Maeda <redmine@ruby-lang.org>:
> There is at least one problem in this patch.  The problem is that it cannot handle
> the following code in mkmf.rb.
> # I suspected that this code was written by nobu, but it wa...
shugo (Shugo Maeda)
07:48 AM Feature #6070 (Rejected): The scope of for loop variables
Hi,
In Ruby, the scope of a for loop variable is not limited in the for expression,
which means that a for expression counts on side effects.
This sometimes causes unexpected behavior when closing a for loop variable using a closu...
shugo (Shugo Maeda)
10:39 AM Bug #6001: Retry idempotent HTTP requests for more errors
I think Timeout::Error is OK since Errno::ECONNRESET or Errno::ECONNABORTED may race with your timeout setting depending upon network behavior.
OpenSSL::SSL::SSLError may be raised due to a temporary issue when reading or writing and ...
drbrain (Eric Hodel)
09:29 AM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
=begin
Yes, (ID)NULL seems odd to me too.
clang supports __builtin_unreachable():
http://clang.llvm.org/docs/LanguageExtensions.html#__builtin_unreachable
It looks like replacing (({return Qnil; /* NOT REACHED */})) lines with ...
drbrain (Eric Hodel)
09:25 AM Revision d77f31b6 (git): * test/zlib/test_zlib.rb (TestZlibGzipReader#test_encoding): Add
encoding testcases for GzipReader#read. read() emits
Encoding.default_external in contrast to read(size) emits BINARY.
See also: http://bugs.jruby.org/6208
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34790 b2dd03c8-39d4-4d8f...
Hiroshi Nakamura
09:15 AM Bug #5541 (Closed): Better configure error message when llvm-gcc is the default compiler
drbrain (Eric Hodel)
09:14 AM Bug #5541: Better configure error message when llvm-gcc is the default compiler
Closing this issue due to r34278 drbrain (Eric Hodel)
09:11 AM Feature #5623: [PATCH] Update documentation for Complex
Since lib/complex.rb starts with # :enddoc: I chose not to apply your lib/complex.rb patch as it cannot be seen by RDoc. drbrain (Eric Hodel)
09:10 AM Feature #5623 (Closed): [PATCH] Update documentation for Complex
This issue was solved with changeset r34778.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* complex.c (Init_Complex): Document Complex::I. Patch by Sy...
drbrain (Eric Hodel)
08:58 AM Revision 79bd9c3e (git): * test/ruby/test_literal.rb (TestRubyLiteral#test_special_const): test for https://bugs.php.net/bug.php?id=61095
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
08:35 AM Bug #5816: Add documentation for profiler
Gonzalo, please remove trailing whitespace before submitting patches in the future. drbrain (Eric Hodel)
08:15 AM Bug #5816 (Closed): Add documentation for profiler
This issue was solved with changeset r34773.
Gonzalo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/profiler.rb: Add Profiler documentation by Gonzalo Rodr...
drbrain (Eric Hodel)
07:48 AM Revision adcb7e9e (git): * dir.c, file.c, io.c (rb_sys_fail_path): use rb_sys_fail_str.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:39 AM Revision 7d742d47 (git): * error.c: new functions to deal exceptions with string instances.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:39 AM Bug #6068: String::Hash documentation clarification
Daniel, I couldn't use your patch as it was not line-wrapped to 80 columns and was too-specific to String. As Marc-Andre pointed out, the randomization behavior applies to Fixnum, Hash, String, Symbol, Array, etc., so I applied a patch ... drbrain (Eric Hodel)
07:24 AM Bug #6068 (Closed): String::Hash documentation clarification
This issue was solved with changeset r34769.
Daniel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c (rb_obj_hash): Added note that the hash value is no...
drbrain (Eric Hodel)
12:13 AM Bug #6068: String::Hash documentation clarification
I'm not sure that all implementations have to return hash codes that differ from one run to the other. I would also modify `Object#hash`, as all hashes in CRuby are random seeded, not just String. I'd recommend adding the following line ... marcandre (Marc-Andre Lafortune)
07:37 AM Revision 9acf2091 (git): * dir.c, file.c, io.c: use rb_sys_fail_path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:13 AM Revision b8729f11 (git): * io.c (set_binary_mode_with_seek_cur): reorder function qualifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:49 AM Revision d5734468 (git): * configure.in (__builtin_unreachable): check for clang.
[ruby-core:42849]
* include/ruby/ruby.h (UNREACHABLE): fallback definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:55 AM Revision 0d1c8fd9 (git): * ext/psych/parser.c: prevent a memory leak by protecting calls to
handler callbacks.
* test/psych/test_parser.rb: test to demonstrate leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
03:15 AM Revision 0e896b99 (git): pull request #55 as same as #98
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
03:10 AM Revision e0f4a550 (git): * lib/net/http.rb: Fix documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
02:56 AM Revision 7e76ab5e (git): * string.c (rb_str_prepend): Fix documentation for String#prepend.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
01:10 AM Revision 7a1180c7 (git): * lib/net/http.rb (Net::HTTP#transport_request): Fix infinite loop
upon EOFError or Errno::ECONNRESET where count is reset to 0.
* test/net/http/test_http.rb (class TestNetHTTPKeepAlive): Test for
above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:10 AM Revision af9398ab (git): * complex.c (Init_Complex): Document Complex::I. Patch by Sylvain
Daubert. [Feature #5623]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)

02/23/2012

11:53 PM Revision b329509a (git): merge revision(s) 34776:
* parse.y (parser_tokadd_string, parser_yylex): insert a backslash
if the next character is non-ascii. [ruby-dev:45278] [Bug #6069]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34777 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
11:52 PM Revision 45c6daee (git): * parse.y (parser_tokadd_string, parser_yylex): insert a backslash
if the next character is non-ascii. [ruby-dev:45278] [Bug #6069]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:35 PM Revision 455c23fa (git): Clean whitespace
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
11:23 PM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
2012/2/23 Martin Bosslet <Martin.Bosslet@googlemail.com>:

> Would it be OK to add #bindump, #binload and rb_big_uminus
> to the public API?

I don't understand rb_big_pack/rb_big_unpack is not enough.

Although rb_big_pac...
akr (Akira Tanaka)
10:59 PM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
I also believe it is useful that the feature to dump a Bignum to C array.
I made a patch for realizing the feature.
Please check this gist https://gist.github.com/1892968
If Matz approve the patch, I will commit that.
mrkn (Kenta Murata)
08:18 PM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
Akira Tanaka wrote:
> 2012/2/23 Tanaka Akira <akr@fsij.org>:
> ...
Yes, you're right, when using (unsigned) longs we have to pay
attention to byte order within the long itself or go through
the pain of normalizing them to some pre-de...
MartinBosslet (Martin Bosslet)
01:59 PM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
2012/2/23 Tanaka Akira <akr@fsij.org>:

> I think your proposal also rely on machine endianness because
> it use "long" type.
>
> I guess bytes in long type (4 bytes or 8 bytes in usual) is
> native endian. Am I wrong?

...
akr (Akira Tanaka)
12:23 PM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
2012/2/23 Martin Bosslet <Martin.Bosslet@googlemail.com>:

>> > Currently, there's no public C API to create a Bignum.
>> > There is rb_big_pack and rb_big_unpack that will do the
>> > job, but they are not portable.
>>
>...
akr (Akira Tanaka)
10:12 AM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
Akira Tanaka wrote:
> 2012/2/23 Martin Bosslet <Martin.Bosslet@googlemail.com>:
> ...
Sorry, "not portable" was probably the wrong wording. I meant
I can't use them e.g. from Rubinius because they're not part
of the public API and th...
MartinBosslet (Martin Bosslet)
10:07 AM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
Yui NARUSE wrote:
> I made such dump API before.
> ...
Great, yes, this looks like what I wanted :) I can
determine whether the number was signed using
RBIGSIGN(), which is public - but for the other
way round, when creating a negat...
MartinBosslet (Martin Bosslet)
09:53 AM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
2012/2/23 Martin Bosslet <Martin.Bosslet@googlemail.com>:

> Currently, there's no public C API to create a Bignum.
> There is rb_big_pack and rb_big_unpack that will do the
> job, but they are not portable.

How are they no...
akr (Akira Tanaka)
09:27 AM Feature #6065 (Assigned): Allow Bignum marshalling/unmarshalling from C API
I made such dump API before.
This dump a bignum as a format for OpenSSL::BN.
diff --git a/bignum.c b/bignum.c
index 3145f24..9141dc8 100644
--- a/bignum.c
+++ b/bignum.c
@@ -405,6 +405,90 @@ rb_big_unpack(unsigned long *buf, long...
naruse (Yui NARUSE)
09:18 AM Feature #6065 (Closed): Allow Bignum marshalling/unmarshalling from C API
Currently, there's no public C API to create a Bignum.
There is rb_big_pack and rb_big_unpack that will do the
job, but they are not portable.
Could we offer public functionality that is independent
of the internal representation...
MartinBosslet (Martin Bosslet)
11:16 PM Revision b52b1f6a (git): Fix timestamps in ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
11:15 PM Revision 480ea9ff (git): * lib/profiler.rb: Add Profiler documentation by Gonzalo Rodriguez.
[Bug #5816]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:12 PM Revision 774cf315 (git): * ext/psych/parser.c: set parser encoding based on the YAML input
rather than user configuration.
* test/psych/test_encoding.rb: corresponding tests.
* test/psych/test_parser.rb: ditto
* test/psych/test_tainted.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34772 b2dd03c8-39d4-4d8f-98ff-8...
tenderlovemaking (Aaron Patterson)
11:03 PM Revision 0e028640 (git): * hash.c (Init_Hash): Add section on how objects are used as Hash keys
and how to use custom classes as Hash keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:36 PM Revision 6d6b4569 (git): * object.c (rb_obj_eql): Improve equality documentation by adding an
example of equal? vs == and recommending eql? be aliased to == when
overridden.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:23 PM Revision 9802ce8b (git): * object.c (rb_obj_hash): Added note that the hash value is not
deterministic on Marc-Andre's suggestion. Expanded description of
the purpose of the hash method. [Bug #6068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:42 PM Bug #5353: TLS v1.0 and less - Attack on CBC mode
Hiroshi Nakamura wrote:
> The original proposal from Martin, turning off the SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS bit by default, is still open.
Yes, to follow up on this: it remains to decide how this
should be handled in librarie...
MartinBosslet (Martin Bosslet)
08:24 PM Bug #5931: Random SEGV during execution on YARD specs
Eric Wong wrote:
> Vit Ondruch <v.ondruch@tiscali.cz> wrote:
> ...
Seems to be something different. It works (I gave it 160 tries) although I reverted the r34719.
vo.x (Vit Ondruch)
05:53 PM Bug #6036: Test failures in Fedora Rawhide/17
2012/2/22 Vit Ondruch <v.ondruch@tiscali.cz>:

> I am afraid that the test results differs if you run the whole test suite in once or if you run just part of the test suite, as you did.

I see.

The hang is reproduced on my ...
akr (Akira Tanaka)
05:40 PM Bug #6068 (Closed): String::Hash documentation clarification
modified documentation for String::hash to clarify that results are not conistent across sessions and advice for if that behavior is desired Anonymous
04:42 PM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
> clang 3.1 is more picky about "control may reach end of non-void function"
or doesn't deal with noreturn attribute properly?
Anyway, (ID)NULL seems odd.
nobu (Nobuyoshi Nakada)
09:41 AM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
Patches were not added in-order.
Note that return.combined.patch contains all the other patches grouped together
drbrain (Eric Hodel)
09:39 AM Bug #6066 (Closed): Fix "control may reach end of non-void function" warnings for clang
=begin
clang 3.1 is more picky about "control may reach end of non-void function"
The attached patches contain add (({return Qnil; /* not reached */})) or the equivalent where the warnings occurred.
=end
drbrain (Eric Hodel)
03:22 PM Revision f51ad043 (git): * 2012-02-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:22 PM Revision 427035c0 (git): add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:02 PM Revision cd390b1e (git): * ext/dbm/extconf.rb: unused macro removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:27 PM Revision e5cf1dcf (git): * test/test_curses.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:02 PM Bug #6067 (Closed): Conditional assignment of a nested constant raises a SyntaxError
I can conditionally assign a simple constant:
$ ruby -v -e 'p X ||= 1'
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
1
However, conditional assignment of a nested constant raises a SyntaxError:
$ ruby -v -e ...
brixen (Brian Shirai)
11:41 AM Bug #5837 (Closed): IO#fsync documentation typo quickfix
drbrain (Eric Hodel)
11:40 AM Bug #5910 (Closed): [PATCH] docs: Kernel#require: add documentation about constants and globals within require'd source files
drbrain (Eric Hodel)
11:23 AM Bug #6057: URI - Nonsensical Behavior
Scott Gonyea <scott@aitrus.org> writes:

> Issue #6057 has been updated by Scott Gonyea.
>
>
> I'd be happy to write this improved functionality. But would it be welcome?

Is there anyone who actually *likes* this behavior?
Anonymous
10:46 AM Bug #6057: URI - Nonsensical Behavior
Changing the behavior of URI#+ from the current will break many libraries (including mechanize) that depend upon the current behavior of relative resolution.
The current behavior is frequently used to combine, for example, an anchor h...
drbrain (Eric Hodel)
10:59 AM Revision a49fc9be (git): * ext/curses/rain.rb: trap SIGHUP, SIGINT, SIGQUIT and SIGTERM only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:57 AM Revision 57e95f86 (git): * signal.c (sig_trap): show signal name on error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:52 AM Revision 845b2106 (git): update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:45 AM Revision 6cd700f3 (git): merge revision(s) 34214:
* lib/uri/common.rb (URI::Parser#initialize_regexp):
use \A \z instead of ^ $. [Bug #5843]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:32 AM Bug #6062 (Closed): test/yaml/test_yaml.rb tries to use Test::Unit::TestSuite to run
marcandre (Marc-Andre Lafortune)
04:35 AM Bug #6062: test/yaml/test_yaml.rb tries to use Test::Unit::TestSuite to run
Sorry, it looks like this file is old, probably from 1.9.1 timeframe. Got included in our local suite and never removed. Disregard. headius (Charles Nutter)
03:23 AM Revision fd2e0e3d (git): * ext/dbm/extconf.rb: use DBM_SUFFIX only to detect header of
Berkeley DB.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:00 AM Revision 0585853c (git): * io.c (rb_io_f_sync): Fix double-negative typo. [ruby-trunk - #5837]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
01:58 AM Revision 8a5b4ad1 (git): * load.c (rb_f_require): Add note to require for scope of items in the
loaded file. [ruby-trunk - #5910]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:16 AM Revision 5afb4b7b (git): Ignore mkmf.log generated by extensions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)

02/22/2012

11:38 PM Bug #6062 (Closed): test/yaml/test_yaml.rb tries to use Test::Unit::TestSuite to run
This block of code appears at the bottom of test/yaml/test_yaml.rb, for running the file directly. It prevents running the file directly, since Test::Unit::TestSuite no longer exists. Logic in minitest/testunit will run the test anyway w... headius (Charles Nutter)
11:35 PM Bug #6061: test/iconv/test_option.rb is disabled and should be enabled or removed
Yui: Thank you. I will be adding this to our suite and excluding anything that fails. I won't worry too much about it since our iconv is implemented atop Java NIO Charset API. headius (Charles Nutter)
11:29 PM Bug #6061: test/iconv/test_option.rb is disabled and should be enabled or removed
Just FYI, implementations rescued in those tests are also valid
because those tests depends glibc iconv/GNU libiconv vendor specific extensions.
naruse (Yui NARUSE)
11:27 PM Bug #6061 (Closed): test/iconv/test_option.rb is disabled and should be enabled or removed
This issue was solved with changeset r34750.
Charles, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/iconv/test_option.rb: enabled. [ruby-core:42802][Bug #...
nobu (Nobuyoshi Nakada)
10:58 PM Bug #6061: test/iconv/test_option.rb is disabled and should be enabled or removed
FWIW, we (JRuby) would appreciate if whatever change is made gets backported to 1.9.3, since we're running 1.9.3 test suite as part of our normal dev process. headius (Charles Nutter)
10:57 PM Bug #6061 (Closed): test/iconv/test_option.rb is disabled and should be enabled or removed
The only test class in test/iconv/test_option.rb is guarded by this line:
...
end if false and defined?(TestIconv)
If this test is still valid, it should be enabled. If it is not valid, it should be removed.
headius (Charles Nutter)
11:10 PM Revision 9efce27a (git): merge revision(s) 33873:
* win32/win32.c (rb_w32_uchmod): typo. [Bug#5671] [ruby-dev:44898]
* test/ruby/test_file.rb (TestFile#test_chmod_m17n): test of above bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34756 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
08:59 PM Bug #6057: URI - Nonsensical Behavior
> In my opinion, URI should model the behavior of Pathname.

I totally agree.

Additionally I absolutely dislike using global methods instead of class
factory methods. I think it isn't at all obvious and it poisons the
global name...
Anonymous
11:45 AM Bug #6057: URI - Nonsensical Behavior
Ah. That's the issue.
1.9.3-p125 :016 > uri = URI("http://google.com/foo/bar/")
=> #<URI::HTTP:0x007fd97a891038 URL:http://google.com/foo/bar/>
1.9.3-p125 :017 > uri + "baz"
=> #<URI::HTTP:0x007fd97a887ab0 URL:http://google.com/...
sgonyea (Scott Gonyea)
11:10 AM Bug #6057: URI - Nonsensical Behavior
I have only done a few quick tests, but it seems that the '+' operator implements relative resolution (see http://tools.ietf.org/html/rfc3986#section-5.2). For URIs, this makes a lot of sense. duerst (Martin Dürst)
10:57 AM Bug #6057: URI - Nonsensical Behavior
Another example:
URI.join("http://foo.com/baz", "bar", "bim")
# => #<URI::HTTP:0x1005412e URL:http://foo.com/bim>
Also, if we did model the behavior of Pathname, then joining of "/baz" would reset the path which I do think is acc...
sgonyea (Scott Gonyea)
10:36 AM Bug #6057: URI - Nonsensical Behavior
I'd be happy to write this improved functionality. But would it be welcome? sgonyea (Scott Gonyea)
10:35 AM Bug #6057: URI - Nonsensical Behavior
Edit: Moronic comment redacted. sgonyea (Scott Gonyea)
10:34 AM Bug #6057 (Closed): URI - Nonsensical Behavior
The behavior of Ruby's URI is confusing, to say the least.
```
URI("http://foo.com/bar") + "baz"
# => #<URI::HTTP:0x710713de URL:http://foo.com/baz>
URI.join("http://foo.com/baz", "bar")
# => #<URI::HTTP:0x29fd5dc4 URL:http://f...
sgonyea (Scott Gonyea)
06:59 PM Revision dfb1a712 (git): * lib/ostruct.rb (delete_field): Bug fix so previous value is returned.
Patch by Nick Recobra [Bug #6063]
* test/ostruct/test_ostruct.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:33 PM Revision 9c8d348d (git): * 2012-02-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:33 PM Revision 4341c58c (git): * io.c (rb_io_extract_modeenc): fail only if conflicting
text/binary modes given explicitly. [ruby-dev:45268][Bug #6055]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:29 PM Bug #5931: Random SEGV during execution on YARD specs
Vit Ondruch <v.ondruch@tiscali.cz> wrote:
> I gave it try with ruby 2.0.0dev (2012-02-21 trunk 34723)
> [x86_64-linux] and it does not segfaulted in 1000 runs. Now I'm
> wondering what was the fix, since I'd love to see it backpor...
normalperson (Eric Wong)
04:53 PM Bug #5931: Random SEGV during execution on YARD specs
I gave it try with ruby 2.0.0dev (2012-02-21 trunk 34723) [x86_64-linux] and it does not segfaulted in 1000 runs. Now I'm wondering what was the fix, since I'd love to see it backported to Ruby 1.9.3. vo.x (Vit Ondruch)
03:15 PM Revision 0894d6d6 (git): * 2012-02-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:15 PM Revision 3e661a7e (git): merge revision(s) 34750:
* test/iconv/test_option.rb: enabled. [ruby-core:42802][Bug #6061]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:27 PM Revision f56c6318 (git): * test/iconv/test_option.rb: enabled. [ruby-core:42802][Bug #6061]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:04 PM Bug #6058: Stack overflow in SEGV Handler
Motohiro KOSAKI wrote:
> スタックオーバーフローだとしたら犯人はわたしなのですが、そもそもいまのSEGVハンドラだと実質printfしかしてないのでprintfだけでスタックを突き破らないと行けなくて、ありうるかなあ・・と悩んでます。が、まず第一弾としてALT STACKにもPROT_NONEなスタックガードページくっつけてスタックオーバーフローがメモリ破壊ではなくクラッシュになるようにすべきでしょうね。そのあと、落ちたときのバックトレースみて...
authorNari (Narihiro Nakamura)
12:37 PM Bug #6058 (Assigned): Stack overflow in SEGV Handler
スタックオーバーフローだとしたら犯人はわたしなのですが、そもそもいまのSEGVハンドラだと実質printfしかしてないのでprintfだけでスタックを突き破らないと行けなくて、ありうるかなあ・・と悩んでます。が、まず第一弾としてALT STACKにもPROT_NONEなスタックガードページくっつけてスタックオーバーフローがメモリ破壊ではなくクラッシュになるようにすべきでしょうね。そのあと、落ちたときのバックトレースみてスタック消費の内訳から対策考えましょう。引き取ります kosaki (Motohiro KOSAKI)
11:38 AM Bug #6058 (Closed): Stack overflow in SEGV Handler
nariです。
以下のようにたまにSEGVのテストで落ちることがありまして、
http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20120221T130301Z.log.html.gz
原因を調査したところ、SIGSEGVハンドラの中でスタックオーバフローしている
ようでした。
# uname -orv
2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 ED...
authorNari (Narihiro Nakamura)
01:04 PM Revision 35bf8099 (git): merge revision(s) 34735,34736:
* io.c (rb_io_s_foreach): return enumerator including kerword
arguments. [ruby-dev:45267][Bug #6054]
* io.c (rb_io_s_foreach): argument check before making Enumerator.
[ruby-dev:31525]
git-svn-id: svn+ssh:...
nobu (Nobuyoshi Nakada)
12:46 PM Revision 01433e4d (git): * ext/curses/curses.c: use defined() to suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:45 PM Revision 7c80d151 (git): * ext/curses/extconf.rb: refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:44 PM Revision fa1a2ae1 (git): * configure.in: remove workaround replacement from gcc to gcc-4.2.
[Backport #6043]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:54 AM Bug #6033: Digest issue in 1.9.3
I found the source of the bug. My ~/.profile defined $C_INCLUDE_PATH and $CPLUS_INCLUDE_PATH. Having this here did not affect Ruby 1.8.7 or 1.9.2. It did, however, screw up portions of 1.9.3. How strange. sgonyea (Scott Gonyea)
11:44 AM Revision c01d52e8 (git): * ext/curses/extconf.rb: try to distinguish curses_version is a
function or variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:48 AM Revision fa65fc9a (git): * ext/curses/extconf.rb: show the chosen header and library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:23 AM Revision 8cd604c6 (git): * reverted 34739 for test/date.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:09 AM Revision 9fc31792 (git): * ext/curses/extconf.rb: refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:47 AM Revision 1a6b0bab (git): * lib/test/unit.rb (setup_options): add option "--retry" as opposite
for "--no-retry"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
09:47 AM Revision c0ec3efc (git): * lib/test/unit.rb (setup_options): add option "--show-skip" to
cancel "--hide-skip" (-q)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
09:34 AM Revision b67bc8d7 (git): * test/date, test/rdoc: exclude tests dependent on unbundled libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:06 AM Revision 9e4ddb8f (git): Revert "* common.mk (test-all): shut up nonsense skipping messages."
This reverts commit r34734.
Use -q on your environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:57 AM Revision e322989b (git): merge revision(s) 34719,34720: [Backport #6059]
* gc.c : remove gc_clear_mark_on_sweep_slots() and use
rest_sweep() instead of it, because some dead objects might be
marked in next the mark phase by false pointers.
[ruby-core:42672]
git-svn-id: svn+ssh:...
naruse (Yui NARUSE)
08:36 AM Revision 31d8a976 (git): * io.c (rb_io_s_foreach): argument check before making Enumerator.
[ruby-dev:31525]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:08 AM Bug #6036: Test failures in Fedora Rawhide/17
Akira Tanaka wrote:
> 2012/2/20 Vit Ondruch <v.ondruch@tiscali.cz>:
> ...
I am afraid that the test results differs if you run the whole test suite in once or if you run just part of the test suite, as you did.
vo.x (Vit Ondruch)
07:24 AM Bug #6036: Test failures in Fedora Rawhide/17
2012/2/20 Vit Ondruch <v.ondruch@tiscali.cz>:
>
> The test_pathname appears to hang somewhere. The TestPathname#test_pathsubext_510 is the last output which appears in my log, however there might be some entries lost due to not flus...
akr (Akira Tanaka)
08:07 AM Revision 873b56fd (git): * io.c (rb_io_s_foreach): return enumerator including kerword
arguments. [ruby-dev:45267][Bug #6054]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:47 AM Revision e093cfae (git): * common.mk (test-all): shut up nonsense skipping messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:39 AM Revision 0c881159 (git): * ChangeLog: remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:02 AM Feature #1400: Please add a method to enumerate fields in OpenStruct
It was also recommended to me to suggest #to_h here.
def to_h
@table.dup
end
It would be a much easier way of working with the underlying table, such as getting field names.
openstruct.to_h.keys
And of cou...
trans (Thomas Sawyer)
04:00 AM Feature #1400: Please add a method to enumerate fields in OpenStruct
If #each_pair, why not #each? I realize it's an exception to the fields that can be used, but since a few of those are inevitable no matter what, it seems like an acceptable one.
trans (Thomas Sawyer)
03:55 AM Feature #6056: Enhancements to OpenStruct
I've updated the pull request. trans (Thomas Sawyer)
03:51 AM Feature #6056: Enhancements to OpenStruct
Hi,
Thomas Sawyer wrote:
> Each change should be separate pull request or just a separate commit?
Ideally, both. It makes it easier to accept only some of the parts. As I said, "in the future"; no need to split your existing comm...
marcandre (Marc-Andre Lafortune)
03:45 AM Feature #6056: Enhancements to OpenStruct
Each change should be separate pull request or just a separate commit?
I knew about issue #6029, I was just trying to take care of that a couple of other features while I was involved with the code.
I see what you are saying about...
trans (Thomas Sawyer)
03:17 AM Feature #6056: Enhancements to OpenStruct
Hi.
In the future, please break requests in independent parts.
- new_ostruct_member will be protected
- `==` is already defined. I don't think any coercion can be accepted in this case. You can't compare a Set and an Array direc...
marcandre (Marc-Andre Lafortune)
03:50 AM Revision 86716b97 (git): remove unbalanced parenthesis
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:22 AM Revision a23f0635 (git): * configure.in: allow llvm-gcc because it work fine with r34278.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:03 AM Revision b7906783 (git): * regparse.c (fetch_token): don't use // comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:32 AM Revision 8e799c3e (git): * test/mkmf/test_framework.rb: try CoreFoundation framework, than
Cocoa which is dependent on QuickTime SDK which has separated
since Xcode 4.3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:18 AM Revision 1aa4e11d (git): * common.mk (test-all, test-ruby): more dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

02/21/2012

11:16 PM Feature #6056 (Closed): Enhancements to OpenStruct
This patch fixes one issue, protecting #new_ostruct_member method, and possibly another by dup'ing marshal_dump, but I need more feedback on the later b/c I've also been told it is not needed.
The rest of this patch provides enhanceme...
trans (Thomas Sawyer)
11:02 PM Revision 9dc0d6fe (git): * file.c (rb_f_test): Fix formatting of Kernel#test rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
10:23 PM Bug #5671 (Closed): windows でのマルチバイト文字列を含むファイルへの File.chmod
r33873 で修正されていました。ありがとうございます。
チケットを放置してしまいすみませんでした。
wanabe (_ wanabe)
09:35 PM Feature #3944: Add Fiber#root? method
Any progress on this? godfat (Lin Jen-Shin)
09:13 PM Revision 8963f50f (git): * ext/dbm/extconf.rb: check DBM_SUFFIX for Mac OS X.
Its ndbm.h doesn't include db.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:04 PM Revision 80a6b147 (git): * 2012-02-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:04 PM Revision eac1d9cf (git): * ext/dbm/dbm.c (fdbm_initialize): disable Berkeley DB error messages.
* ext/dbm/extconf.rb: check DBC type for above.
[ruby-dev:45269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
06:49 PM Bug #5931: Random SEGV during execution on YARD specs
It crashed on 8th retry with ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]. Going to try with trunk ... vo.x (Vit Ondruch)
05:12 PM Bug #6011 (Open): ruby-1.9.3-p0/lib/webrick/utils.rb:184: [BUG] Segmentation fault
I don't have ARM knowledge.
If someone has an idea, contribution is welcome.
naruse (Yui NARUSE)
04:44 PM Bug #6011: ruby-1.9.3-p0/lib/webrick/utils.rb:184: [BUG] Segmentation fault
Yui NARUSE wrote:
> Vit Ondruch wrote:
> ...
Of course I test also on i686 and x86_64 and I cannot reproduce it there.
vo.x (Vit Ondruch)
09:55 AM Bug #6011: ruby-1.9.3-p0/lib/webrick/utils.rb:184: [BUG] Segmentation fault
Vit Ondruch wrote:
> Unfortunately, it still fails: http://arm.koji.fedoraproject.org/koji/getfile?taskID=451175&name=build.log
Hmm, is it only reproduced on ARM?
naruse (Yui NARUSE)
01:12 AM Bug #6011: ruby-1.9.3-p0/lib/webrick/utils.rb:184: [BUG] Segmentation fault
Unfortunately, it still fails: http://arm.koji.fedoraproject.org/koji/getfile?taskID=451175&name=build.log vo.x (Vit Ondruch)
04:08 PM Bug #6048 (Closed): {Unbound}Method#hash doesn't always return the right value
This issue was solved with changeset r34717.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c (rb_hash_proc): get wrapped pointer properly. [Bu...
nobu (Nobuyoshi Nakada)
04:07 PM Bug #6048 (Open): {Unbound}Method#hash doesn't always return the right value
nobu (Nobuyoshi Nakada)
09:13 AM Bug #6048 (Closed): {Unbound}Method#hash doesn't always return the right value
This issue was solved with changeset r34715.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c (method_hash, proc_hash): Fix {Unbound}Method#hash...
marcandre (Marc-Andre Lafortune)
12:23 AM Bug #6048: {Unbound}Method#hash doesn't always return the right value
Hi,

On Mon, Feb 20, 2012 at 3:24 AM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
>
> Issue #6048 has been updated by Nobuyoshi Nakada.
> One thing.
>
> rb_method_definition_t* hasn't been used as function interface, rb_m...
Anonymous
01:47 PM Feature #5995: calling io_advise_internal() in read_all()
Some file systems(e.g. ext3, ext4) use do_sync_read() for general read.
http://lxr.linux.no/#linux+v3.2.6/fs/ext3/file.c#L55
http://lxr.linux.no/#linux+v3.2.6/fs/ext4/file.c#L231
In read process, do_generic_file_read() is called fin...
Glass_saga (Masaki Matsushita)
11:23 AM Revision ca9b0f56 (git): * hash.c (rb_any_hash): treat Qundef like as other special constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:22 AM Revision bc3b4ddd (git): * hash.c (hash_foreach_iter): fix signature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:40 AM Revision 25df75e1 (git): * ext/curses/curses.c (Init_curses): use curses_version() for
Curses::VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:41 AM Revision c98fd7da (git): revert a file which is committed wrong.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
09:35 AM Revision 0d44bf83 (git): * gc.c : remove gc_clear_mark_on_sweep_slots() and use
rest_sweep() instead of it, because some dead objects might be
marked in next the mark phase by false pointers.
[ruby-core:42672]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
09:27 AM Revision 4103e718 (git): merge revision(s) 33326:
warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:08 AM Revision 2e733be0 (git): * proc.c (rb_hash_proc): get wrapped pointer properly. [Bug #6048]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:41 AM Revision a5e49f99 (git): * template/ruby.pc.in: added rubylibprefix, {rubylib,vendor,site}dir
and {ruby,vendor,site}archdir. [ruby-core:42766][Feature #6052]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:59 AM Bug #6053 (Closed): Enumerator#rewind goes to beginning instead of decrementing one step.
This issue was solved with changeset r34712.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c (enumerator_rewind): update the documentation.
...
matz (Yukihiro Matsumoto)
02:29 AM Bug #6053: Enumerator#rewind goes to beginning instead of decrementing one step.
It is a bug in documentation. #rewind method rewinds the sequence to the beginning.
matz (Yukihiro Matsumoto)
01:31 AM Bug #6053 (Closed): Enumerator#rewind goes to beginning instead of decrementing one step.
From the ruby docs:
rewind → e
Rewinds the enumeration sequence by one step.
In practice, however, it fully rewinds (either change documentation or have it do what it says. Going back one step is nice though):
irb(main):001...
tyre77 (Chris Maddox)
12:13 AM Revision f12c14d3 (git): * proc.c (method_hash, proc_hash): Fix {Unbound}Method#hash
[Bug #6048]. Isolate hash computation for proc
* internal.h: Declaration for above
* vm_method.c (rb_method_definition_hash): Computation for
hash part of a method definition
* method.h: Declaration for above
* test/ruby/test_metho...
Marc-Andre Lafortune

02/20/2012

11:55 PM Revision 80ca7d23 (git): * 2012-02-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:55 PM Revision a81a8172 (git): merge revision(s) 34712:
* enumerator.c (enumerator_rewind): update the documentation.
fixed: #6053
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
11:40 PM Bug #6049 (Closed): Build failure on enc/mktable.so with VC 2010Build failure on enc/mktable.so with VC 2010
This issue was solved with changeset r34708.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enc/depend: ignore mktable.c because it's not encoding librar...
usa (Usaku NAKAMURA)
06:02 PM Bug #6049 (Closed): Build failure on enc/mktable.so with VC 2010Build failure on enc/mktable.so with VC 2010
I got the following failure on Windows XP with VC 2010 while building trunk.
C:\work\snapshot>nmake
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
...
phasis68 (Heesob Park)
10:27 PM Bug #6036: Test failures in Fedora Rawhide/17
The test_pathname appears to hang somewhere. The TestPathname#test_pathsubext_510 is the last output which appears in my log, however there might be some entries lost due to not flushed log. vo.x (Vit Ondruch)
10:02 PM Bug #6036: Test failures in Fedora Rawhide/17
Tests passes with following command: "make check TESTS="-v -x test_pathname.rb -x test_drbssl.rb -x test_parse.rb -x test_x509cert.rb"
The test_drbssl.rb and test_x509cert.rb might be related to the OpenSSL changes?
vo.x (Vit Ondruch)
04:39 PM Bug #6036 (Assigned): Test failures in Fedora Rawhide/17
Bohuslav Kabrda wrote:
> Well, thanks for fixing the gdbm support, but the other 16 failures and 20 errors are the main reason why I reported the bug... Could you have a look at that?
> ...
Vit, could you inspect this?
naruse (Yui NARUSE)
04:12 PM Bug #6036: Test failures in Fedora Rawhide/17
Well, thanks for fixing the gdbm support, but the other 16 failures and 20 errors are the main reason why I reported the bug... Could you have a look at that?
Thanks.
Anonymous
09:30 PM Feature #4970 (Closed): FileUtils refactored
This issue was solved with changeset r34706.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/fileutils.rb: revert a line modified accidentally at r346...
Anonymous
07:37 PM Bug #6035 (Third Party's Issue): 2F in TestReadline
Yui NARUSE wrote:
> これ、libedit 側のバグですね。
> ...
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46059 本家に報告しました。
libedit はバージョン取れないので Third Party's Issue ってことにします。
naruse (Yui NARUSE)
05:59 PM Revision 3052f75d (git): * enumerator.c (enumerator_rewind): update the documentation.
fixed: #6053
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
05:24 PM Bug #6048: {Unbound}Method#hash doesn't always return the right value
One thing.
rb_method_definition_t* hasn't been used as function interface, rb_method_entry_t* might be preferable.
nobu (Nobuyoshi Nakada)
05:21 PM Bug #6048: {Unbound}Method#hash doesn't always return the right value
Seems fine. nobu (Nobuyoshi Nakada)
03:19 PM Bug #6048 (Closed): {Unbound}Method#hash doesn't always return the right value
{Unbound}Method#hash doesn't always return the right value.
map, collect = Array.instance_method(:map), Array.instance_method(:collect)
map.eql?(collect) # => true
map.hash == collect.hash # => false
I'm te...
marcandre (Marc-Andre Lafortune)
03:59 PM Revision 8e6dfeec (git): * tool/rubytest.rb: separate errors from dots.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:00 PM Revision e5cb1bb9 (git): * 2012-02-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision a1292c72 (git): update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:40 PM Revision 07d8dffe (git): * enc/depend: ignore mktable.c because it's not encoding library.
[ruby-core:42760] [Bug #6049]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:48 PM Bug #5961 (Closed): regular expression positive look-behind
Fixed by mergin Onigmo 5.13.1 in Ruby 2.0. naruse (Yui NARUSE)
01:48 PM Bug #5208 (Closed): \b and \B don't match properly
Fixed by merging Onigmo 5.13.1. naruse (Yui NARUSE)
12:43 PM Bug #5676 (Closed): miniruby linking error: undefined reference to ___stack_chk_guard
Jon Forums wrote:
> I think you're right on runtime library mismatch, but shouldn't it fail when miniruby is used later in the build process, not at miniruby link time?
The mismatch between the compiler and the runtime library. It can'...
nobu (Nobuyoshi Nakada)
04:29 AM Bug #5676: miniruby linking error: undefined reference to ___stack_chk_guard
Thanks for checking. Trunk builds fine using the old default gcc 4.2.1 and configure adds `-fstack-protector` to Makefile.
I think you're right on runtime library mismatch, but shouldn't it fail when miniruby is used later in the build ...
jonforums (Jon Forums)
12:41 PM Revision b17bc954 (git): * ext/curses/extconf.rb: fold too long lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:30 PM Revision 5cfba33a (git): * lib/fileutils.rb: revert a line modified accidentally at r34669.
This fixes mingw test errors in TestDir_M17N.
[ruby-core:42728] [Feature #4970]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
12:10 PM Revision 83f742f8 (git): * ext/curses/curses.c (Init_curses): define Curses::VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:09 PM Revision 9f6f0788 (git): * ext/curses/extconf.rb: restore $libs and $defs for each
header/library choice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:05 AM Revision faf4c9db (git): * ext/dbm/extconf.rb: weaken header/library consistency check if db is
"ndbm". It seems several (possibly historical) distributions
provide libndbm. However the content of libndbm vary: Berkeley DB,
GDBM or even 4.3BSD NDBM. (Mandriva, Tru64 UNIX, OpenSuSE,
SCO OpenServer, ...)
"ndbm" is not sear...
akr (Akira Tanaka)
10:16 AM Revision f8015c23 (git): * ext/dbm/extconf.rb: refine variable names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
06:53 AM Feature #6023: Add "a ?= 2" support for meaning "a = a.nil? ? 2 : a"
Magnus Holm <judofyr@gmail.com> writes:

> If we want something like this, we should provide a non-assignment
> version too. Perl uses // for the same purpose:
>
> sub foo {
> my ($foo, %options) = @_;
> $foo //=...
Anonymous
05:53 AM Feature #6023: Add "a ?= 2" support for meaning "a = a.nil? ? 2 : a"
> I've just proposed this idea to Groovy and I thought the same semantics would be interesting to have in Ruby too:
>
> http://jira.codehaus.org/browse/GROOVY-5306
>
> This is a minor, but important, difference to the "a ||= 2" synt...
judofyr (Magnus Holm)
06:50 AM Revision aa27e42f (git): * 2012-02-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:50 AM Revision 032d0a4c (git): * configure.in: check if -fstack-protector is really available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:52 AM Feature #5995: calling io_advise_internal() in read_all()
Yusuke Endoh wrote:
> Hello, Martin
> ...

Hi Yusuke,
you're right, my apologies! I just read 'read_all' and
'a lot of reallocs' and was immediately reminded of what
I noticed on a different note :) I opened Issue #6047 for
thi...
MartinBosslet (Martin Bosslet)
05:47 AM Feature #6047 (Closed): read_all: Grow buffer exponentially in generic case
In the general case, read_all grows its buffer linearly by just the amount that is currently read from the underlying source. This results in a linear number of reallocs, It might turn out beneficial if the buffer were grown exponentiall... MartinBosslet (Martin Bosslet)
05:22 AM Feature #2740: Extend const_missing to pass in the nesting
Bump tenderlovemaking (Aaron Patterson)
05:19 AM Feature #5138: Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
Worth pointing out that the cost of allocating an exception every time could be blunted by always raising the *same* exception object. This avoids the backtrace, construction cost, *and* mixin overhead in one shot, provided you're ok wit... headius (Charles Nutter)
04:41 AM Feature #5138: Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
I never got to weigh in on this thread back in the day, and I'm working on IO stuff more recently, so a few thoughts...
Eric Wong wrote:
> * Exceptions with the current *_nonblock methods are expensive.
> ...
This is really poor fo...
headius (Charles Nutter)
 

Also available in: Atom