Project

General

Profile

Activity

From 12/05/2011 to 12/11/2011

12/11/2011

11:57 PM Bug #5694: Proc#arity doesn't take optional arguments into account.
Marc-Andre Lafortune wrote:
> You sure seem to enjoy reverting my commits.
I don't want to see such ugly commits.
I hate reverting but I hate more legacy code in ruby repo.
> ...
The rdoc describes optional arguments but doesn't ...
naruse (Yui NARUSE)
12:21 PM Feature #5692 (Closed): IMAP -- error for msg_att will report the UID
This issue was solved with changeset r34010.
art , thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb: includes the sequence number of UID in a error...
shugo (Shugo Maeda)
11:44 AM Bug #5740 (Closed): Trivial typo in ext/syslog.c
This issue was solved with changeset r34009.
mathew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/syslog/syslog.c: fix a typo. [ruby-core:41585] [Bug #5740]
ktsj (Kazuki Tsujimoto)
03:46 AM Bug #5740 (Closed): Trivial typo in ext/syslog.c
diff --git a/ext/syslog/syslog.c b/ext/syslog/syslog.c
index f7d622e..02f36aa 100644
--- a/ext/syslog/syslog.c
+++ b/ext/syslog/syslog.c
@@ -111,7 +111,7 @@ static VALUE mSyslog_close(VALUE self)
* LOG_KERN:: A kernel message (not...
meta (mathew murphy)
10:48 AM Bug #5728 (Closed): SystemExit.new(bool, message)
This issue was solved with changeset r34008.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* error.c (exit_initialize): deal with true and false as well as...
nobu (Nobuyoshi Nakada)
02:24 AM Bug #5728: SystemExit.new(bool, message)
I wrote a patch. akr (Akira Tanaka)
07:23 AM Feature #5741: Secure Erasure of Passwords
Eric Wong <normalperson@yhbt.net> wrote:
> You can use `IO#read` / `StringIO#read` to overwrite an existing String:
`String#tr!` (on binary strings) can also work:
~~~ruby
# -*- encoding: binary -*-
pass = ""
$stdin.sysread(256...
normalperson (Eric Wong)
07:23 AM Feature #5741: Secure Erasure of Passwords
Martin Bosslet <Martin.Bosslet@googlemail.com> wrote:
> 3. Are there better alternative ways how we could achieve this?
You can use `IO#read` / `StringIO#read` to overwrite an existing String:
----------- /tmp/pass.rb ------------...
normalperson (Eric Wong)
06:02 AM Feature #5741 (Assigned): Secure Erasure of Passwords
In other languages it is considered good practice to securely erase
passwords immediately after they were used. Imagine authentication
in a web app - ultimately a String containing the password arrives
at the server, where it will be...
MartinBosslet (Martin Bosslet)
03:21 AM Revision e48c8be8 (git): * lib/net/imap.rb: includes the sequence number of UID in a error
message. suggested by art lussos.
[ruby-core:41413] [Feature #5692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:44 AM Revision 99521390 (git): * ext/syslog/syslog.c: fix a typo. [ruby-core:41585] [Bug #5740]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
01:48 AM Revision ea82d480 (git): * error.c (exit_initialize): deal with true and false as well as
Kernel#exit. [ruby-dev:44951] [Bug #5728]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:37 AM Revision c5fc4da7 (git): * object.c (rb_check_to_int): new function to convert a VALUE to
an Integer if possible, but returns nil instead of raising an
exception otherwise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:34 AM Revision 0468b1bd (git): * 2011-12-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:34 AM Revision fefba781 (git): * process.c (rb_exit_status_code): extract from rb_f_exit_bang and
rb_f_exit. assume 0 to be success in Kernel#exit! too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/10/2011

11:35 PM Bug #5739: [BUG] object allocation during garbage collection phase
This thing actually occurring when there's infinite loop and stack overflow, but it should say "stack level too deep", not generate bug scary messages. I was wrong about not being able to reproduce on 1.8.7. It's reproducible and user co... fused (Fused Team)
08:41 PM Bug #5739 (Rejected): [BUG] object allocation during garbage collection phase
Hi.
Getting the following error off ruby-1.9.2-p290. I have no idea what that means and why it occurs in production environment and it's freaking me and users out. It's working okay with 1.8.7.
Thanks!
fused (Fused Team)
11:29 PM Bug #5738: if false; BEGIN {}; end が syntax error になる
前田です。

2011年12月10日22:10 Yukihiro Matsumoto <matz@ruby-lang.org>:
> エラーのタイプは異なりますが、この変更は意図的です。ifでくくってあってもBEGINはコンパイル時に登録されます。ので、トップレベルでしか登録できないように文法が変更されました。

エラーメッセージがわかりにくくなっている気がするのですが、こんな感じで
エラーメッセージを表示してはどうでしょうか。

...
shugo (Shugo Maeda)
10:34 PM Bug #5738: if false; BEGIN {}; end が syntax error になる
了解です。ありがとうございます。 sho-h (Sho Hashimoto)
10:10 PM Bug #5738 (Rejected): if false; BEGIN {}; end が syntax error になる
エラーのタイプは異なりますが、この変更は意図的です。ifでくくってあってもBEGINはコンパイル時に登録されます。ので、トップレベルでしか登録できないように文法が変更されました。 matz (Yukihiro Matsumoto)
01:32 PM Bug #5738 (Rejected): if false; BEGIN {}; end が syntax error になる
1.8 の時と異なり、以下のコードが syntax error になります。
if false; BEGIN {}; end
test/ruby/test_beginendblock.rb や過去の NEWS に記述がない事などから、もしかしたらバグかもしれないと考えています。1.9 からの仕様であれば reject してやってください。
なお、以下についても syntax error になりますが、1.8 の時と異なり、yyerror("BEGI...
sho-h (Sho Hashimoto)
03:10 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
I modified the patch because rubygems didn't work properly.
However, I think it is consistent with _read() api behavior that read(length) does CRLF conversion.
Ruby 1.9 doesn't do CRLF conversion, but ruby 1.8 does.
>ruby -ve "open(...
h.shirosaki (Hiroshi Shirosaki)
06:49 AM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
Usa, what do you think about attached read_binmode.patch? luislavena (Luis Lavena)
02:23 PM Bug #5730: Optinal block parameters assigns wrong
Hi,

(11/12/10 1:19), Yukihiro Matsumoto wrote:
> I am happy to see we agree. Nobu, could you fix this issue?

Roger.

# But I'm afraid no time at this weekend.

--
Nobu Nakada
nobu (Nobuyoshi Nakada)
01:23 AM Bug #5730: Optinal block parameters assigns wrong
Hi,

In message "Re: [ruby-core:41568] Re: [ruby-trunk - Bug #5730][Open] Optinal block parameters assigns wrong"
on Fri, 9 Dec 2011 18:03:15 +0900, Tanaka Akira <akr@fsij.org> writes:

|I.e. You are right. Now I think it...
matz (Yukihiro Matsumoto)
12:24 PM Revision 858cb3f6 (git): oops.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@34004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
12:17 PM Revision 16daf9b9 (git): merge revision(s) 32741:
* lib/securerandom.rb: call OpenSSL::Random.seed at the
SecureRandom.random_bytes call.
based on the patch by Masahiro Tomita. [ruby-dev:44270]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32741 b2d...
shyouhei (Shyouhei Urabe)
12:17 PM Revision ff8f8c19 (git): merge revision(s) 20587:
* mkconfig.rb: fix for continued lines. based on a patch from
Marcus Rueckert <darix AT opensu.se> at [ruby-core:20420].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Signed-off-...
shyouhei (Shyouhei Urabe)
12:17 PM Revision 5a7338d8 (git): * 2011-12-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@34001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:17 PM Revision 700acefa (git): merge revision(s) 23730:
* numeric.c (flo_cmp): Infinity is greater than any bignum
number. [ruby-dev:38672]
* bignum.c (rb_big_cmp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Signed-...
shyouhei (Shyouhei Urabe)
12:17 PM Revision 95a7aabe (git): merge revision(s) 27064:
* ext/openssl/ossl_x509store.c (ossl_x509store_initialize): initialize
store->ex_data.sk. [ruby-core:28907] [ruby-core:23971]
[ruby-core:18121]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27064 b2dd03c8-39d4-4...
shyouhei (Shyouhei Urabe)
09:46 AM Bug #5737 (Closed): WEBrick doesn't support keep alive connections for 204 and 304 responses
WEBrick doesn't support keep alive connections for 204 and 304 responses. If a 204 or 304 response is made along with a keepalive, a warning is issued and webrick closes the connection.
I've attached a patch that fixes the problem, a...
tenderlovemaking (Aaron Patterson)
08:42 AM Bug #5713: Fixnum#** returns Infinity for 0 ** negative Bignum
FYI, I've been doing RubySpec work on this in Rubinius: https://github.com/rubinius/rubinius/commits/master/spec/ruby/shared/rational/exponent.rb john_firebaugh (John Firebaugh)
03:10 AM Bug #5713: Fixnum#** returns Infinity for 0 ** negative Bignum
John Firebaugh wrote:
> The execution path of 0 ** -Bignum goes to Rational(0) ** -Bignum, so I think the issue is there. I.e. Rational(0) ** -Bignum should raise ZeroDivisionError, the same as Rational(0) ** -Fixnum.
Yes, unless the...
marcandre (Marc-Andre Lafortune)
01:36 AM Bug #5713: Fixnum#** returns Infinity for 0 ** negative Bignum
The execution path of 0 ** -Bignum goes to Rational(0) ** -Bignum, so I think the issue is there. I.e. Rational(0) ** -Bignum should raise ZeroDivisionError, the same as Rational(0) ** -Fixnum. john_firebaugh (John Firebaugh)
08:12 AM Revision 5f3470b3 (git): * 2011-12-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:12 AM Revision 242c7b7b (git): * test/ruby/test_proc.rb (TestProc): renamed argument tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:12 AM Revision d51ce052 (git): * test/ruby/test_econv.rb (TestEncodingConverter#test_default_external): drop stderr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:29 AM Feature #5478: Add syntax to import Set into core
On 2011-12-09, at 12:05:41, Alexey Muranov wrote:
>
> I agree, i was simply pointing out that set is, in my opinion, a more basic data structure than associative array, and both associative arrays and relations can be either built on...
rue (Eero Saynatkari)
06:06 AM Bug #5736 (Closed): Numeric#quo should convert with #to_r
Numeric#quo currently constructs a Rational with self as the raw numerator, doing no coercion, before dividing. Instead it should follow the same pattern as Numeric#{numerator,denominator}, and convert self with #to_r. This allows any Nu... john_firebaugh (John Firebaugh)
03:44 AM Bug #5715: +/-1 ** Bignum returns different results than +/-1 ** Fixnum
Just saw this update. Yes, as I stated, same issue as 5713. Yes the case for (-1) and bignum exponents can be fixed too. The case for 1 and 0 must be addressed for rational and float exponents too (but -1 will go to float for those) marcandre (Marc-Andre Lafortune)
02:00 AM Bug #5715: +/-1 ** Bignum returns different results than +/-1 ** Fixnum
The failing cases are the ones that go through the Rational(+/-1) ** Bignum code path, so this is closely related to #5713. john_firebaugh (John Firebaugh)

12/09/2011

07:05 PM Feature #5478: Add syntax to import Set into core
Magnus Holm wrote:
>
> ...
I agree, i was simply pointing out that set is, in my opinion, a more basic data structure than associative array, and both associative arrays and relations can be either built on top of it, or simply repre...
alexeymuranov (Alexey Muranov)
06:23 PM Bug #5730: Optinal block parameters assigns wrong
2011/12/9 Yukihiro Matsumoto <matz@ruby-lang.org>:

> |I think the consistency explains current behavior.
>
> From above examples, I consider the current behavior is NOT consistent
> at all, under some condition.

The beha...
akr (Akira Tanaka)
05:59 PM Bug #5730: Optinal block parameters assigns wrong
Matz,

On 09.12.2011 09:44, Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: [ruby-core:41561] Re: [ruby-trunk - Bug #5730][Open] Optinal block parameters assigns wrong"
> on Fri, 9 Dec 2011 17:31:31 +0900, Matthias ...
mwaechter (Matthias Wächter)
01:53 PM Bug #5730: Optinal block parameters assigns wrong
Hi,

In message "Re: [ruby-core:41559] Re: [ruby-trunk - Bug #5730][Open] Optinal block parameters assigns wrong"
on Fri, 9 Dec 2011 09:36:00 +0900, Tanaka Akira writes:

|If we break consistency between method invocation...
matz (Yukihiro Matsumoto)
09:53 AM Bug #5730: Optinal block parameters assigns wrong
2011/12/9 Yukihiro Matsumoto <matz@ruby-lang.org>:

> The following program do not expand the given array, but it should expand the value.

It is not clear.

If we break consistency between method invocation and block invoca...
akr (Akira Tanaka)
09:29 AM Bug #5730: Optinal block parameters assigns wrong
On Fri, Dec 09, 2011 at 08:59:26AM +0900, Yukihiro Matsumoto wrote:
>
> Issue #5730 has been reported by Yukihiro Matsumoto.
>
> ----------------------------------------
> Bug #5730: Optinal block parameters assigns wrong
> http...
Anonymous
08:59 AM Bug #5730 (Closed): Optinal block parameters assigns wrong
The following program do not expand the given array, but it should expand the value.
def foo(&block)
block.call([1,2])
end
h = foo{|k=6,v=8|
p [k,v] # gives [[1,2],8] but should be [1,2]
}
matz (Yukihiro Matsumoto)
01:50 PM Revision a03a2d71 (git): * ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
01:31 PM Feature #5735 (Closed): Extending the use of splat operator to when it is inside a hash
Ruby convention of allowing omittion of the curly brackets for the last argument is convenient:
foo(arg1, arg2, 1 => :a, 2 => :b)
Sometimes, I want to pass a hash with some modifications. For example, suppose `h = {3 => :c, 4 => :d...
sawa (Tsuyoshi Sawada)
12:40 PM Revision 2eddb786 (git): * test/ruby/test_econv.rb (test_default_external): include iso-8859-16.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:27 AM Revision c1d369b0 (git): * enc/trans/iso-8859-16-tbl.rb: add ISO-8859-16 converter.
* enc/trans/single_byte.trans: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:36 AM Revision 33e7c896 (git): It should be require_relative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:01 AM Revision 8e411664 (git): * file.c (file_path_convert): don't convert it when the path string is
ascii only. [ruby-core:41556] [Bug #5733]
tests are contributed by nobu.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:12 AM Feature #5623: [PATCH] Update documentation for Complex
I marked each deprecated because there is sdaubert (Sylvain Daubert)
12:51 AM Bug #5694: Proc#arity doesn't take optional arguments into account.
Hi,
Yui NARUSE wrote:
> Revert r33921.
> ...
I just noticed this, as I think the mailing list didn't get this update (at least I didn't)
You sure seem to enjoy reverting my commits.
> Because following two reason:
> ...
What ...
marcandre (Marc-Andre Lafortune)

12/08/2011

11:41 PM Feature #5231: Allow to disable versioned paths
The recent version of patch fix small issue with RubyGems LOAD_PATH order. vo.x (Vit Ondruch)
11:00 PM Revision 11d85dc1 (git): * 2011-12-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:00 PM Revision ef9bbba9 (git): Silence stat redefinition warnings under win32
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e luislavena (Luis Lavena)
10:59 PM Bug #5728: SystemExit.new(bool, message)
>> I don't think we have two.
>>
>> The latter choice is not acceptable, since the return value of (({Kernel#system})) and the first argument of (({Kernel#exit})) are same as the former.
>>
>> And should not assume (({EXIT_SUCCE...
kosaki (Motohiro KOSAKI)
10:53 PM Bug #5728: SystemExit.new(bool, message)
2011/12/8 Nobuyoshi Nakada <nobu@ruby-lang.org>:

> I don't think we have two.
>
> The latter choice is not acceptable, since the return value of (({Kernel#system})) and the first argument of (({Kernel#exit})) are same as the fo...
akr (Akira Tanaka)
08:58 PM Bug #5728: SystemExit.new(bool, message)
=begin
I don't think we have two.
The latter choice is not acceptable, since the return value of (({Kernel#system})) and the first argument of (({Kernel#exit})) are same as the former.
And should not assume (({EXIT_SUCCESS})) to b...
nobu (Nobuyoshi Nakada)
08:29 PM Bug #5728: SystemExit.new(bool, message)
> I think SystemExit.new should accept a bool.
We have two choice and both are a lot of confusable.
1) true => EXIT_SUCCESS, false => EXIT_FAILURE
People may dislike it becuase true mapped 0 and false mapped 1.
2) true => EXIT...
kosaki (Motohiro KOSAKI)
05:45 PM Bug #5728 (Closed): SystemExit.new(bool, message)
I found SystemExit.new doesn't take a bool as exit status:
It works well if an integer is given for status.
% ./ruby -e 'SystemExit.new(0, "msg")'
% ./ruby -e 'SystemExit.new(1, "msg")'
But it doesn't work if the status ...
akr (Akira Tanaka)
09:59 PM Feature #5478: Add syntax to import Set into core
On Wed, Dec 7, 2011 at 10:01, Alexey Muranov
<muranov@math.univ-toulouse.fr> wrote:
>
> ...

From a theoretical point of view, a relation has a heading + a set
that holds tuples (arrays):
```ruby
class Relation
attr_reader :...
judofyr (Magnus Holm)
05:23 PM Feature #5726: Process::EXIT_SUCCESS and Process::EXIT_FAILURE
2011/12/8 Nobuyoshi Nakada <nobu@ruby-lang.org>:

> Why don't you use (({SystemExit#success?})) ?

Oops. I missed that. Thanks.
--
Tanaka Akira
akr (Akira Tanaka)
03:00 PM Feature #5726 (Feedback): Process::EXIT_SUCCESS and Process::EXIT_FAILURE
=begin
Why don't you use (({SystemExit#success?})) ?
=end
nobu (Nobuyoshi Nakada)
02:15 PM Feature #5726 (Closed): Process::EXIT_SUCCESS and Process::EXIT_FAILURE
I'd like to define Process::EXIT_SUCCESS and Process::EXIT_FAILURE.
I want to use them to test my command line application.
The test calls the main routine of the application and
traps SystemExit.
I'd like to compare status of the ...
akr (Akira Tanaka)
04:24 PM Feature #5427: Not complex patch to improve `require` time (load.c)
Currenly, I've update patch with fix from #5727
https://gist.github.com/1272991
funny_falcon (Yura Sokolov)
04:15 PM Bug #5727 (Closed): Hidden bug in load.c rb_feature_p
lazy assigned load_path searched in loading_table were not expanded
(http://redmine.ruby-lang.org/projects/ruby-trunk/repository/revisions/33027/entry/load.c#L186),
but all features, pushed to loading table, are expanded.
This bug ...
funny_falcon (Yura Sokolov)
03:27 PM Bug #5614: Proc#source_location & #inspect shows wrong line number when chained
It may not a bug but a specification. A block returns the number of a line in which the block is defined for its "source_location." When you use procs instead of blocks, it returns the values you expected.
Code:
1 require 'pp'
2...
technohippy (Yasushi ANDO)
02:54 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
It seems read with length should always be binary mode. #5562 patch lacks this point.
I think this patch fixes above issue.
It seems OK that stdin is default binary mode, but if stdout and stderr are default binary mode, newline conv...
h.shirosaki (Hiroshi Shirosaki)
10:23 AM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
Hi,

2011/12/7 Hiroshi Shirosaki <h.shirosaki@gmail.com>
>
> >
> > -    if (_osfile(fd) & FTEXT) {
> > +    isconsole = is_console(_osfhnd(fd));
> > +    if (!isconsole && (_osfile(fd) & FTEXT)) {
> >        return _read(fd, buf...
phasis68 (Heesob Park)
02:52 PM Revision b8b5f5d4 (git): Generate temporary file in tmpdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:47 PM Revision 1fd41dce (git): * variable.c (set_const_visibility): clear inine-cache when constant's
visibility is modified. [ruby-dev:44929]
* test/ruby/test_module.rb (test_private_constants_clear_inlinecache):
add test for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:28 PM Revision f6a2a431 (git): * ext/extmk.rb (extract_makefile): should sort after map, not before
it. in this case there is no difference, but we should write better
code. this bad smell was caught by nagachika.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:50 PM Revision 63fe8b69 (git): update doc and add test for SystemExit.new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:37 PM Bug #4681: Timeout.timeout doesn't actually time out?
Just noting for the benefit of anyone else passing by that I posted a way to do popen3 with timeout at
https://gist.github.com/1032297
meta (mathew murphy)
01:36 PM Bug #5487: popen3 + timeout regression in ruby 1.9
In case it helps, I have a Gist with some working 1.9.3 code to perform a popen3 with time out, not using Timeout::timeout:
https://gist.github.com/1032297
meta (mathew murphy)
01:34 PM Revision d9d841e3 (git): * ext/extmk.rb (extract_makefile): need to sort the array of current
srcs before comparing to the sorted old srcs.
fixed the problem that the configuring stage of exts were always
run, introduced at r33801.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:22 PM Revision 518a3402 (git): * ChangeLog: fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
12:11 PM Bug #5679 (Closed): Too many arguments for format warnings on mingw32 build
This issue was solved with changeset r33978.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in (RUBY_WERROR_FLAG): append all warning flags whi...
nobu (Nobuyoshi Nakada)
07:59 AM Bug #5679 (Assigned): Too many arguments for format warnings on mingw32 build
kosaki (Motohiro KOSAKI)
10:27 AM Revision 2fbf66a7 (git): Fix invalid test extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:25 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
Hi
While looking for a solution to an issue we have with embedding ruby into a pthread I found this thread
We have been running ruby embedded into a pthread for about 10 years now and and have upgraded periodically. We recently moved f...
SteveRT (Steve Hart)
10:01 AM Feature #5710 (Closed): Enumerable#each( :method ) and Enumerable#map( :method )
closed at request of submitter duerst (Martin Dürst)
01:56 AM Feature #5710: Enumerable#each( :method ) and Enumerable#map( :method )
It works. Thank you!
I guess that this issue has been resolved...
battox (Matías Battocchia)
09:53 AM Bug #5721: require_relative
2011/12/7 rommel nocando <redmine@ruby-lang.org>:

> Bug #5721: require_relative
> http://redmine.ruby-lang.org/issues/5721
>
> Our users have found that with synchronicity's (a revision control system) populating with -share...
akr (Akira Tanaka)
09:39 AM Bug #5721: require_relative
=begin
I'm uncertain of your case.
I imagined the following case, but this works.
$ mkdir bin lib
$ echo 'p :foo' > lib/foo.rb
$ ln -s ../lib/foo.rb bin/
$ echo 'require_relative "foo"' > bin/a.rb
$ ruby bin/a.rb
:foo
=e...
nobu (Nobuyoshi Nakada)
09:34 AM Bug #5721 (Feedback): require_relative
akr (Akira Tanaka)
08:24 AM Bug #5709: Improve Regexp documentation
I altered the wording on =~ mentioning Range and String because the operator is generic and may be overridden to perform other types of pattern matching. drbrain (Eric Hodel)
08:22 AM Bug #5709 (Closed): Improve Regexp documentation
This issue was solved with changeset r33977.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/re.rdoc: Document difference between match and =~, opti...
drbrain (Eric Hodel)
08:03 AM Bug #5624 (Closed): Mismatch between code example and its description in text in Regexp documentation
This issue was solved with changeset r33976.
Jarno, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/re.rdoc: Fix example code to match documentation. Patch ...
drbrain (Eric Hodel)
07:15 AM Bug #5724 (Rejected): date_core compiling issues with MinGW GCC 4.6
Hello,
I'm having problems building date_core.c with GCC 4.6 from mingw-w64 project:
luislavena (Luis Lavena)
05:56 AM Feature #5623 (Feedback): [PATCH] Update documentation for Complex
What are the replacements for Complex.generic? and Numeric#im? I think these should be documented instead of just "Deprecated" drbrain (Eric Hodel)
04:31 AM Revision 0bfa4abd (git): * test/rexml/test_order.rb (OrderTester#test_more_ordering): use
GZip::GzReader.open instead of GZip::GzReader.new with File.new.
fixed a test error on Windows introduced at r33946.
* ChangeLog: mention the causes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33981 b2dd03c8-39d4-4d8f-98ff-82...
U.Nakamura
04:12 AM Revision bb329872 (git): * test/ruby/test_process.rb (TestProcess#test_sete[gu]id): silently
skip if not implemented such functions (such as, on Windows).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:59 AM Revision 2470d781 (git): * ext/socket/extconf.rb: forgotten to define HAVE_SOCKETPAIR for
windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:11 AM Revision f2747b57 (git): * configure.in (RUBY_WERROR_FLAG): append all warning flags which
are enabled to compile, so that printf format modifiers properly
fail. [ruby-core:41351] [Bug #5679]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/07/2011

11:22 PM Revision 3e204989 (git): * doc/re.rdoc: Document difference between match and =~, options with
Regexp.new and global variables. Patch by Sylvain Daubert.
[Ruby 1.9 - Bug #5709]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:02 PM Revision 52654367 (git): * doc/re.rdoc: Fix example code to match documentation. Patch by
Jarno Lamberg. [Ruby 1.9 - Bug #5624]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:53 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
>
> -    if (_osfile(fd) & FTEXT) {
> +    isconsole
h.shirosaki (Hiroshi Shirosaki)
12:23 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
Hi,

(11/12/06 22:34), Luis Lavena wrote:
> BTW, I'm collecting stats about Ruby-users with Windows to determine
> the best option for that, can you spread the word?
>
> https://docs.google.com/spreadsheet/viewform?hl=en_US...
nobu (Nobuyoshi Nakada)
10:40 PM Revision 89beb18b (git): Ignore generated files in ext/-test-/path_to_class
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
10:13 PM Revision 253079bc (git): * 2011-12-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:13 PM Revision 09c399b6 (git): It is fixed in FreeBSD 9.0 RC3, not RC2.
So skip until it is released.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:59 PM Bug #5721 (Rejected): require_relative
Our users have found that with synchronicity's (a revision control system) populating with -share option that the symbolic links break require_relative
bin/launchLib.rb:54:in `require_relative': no such file to load -- /blah/sync_cac...
nocandor (rommel nocando)
06:56 PM Bug #5720 (Closed): Exceptions can be caused via eval that evade exception handling
This issue was solved with changeset r33970.
Gabriel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm.c (vm_set_top_stack, vm_set_eval_stack): check for stack
...
nobu (Nobuyoshi Nakada)
03:51 PM Bug #5720 (Closed): Exceptions can be caused via eval that evade exception handling
While poking at #5719, I discovered it's possible to cause an exception via Kernel#eval that leaks through any surrounding rescue block. Please see the gist for details. I tested against 1.9.2-p290, 1.9.3-p0, and HEAD of the 1.9.3 branch... gabrielg (Gabriel Gironda)
06:01 PM Feature #5478: Add syntax to import Set into core
If you had enough of my comments on this thread, please tell me stop, i will listen.
Here is my another argument in favor of pure Set as a base class or replacement for Hash: on top of Set (or Hash modified in a way to be able to hold...
alexeymuranov (Alexey Muranov)
02:26 PM Bug #5719: Hash::[] can't handle 100000+ args
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 a very long array created by a splash. At ht... duerst (Martin Dürst)
12:26 PM Bug #5719: Hash::[] can't handle 100000+ args
i shall give you four hints: stack, heap, push, pop
ruby's behavior is expected.
you can pass Hash::[] an array instead i think.
Hash[[[:a, 1], [:b, 2]]] #=> {:a=>1, :b=>2}
deepfryed (Bharanee Rathna)
12:23 PM Bug #5719: Hash::[] can't handle 100000+ args
Hi,

In message "Re: [ruby-core:41511] [ruby-trunk - Bug #5719][Open] Hash::[] can't handle 100000+ args"
on Wed, 7 Dec 2011 11:30:44 +0900, Nick Quaranto <nick@quaran.to> writes:

|I couldn't pin down an exact size for wh...
matz (Yukihiro Matsumoto)
12:05 PM Bug #5719: Hash::[] can't handle 100000+ args
It looks to be a variable argument length thing, not a Hash thing in particular.
https://gist.github.com/5037bf83d28c2c119c44
Edit: Not just variable argument length. Ruby just won't have any of your guff if you intend on passing any m...
gabrielg (Gabriel Gironda)
11:47 AM Bug #5719: Hash::[] can't handle 100000+ args
I was able to duplicate this issue with the above code in 1.9.2-p290 It didn't matter if I ran it through IRB or from the command line. iterology (John Glass)
11:30 AM Bug #5719 (Closed): Hash::[] can't handle 100000+ args
I couldn't pin down an exact size for when/how this occurs, but I have code that was creating hashes just fine with Hash::[] with 300k+ arguments.
irb(main):056:0> (0...140000).map { |n| [:a, n] }.tap { |a| Hash[*a] }.size
SystemStac...
qrush (Nick Quaranto)
10:59 AM Feature #5622 (Closed): [PATCH] Update documentation for BigDecimal
This issue was solved with changeset r33969.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/bigdecimal/bigdecimal.c: Document +@, -@, hash, INFINIT...
drbrain (Eric Hodel)
10:49 AM Bug #5602 (Closed): io/console methods are not listed in top-level IO documentation
This issue was solved with changeset r33968.
Misty, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (Init_IO): Mention io/console methods. [Ruby 1.9 - Bug ...
drbrain (Eric Hodel)
10:23 AM Bug #5694: Proc#arity doesn't take optional arguments into account.
trans wrote:
> On Sunday, December 4, 2011 3:02:29 PM UTC-5, NARUSE, Yui wrote:
>>
>>
>> After some consideration, I'm wondering why following code is not used.
>> There is already a method or proc object in usual use case?
...
shyouhei (Shyouhei Urabe)
12:53 AM Bug #5694: Proc#arity doesn't take optional arguments into account.
On Sunday, December 4, 2011 3:02:29 PM UTC-5, NARUSE, Yui wrote:
>
>
> After some consideration, I'm wondering why following code is not used.
> There is already a method or proc object in usual use case?
>
> begin
> obj...
trans (Thomas Sawyer)
10:04 AM Revision 83d1eebb (git): * 2011-12-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:04 AM Revision aecd98a2 (git): * configure.in (rpath): fix typo in the help string. a patch from
Yuji Yamano <yyamano AT kt.rim.or.jp> in [ruby-list:48568].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:04 AM Revision 8d7ef97e (git): * configure.in (rpath): fix typo in the help string. a patch from
Yuji Yamano <yyamano AT kt.rim.or.jp> in [ruby-list:48568].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:56 AM Revision 054dbe2a (git): * vm.c (vm_set_top_stack, vm_set_eval_stack): check for stack
overflow with stack_max before push new frame. [ruby-core:41520]
[Bug #5720]
* vm.c (vm_set_main_stack): no stack overflow chances after
vm_set_eval_stack().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33970 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
01:58 AM Revision 3a5daefe (git): * ext/bigdecimal/bigdecimal.c: Document +@, -@, hash, INFINITY, Nan.
Patch by Sylvain Daubert. [Ruby 1.9 - Feature #5622]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:49 AM Revision 12e7e797 (git): * io.c (Init_IO): Mention io/console methods. [Ruby 1.9 - Bug #5602]
* ext/io/console/console.c: Mention that io/console must be required
similar to lib/time.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:53 AM Feature #5695: CoffeeScript "is" and "isnt" keywords
Indeed, I have aliased `#is` to `#include` and aliased `#is?` as `#===`
before

class Collection
is Enumerable
end

Collection.is? Enumerable

Which I find exceptionally readable.
trans (Thomas Sawyer)
12:32 AM Revision 1b99ecc5 (git): FreeBSD 9.0 RC2 fixes the bug.
FreeBSD PR: kern/155606, kern/162379
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

12/06/2011

11:12 PM Revision 7c5aa76f (git): * 2011-12-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:12 PM Revision 54b214cc (git): * ext/psych/lib/psych.rb (module Psych): parse and load methods take
an optional file name that is used when raising Psych::SyntaxError
exceptions
* ext/psych/lib/psych/syntax_error.rb (module Psych): allow nil file
names and handle nil file names in the exception message
* test/psych/test_exception.r...
tenderlovemaking (Aaron Patterson)
10:53 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
On Tue, Dec 6, 2011 at 4:18 AM, U.Nakamura <usa@garbagecollect.jp> wrote:
>
> On my idea, for example, throw away XP :)
>

_WIN32_WINNT
luislavena (Luis Lavena)
04:23 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
Hello,

In message "[ruby-core:41500] [ruby-trunk - Bug #5714] Unexpected error of STDIN#read with non-ascii input on Windows XP"
on Dec.06,2011 15:57:36, <phasis@gmail.com> wrote:
> I guess this issue is due to a bug of _re...
usa (Usaku NAKAMURA)
03:57 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
I guess this issue is due to a bug of _read function of Microsoft Runtime library.
Here is a patch for workaround.
diff --git a/win32.c b/win32.c.new
index 67a392e..4d5a253 100644
--- a/win32.c
+++ b/win32.c.new
@@ -5451,7 +545...
phasis68 (Heesob Park)
12:52 PM Bug #5714 (Closed): Unexpected error of STDIN#read with non-ascii input on Windows XP
When the input contains non-ascii character, STDIN#read raised Permission denied or Invalid argument error with MSVC compiled version on Windows XP.
C:\work>ruby -ve 'p STDIN.read(5)'
ruby 2.0.0dev (2011-12-05 trunk 33955) [i386-ms...
phasis68 (Heesob Park)
07:07 PM Feature #5716 (Closed): duplicated when clause is ignored -> Report which clause it is specifically.
In latest Ruby 1.9.3, if you have warnings enabled, you get information like this here:
foobar.rb:24: warning: duplicated when clause is ignored
This error comes from the file:
compile.c
rb_compile_warning(RSTRING_PTR(ise...
shevegen (Robert A. Heiler)
01:26 PM Bug #5715 (Closed): +/-1 ** Bignum returns different results than +/-1 ** Fixnum
=begin
Consider (({1 ** expt})) and (({(-1) ** expt})).
When ((|expt|)) is a Fixnum, the result is always 1, -1, Rational(1/1), or Rational(-1,1) depending on the signs of the operands and parity of the exponent.
When ((|expt|)) i...
john_firebaugh (John Firebaugh)
12:36 PM Bug #5713 (Closed): Fixnum#** returns Infinity for 0 ** negative Bignum
=begin
Instead it should raise ZeroDivisionError, the same as negative Fixnums.
wordsize = 8 * 1.size
fixnum_min = -2 ** (wordsize - 2)

def zero_power(exp)
0 ** exp
rescue ZeroDivisionError
"ZeroDivisionError"
end...
john_firebaugh (John Firebaugh)
12:30 PM Bug #5656: Improve documentation for Range
=begin
I restored the Xs example in #step since it seemed more illustrative.
I restored the === comment to the === documentation since it isn't something special to Range, all objects can behave that way.
Your second patch cannot ...
drbrain (Eric Hodel)
08:37 AM Bug #5656 (Closed): Improve documentation for Range
This issue was solved with changeset r33958.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* range.c: Improve documentation for Range. Patch by Chris Zet...
drbrain (Eric Hodel)
10:38 AM Revision c5fada68 (git): fix spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:21 AM Revision bb187517 (git): * ext/dbm/dbm.c: use db_version() instead of DB_VERSION_STRING for
detect runtime Berkeley DB version.
use dpversion instead of _QDBM_VERSION for detect runtime QDBM
[ruby-dev:44948]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
06:59 AM Revision 1ff15071 (git): See the string "GDBM version".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:41 AM Revision 0209f8d4 (git): Fix copy and paste miss of r33960.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:29 AM Feature #5654: Introduce global lock to avoid concurrent require
> The main caveat I can think of is that starting a reactor or other server loop inside a `require` will no longer work. I would argue that the benefits of much more deterministic require outweigh the costs of losing the ability to do t... Anonymous
04:40 AM Revision 20c91caf (git): Skip tests when the lib is with gdbm 1.8.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:38 AM Revision 2f49f5ee (git): * ext/dbm/extconf.rb: detect gdbm_version in libgdbm.
* ext/dbm/dbm.c: make DBM::VERSION more informative for gdbm, qdbm and
Berkeley DB 1.x. [ruby-dev:44944]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

12/05/2011

11:36 PM Revision 79bc3579 (git): * range.c: Improve documentation for Range. Patch by Chris Zetter.
[Ruby 1.9 - Bug #5656]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:47 PM Revision 03c02865 (git): * 2011-12-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:47 PM Revision 52f61eae (git): Comment out tests which fails with GDBM-DBM compat mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:23 PM Feature #5695: CoffeeScript "is" and "isnt" keywords
On 01/12/11 18:52, Suraj Kurapati wrote:
>
> Issue #5695 has been reported by Suraj Kurapati.
>
> ----------------------------------------
> Feature #5695: CoffeeScript "is" and "isnt" keywords
> http://redmine.ruby-lang.o...
regularfry (Alex Young)
07:59 PM Feature #5478: Add syntax to import Set into core
From the point of view of behavior/interface, both sets and associative arrays are just unordered collections, associative arrays being unordered collections of (key,value) pairs, where each key is unique.
(This is why i thought that it...
alexeymuranov (Alexey Muranov)
10:23 AM Feature #5478: Add syntax to import Set into core
On Sun, Dec 4, 2011 at 22:34, Joshua Ballanco <jballanc@gmail.com> wrote:

> Actually, the bulk of Set's functionality is already built on top of Hash.
> Personally, since the ability to create Hashes from comma-delimited
> key,...
aprescott (Adam Prescott)
07:53 AM Feature #5478: Add syntax to import Set into core
On Sun, Dec 4, 2011 at 1:05 PM, Eero Saynatkari <ruby-ml@kittensoft.org>wrote:

> On 2011-12-04, at 16:15:00, Alexey Muranov wrote:
> >
> > But what is wrong with having one class instead of two, if internally
> they behave mostly ...
jballanc (Joshua Ballanco)
03:29 PM Feature #5707: temporary file creation without finalizer and delegate.
>> Since Tempfile.new already takes an optional hash,
>> how about:
>>
>>  Tempfile.open(..., finalizer: false)
>
> It is not bad.
>
> But I feel the description is too subtle to change
> the class of return value and the respo...
kosaki (Motohiro KOSAKI)
09:23 AM Feature #5707: temporary file creation without finalizer and delegate.
2011/12/5 Eric Wong <normalperson@yhbt.net>:

> Since Tempfile.new already takes an optional hash,
> how about:
>
> Tempfile.open(..., finalizer: false)

It is not bad.

But I feel the description is too subtle to cha...
akr (Akira Tanaka)
03:53 AM Feature #5707: temporary file creation without finalizer and delegate.
Akira Tanaka <akr@fsij.org> wrote:
> A problem of this proposal is the method name.
> Tempfile.open2 is not a good name.

Since Tempfile.new already takes an optional hash,
how about:

Tempfile.open(..., finalizer: false)
normalperson (Eric Wong)
02:29 PM Bug #5706 (Closed): Build failure on io/wait extension with VC 2010
This issue was solved with changeset r33947.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: reve...
usa (Usaku NAKAMURA)
12:56 PM Bug #5706 (Assigned): Build failure on io/wait extension with VC 2010
usa (Usaku NAKAMURA)
01:35 PM Bug #5711 (Closed): r32774 (and r32783) broke nmake support
普段あまり使わないので気付かなかったのですが、表題の通りでnmakeにおけるV=1指定サポートが破壊されています。
(nmakeではマクロ置換展開中のマクロ展開はできません)
NULLCMDを経由するとかいう凝ったことしないで単にECHO1をconfigureで作るようにしてくれればnmakeでもSolaris makeでも通るMakefileが書けると思うのですが、どうですか。
usa (Usaku NAKAMURA)
12:16 PM Feature #5710: Enumerable#each( :method ) and Enumerable#map( :method )
Try
array = [ "bi", "tri", "quad" ]
p array.each( &:upcase! ) #=> [ "BI", "TRI", "QUAD" ]
p array.map( &:length ) #=> [ 2, 3, 4 ]
trans (Thomas Sawyer)
11:31 AM Feature #5710 (Closed): Enumerable#each( :method ) and Enumerable#map( :method )
#each and #map could accept an argument of class string or symbol and send it to the objects in the enumerable.
An example:
array = [ "bi", "tri", "quad" ]
p array.each( :upcase! ) #=> [ "BI", "TRI", "QUAD" ]
p array.map( :...
battox (Matías Battocchia)
10:12 AM Revision 3581d76b (git): * regparse.c: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:08 AM Revision c09f4630 (git): * regparse.c (PFETCH_READY): separate gcc specific trick.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:02 AM Revision 8bce84fe (git): * process.c (proc_seteuid_m): fix argument.
* test/ruby/test_process.rb (test_geteuid): fix typo.
* test/ruby/test_process.rb (test_getegid, test_set[eg]uid): add.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:01 AM Revision 74b985ac (git): * ChangeLog: remove dup entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:57 AM Revision b526738c (git): * bignum.c (big_rshift), compile.c (validate_label,
iseq_build_from_ary_exception), cont.c (cont_capture), dir.c
(dir_open_dir), gc.c (objspace_each_objects), io.c (pipe_open)
(rb_io_advise), parse.y (parser_compile_string)
(rb_parser_compile_file), proc.c (binding_free), process.c
...
nobu (Nobuyoshi Nakada)
09:50 AM Revision 8baffe6e (git): * class.c (rb_obj_methods), compile.c (iseq_compile_each),
iseq.c(iseq_load, rb_iseq_parameters), pack.c (pack_pack),
regcomp.c (is_not_included, update_string_node_case_fold),
transcode.c (rb_econv_open0, make_replacement),
vm_eval.c (raise_method_missing): remove unused variable.
git-sv...
nobu (Nobuyoshi Nakada)
08:13 AM Revision 0e4b86b5 (git): * common.mk (newline.c, miniprelude.c): use VPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:33 AM Revision bf0d8b7e (git): * signal.c (reserved_signal_p): static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:29 AM Revision 1dea1927 (git): * include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: revert
r33876. [ruby-core:41475] [Bug #5706]
* ext/socket/extconf.rb: the alternative hack for [Bug #5675].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:23 AM Bug #5694: Proc#arity doesn't take optional arguments into account.
(2011/12/04 12:41), NARUSE, Yui wrote:
> (2011/12/03 4:20), Yehuda Katz wrote:
>> Yeah… it would be nice to be able to do:
>>
>> if proc.arity_range.include?(2)
>> if method.arity_range.include?(2)
>
> Is it really re...
naruse (Yui NARUSE)
02:26 AM Bug #5709 (Closed): Improve Regexp documentation
Improve Regexp documentation:
* add a section to explain differences between =~ operator and #match
* in Options section, explain how use options with Regexp.new
* add a section about special global variables ($~ and so on)
sdaubert (Sylvain Daubert)
01:25 AM Revision 8229b9dd (git): * ext/zlib/zlib.c (rb_gzreader_initialize): revert a part of r33937.
1st, to change the mode of an IO is very sensitive problem, so
the maintainer of this library should judge it.
2nd, usually Zlib::GzReader.new is not called directly. #initialize
is called via .open, and in the method the I/O is o...
U.Nakamura
 

Also available in: Atom