Project

General

Profile

Activity

From 03/27/2012 to 04/02/2012

04/02/2012

11:34 PM Bug #6238 (Third Party's Issue): Seg fault in net/http.rb line 799
This is because Mac OS X bundled openssl.
See http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/
naruse (Yui NARUSE)
11:13 PM Bug #6237 (Rejected): ruby my_controller.rbでSEGV
エイプリルフール終わり。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:13 PM Feature #6242 (Rejected): Ruby should support lists
April fools' day ended. Thanks.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:53 AM Feature #6242: Ruby should support lists
On Sunday, April 1, 2012 at 10:40 PM, Bill Kelly wrote:
> shugo (Shugo Maeda) wrote:
> >
> > But the following comment reminded me that Ruby was originally Smalltalk, not a LISP.
> >
> > http://www.jwz.org/blog/2012/03/haters-g...
jballanc (Joshua Ballanco)
11:53 AM Feature #6242: Ruby should support lists
shugo (Shugo Maeda) wrote:
>
> But the following comment reminded me that Ruby was originally Smalltalk, not a LISP.
>
> http://www.jwz.org/blog/2012/03/haters-gonna-hate-tail-call-optimization/#comment-103406

I used to t...
spatulasnout (B Kelly)
11:23 AM Feature #6242: Ruby should support lists
On Mon, Apr 02, 2012 at 10:56:47AM +0900, shugo (Shugo Maeda) wrote:
>
> Issue #6242 has been updated by shugo (Shugo Maeda).
>
>
> xds2000 (deshi xiao) wrote:
> > Hi,shugo
> > What benefits of the proposed lisp changed? I a...
Anonymous
10:59 AM Feature #6242: Ruby should support lists
On Mon, Apr 02, 2012 at 09:14:30AM +0900, xds2000 (deshi xiao) wrote:
>
> Issue #6242 has been updated by xds2000 (deshi xiao).
>
>
> Hi,shugo
> What benefits of the proposed lisp changed? I am very confuse this LISP list fea...
Anonymous
10:56 AM Feature #6242: Ruby should support lists
xds2000 (deshi xiao) wrote:
> Hi,shugo
> ...
  ∧,,∧
 (,,・∀・) You should say "Array", not "Hash"!
~(_u,uノ
shugo (Shugo Maeda)
10:38 AM Feature #6242: Ruby should support lists
shugo (Shugo Maeda) wrote:
> But the following comment reminded me that Ruby was originally Smalltalk, not a LISP.
> ...
Maybe we should propose a free ":" after method names for keyword arguments in a separate issue, like:
open: ...
drbrain (Eric Hodel)
09:13 AM Feature #6242: Ruby should support lists
Hi,shugo
What benefits of the proposed lisp changed? I am very confuse this LISP list feature. your sample is very similar with native ruby Hash in my options.
xds2000 (deshi xiao)
08:59 AM Feature #6242: Ruby should support lists
drbrain (Eric Hodel) wrote:
> I have heard Ruby is a LISP too:
> ...
Thanks for the information. I forgot to propose macros.
But the following comment reminded me that Ruby was originally Smalltalk, not a LISP.
http://www.jwz.or...
shugo (Shugo Maeda)
04:07 AM Feature #6242: Ruby should support lists
I have heard Ruby is a LISP too:
http://www.jwz.org/blog/2012/03/haters-gonna-hate-tail-call-optimization/#comment-103386
drbrain (Eric Hodel)
10:59 PM Feature #6240 (Assigned): Enumerable#drop with negative argument
mame (Yusuke Endoh)
10:41 AM Feature #6240: Enumerable#drop with negative argument
marcandre (Marc-Andre Lafortune) wrote:
> > How Enumerable#drop can know the total number of elements?
> ...
Ah, I see. It's interesting.
Do you have any use case in mind?
shugo (Shugo Maeda)
08:38 AM Feature #6240: Enumerable#drop with negative argument
Hi,
shugo (Shugo Maeda) wrote:
> How Enumerable#drop can know the total number of elements?
> ...
`drop` would have to consume the whole iteration, indeed, which is why I was talking about a buffer. The buffer holds elements until w...
marcandre (Marc-Andre Lafortune)
10:44 PM Feature #4264: General type coercion protocol for Ruby
Hello,
I can't remember why I assigned this to myself...
I think I can do nothing about this ticket.
So I assign this to matz.
Sorry I did not follow the discussion, but I couldn't understand this issue at all.
I guess it is h...
mame (Yusuke Endoh)
10:23 PM Feature #4592: Tempfileを直接保存したい
(2012/04/02 21:50), mame (Yusuke Endoh) wrote:
> くらいだったと思います。間違ってたら正してください > 参加者

 間違ってないですが,個人的には Tempfile インスタンスのまま消えないのは
不思議なので,Tempfile#xxx #=> File みたいなメソッド xxx があるといいん
じゃないかなぁ,と.って,[ruby-dev:45436](#change-25125) に書いてるじゃ...
ko1 (Koichi Sasada)
09:50 PM Feature #4592: Tempfileを直接保存したい
mame (Yusuke Endoh) wrote:
> どういう意味でこのチケットを自分にアサインしたか忘れてしまったのですが。
思い出しました。開発者会議で出た内容をまとめて matz に振るのでした。
しかし開発者会議で出た内容を正確に覚えてないんですが、
- ユースケースは理解できる
- 卜部さんの workaround は推奨されない
- 良い API・名前はなんだろう
くらいだったと思います。間違ってたら正してください...
mame (Yusuke Endoh)
10:17 PM Feature #6082: io_binwrite()内でwritev()を使う
次のようなベンチマークを実行してみましたが、結果にばらつきはあるものの意味のある高速化にはならなかったようです。
require 'benchmark'
require 'tempfile'
str = "a" * 8000
Tempfile.open("foo") do |f|
Benchmark.bm do |x|
x.report do
20000.times { f.write str }
end
...
Glass_saga (Masaki Matsushita)
09:42 PM Feature #6130: inspect using to_s is pain
I'm not sure if it is trivial to fix this issue.
Could anyone please create a patch and study the behavior?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:25 PM Bug #4453: Overriding #to_s changes #inspect
A feature ticket #6130 duplicates this ticket.
And matz accepted #6130. So this will be "fixed" in 2.0
To prevent a discussion log from being scattered, please
don't reply to this ticket any more.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:05 PM Bug #4453: Overriding #to_s changes #inspect
qwerty55 (salvatore giudice) wrote:
> Is there some reason that this bug persists for years?
Because you didn't report it.
You should thank yimutang.
naruse (Yui NARUSE)
10:55 AM Bug #4453: Overriding #to_s changes #inspect
Is there some reason that this bug persists for years? Every time I'm debugging a new ruby programmer's code, I run into this. Rookies love to override to_s for some odd reason. When inspect and pp break on to_s, it makes me see flames ... qwerty55 (salvatore giudice)
06:23 PM Feature #6166: Enumerator::Lazy#pinch
I don't understand what you mean by "So to make #pinch work as if "not acting in place", sequence needs to keep the values inside, everytime it generates." Pinch is no different than #to_a except that it does not need to "resolve" all el... trans (Thomas Sawyer)
10:42 AM Feature #6166: Enumerator::Lazy#pinch
I am not sure what you mean by "does not act in place". Lazy sequence has position. Retrieving value from sequence moves its position, even calling to_a. So to make #pinch work as if "not acting in place", sequence needs to keep the va... matz (Yukihiro Matsumoto)
03:15 AM Feature #6166: Enumerator::Lazy#pinch
It should have no effect on `lz` either way. It does not act in place.
lz = (1..100).lazy
lz.pinch(0,2) #=> [1,2]
lz.pinch(0,2) #=> [1,2]
Marc-Andre's suggestion of #slice is better name. I forgot about that method, but it is e...
trans (Thomas Sawyer)
01:38 AM Feature #6166: Enumerator::Lazy#pinch
What happens when you call #pinch (or whatever) twice on same lazy sequence?
e.g.
lz = (1..100).lazy
lz.pinch(0,2)
lz.pinch(0,2)
If second call to pinch gives [1,2], lazy sequence needs to keep all generated values insid...
matz (Yukihiro Matsumoto)
05:43 PM Feature #5455: $SAFE should be removed
Thanks for the swift response!
> I don't know why you are so eager to remove it. It's not part of "the
> ...
Though you might be thinking I'm on a JRuby side now, my concern is not on "the spec". The reason why I want to remove $SA...
nahi (Hiroshi Nakamura)
05:29 PM Feature #5455: $SAFE should be removed
Hi,

I don't know why you are so eager to remove it. It's not part of "the
spec". It's CRuby's implementation dependent feature. Why bother?

matz.

In message "Re: [ruby-core:44060] [ruby-trunk - Feature #5455] ...
matz (Yukihiro Matsumoto)
05:17 PM Feature #5455: $SAFE should be removed
I guess Endoh-san postponed the decision to 3.0 dev cycle, but please allow me to try a bit more now.
If removing $SAFE in 3.0 (or something, the version incompatible with 2.0) is acceptable, is it possible to deprecate it in 2.0? Wa...
nahi (Hiroshi Nakamura)
04:36 PM Feature #6236: WEBrick::HTTPServer swallows Exception
I couldn't see that it was reasonable for WEBrick to expect to handle any of the Exception subclasses that aren't StandardErrors. This problem is caused precisely because WEBrick tried to handle something it shouldn't have, and I'd expe... regularfry (Alex Young)
03:29 PM Revision ecabd169 (git): * 2012-04-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:29 PM Revision 0ec53924 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:34 AM Bug #5536 (Closed): String#start_with? and end_with? ignore arguments convertible to a String [PATCH]
This issue was solved with changeset r35213.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_start_with, rb_str_end_with): raise an error...
nobu (Nobuyoshi Nakada)
09:44 AM Revision c00b706c (git): check_definition: duplicated code
* vm_method.c (check_definition): moved duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:31 AM Feature #6243 (Rejected): Make ERB Ruby's Super Power
As a Super Ruby Developer
I want to make Ruby Super Developery
Given wimpy Ruby, coding is arduous:
class Letters
def a
"Aa"
end
def b
"Bb"
end
# Oh, dear St. V! It's just too long. I don...
trans (Thomas Sawyer)
06:05 AM Feature #6241: Module#method_defined? with inherited flag
I think this is certainly a good idea. But I want to also point out that it's not always ideal either b/c #method_defined? reports false for private/protected methods. So in cases where the method in question might not have known visibil... trans (Thomas Sawyer)
04:25 AM Revision a59bfa76 (git): * lib/optparse/ac.rb: autoconf-like options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:40 AM Feature #5663: Combined map/select method
Maybe `#select_yield`, since that what it is doing.
Which reminds me, is there an equivalent `#find` method to this (e.g. `#find_yield`), that returns the yield result instead of the element?
trans (Thomas Sawyer)
01:37 AM Bug #6230: [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
方向としては良いかと思います。
readpartial って、@buffer_size が 0 でない限り、空文字列を返すことってないような気がします。
test/webrick/test_httpserver.rb 用のテストもお願いします。
naruse (Yui NARUSE)
01:34 AM Revision 38b8afcf (git): * string.c (rb_str_start_with, rb_str_end_with): raise an error if
an argument is not convertible to a String.
[ruby-core:40623][Bug #5536]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/01/2012

11:14 PM Feature #6242: Ruby should support lists
Updated the patch to add methods: foldl, foldr, +, flatten/concat, map, flat_map/concat_map,
filter, length/size, sum, reverse.
shugo (Shugo Maeda)
02:10 PM Feature #6242: Ruby should support lists
Updated the patch to evaluate `x ::: y' as `y.:::(x)', not `x.:::(y)'. shugo (Shugo Maeda)
12:17 PM Feature #6242 (Rejected): Ruby should support lists
I've heard that Ruby is a LISP.
LISP stands for "LISt Processing."
Hence, Ruby should support lists.
I've attached a patch to add the classes List and Cons, and the cons operator `:::'.
Example:
>> S[1,2,3].inject(:+)
=> ...
shugo (Shugo Maeda)
09:06 PM Revision 86300419 (git): Refix of 35206; 0.3 is too small for Ruby's timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:00 PM Revision 61fcda16 (git): ReRefix the test for r35205.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:59 PM Revision 9d8ca7e1 (git): Refix the test for r35205.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:42 PM Revision 8520505e (git): Fix the test for r35205.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:36 PM Revision 1c6d6cad (git): * 2012-04-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:36 PM Revision f898efd8 (git): * lib/webrick/server.rb (WEBrick::GenericServer): close socket only if
the socket is not closed yet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:06 PM Revision 4179e0b5 (git): Client waits only the first line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:06 PM Revision ae79409d (git): * lib/net/ftp.rb (Net::BufferedSocket): should delegate send() to @io
for Net::FTP#abort and Net::FTP#status..
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:10 PM Feature #6222: Use ++ to connect statements
You are right, anything other than 'then' or maybe 'also' hurts readability. Guess I'm too obsessed with finding something that can work for this case :-P
gcao (Guoliang Cao)
12:49 AM Feature #6222: Use ++ to connect statements
Guoliang, my issue with "(a; return b) if condition?" is that I don't find it readable and would prefer to read "a then b if condition?" instead. But I don't think that "a \\ return if condition?" is more readable than the currently allo... rosenfeld (Rodrigo Rosenfeld Rosas)
12:19 PM Feature #5673: undef_method probably doesn't need to raise an error
@nobu Well, first let me point out that if method `#foo` is private, then it ain't so simple again. But secondly and really more importantly, this would be because I constantly confuse #undef_method for #remove_method and vice-versa. Rea... trans (Thomas Sawyer)
08:10 AM Feature #5673: undef_method probably doesn't need to raise an error
trans (Thomas Sawyer) wrote:
> If we need to remove a method from a class/module that may or may not have the method defined, it's less optimal. We either have do something like:
> ...
You can use Module#method_defined? in this case.
...
nobu (Nobuyoshi Nakada)
03:53 AM Feature #5673: undef_method probably doesn't need to raise an error
What about two methods, undef_method and undef_method!, one which returns a
boolean, one which raises?
aprescott (Adam Prescott)
03:19 AM Feature #5673: undef_method probably doesn't need to raise an error
B/c often times it's not an error. Cases such as undefining method before redefining new one to suppress warning message of overriden method. Or different versions of a library might get used where one has such method and another does no... trans (Thomas Sawyer)
01:30 AM Feature #5673 (Feedback): undef_method probably doesn't need to raise an error
I think raising error can catch potential bugs earlier. What is the benefit of ignoring error?
Matz.
matz (Yukihiro Matsumoto)
12:18 PM Revision 69fa2fe9 (git): * missing/alloca.c: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:53 AM Feature #5663: Combined map/select method
Hi,

(12/02/01 18:14), Юрий Соколов wrote:
>> Try each_with_object.
>
> Yeah, it is good :) though it have a long name. It's pity that 1.9.3 hadn't
> it.

It's long indeed, but 1.9.3 had it.

$ ./ruby -v -e 'p((1....
nobu (Nobuyoshi Nakada)
11:18 AM Feature #5663: Combined map/select method
I actually prefer map_select as it is self-explanatory. There isn't a single word that is able to clearly provide the description for what it does. rosenfeld (Rodrigo Rosenfeld Rosas)
02:39 AM Feature #5663 (Feedback): Combined map/select method
I am OK with the original map_select behavior, but I don't like the name #map_select.
It is combination of -ect family name with map.
I prefer the name #filter, but it might be confused by simple alias of select.
Any idea?
Matz.
matz (Yukihiro Matsumoto)
11:14 AM Bug #6226 (Third Party's Issue): Star operator crashes when it using in irb on Fedora
nobu (Nobuyoshi Nakada)
11:14 AM Bug #6226 (Rejected): Star operator crashes when it using in irb on Fedora
nobu (Nobuyoshi Nakada)
09:58 AM Bug #6226: Star operator crashes when it using in irb on Fedora
Today I've checked this bug again and he's gone.
I think my Fedora has installed the necessary update after that the bug has been removed automatically.
newmen (Gleb Averchuk)
09:31 AM Bug #6237 (Assigned): ruby my_controller.rbでSEGV
たしかにSEGVします。
ただし、このパッチでは make love に失敗するので愛が足りないようです。
nobu (Nobuyoshi Nakada)
01:45 AM Bug #6237 (Rejected): ruby my_controller.rbでSEGV
以下のようにすると [BUG] となって落ちます。
~/rails3test/test32/app/controllers$ ~/rubies/trunk/bin/ruby-trunk my_controller.rb
my_controller.rb:1: [BUG] Segmentation fault
ruby 2.0.0dev (2012-03-31 trunk 30224) [i686-linux]
-- Control frame info...
tad (Tadashi Saito)
09:05 AM Feature #6240: Enumerable#drop with negative argument
marcandre (Marc-Andre Lafortune) wrote:
> Currently, Enumerable#drop works only for non-negative arguments.
> ...
How Enumerable#drop can know the total number of elements?
The source of elements might be IO. Besides that, the total ...
shugo (Shugo Maeda)
05:57 AM Feature #6240 (Closed): Enumerable#drop with negative argument
Currently, Enumerable#drop works only for non-negative arguments.
It could be extended so that negative arguments means dropping from the end:
[:hello, :world].drop(-1) # => [:hello]
This could especially be interesting for ...
marcandre (Marc-Andre Lafortune)
09:01 AM Feature #6241 (Rejected): Module#method_defined? with inherited flag
=begin
Currently (({Module#method_defined?})) does not accept "(({inherited}))" flags as (({Module#instance_methods})) and others.
To tell if a method is defined at an exact class/module, we have to use bad idiom:
mod.instance_met...
nobu (Nobuyoshi Nakada)
05:52 AM Feature #6166: Enumerator::Lazy#pinch
Sorry to be late to the party.
If this method was called `slice`, would it be more acceptable?
It would be easy to remember, as `enum.slice` would be the same as `enum.to_a.slice` except it would stop the iteration as early as poss...
marcandre (Marc-Andre Lafortune)
03:47 AM Feature #6166: Enumerator::Lazy#pinch
I don't care about name "#pinch", but functionality. Using #first with #drop is not always optimal.
1) Given d = [index,length].
enum.drop(d.first).first(d.last)
2) Given a range (e.g. `rng = 2...4`):
if rng.exclude_end?
...
trans (Thomas Sawyer)
02:54 AM Feature #6166: Enumerator::Lazy#pinch
I am sure #first not to be lazy. And you can combine it with #drop to take the value in the middle.
#pinch does not suggest the behavior you've proposed to me, a non native English speaker.
Matz.
matz (Yukihiro Matsumoto)
02:48 AM Feature #6166: Enumerator::Lazy#pinch
Also are you sure #first should be non-lazy? e.g.
max_records = 1000000
recs = records.first(max_records)
recs.pinch(@page_no, 25).each do |page_recs|
...
end
Hmm... maybe #page is better name then #pinch?
In any case, t...
trans (Thomas Sawyer)
02:38 AM Feature #6166: Enumerator::Lazy#pinch
But #first can't give a range. e.g. `(2..3)` or `(2,2)`. So there is no way to get such without de-lazying whole enumeration, which defeats purpose of lazy.
trans (Thomas Sawyer)
02:26 AM Feature #6166 (Rejected): Enumerator::Lazy#pinch
I like #first better.
Matz.
matz (Yukihiro Matsumoto)
03:36 AM Feature #5628: Module#basename
You are right about name, it would have to be something else besides #basename.
Yehuda Katz said he would probably be ok with `mod.modules.last.name`, to which I commented, we may as well add `mod.lastname`.
trans (Thomas Sawyer)
01:29 AM Feature #5628 (Feedback): Module#basename
I am not sure if it's worth adding to the core. It is so easy to add by third-party lib.
Besides that, even though the term "basename" is understandable from analogy to UNIX command name, but the term includes "base" might cause confus...
matz (Yukihiro Matsumoto)
02:30 AM Feature #5899 (Feedback): chaining comparsions.
I don't think changing "`1 < b < 4`" to "`1 < b && b < 4`" is that hard task.
I am not sure it's worth allowing confusing "`false < 4`".
Matz.
matz (Yukihiro Matsumoto)
01:57 AM Bug #6238 (Third Party's Issue): Seg fault in net/http.rb line 799
Call to socket connect seg faults. Trace attached.
jhaungs (Jim Haungs)
12:49 AM Bug #6228: [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
of course it's the FD_SETSIZE macro I'm talking about... jonforums (Jon Forums)
12:27 AM Bug #6228: [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
In my configuration, one fix is to remove the recent -DFD_SETSEZE=32767 define from the RubyInstaller build recipe. Removing the define gives the following results on r35179:
* no deps build using WinSDK 7.1 (without RubyInstaller) ha...
jonforums (Jon Forums)
12:33 AM Feature #5148: Constant Namespace/Scoping in Dynamic Classes/Modules
I think this change is a good idea, basically. But I am not sure how much influence it would have to existing Ruby programs, and implementations. For example, Nobu has already shown his concern. We have to experiment before accepting ... matz (Yukihiro Matsumoto)
12:24 AM Feature #6236: WEBrick::HTTPServer swallows Exception
I like this idea, but why not rescue Interrupt separately from Exception instead? This preserves the exception-tolerance of the server while still allowing ^C to work drbrain (Eric Hodel)
12:15 AM Revision 43e5c0a1 (git): * 2012-04-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:15 AM Revision 76f5831b (git): * Forgot to bump patch level
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
12:04 AM Feature #5767: Cache expanded_load_path to reduce startup time
> Does this have any effect on https://bugs.ruby-lang.org/issues/4969 (scroll down to post #7).
Thomas Sawyer, this proposal has no any effect on #4969 because it doesn't change require semantic
in any way. It only improve performanc...
funny_falcon (Yura Sokolov)

03/31/2012

11:53 PM Feature #6222: Use ++ to connect statements
Even though using 'also' means adding a new keyword and breaks compatibility, practically no one uses it as method name or variable name. I searched my whole ruby lib directory, it never appeared in code.
Another candidate is \\. It doe...
gcao (Guoliang Cao)
11:50 PM Feature #6133: SSLSocketをshutdownできない
http://www.faqs.org/faqs/unix-faq/socket/
http://www.kt.rim.or.jp/~ksk/sock-faq/unix-socket-faq-ja-2.html#ss2.6
2.6 When should I use shutdown()?
のようなソケットプログラミングのイディオムをサーバがTLSで実装しているために、
クライアントを書いてる僕が困っているのです。
>1) ドキュメント等にある(は...
kik (Masashi Kikuchi)
11:36 AM Feature #6133: SSLSocketをshutdownできない
nahi (Hiroshi Nakamura) wrote:
> Martin, I'll ask OP for detail in Japanese and update you.
Thanks a lot!
MartinBosslet (Martin Bosslet)
09:48 PM Bug #6230: [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
patch のインデント崩れと綴り間違い (rescue) に気づいたため、gist にあげました。
https://gist.github.com/2263660
nobuoka (yu nobuoka)
03:58 AM Bug #6230 (Closed): [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
WEBrick::HTTPResponse の @body には IO オブジェクトを設定できますが、@body に設定された IO オブジェクトからの読み出しの際に IO#read( @buffer_size ) で行われるため、@buffer_size よりも小さなデータを定期的に送りたい場合などに、必要以上にブロックされてしまいます。 IO#read メソッドの代わりに IO#readpartial メソッドを使用するとよいかと思うのですがどうでしょうか。
...
nobuoka (yu nobuoka)
09:36 PM Bug #6229 (Closed): [WEBrick] HTTPResponse#body no
naruse (Yui NARUSE)
09:22 PM Bug #6229: [WEBrick] HTTPResponse#body no
ちゃんと調べずに、題名や説明の編集はできないものだと思っていました。 Issue Tracking > Edit Issues right を持っているユーザーならば編集できるのですね。
http://www.redmine.org/projects/redmine/wiki/RedmineIssues#Editing-an-existing-issues-Subject-or-Description
私はその権限を持っていないので編集できないのだと思います...
nobuoka (yu nobuoka)
05:46 PM Bug #6229: [WEBrick] HTTPResponse#body no
チケットの「更新」画面で「プロパティの変更 」の(続き)をクリックすると、題名や説明も編集できます。 nobu (Nobuyoshi Nakada)
03:45 AM Bug #6229: [WEBrick] HTTPResponse#body no
申し訳ありません。 途中で送信してしまいました。
チケットを作り直します。
nobuoka (yu nobuoka)
03:43 AM Bug #6229 (Closed): [WEBrick] HTTPResponse#body no
nobuoka (yu nobuoka)
08:50 PM Feature #4592: Tempfileを直接保存したい
どういう意味でこのチケットを自分にアサインしたか忘れてしまったのですが。
shyouhei (Shyouhei Urabe) wrote:
> * closeと同時というのを諦め、closeのちょっと後でよければ、普通にmvできるのではないでしょうか。
> ...
これは、GC タイミングによっては失敗しますよね。(f.close の直後で GC)
また、rename 後に元のファイル名と同じファイルを作ったら、この tempfile が
GC される...
mame (Yusuke Endoh)
08:31 PM Bug #4971: Module#class_variables
まつもとさん、この件ですがどうでしょうか?
shugo (Shugo Maeda) wrote:
> 前田です。
> ...
shugo (Shugo Maeda)
07:58 PM Feature #5427: Not complex patch to improve `require` time (load.c)
> The proposal is COMPLETELY compatible?
Unlike #5767 , this proposal is slightly incompatible, because it forces some kind
of sort order on LOADED_FEATURES, and this has impact on debugging (one couldn't
know which file were requir...
funny_falcon (Yura Sokolov)
10:29 AM Feature #5427 (Assigned): Not complex patch to improve `require` time (load.c)
Sorry I don't catch up the discussion.
What's the status?
The proposal is COMPLETELY compatible?
It may be helpful for me to create a short summary of the proposal and discussion.
I tentatively assign this to nobu.
Any other c...
mame (Yusuke Endoh)
07:23 PM Feature #5767: Cache expanded_load_path to reduce startup time
Does this have any effect on https://bugs.ruby-lang.org/issues/4969 (scroll down to post #7).
trans (Thomas Sawyer)
07:03 PM Feature #5767: Cache expanded_load_path to reduce startup time
> The proposal is COMPLETELY compatible?
This proposal is completely compatible, since LOAD_PATH remains the same array, methods are overridden only to keep cache in sync.
Proposal is about keeping result of expanding LOAD_PATH ent...
funny_falcon (Yura Sokolov)
10:28 AM Feature #5767 (Assigned): Cache expanded_load_path to reduce startup time
Sorry I don't catch up the discussion.
What's the status?
The proposal is COMPLETELY compatible?
It may be helpful for me to create a short summary of the proposal and discussion.
I tentatively assign this to nobu.
Any other c...
mame (Yusuke Endoh)
06:24 PM Feature #5628: Module#basename
=begin
I'm doing something remarkably similar to this for mapping command-line subcommand selection into a module's namespace. It's very handy.
=end
regularfry (Alex Young)
11:29 AM Feature #5628: Module#basename
Common case (for me) is when user selects a "plug-in" via a command line option. For example a pseudo test framework:
$ mytest --reporter progress
Then in code:
module MyTestFramework
def self.reporters
@...
trans (Thomas Sawyer)
11:15 AM Feature #5628: Module#basename
Hello,
2011/11/14 Thomas Sawyer <transfire@gmail.com>:
> Something I use fairly often:
> ...
Personally, I've never used such a hack. When do you use?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:09 AM Feature #5628 (Assigned): Module#basename
mame (Yusuke Endoh)
06:23 PM Feature #5898: raise and Exception#initialize
If you can show the answer to the questions in comment #1([ruby-core:42143]) and it is reasonable, this may advance. nobu (Nobuyoshi Nakada)
11:05 AM Feature #5898: raise and Exception#initialize
You can reject it, but this will eventually come up again b/c current behaviour is confusing, inconsistent and either overly limiting or not limiting enough depending on which side you come down on.
trans (Thomas Sawyer)
10:38 AM Feature #5898 (Rejected): raise and Exception#initialize
nobu (Nobuyoshi Nakada)
06:19 PM Feature #5148: Constant Namespace/Scoping in Dynamic Classes/Modules
I don't think it will be accepted. nobu (Nobuyoshi Nakada)
10:18 AM Feature #5148 (Assigned): Constant Namespace/Scoping in Dynamic Classes/Modules
Hello,
Matz, do you think it should be fixed?
Nobu, do you think it can be fixed?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
06:18 PM Feature #6236 (Closed): WEBrick::HTTPServer swallows Exception
At the moment when using WEBrick you've always got to remember to define a signal handler to be able to kill the server when you're done with it. This is annoying and makes it more painful to use than it should be, because if you realis... regularfry (Alex Young)
05:53 PM Feature #5945: Add the ability to mark a at_exit as process-local.
2012/3/30 mame (Yusuke Endoh) <mame@tsg.ne.jp>:
>
> Issue #5945 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to matz (Yukihiro Matsumoto)
>
> Matz, do you think this kind...
kosaki (Motohiro KOSAKI)
10:20 AM Feature #5945 (Assigned): Add the ability to mark a at_exit as process-local.
Matz, do you think this kind of feature is needed?
I guess you'll say, the argument should be a keyword option, at least.
```ruby
at_exit(process_local: true) { ... }
```
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
05:44 PM Feature #5779 (Rejected): Ruby-FTP - allow easy way to find out whether a remote target is a file or a directory
shevegen (markus heiler) wrote:
> When you have a local file on your HDD, you can do this:
> ...
RFC959 says that output of the LIST command is not designed to be machine readable:
Since the information on a file may var...
shugo (Shugo Maeda)
05:23 PM Feature #5630 (Feedback): Missing custom transfer modes in Net::FTP
Lavir_the_Whiolet (Lavir the Whiolet) wrote:
> Net::FTP supports binary and text transfer modes only but some systems support another modes. For example, EBCDIC mode ("TYPE E") in IBM mainframes.
> ...
What do you expect for custom tra...
shugo (Shugo Maeda)
03:56 PM Revision 19c9ac24 (git): * 2012-04-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:56 PM Revision d8438024 (git): * lib/net/ftp.rb: fixed the domain name in examples.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
01:30 PM Revision 3c491a92 (git): * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler): dup to prevent
@timeout_info's "can't add a new key into hash during iteration".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:44 PM Feature #2968: 数値の正負を返すメソッド
#5523 でも触れましたが Complex#sign は z/|z| を返すのが数学的に一番よろしいかと思います。ふなばさんは #5523 では「複素数はエラーを考えています。」と仰っています。 hasari (Hiro Asari)
12:25 PM Feature #6180: to_b for converting objects to a boolean value
I understand that the Ruby way leans on true and false like values rather than a strict use of true and false. The use case here is encapsulating data that you might not want to expose when returning from a "?" method and, at an individu... AaronLasseigne (Aaron Lasseigne)
12:25 AM Feature #6180 (Rejected): to_b for converting objects to a boolean value
to_b is not acceptable, since it's very ambiguous.
to_bool might be more descriptive then !! but I am not sure where to use them.
And if (and other control structures) will never call bool conversion method in the future, for both simp...
matz (Yukihiro Matsumoto)
11:52 AM Feature #5677: IO C API
nobu (Nobuyoshi Nakada) wrote:
>
> ...
True, and that's also what I should be using there :) I'll fix it.
> > The problem, though, is that only rb_io_bufwrite is public API in io.h,
> ...
I've done a lot of IO in C over the last mo...
MartinBosslet (Martin Bosslet)
10:53 AM Feature #5677 (Assigned): IO C API
MartinBosslet (Martin Bosslet) wrote:
> 1. Duplicating the file descriptor to obtain a pure FILE*
> ...
Can't you use rb_io_stdio_file()?
And OpenSSL seems providing BIO_new_fd() too.
> The problem, though, is that only rb_io_bufwr...
nobu (Nobuyoshi Nakada)
11:13 AM Feature #6219 (Feedback): Return value of Hash#store
matz (Yukihiro Matsumoto)
10:07 AM Feature #6219: Return value of Hash#store
by spec, all assignment should return the assigning value (to enable assignment chain), so that I have to reject the original proposal to change the value from "a[k] = v".
but there's still room to change the return value of Hash#store....
matz (Yukihiro Matsumoto)
11:10 AM Feature #6210 (Assigned): load should provide a way to specify the top-level module
mame (Yusuke Endoh)
11:10 AM Feature #6199 (Assigned): Organize gc.c a bit
mame (Yusuke Endoh)
11:09 AM Bug #6233: Definition of EVP_MD_CTX_cleanup incomplete.
mame (Yusuke Endoh) wrote:
> I have no opinion about with this paticular case.
> ...
It says nothing about end of life on their home page, but
judging from the strategy of how they released security
fixes in the past it seems like ...
MartinBosslet (Martin Bosslet)
10:12 AM Bug #6233: Definition of EVP_MD_CTX_cleanup incomplete.
Thank you for your quick reply.
Ultimately, everything about standard library is determined by
each maintainer. So, in general, you can go ahead if you think
it is appropriate.
I have no opinion about with this paticular case.
...
mame (Yusuke Endoh)
09:19 AM Bug #6233: Definition of EVP_MD_CTX_cleanup incomplete.
mame (Yusuke Endoh) wrote:
> Hello, emboss
> ...
Hi, I think it's a valid point - here is how OpenSSL 1.0.1 implements it:
/* This call frees resources associated with the context */
int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
{
#if...
MartinBosslet (Martin Bosslet)
08:27 AM Bug #6233 (Assigned): Definition of EVP_MD_CTX_cleanup incomplete.
Hello, emboss
What do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:57 AM Bug #6233 (Closed): Definition of EVP_MD_CTX_cleanup incomplete.
File: ext\openssl\openssl_missing.c
Line: 67
#if !defined(HAVE_EVP_MD_CTX_CLEANUP)
int
EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
{
/* FIXME!!! */
memset(ctx, 0, sizeof(EVP_MD_CTX));
return 1;
}
#endif
rubysubmit (Ruby Submit)
11:09 AM Feature #4211 (Assigned): Converting the Ruby and C API documentation to YARD syntax
mame (Yusuke Endoh)
11:09 AM Feature #4151 (Assigned): Enumerable#categorize
mame (Yusuke Endoh)
11:08 AM Feature #3575 (Assigned): String#split is inconsistent with empty string and negative limit
mame (Yusuke Endoh)
11:08 AM Feature #3207 (Assigned): refinement of IO's bizarre behavior
mame (Yusuke Endoh)
11:07 AM Feature #5904 (Rejected): Freezing true, false, nil, ordinals, symbols...
mame (Yusuke Endoh)
10:17 AM Feature #3647 (Feedback): Array#sample(n, replace=false)
mrkn さん、
matz の「本当に必要なの」というのに返事と、キーワードの名前の候補出しをお願いします。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:48 AM Bug #6234: Incomplete code in ossl_pkey_ec.c
I'm afraid I'm not entirely sure what the original intention was there.
Is technorama still around? Could we ask her/him?
If not my guess is that the intention was to read a point from OctetString
representation as described in se...
MartinBosslet (Martin Bosslet)
08:28 AM Bug #6234 (Assigned): Incomplete code in ossl_pkey_ec.c
Assigning to emboss too. Thanks.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:57 AM Bug #6234 (Closed): Incomplete code in ossl_pkey_ec.c
File: ext\openssl\ossl_pkey_ec.c
} else {
BIO *in = ossl_obj2bio(arg1);
/* BUG: finish me */
BIO_free(in);
if (point == NULL) {
ossl_raise(eEC_POINT, "unknown type for 2nd...
rubysubmit (Ruby Submit)
08:58 AM Feature #6130: inspect using to_s is pain
> Please let me if you know such a case.
Oops. Please let me know such a case if you know.
mame (Yusuke Endoh)
08:56 AM Feature #6130: inspect using to_s is pain
That's great to hear!
As 2.0 release manager, I'm positive to import this change in 2.0.
I think it does not violate 2.0 compatibility policy; the format
of a return string of #inspect is not specially specified. This
changes ...
mame (Yusuke Endoh)
12:35 AM Feature #6130: inspect using to_s is pain
OK, I accept. The time for it would be upto the maintainer.
Matz.
matz (Yukihiro Matsumoto)
12:28 AM Feature #6130: inspect using to_s is pain
mame (Yusuke Endoh) wrote:
> If so I agree, though it may be difficult in 2.0.
I also agree, default #inspect is nice and should not be overridden by #to_s.
If not possible for 2.0, I think it should still be considered later.
Eregon (Benoit Daloze)
08:23 AM Bug #6235 (Assigned): Call to malloc not checked in thread_pthread.c
mame (Yusuke Endoh)
08:09 AM Bug #6235 (Closed): Call to malloc not checked in thread_pthread.c
File: thread_pthread.c
struct cached_thread_entry *entry =
(struct cached_thread_entry *)malloc(sizeof(struct cached_thread_entry));
struct timeval tv;
struct timespec ts;
gettimeofday(&tv, 0);
ts.tv_sec =...
rubysubmit (Ruby Submit)
08:18 AM Bug #6232 (Assigned): Ruby : Segmentation fault on Readline.refresh_line after screen resize.
Thank you for your report!
I could reproduce.
I assign this to the maintainer of readline.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:31 AM Bug #6232 (Closed): Ruby : Segmentation fault on Readline.refresh_line after screen resize.
Repro
~~~ruby
require ‘readline’
Readline.set_screen_size(40, 80)
Readline.refresh_line
buf = Readline.readline
~~~
~~~
./test_readline.rb
./test_readline.rb:10: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18) [i686...
rubysubmit (Ruby Submit)
08:13 AM Revision bfdccf09 (git): use super in h.default
* test/ruby/test_hash.rb (TestHash#test_shift_none): super in
singleton default method doesn't cause SystemStackError now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:38 AM Bug #6228: [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
Haven't found root cause, but these commits also have `Errno::EBADF` errors:
commit revision patch
------- -------- -----
b1bcb82 r34865 p154
1b21d03 r34811 p146
7e2e3dc r34806 p144
In the above commits, t...
jonforums (Jon Forums)
03:55 AM Bug #6228: [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
Not yet. jonforums (Jon Forums)
02:09 AM Bug #6228: [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
Do you know which revision break it? naruse (Yui NARUSE)
01:30 AM Bug #6228 (Closed): [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
On Win7 32bit built with MinGW 4.6.2 using the RubyInstaller build recipes, I get the following test error:
sh-3.1$ ruby --version
ruby 1.9.3p172 (2012-03-30 revision 35179) [i386-mingw32]
sh-3.1$ make test-all TESTS='openssl fi...
jonforums (Jon Forums)
06:01 AM Bug #6231 (Closed): OpenSSL: Implicit conversion from long to int
=begin
Hello,
The following warnings were triggered by clang in OpenSSL
compiling ../../../ext/openssl/ossl_pkcs5.c
../../../ext/openssl/ossl_pkcs5.c:39:46: warning: implicit conversion loses integer precision: 'long' to 'int'
...
luislavena (Luis Lavena)
05:23 AM Revision 160d02d8 (git): * hash.c (hash_default_value): extract from rb_hash_aref(), to be
shared with rb_hash_shift(), so that overriding Hash#default
will be respected.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:20 AM Revision 15ca66ef (git): * .gitignore: ignore generated file verconf.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
05:16 AM Revision e8a1874c (git): * hash.c: do not allocate st_table when it is not necessary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:44 AM Revision 5f81a53f (git): * lib/net/ftp.rb (read_timeout=, open_timeout=): supported timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
04:20 AM Revision a3626110 (git): * hash.c: remove unnecessary checks for Qundef in hash iterations.
since hash use st_foreach_check for iterations, such checks are
needless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:48 AM Bug #6197: readline module doesn't work with ansi code
nobu (Nobuyoshi Nakada) wrote:
> The upstream of readline is not here.
> ...
Have you up this bug where is upstream of readline was ?
I haven't use a screen, and the bug is real.
keysen (Jérémy Carlier)
03:12 AM Revision f1d5c87b (git): * 2012-03-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:12 AM Revision 5acdbe90 (git): * ext/openssl/ossl_x509cert.c: Fix doc typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
03:07 AM Revision d4f379ad (git): * ext/openssl/ossl_x509cert.c: Fix doc typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
01:27 AM Bug #6227 (Closed): [mingw] openssl backport causing test error
On Win7 32bit built with MinGW GCC 4.6.2 and the RubyInstaller build recipes, the following error occurs:
sh-3.1$ ruby --version
ruby 1.9.3p172 (2012-03-30 revision 35179) [i386-mingw32]
sh-3.1$ ruby -ropenssl -e 'puts OpenSSL::...
jonforums (Jon Forums)
01:13 AM Revision 94d0221d (git): * st.c (st_foreach_check, st_foreach): remove ancient check. This
check are from initial ordered hash commit when first entry were
created with entry->fore = entry->back = entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:01 AM Revision 44e6f5a1 (git): * st.c (st_delete): use real_entries in st_delete for packed tables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:59 AM Feature #5644: add Enumerable#exclude? antonym
On Fri, Mar 30, 2012 at 16:02, matz (Yukihiro Matsumoto)
<matz@ruby-lang.org> wrote:

> OK, you think negative for include? is special.  Understood.
> But as Nikolai pointed out, exclude? is not the best name for the function.
> An...
now (Nikolai Weibull)
12:48 AM Revision d481e34e (git): misplaced rescue
* test/ruby/test_thread.rb (test_condvar_wait_deadlock_2): fix cleanup
code which is never executed because of misplaced rescue.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:36 AM Feature #6073 (Rejected): Proposal of extending syntax of for loop
matz (Yukihiro Matsumoto)
12:28 AM Feature #6073: Proposal of extending syntax of for loop
The current for statement does not do any map-like work. Under such behavior, extending for statement might not have enough benefit worth adding complexity. So, I have to reject this proposal for now.
Matz.
matz (Yukihiro Matsumoto)
12:32 AM Feature #5364 (Rejected): How about new syntax: "object.\method" returns a Method instance?
I am not against adding syntax notation to get method object, but I am not satisfied with all proposed notations. I feel they are not intuitive enough. Maybe we can accustom to one of them in the future. Until that I can stand with #m... matz (Yukihiro Matsumoto)

03/30/2012

11:49 PM Feature #5644: add Enumerable#exclude? antonym
There really is no better term b/c all such terms are going to have the same connotations.
As with "include" if you add an "s" to the word then it reads more like typical English, i.e. "a excludes b ?". To use the singular form you ha...
trans (Thomas Sawyer)
11:18 PM Feature #5644: add Enumerable#exclude? antonym
The most common antonym is "exclude", but maybe we could use "omit" if you prefer:
http://www.synonym.com/antonym/include/
rosenfeld (Rodrigo Rosenfeld Rosas)
11:13 PM Feature #5644: add Enumerable#exclude? antonym
I think I've misunderstood the question posed by Nikolai. I've just read it again but I think that the other meaning presented by him doesn't make any sense. "does the array contain the elements that should be excluded?". Really? I read ... rosenfeld (Rodrigo Rosenfeld Rosas)
11:09 PM Feature #5644: add Enumerable#exclude? antonym
At first I agreed with Nikolay, but then I changed my minded because the method is called "exclude?" with a question mark, not "exclude", so I don't think anyone would expect that it would actually remove some element. rosenfeld (Rodrigo Rosenfeld Rosas)
11:02 PM Feature #5644: add Enumerable#exclude? antonym
OK, you think negative for include? is special. Understood.
But as Nikolai pointed out, exclude? is not the best name for the function.
Any alternative?
Matz.
matz (Yukihiro Matsumoto)
10:53 PM Revision 19762735 (git): * st.c (st_foreach_check): remove the entry by replacing with never
when ST_DELETE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:50 PM Bug #6214: warnings on inspect for Enumerator objects if $VERBOSE
これらのインスタンス変数はスクリプト側からは見えないので、
警告は出なくてもよいのではないですかね。そういう方向で
パッチとテストを書いてみたので、見ていただけるとありがたいです。
no6v (Nobuhiro IMAI)
10:47 PM Revision d0380e2e (git): * hash.c (st_foreach_safe): since table is not for VALUE, Qundef is
not special value, so use 0 instead. therefore this function can be
applied to only st_table which 0 is invalid as keys, e.g., IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:44 PM Revision 4fa32366 (git): * hash.c: Qundef cannot be passed from st_foreach_check().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:40 PM Revision 4b3a1f77 (git): * hash.c, marshal.c, object.c, variable.c: fix callback argument types
of iterators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:18 PM Revision db5ede22 (git): * 2012-03-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:18 PM Revision becc3000 (git): descriptive assertions
* test/ruby/test_hash.rb: use more descriptive assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:18 PM Revision fc4e79e3 (git): join LocalBarrier
* test/ruby/lbtest.rb: needs to join the local barrier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:11 PM Feature #4965: The problem of "print line if line = DATA.gets"
Hi Matz, some people tried to with the argument that if you're reading a post-if/unless and they seem natural, using a variable assignment alongside with the post-if/unless would be just as natural. rosenfeld (Rodrigo Rosenfeld Rosas)
03:15 PM Feature #4965 (Rejected): The problem of "print line if line = DATA.gets"
The reason behind has been explained in #1141. If someone want to change the rule, he need to understand the rational first, then should try persuade me.
Matz.
matz (Yukihiro Matsumoto)
08:32 PM Feature #6136 (Feedback): Add gpg signatures whenever releasing ruby source tarballs
I'm not sure if I understand your problem correctly.
I guess gpg does not work for you.
Could you elaborate your situation, and explain how gpg solves your problem?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:02 PM Feature #6198 (Assigned): public/protected/private with attr_*
This issue is strongly related to #3753.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
05:55 PM Feature #6225: Hash#+
shyouhei (Shyouhei Urabe) wrote:
> Anyway there has been a long discussion around `+`s in programming languages. For instance Perl uses dot to concatenate strings and avoid `+`s to concatenate strings and/or arrays. I see they are muc...
naruse (Yui NARUSE)
04:55 PM Feature #6225: Hash#+
I myself do not care whether + to be symmetric or not. I care about key conflict.
Since conflicting cause value lost, I am not positive about making + alias to #merge.
Matz.
matz (Yukihiro Matsumoto)
03:02 PM Feature #6225: Hash#+
In common sense, `*` is also commutative. But of course, for matrix multiplication, it's not.
Also, `+` is used in many fields of mathematics. I'm not a mathematician, but I very strongly doubt that it's commutative in all these cases...
duerst (Martin Dürst)
12:07 PM Feature #6225: Hash#+
Sorry for my bad English, I didn't intend to attack you.
Anyway there has been a long discussion around `+`s in programming languages. For instance Perl uses dot to concatenate strings and avoid `+`s to concatenate strings and/or arr...
shyouhei (Shyouhei Urabe)
11:46 AM Feature #6225: Hash#+
> No binary operations shall be called `+` unless the operation is symmetric.
Why?
Also what do you mean by symmetric? Do you mean commutative? I point out that neither `Array#+` or `String#+` is really commutative either because o...
trans (Thomas Sawyer)
11:42 AM Feature #6225: Hash#+
In other words you don't like that `{a: 1} + {a: 2} != {a: 2} + {a: 1}`
But I really think programming is different from mathematics and I don't think that the fact that `a + b != b + a` would be enough reason for avoiding the conveni...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:30 AM Feature #6225: Hash#+
I object. No binary operations shall be called `+` unless the operation is symmetric.
For historical reasons there are some asymmetric `+`s in Ruby, but that is not a indulgence for you to add more.
shyouhei (Shyouhei Urabe)
09:39 AM Feature #6225: Hash#+
This argument really doesn't buy me. Groovy allows: `[key1: 'value1', another: 1] + [key2: 'value2', another: 2] == [key1: 'value1', another: 2, key2: 'value2']`.
I think this is pretty readable as `+` is also used to denotate unions....
rosenfeld (Rodrigo Rosenfeld Rosas)
08:36 AM Feature #6225 (Assigned): Hash#+
Both String#+ and Array#+ delete no information, but
Hash#merge deletes duplicate fields.
I have heard it is the reason, if I recall.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:19 AM Feature #6225 (Rejected): Hash#+
Strings and Arrays can be combined with #+. I don't see any reason not to allow Hashes to do so as well.
class Hash
alias :+ :merge
end
trans (Thomas Sawyer)
05:32 PM Feature #5809 (Feedback): Benchmark#bm: remove the label_width parameter
naruse (Yui NARUSE)
05:02 PM Feature #5970: Add Enumerable#join with same semantics as Array#join
now (Nikolai Weibull) wrote:
> Currently, to join the elements of an Enumerable, you need to call #to_a on the Enumerable and then #join the result. With Enumerable#join one wouldn’t need need to create an intermediate Array.
Once E...
shugo (Shugo Maeda)
12:46 AM Feature #5970 (Assigned): Add Enumerable#join with same semantics as Array#join
mame (Yusuke Endoh)
04:25 PM Feature #6201 (Rejected): do_something then return :special_case (include "then" operator)
Both "then" and "++" could compatibility problem. Your "a then b" or "a ++ b" can be implemented by "(a; b)" without any addition to the language.
Matz.
matz (Yukihiro Matsumoto)
04:25 PM Feature #6222 (Rejected): Use ++ to connect statements
Both "then" and "++" could compatibility problem. Your "a then b" or "a ++ b" can be implemented by "(a; b)" without any addition to the language.
Matz.
matz (Yukihiro Matsumoto)
08:23 AM Feature #6222: Use ++ to connect statements
'also' is worse than '++'.
Adding a new keyword causes significant compatibility issue.
def also
...
end
I guess such a method name might be actually used in DSLs.
It also might be used as a flag variable.
Well, ...
mame (Yusuke Endoh)
08:11 AM Feature #6222: Use ++ to connect statements
What's wrong with:
(do_this; do_that; return) if condition
or perhaps you meant
do_this; do_that; return if condition
trans (Thomas Sawyer)
06:59 AM Feature #6222: Use ++ to connect statements
Please do any other name suggestions in the other ticket as suggested by Yusuke. rosenfeld (Rodrigo Rosenfeld Rosas)
02:35 AM Feature #6222: Use ++ to connect statements
I agree.
If 'then' or '++' does not work, what about 'also'? I'm not a native English speaker and not sure whether it sounds natural. Maybe someone can come up with something that fits well to this case.
do_this also do_that a...
gcao (Guoliang Cao)
01:20 AM Feature #6222: Use ++ to connect statements
He didn't say it was useful. He just stated that the argument for allowing it in Ruby 2.0 is not valid because it would also break compatibility just like 'then'. Also, he is advicing you to suggest new syntax to 'then' in that other tic... rosenfeld (Rodrigo Rosenfeld Rosas)
01:01 AM Feature #6222: Use ++ to connect statements
Sorry I didn't know this. I have never seen ++ in ruby code (except probably in books) and that made me think it is not valid syntax. Wonder what is the usefulness of '1 + +1' though. gcao (Guoliang Cao)
12:15 AM Feature #6222 (Assigned): Use ++ to connect statements
Hello,
I would be even happier if you respond that ticket instead
of adding a new one...
Of course, '++' also causes compatibility issue :-)
p 1 ++ 1 #=> 2
'++' may be confusing because it is used for string/list
concate...
mame (Yusuke Endoh)
04:23 PM Feature #6150 (Rejected): add Enumerable#grep_v
We are not going to add grep_v. There's possibility of adding :invert option to grep.
Matz.
matz (Yukihiro Matsumoto)
02:11 AM Feature #6150 (Assigned): add Enumerable#grep_v
mame (Yusuke Endoh)
04:20 PM Feature #5964 (Rejected): Make Symbols an Alternate Syntax for Strings
In Ruby, Symbols annd Strings are different in both semantics and behavior (and implementation).
Unifying them cause a lot of problems. I guess it's not worth changing.
Matz.
matz (Yukihiro Matsumoto)
12:45 AM Feature #5964 (Assigned): Make Symbols an Alternate Syntax for Strings
mame (Yusuke Endoh)
03:31 PM Feature #6088: Add Net::ReadTimeout to distinguish which operation failed
You can commit it. naruse (Yui NARUSE)
05:23 AM Feature #6088: Add Net::ReadTimeout to distinguish which operation failed
I have updated all the documentation for OpenTimeout and ReadTimeout along with the addition of Net::ReadTimeout. drbrain (Eric Hodel)
01:15 AM Feature #6088 (Assigned): Add Net::ReadTimeout to distinguish which operation failed
Drbrain-san
Could you respond to Naruse's comment?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:15 PM Feature #6224 (Rejected): Make variables in if/unless conditions available to conditional statements
The reason behind has been explained in #1141. If someone want to change the rule, he need to understand the rational first, then should try persuade me.
Matz.
matz (Yukihiro Matsumoto)
08:37 AM Feature #6224 (Assigned): Make variables in if/unless conditions available to conditional statements
mame (Yusuke Endoh)
01:13 AM Feature #6224: Make variables in if/unless conditions available to conditional statements
Exactly. Actually I didn't know about 1141, but I've read about 4965 recently. rosenfeld (Rodrigo Rosenfeld Rosas)
11:23 AM Feature #5341: Add SSL session reuse to Net::HTTP
On Fri, Mar 30, 2012 at 08:49:36AM +0900, mame (Yusuke Endoh) wrote:
>
> Issue #5341 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to naruse (Yui NARUSE)
> Target version change...
Anonymous
08:49 AM Feature #5341 (Assigned): Add SSL session reuse to Net::HTTP
I tentatively assign this issue to Naruse-san because
he is running for the maintainer of net/http.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:53 AM Feature #5196 (Rejected): true should be True.
I believe this is hopeless.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:52 AM Feature #4647 (Assigned): [PATCH] io/wait: add IO#wait_writable method
mame (Yusuke Endoh)
08:51 AM Feature #6073 (Assigned): Proposal of extending syntax of for loop
mame (Yusuke Endoh)
08:51 AM Feature #5922 (Assigned): Migrate equal? to identical?
mame (Yusuke Endoh)
08:50 AM Feature #5605 (Assigned): [PATCH] net/http: use IO.copy_stream for requests using body_stream
I tentatively assign this issue to Naruse-san because
he is running for the maintainer of net/http.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:49 AM Feature #5461 (Assigned): Add pipelining to Net::HTTP
I tentatively assign this issue to Naruse-san because
he is running for the maintainer of net/http.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:45 AM Feature #6218 (Assigned): struct.cのrb_struct_s_members_m()について
なんで今そういう無駄なコードになっているか、というのを調べるといいです。
ひょっとしたら何か意味があるのかもしれないので。
この場合 r10847 を見ると、Struct#members が文字列からシンボルを返すように
変更したことで、こういうコードになったようです。
なので、昔は意味があったけれど今は本当にただの無駄だと思われます。
コミット権もらえたらやっといてください。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:31 AM Feature #6082 (Feedback): io_binwrite()内でwritev()を使う
あ、このチケットにだけベンチマークがないのか。他には執拗なくらいあるから勘違いしました。
パッチについてもそうですね。じゃあ、Glass_saga さん 2 点対応してみてもらえますか。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
04:20 AM Feature #6082: io_binwrite()内でwritev()を使う
> なんとなく kosaki さんあたり、もしコメントあったらどうぞ。
関数のなかにでっかく#ifdefいれんな。というのが1つ。writevがない環境を考えると既存のコードを消せないので有為に速度向上することが提示されないと入れる意味が無いというのが1つ。そんぐらいかなあ
kosaki (Motohiro KOSAKI)
01:01 AM Feature #6082 (Assigned): io_binwrite()内でwritev()を使う
分かってませんが挙動が変わるものでないなら取り込んじゃってよいのでは
ないでしょうかね。何かの環境で問題起きたら revert で。
なかださんお願いします。
なんとなく kosaki さんあたり、もしコメントあったらどうぞ。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:29 AM Bug #6226: Star operator crashes when it using in irb on Fedora
I cannot recreate this:

$ irb
irb(main):001:0> *a = 1
=> 1
irb(main):002:0> a
=> [1]
irb(main):003:0> # Ctrl-D pressed here

Just returns to prompt.

ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
...
aprescott (Adam Prescott)
08:19 AM Bug #6226 (Third Party's Issue): Star operator crashes when it using in irb on Fedora
Segmentation fault raised when I pressed Ctrl+D.
Full log:
[newmen@blackbox ~]$ irb
1.9.3p125 :001 > *a = 1
=> 1
1.9.3p125 :002 > a
=> [1]
1.9.3p125 :003 >
/home/newmen/.rvm/scripts/irbrc.rb:32: [BUG] Segmentation fault
r...
newmen (Gleb Averchuk)
08:24 AM Feature #6176 (Rejected): Allow Enumerable#flatten to take a block
Done. Thanks.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:16 AM Feature #6176: Allow Enumerable#flatten to take a block
Ok. I agree. Reject issue. trans (Thomas Sawyer)
02:31 AM Feature #6176 (Assigned): Allow Enumerable#flatten to take a block
#flatten is recursive by default. #flat_map is not.
So I don't think it is a good idea to extend #flatten.
Anyway, #flat_map is already included in 1.9.
We no longer need to extend #flatten, I think.
--
Yusuke Endoh <mame@tsg....
mame (Yusuke Endoh)
07:54 AM Feature #6133: SSLSocketをshutdownできない
長々ほったらかしてすいませんでした。もう少し教えてください。
> 送信の終わりを送れません。
ここで言う「送信の終わりを送る」についてもう少し教えてください。
1) ドキュメント等にある(はずの)、通常のRubyのSSLSocketの使い方における送信の終わり方
2) kikさんが想定されている送信の終わり方
を、教えてください。
nahi (Hiroshi Nakamura)
07:50 AM Feature #6133: SSLSocketをshutdownできない
Oops. Sorry for confusing(?) you. It's me who was asked this question on Twitter. I didn't understand the question so I asked to file an issue, but I keep it opening because I still couldn't understand the point.
Martin, I'll ask OP...
nahi (Hiroshi Nakamura)
07:38 AM Feature #6133: SSLSocketをshutdownできない
mame (Yusuke Endoh) wrote:
> Hello, emboss-san
> ...
Hello Yusuke,
thank you for the effort of translating this for me! So the problem
is that we don't explicitly expose shutdown in Ruby's OpenSSL API
and the OP would like to have...
MartinBosslet (Martin Bosslet)
02:06 AM Feature #6133 (Assigned): SSLSocketをshutdownできない
Hello, emboss-san
This is a feature request for openssl.
OP wants a method to call SSL_shutdown to send the termination of a
transmission.
http://www.openssl.org/docs/ssl/SSL_shutdown.html
What do you think?
Note that there...
mame (Yusuke Endoh)
07:48 AM Feature #6219: Return value of Hash#store
nobu (Nobuyoshi Nakada) wrote:
> Calling default proc can be expensive. So I don't think it's good idea to call it always.
> ...
You are right, the default proc is a real "party pooper" here... Could something like Rodrigo
proposed ...
MartinBosslet (Martin Bosslet)
01:29 AM Feature #6219: Return value of Hash#store
Or Hash#store(new_value, return_nil_if_not_set: false) rosenfeld (Rodrigo Rosenfeld Rosas)
01:27 AM Feature #6219: Return value of Hash#store
How about hash.store(new_value, nil_value: :_default_)
This way, one could write "a = hash.store(1, nil_value: nil)", while the default :_default_ would call the default proc if it exists.
rosenfeld (Rodrigo Rosenfeld Rosas)
01:09 AM Feature #6219: Return value of Hash#store
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> > And, what should be returned if the key wasn't set?
> ...
Also calling its default proc?
MartinBosslet (Martin Bosslet) wrote:
> Seems reasonable to me. To detect whether a key hasn't ...
nobu (Nobuyoshi Nakada)
12:25 AM Feature #6219 (Assigned): Return value of Hash#store
Hello,
I tentatively mark this as 3.0 issue because it changes the behavior.
But if matz accepts the change, 2.0 may be able to include it.
Personally, I'm neutral to the proposal itself.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
05:17 AM Revision 7d8e27a6 (git): merge revision(s) 35162,35167: [Backport #6220]
* test/openssl/test_x509cert.rb: Exclude test that fails when issuing
a certificate with RSA signature and DSS1 digest for earlier
OpenSSL versions when used in conjunction with OpenSSL 1.0.1.
Thanks, Vit On...
naruse (Yui NARUSE)
05:15 AM Revision 3e89498b (git): merge revision(s) 35146:
* string.c (str_new_empty): should copy also the encoding as an
empty substring. [ruby-dev:45441][Bug #6206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:15 AM Revision d66248a7 (git): merge revision(s) 35002: [Backport #6135]
* ext/date/date_core.c (datetime_s_now): [ruby-core:43256].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:13 AM Revision 9c0d9444 (git): merge revision(s) 35013:
* numeric.c: fix flodivmod for cornercases [Bug #6044]
add ruby_float_mod
* insns.def (opt_mod): use ruby_float_mod
* internal.h: declare ruby_float_mod
* test/ruby/test_float.rb: tests for above
...
naruse (Yui NARUSE)
02:36 AM Feature #6180 (Assigned): to_b for converting objects to a boolean value
mame (Yusuke Endoh)
02:33 AM Feature #6177 (Assigned): array.cのrb_ary_equal()の高速化
挙動が変わるわけでないならいいんじゃないですかね。
パッチ試してませんが見た感じいいような気がしました。
コミット権が貰えたら自分でどうぞ。#6173
もらえなかったら、どうしよう。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:25 AM Feature #6173 (Assigned): re.cのrb_memsearch()におけるmemchr()の利用
パッチは、まあいいんじゃないでしょうかね。
Glass_saga さんが登録したチケットで accept されそうなのが何個か
見当たるっぽいので、コミット権あげると楽な気がしますが、どんなもんでしょう。
ChangeLog には 8 回くらい名前が載ってるみたいです。
という意味で matz にアサイン。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:17 AM Feature #6166 (Assigned): Enumerator::Lazy#pinch
Hello,
If this kind of operations occur frequently, I think it is worth
to add a method. But I'm not sure because Lazy just entered trunk.
My current opinion. I like this style:
e.lazy.pinch(1, 2) == e.lazy.drop(1).first(...
mame (Yusuke Endoh)
02:15 AM Feature #6130: inspect using to_s is pain
Yep. trans (Thomas Sawyer)
02:00 AM Feature #6130 (Assigned): inspect using to_s is pain
Thomas, you meant:
class Foo
def to_s; "foo"; end
end
x = Foo.new
p "== #{ x } ==" #=> "== foo ==", as you want
p x #=> "foo", but you want: #<Foo:0xXXXX>
, right? If so I agree, though it may be difficult...
mame (Yusuke Endoh)
01:55 AM Feature #6129 (Assigned): String#each_lineにおけるmemmem()の利用
なかださん、更新されたパッチで問題ないと思います?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:54 AM Feature #6118 (Assigned): Hash#keys_of(values), returns related keys of given values
mame (Yusuke Endoh)
01:53 AM Feature #6096 (Rejected): Parser tweak - curly braces followed by a coma...
I agree with Tom.
Considering Tom's code, it is apparently difficult to fix this issue.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:11 AM Feature #6083 (Assigned): Hide a Bignum definition
ko1 wrote:
> I propose to move the struct RBignum definition from include/ruby/ruby.h to bignum.c. I believe no one use struct RBignum directly (except core).
Agreed.
I hope C API would be organized. This can be preliminary case.
...
mame (Yusuke Endoh)
01:04 AM Feature #5531: deep_value for dealing with nested hashes
What's the status of this issue? Good idea? Bad idea? weexpectedTHIS (Kyle Peyton)
12:59 AM Feature #6074 (Assigned): Allow alias arguments to have a comma
Sorry, I didn't know alias syntax accepts symbols as arguments!
Then I agree with this proposal.
Ruby always gives me a fresh surprise for me.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:54 AM Feature #5980 (Feedback): Trying to Load File When Too Many Files Open Should Raise Something Other Than Plain LoadError
Someone has to volunteer to write a patch.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:52 AM Feature #5979 (Rejected): deprecate Thread#raise
I agree with matz. Just deprecating Thread#raise does not make sense.
I close this ticket as Rejected.
FYI: Some committers discussed a design of controllable asynchronous
exception at developers' meeting in Akihabara. Ko1 wrote...
mame (Yusuke Endoh)
12:44 AM Feature #5958 (Assigned): ThreadGroup#join
Sasada-san, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:43 AM Feature #5903 (Assigned): Optimize st_table (take 2)
mame (Yusuke Endoh)
12:10 AM Bug #6168: Segfault in OpenSSL bindings
Cool. Both of our segfault locations in ruby code suggest some kind of buffer sizing problem (mine segs on read, yours on write).
Looking at the two locations where the segfault occurs:
/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1....
coldnebo (Larry Kyrala)

03/29/2012

11:57 PM Feature #5778: Allow WEBrick::HTTPResponse to send IO-duck-typed bodies
You have control.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:27 AM Feature #5778: Allow WEBrick::HTTPResponse to send IO-duck-typed bodies
Yusuke, you may want to assign it to me (maintainer)
I think it's good to improve, but not yet checked the patch...
nahi (Hiroshi Nakamura)
01:31 AM Feature #5778 (Assigned): Allow WEBrick::HTTPResponse to send IO-duck-typed bodies
It is trivial, and the patch looks good to me.
I'll commit it unless there is objection.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:54 PM Feature #6224: Make variables in if/unless conditions available to conditional statements
I found this issue created 3 years ago. Matz explained the reason behind.
http://bugs.ruby-lang.org/issues/1141
gcao (Guoliang Cao)
11:38 PM Feature #6224: Make variables in if/unless conditions available to conditional statements
I'm pretty sure this is already being discussed but I can't remember in what thread/issue. rosenfeld (Rodrigo Rosenfeld Rosas)
11:13 PM Feature #6224 (Rejected): Make variables in if/unless conditions available to conditional statements
I propose to make below code work
do_something(a) if a = condition
Above code should work exactly same as
if a = condition
do_something(a)
end
If there is a reason behind why the first case does not work, please l...
gcao (Guoliang Cao)
11:53 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
On Thu, Mar 29, 2012 at 14:39, Alex Young <alex@blackkettle.org> wrote:

> Would you argue that this is wrong and should be removed?
>
> 1.9.3p125 :001 > nil.to_a
> => []
>
> If not, why not?
>

Perhaps I wasn't cle...
aprescott (Adam Prescott)
11:23 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Em 29-03-2012 10:28, Adam Prescott escreveu:
> On Thu, Mar 29, 2012 at 13:25, rosenfeld (Rodrigo Rosenfeld Rosas)
> <rr.rosas@gmail.com <mailto:rr.rosas@gmail.com>> wrote:
>
> Or for convenience we could allow nil to respon...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:53 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
On 29/03/12 14:28, Adam Prescott wrote:
> On Thu, Mar 29, 2012 at 13:25, rosenfeld (Rodrigo Rosenfeld Rosas)
> <rr.rosas@gmail.com <mailto:rr.rosas@gmail.com>> wrote:
>
> Or for convenience we could allow nil to respond to e...
regularfry (Alex Young)
10:29 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
On Thu, Mar 29, 2012 at 13:25, rosenfeld (Rodrigo Rosenfeld Rosas) <
rr.rosas@gmail.com> wrote:

> Or for convenience we could allow nil to respond to each, like in Groovy:
>
> null.each {} // or eachWithIndex - doesn't throw ...
aprescott (Adam Prescott)
09:25 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Or for convenience we could allow nil to respond to each, like in Groovy:
null.each {} // or eachWithIndex - doesn't throw an exception
rosenfeld (Rodrigo Rosenfeld Rosas)
08:36 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
In my mind, nil.to_h should exist for the same reason that
nil.to_a, nil.to_s, nil.to_i, and nil.to_f exist: convenience.
It allows me to write:
some_complicated_method.to_h.each { ... }
Instead of being forced to write:
...
sunaku (Suraj Kurapati)
11:42 PM Feature #6219: Return value of Hash#store
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> nobu (Nobuyoshi Nakada) wrote:
> ...
Seems reasonable to me. To detect whether a key hasn't been set yet,
one would check for the presence of the default value. That
doesn't catch cases wh...
MartinBosslet (Martin Bosslet)
11:32 PM Feature #6219: Return value of Hash#store
nobu (Nobuyoshi Nakada) wrote:
> And, what should be returned if the key wasn't set?
Its default value?
h = Hash.new {[]}
h.store('key', [1, 2]) # => []
rosenfeld (Rodrigo Rosenfeld Rosas)
10:56 PM Feature #6219: Return value of Hash#store
And, what should be returned if the key wasn't set? nobu (Nobuyoshi Nakada)
09:33 PM Feature #6219: Return value of Hash#store
Note however, that nobu changed st_update API[1] after I posted that. So it might not apply cleanly to the latest ruby trunk...
[1]: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=35170&view=revision
shyouhei (Shyouhei Urabe)
08:38 PM Feature #6219: Return value of Hash#store
shyouhei (Shyouhei Urabe) wrote:
> =begin
> ...
Awesome, thank you Shyouhei. I'll be happy to test this tonight!
MartinBosslet (Martin Bosslet)
11:44 AM Feature #6219: Return value of Hash#store
=begin
Hmm, here you are a patch (not tested though).
From c55a9c9fab30d51be77821bce36054fe365b49af Mon Sep 17 00:00:00 2001
Message-Id: <c55a9c9fab30d51be77821bce36054fe365b49af.1332988729.git.shyouhei@ruby-lang.org>
From: UR...
shyouhei (Shyouhei Urabe)
08:09 AM Feature #6219: Return value of Hash#store
cjheath (Clifford Heath) wrote:
> On 29/03/2012, at 8:40 AM, MartinBosslet (Martin Bosslet) wrote:
> ...
Doing so in one pass is only possible on the C level. No use in composing it in
Ruby, this still means that the hash function is...
MartinBosslet (Martin Bosslet)
07:24 AM Feature #6219: Return value of Hash#store
On 29/03/2012, at 8:40 AM, MartinBosslet (Martin Bosslet) wrote:
> Right, good point. OK, then let me rephrase it for explicitly calling store.
...
> That way I can check for collisions in one pass without having to call has_key? fir...
cjheath (Clifford Heath)
06:40 AM Feature #6219: Return value of Hash#store
Right, good point. OK, then let me rephrase it for explicitly calling store. What I would prefer is:
h = { a: 1 }
h.store(:a, 2) # => 1
h.store(:b, 3) # => nil
That way I can check for collisions in one pass without having to cal...
MartinBosslet (Martin Bosslet)
06:29 AM Feature #6219: Return value of Hash#store
On Wed, Mar 28, 2012 at 22:18, Adam Prescott <adam@aprescott.com> wrote:

> Assignment always returns the right hand side, so this isn't quite an
> accurate demonstration of #store.
>

Although, I should also mention, this i...
aprescott (Adam Prescott)
06:11 AM Feature #6219 (Feedback): Return value of Hash#store
Hash#store returns the value that was just assigned, for example:
h[:a] = b # => b
Does anyone rely on this behavior, are there cases when this becomes handy?
If however the return value is discarded most of the time, I was th...
MartinBosslet (Martin Bosslet)
11:29 PM Feature #6222: Use ++ to connect statements
This seems like a workaround to me. But one that I don't like because Ruby will have to keep supporting this even if/after 'then' is accepted.
The problem is that while I find "then" readable to me, I don't think '++' is obvious to some...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:59 PM Feature #6222 (Rejected): Use ++ to connect statements
I propose to use ++ to connect two or multiple statements, e.g.
do_this ++ do_that ++ do_something
It is equivalent to (do_this; do_that; do_something) but more readable.
It can be used to replace below idiom
do_something and...
gcao (Guoliang Cao)
11:24 PM Bug #6223 (Feedback): Strange crash in GC while thread creation - 1.9.2 only
It should be fixed in ruby 1.9.3p125.
Please try it.
naruse (Yui NARUSE)
11:13 PM Bug #6223 (Closed): Strange crash in GC while thread creation - 1.9.2 only
I use ruby-1.9.3-p0 and ruby-1.9.2-p290 via rvm. Here are installed gems:
$ gem list
*** LOCAL GEMS ***
avro (1.6.2)
bson (1.6.1)
bson_ext (1.6.1)
bundler (1.1.3)
cassandra (0.12.1)
citrus (2.4.1)
json (1.6.6)
mongo (1.6.1)...
zhum (Sergey Zhumatiy)
10:23 PM Feature #6150: add Enumerable#grep_v
Oh, I see, I actually prefer this way so that I won't read code from others just passing "true". This is specially a big issue for boolean parameters as they don't mean anything by themselves. rosenfeld (Rodrigo Rosenfeld Rosas)
09:57 PM Feature #6150: add Enumerable#grep_v
Rodrigo Rosenfeld Rosas wrote:
> I'm sorry, Benoit, but I didn't get it. It seems to me that they do permit. What did you mean by "they do not permit this"?
> ...
With keyword arguments, you have to pass the keyword: `grep(matcher, i...
Eregon (Benoit Daloze)
09:39 PM Feature #6150: add Enumerable#grep_v
Eregon (Benoit Daloze) wrote:
> Rodrigo Rosenfeld Rosas wrote:
> ...
I'm sorry, Benoit, but I didn't get it. It seems to me that they do permit. What did you mean by "they do not permit this"?
rosenfeld (Rodrigo Rosenfeld Rosas)
09:21 PM Feature #6150: add Enumerable#grep_v
Suraj wrote:
> it's uncommon for Ruby core API to accept options hash. [...]
> ...
You'll note most of these methods accept an options Hash (e.g.: rm_rf = rm_r list, options.merge(:force => true)).
Also, to add to what Thomas Sawyer...
Eregon (Benoit Daloze)
02:23 PM Feature #6150: add Enumerable#grep_v
On Thu, Mar 29, 2012 at 01:14, sunaku (Suraj Kurapati) <sunaku@gmail.com> wrote:
>
> Issue #6150 has been updated by sunaku (Suraj Kurapati).

> it's uncommon for Ruby core API to accept options hash.

IO.new and IO.open now take ...
now (Nikolai Weibull)
12:49 PM Feature #6150: add Enumerable#grep_v
If this were for FileUtils then I'd say `grep_v` is acceptable. But for Enumerable `grep_v` is not very acceptable. Option parameters are not something only Ruby 2 does. They are very common throughout all Ruby coding, which is why Ruby ... trans (Thomas Sawyer)
08:14 AM Feature #6150: add Enumerable#grep_v
I'd rather not wait 2+ years for this issue to be resolved by making this feature dependent on Ruby 2.0's named parameters feature. I'm also not fond of passing an options hash to grep() because, although you say it has nothing to do wi... sunaku (Suraj Kurapati)
09:46 PM Feature #5809: Benchmark#bm: remove the label_width parameter
@naruse: Sorry, I meant to answer to your reply much earlier, I just didn't make my mind at that time.
I understand the compatibility need, so I'll try to create a new method and refactor without changing existing API.
So my goal i...
Eregon (Benoit Daloze)
01:44 AM Feature #5809 (Assigned): Benchmark#bm: remove the label_width parameter
Naruse-san, what does this ticket need? A better new name?
Could you please create a patch?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
06:54 PM Revision 7fe2c295 (git): Ignore generated file verconf.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
03:03 PM Revision 67d4eb32 (git): * 2012-03-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:03 PM Revision efd6f6b8 (git): * test/ruby/lbtest.rb: print at once including newlines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:50 PM Revision 28cc4f75 (git): * st.c (st_update): pass pointer to key to the callback function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:47 PM Bug #6089: Test suite fails with OpenSSL 1.0.1
MartinBosslet (Martin Bosslet) wrote:
> bkabrda (Bohuslav Kabrda) wrote:
> ...
David, thank you very much. I opened the issue for drb: https://bugs.ruby-lang.org/issues/6221.
Anonymous
09:32 AM Bug #6089 (Closed): Test suite fails with OpenSSL 1.0.1
This issue was solved with changeset r35162.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/openssl/test_x509cert.rb: Exclude test that fails when issu...
Anonymous
09:13 AM Bug #6089: Test suite fails with OpenSSL 1.0.1
bkabrda (Bohuslav Kabrda) wrote:
> Hi Martin,
> ...
Sorry, I didn't respond clearly to your question. The only reason why DSS1 is not a match with RSA is that OpenSSL aliased SHA-1 as DSS1 and initially only allowed DSS1 to be used wit...
MartinBosslet (Martin Bosslet)
02:46 PM Bug #6221 (Closed): OpenSSL 1.0.1 is breaking the drb test suite
Hi,
I'm having problem with running drb_ssl tests with Ruby 1.9.3.p125 and OpenSSL 1.0.1, originally reported at [1]. Martin Bosslet told me to open this new issue for drb_ssl. So here is the problem:
$ make test-all TESTS="test/drb/...
Anonymous
02:29 PM Feature #5644: add Enumerable#exclude? antonym
On Thu, Mar 29, 2012 at 01:26, sunaku (Suraj Kurapati) <sunaku@gmail.com> wrote:

> Issue #5644 has been updated by sunaku (Suraj Kurapati).

> The reason for #exclude? is for more "natural" boolean expressions

I don’t think #exc...
now (Nikolai Weibull)
12:41 PM Feature #5644: add Enumerable#exclude? antonym
I'll throw my hat in with #exclude? too. There's been a number of times that I would have liked to have it. "not include?" is a rather common predication and it's nice when code can line up neatly.
trans (Thomas Sawyer)
08:26 AM Feature #5644: add Enumerable#exclude? antonym
Hi Matz,
I didn't ask for antonmys for all predicates; only for #exclude?.
The reason for #exclude? is for more "natural" boolean expressions:
if File.exist? some_file and some_list.exclude? some_file
if File.exist? som...
sunaku (Suraj Kurapati)
12:27 PM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
marcandre (Marc-Andre Lafortune) wrote:
> I simply want to lighten the load for Matz; he has so many issues assigned to him or waiting on him already.
You must wait (or press) matz if a fix of an issue is clear and no other option of...
naruse (Yui NARUSE)
11:11 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
Hi,
naruse (Yui NARUSE) wrote:
> Is this a bug?
I'm very curious: how could it not be bug?
How would you explain that `values_at(2...42) != values_at(2..41)`?
I simply want to lighten the load for Matz; he has so many issues a...
marcandre (Marc-Andre Lafortune)
10:47 AM Bug #6203 (Assigned): Array#values_at does not handle ranges with end index past the end of the array
Is this a bug? naruse (Yui NARUSE)
05:22 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
marcandre (Marc-Andre Lafortune) wrote:
> The patch from Mark Rada never made it through, but I concur that the problem is in rb_range_beg_len.
Hello Marc,
Sorry for not linking to the pull request here, though I did open a pull r...
ferrous26 (Mark Rada)
05:14 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
The patch from Mark Rada never made it through, but I concur that the problem is in rb_range_beg_len.
I'll commit the fix below unless there's objection.
I've already fixed RubySpec:
https://github.com/rubyspec/rubyspec/commit/558a40e...
marcandre (Marc-Andre Lafortune)
01:57 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
Moving back to "bug", as no explanation from Nobu. marcandre (Marc-Andre Lafortune)
10:51 AM Feature #4788: resolv.rb refactoring
Here is a translation into English for the most recent message from Makoto:
The original problem is that 'lib/resolv.rb' had a fallback to TCP which was broken. There was a patch (#3835) which renamed ‘make_requester' to 'make_udp_req...
ioquatix (Samuel Williams)
10:40 AM Feature #6216: SystemStackError backtraces should not be reduced to one line
Ruby 1.9.3:
~~~
/home/hal/.rvm/gems/ruby-1.9.3-p125/gems/dm-core-1.2.0/lib/dm-core/support/equalizer.rb:32: stack level too deep (SystemStackError)
~~~
JRuby 1.6.6:
~~~
SystemStackError: stack level too deep
...
postmodern (Hal Brodigan)
10:27 AM Bug #6134 (Closed): Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
This issue was solved with changeset r35167.
Matt, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_pkcs7.c: fix crash when parsing garbage data.
...
Anonymous
10:15 AM Bug #6098 (Closed): Re: GVL改善案
This issue was solved with changeset r35163.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c (rb_threadptr_execute_interrupts_common): use defined...
usa (Usaku NAKAMURA)
08:45 AM Feature #5741: Secure Erasure of Passwords
nobu (Nobuyoshi Nakada) wrote:
> What kind of methods will be needed for "Secure Password", do you think?
> ...
Totally agreed. No, there's no reason that it has to be a String instance. As
you already stated, it's more like a "byte a...
MartinBosslet (Martin Bosslet)
06:38 AM Feature #5741: Secure Erasure of Passwords
What kind of methods will be needed for "Secure Password", do you think?
Is there any reason that it has to be real `String` instance?
For example, I guess it should be BINARY or US-ASCII always, so shouldn't have encode method.
sub...
nobu (Nobuyoshi Nakada)
04:58 AM Feature #5741: Secure Erasure of Passwords
mame (Yusuke Endoh) wrote:
> I think that adding a method to String requires matz's approval.
> ...
Sure - I would appreciate to have more opinions on how this can be
done best. I haven't really had the time to think it through yet,
...
MartinBosslet (Martin Bosslet)
01:04 AM Feature #5741 (Assigned): Secure Erasure of Passwords
I think that adding a method to String requires matz's approval.
If you propose to add a method to others, such as openssl, you
can do it at your discretion.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:23 AM Feature #5456: kernel#syscall() should be removed.
2012/3/27 mame (Yusuke Endoh) <mame@tsg.ne.jp>:
>
> Issue #5456 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to matz (Yukihiro Matsumoto)
> Target version set to 3.0
>
...
kosaki (Motohiro KOSAKI)
08:19 AM Bug #6168: Segfault in OpenSSL bindings
Weird indeed, but thanks for your in-depth analysis and to Eric
for the hint with the debugger. I'll have a look at your example,
maybe I can find out why the seg fault happens in OpenSSL. But
good news that you at least know how to...
MartinBosslet (Martin Bosslet)
07:10 AM Bug #6168: Segfault in OpenSSL bindings
Ok, running that without the debugger gives a better error:
/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/net/imap.rb:1099:in `get_tagged_response': STORE attempt on READ-ONLY folder (Failure) (Net::IMAP::NoResponseError)
from...
coldnebo (Larry Kyrala)
06:49 AM Bug #6168: Segfault in OpenSSL bindings
Ok, I think I have a test case for you Martin... I was able to reproduce this again Google's IMAP server, so I created a dummy test account and a simple test case. Note: it only segfaults when in debug, I have no idea why? (is the debug... coldnebo (Larry Kyrala)
06:38 AM Bug #6168: Segfault in OpenSSL bindings
The second log uses ruby-debug and could be the cause of the second report. If this could be confirmed as another crash in sys write without use of ruby-debug that would be helpful. drbrain (Eric Hodel)
04:26 AM Bug #6168: Segfault in OpenSSL bindings
Hmm, the error logs don't really give away what happens. But it shouldn't segfault, that's for sure. What I would really appreciate is some code snippet that reliably reproduces the phenomenon on your side, Larry. Could you please try to... MartinBosslet (Martin Bosslet)
03:37 AM Bug #6168: Segfault in OpenSSL bindings
The error.log point to rb_check_funcall, not OpenSSL, so this may not be Martin's bug drbrain (Eric Hodel)
08:08 AM Feature #5613: Signal.termsigname メソッドの追加
了解しました kosaki (Motohiro KOSAKI)
07:53 AM Bug #6102 (Closed): Crash when calling OpenSSL::Integer#to_der with nil value
This issue was solved with changeset r35159.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_asn1.c: raise TypeError when trying to encod...
Anonymous
07:38 AM Revision 6da92c3e (git): * lib/rdoc/task.rb: suppress overriding deprecated class warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:36 AM Revision 30cea657 (git): * st.c (st_update): add existing parameter to the callback function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:35 AM Revision 95b30b0d (git): * lib/test/unit.rb (terminal_width, del_status_line, put_status):
extract as methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:22 AM Feature #5106: Is MurmurHash overkill?
With the recent changes since hashDoS I'm not sure whether
we should really aim for simplicity. It's quite easy to
become a target with a function that is algebraically as
simple as for example DJB33X. But speed on the other hand
cou...
MartinBosslet (Martin Bosslet)
03:43 AM Bug #6215: print "#{RUBY_PATCHLEVEL.slice(2,3)}\n" results in crash
According to the crash report, the crash occurs while textmate is handling the NoMethodError, perhaps while reformatting the backtrace. drbrain (Eric Hodel)
01:46 AM Revision 0b81093a (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:45 AM Feature #5893 (Rejected): named return,next...
I believe this is already solved. Closing.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:33 AM Feature #5798 (Assigned): Range#include? needs some optimization
mame (Yusuke Endoh)
01:32 AM Feature #5779 (Assigned): Ruby-FTP - allow easy way to find out whether a remote target is a file or a directory
Maeda-san, please take a look at this.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:27 AM Revision aad347f5 (git): * ext/openssl/ossl_pkcs7.c: fix crash when parsing garbage data.
* test/openssl/test_pkcs7.rb: assert correct behavior for it.
Thanks to Matt Venables for reporting the issue.
[ruby-core:43250][Bug #6134]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
01:27 AM Feature #5749 (Assigned): new method String#match_all needed
mame (Yusuke Endoh)
01:25 AM Revision e883637f (git): * 2012-03-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:25 AM Revision 7d984d76 (git): merge revision(s) 32578,33401,33403,33404,33531,33655,33679,33809,33900,33965,34067,34069,34087,34328,34330,34527,34772,34783,34839,34914,34953,34954,35153: [Backport #6212]
* ext/psych/lib/psych.rb: updating version to match gem
* ext/psych/psych.gemspec: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing deprecation warning
* ext/psych/lib/psych.rb: define a new BadAlias error...
tenderlovemaking (Aaron Patterson)
01:17 AM Revision 8e601a20 (git): * thread_win32.c (TIME_QUANTUM_USEC): 10ms(= old setting) [experimental]
cf. [Bug #6098]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:15 AM Revision fea7a74e (git): * thread.c (rb_threadptr_execute_interrupts_common): use defined
TIME_QUANTUM_USEC instead of a magic number. there is no meanings
to use different values for checking interval of interruption and
thread switching limits.
cf. [Bug #6098]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35163...
U.Nakamura
12:58 AM Bug #5887: The documentation of Module.constants is incorrect
shugo (Shugo Maeda) wrote:
> > Actually, you can simply pass a parameter to `Module.constants` and the singleton method will call the instance method. The documentation should definitely reflect this too...
> ...
What do you think of ...
shugo (Shugo Maeda)
12:57 AM Feature #5735 (Feedback): Extending the use of splat operator to when it is inside a hash
Marc-Andre proposed a similar idea at [ruby-core:41772], and Matz commented a little at [ruby-core:41822].
It would be good to investigate how many use cases occur in real world.
matz wrote:
> I am still not sure if we need hash s...
mame (Yusuke Endoh)
12:32 AM Revision 836af4e5 (git): * test/openssl/test_x509cert.rb: Exclude test that fails when issuing
a certificate with RSA signature and DSS1 digest for earlier
OpenSSL versions when used in conjunction with OpenSSL 1.0.1.
Thanks, Vit Ondruch, for reporting the issue.
[ruby-core:42949][Bug #6089]
git-svn-id: svn+ssh://ci.ruby-...
MartinBosslet (Martin Bosslet)

03/28/2012

11:28 PM Revision 7d8a8956 (git): * NEWS: add note about unified behavior of encoding nil values in
instances of OpenSSL::ASN1::ASN1Data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
11:09 PM Bug #6217 (Feedback): Bundle crash
Looks to me to all the other bugs reported due OpenSSL library and extension failing.
Please recompile Ruby with proper OpenSSL support. If you use MacPorts, install OpenSSL and then do "rvm install 1.9.3 -C --with-opt-dir=/opt/local"...
luislavena (Luis Lavena)
07:15 PM Bug #6217 (Rejected): Bundle crash
I'm not sure if it's a problem with the ruby interpreter, but I searched on the web and I didn't find a solution for this problem.
The output I've got suggests that I "may have encountered a bug in the Ruby interpreter or extension libr...
luiscruz (Luis Cruz)
10:53 PM Revision 0443aeab (git): * 2012-03-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:53 PM Revision 5bef1c92 (git): * ext/openssl/ossl_asn1.c: raise TypeError when trying to encode nil
values for Primitive instances.
* test/openssl/test_asn1.rb: Assert consistent behavior when
encoding nil values: Primitives raise TypeError, Constructives
raise NoMethodError.
Fixes [ruby-core:43009][Bug #6102]
-This line, and tho...
MartinBosslet (Martin Bosslet)
10:24 PM Feature #6218 (Closed): struct.cのrb_struct_s_members_m()について
表題の関数ではrb_struct_s_members()で得たArrayの内容をwhile文で1要素ずつ新たなArrayにpushしていますが、
これはrb_ary_dup()で済ませられるのではないでしょうか。
パフォーマンス上のメリットもあります。
require 'benchmark'
sym = :a
s = Struct.new(*Array.new(100){ sym = sym.succ })
Benchmark.bm do |...
Glass_saga (Masaki Matsushita)
07:39 PM Feature #4788: resolv.rb refactoring
Hi, still having users with problems and no consistent way to solve it. Merging this patch would be a great addition. Let me know if you require any further support or have any questions. ioquatix (Samuel Williams)
07:27 PM Feature #6216 (Feedback): SystemStackError backtraces should not be reduced to one line
Could you be more descriptive, please? Comparing outputs from Ruby and JRuby, for example.
Matz.
matz (Yukihiro Matsumoto)
04:16 PM Feature #6216 (Closed): SystemStackError backtraces should not be reduced to one line
When debugging "SystemStackError: stack level too deep" exceptions, it is not helpful that the backtrace is reduced to one single line. Most of the time Ruby incorrectly identifies where cycles begin, resulting in an unrelated "file:line... postmodern (Hal Brodigan)
04:40 PM Feature #5610 (Closed): Allow strings as input for Process.uid=
This issue was solved with changeset r35158.
markus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* process.c (obj2uid, obj2gid): allow strings as input user/gro...
nobu (Nobuyoshi Nakada)
11:53 AM Feature #5610: Allow strings as input for Process.uid=
=begin
Since (({Process.groups=})) already accepts strings, this proposal sounds reasonable.
=end
nobu (Nobuyoshi Nakada)
12:11 AM Feature #5610 (Assigned): Allow strings as input for Process.uid=
Kosaki-san,
Are you interested in creating a patch?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:20 PM Bug #6209: Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError)
Note that fast-stemmer doesn't seem to support 1.9 yet. nobu (Nobuyoshi Nakada)
03:06 PM Bug #6209 (Closed): Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError)
This issue was solved with changeset r35157.
Pierre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* marshal.c (r_symreal): default to ASCII-8BIT for non-ascii sy...
nobu (Nobuyoshi Nakada)
02:19 PM Bug #6209: Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError)
=begin
The minimal code would be:
Marshal.load(Marshal.dump("\xff".force_encoding("ascii-8bit").intern))
=end
nobu (Nobuyoshi Nakada)
01:04 AM Bug #6209 (Closed): Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError)
=begin
= Description
A ruby object (generated with the Classifier gem) is Marshalled on the disk.
When reloaded, the ruby interpreter crashes with the following error:
test-case.rb:8:in `load': invalid encoding symbol (Encod...
octplane (Pierre B)
02:02 PM Bug #6215 (Feedback): print "#{RUBY_PATCHLEVEL.slice(2,3)}\n" results in crash
=begin
Seems very strange.
(({RUBY_PATCHLEVEL})) is a (({Fixnum})) and has no (({slice})) method, so (({NoMethodError})) occurs on my machine.
What happens with just:
p RUBY_PATCHLEVEL
?
=end
nobu (Nobuyoshi Nakada)
12:51 PM Bug #6215 (Rejected): print "#{RUBY_PATCHLEVEL.slice(2,3)}\n" results in crash
While using Ruby 1.9.3 and Textmate, I attempted to run the following code fragment:
print "#{RUBY_VERSION}\n"
print "#{RUBY_PLATFORM}\n"
print "#{RUBY_RELEASE_DATE}\n"
print "#{RUBY_PATCHLEVEL.slice(2,3)}\n"}
When executing t...
jordandm (Jordan Dea-Mattson)
01:53 PM Feature #5607: Inconsistent reaction in Range of String
On 2012/03/28 0:10, mame (Yusuke Endoh) wrote:
>
> Issue #5607 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to duerst (Martin Dürst)
>
> Martin-sensei,
>
> I tentativ...
duerst (Martin Dürst)
12:10 AM Feature #5607 (Assigned): Inconsistent reaction in Range of String
Martin-sensei,
I tentatively assign this ticket to you.
If you give up, please set the assignee to another person,
or let make it a blank. Take it easy.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:42 PM Bug #6213 (Third Party's Issue): Builder::XmlMarkup drops html_safe
I guess it is the builder gem. shyouhei (Shyouhei Urabe)
01:37 PM Bug #6213 (Feedback): Builder::XmlMarkup drops html_safe
What is Builder::XmlMarkup? nobu (Nobuyoshi Nakada)
08:21 AM Bug #6213 (Third Party's Issue): Builder::XmlMarkup drops html_safe
A single line in Builder::XmlMarkup needs to be changed slightly,
to enable the builder to work with the html_safe flag that was introduced with rails3.
like
def method_missing(sym, *args, &block)
[...]
t...
eike.rb (Eike Dierks)
11:09 AM Bug #6214 (Closed): warnings on inspect for Enumerator objects if $VERBOSE
Lazy なオブジェクトの inspect がわかりやすくなった反面、
$VERBOSE な時に警告が出るようです。
$ ruby -ve 'p "".bytes'
ruby 2.0.0dev (2012-03-28 trunk 35155) [x86_64-linux]
-e:1: warning: instance variable receiver not initialized
-e:1: warning: instance variable me...
no6v (Nobuhiro IMAI)
09:53 AM Feature #5707: temporary file creation without finalizer and delegate.
2012/3/28 mame (Yusuke Endoh) <mame@tsg.ne.jp>:
>
> Issue #5707 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to akr (Akira Tanaka)
>
> What's the status? How can we move...
akr (Akira Tanaka)
01:05 AM Feature #5707 (Assigned): temporary file creation without finalizer and delegate.
What's the status? How can we move on?
The easiest way I think is to become the maintainer of tempfile
and to accept the ticket by yourself.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:56 AM Feature #5523 (Closed): Numeric#sign の追加
mrkn (Kenta Murata)
07:40 AM Revision 9bf9b3ef (git): * process.c (obj2uid, obj2gid): allow strings as input user/group id.
[ruby-core:40923][Feature #5610]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:59 AM Feature #5458: DL should be removed
On Tue, Mar 27, 2012 at 10:50:41PM +0900, mame (Yusuke Endoh) wrote:
>
> Issue #5458 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to matz (Yukihiro Matsumoto)
>
> In principl...
Anonymous
06:06 AM Revision 1521f933 (git): * marshal.c (r_symreal): default to ASCII-8BIT for non-ascii symbols,
otherwise it should be converted to US-ASCII in rb_intern_str() if
possible. [ruby-core:43762][Bug #6209]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:05 AM Revision 113c6d58 (git): * marshal.c (r_symreal): no longer need volatile modifier, as using
rb_intern_str() not rb_intern().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:51 AM Bug #6168: Segfault in OpenSSL bindings
trying again pointing at openssl dir to see if that makes a difference:
$ rvm reinstall 1.9.2 --with-openssl-dir=/usr/include/openssl
nope, same seg fault.
coldnebo (Larry Kyrala)
04:38 AM Bug #6168: Segfault in OpenSSL bindings
This also happens in 1.9.2-p318:
While using the mail gem (http://rubygems.org/gems/mail) in a ruby-debug19 context:
85 emails = Mail.find(:mailbox => opts[:mailbox], :keys => ["ALL", "UNSEEN"], :count => 9999) do |email, ima...
coldnebo (Larry Kyrala)
03:36 AM Feature #6210: load should provide a way to specify the top-level module
Sounds partially like #5643? luislavena (Luis Lavena)
02:57 AM Feature #6210 (Closed): load should provide a way to specify the top-level module
load currently takes an optional second argument that allows you to load into an anonymous and new top-level Module. It would be nice if the second argument could also be a Module that would then be used as the top-level Module. That w... now (Nikolai Weibull)
03:25 AM Feature #5361: Lice?
Or to get bit! trans (Thomas Sawyer)
01:28 AM Feature #5361 (Rejected): Lice?
Don't deny your potential to learn.
Matz.
matz (Yukihiro Matsumoto)
02:58 AM Bug #6211 (Closed): Ripper lexes :on_rbrace when it should find :on_embexpr_end
=begin
1.9.3-p125 :001 > require 'ripper'
=> true
1.9.3-p125 :002 > Ripper.lex %Q{`\#{cmd}`}
=> [[[1, 0], :on_backtick, "`"], [[1, 1], :on_embexpr_beg, "\#{"], [[1, 3], :on_ident, "cmd"], [[1, 6], :on_rbrace, "}"], [[1, 7],...
turboladen (Steve Loveless)
01:43 AM Feature #5583 (Rejected): Optionally typing
Although type notation as a comment a la Dart language is pretty interesting, I have to reject this proposal, since the proposed syntax is conflicting.
Matz.
matz (Yukihiro Matsumoto)
01:35 AM Feature #6150: add Enumerable#grep_v
Of course, after Ruby support named parameters this could be acceptable too and I would always use it by passing the named parameter instead of just "true". rosenfeld (Rodrigo Rosenfeld Rosas)
01:33 AM Feature #6150: add Enumerable#grep_v
"grep pattern, invert: true" is acceptable to me but "grep pattern, true" is not because the code becomes non readable and you'd have to check the API to understand what "true" means. This has nothing to do with Rails vs Ruby. rosenfeld (Rodrigo Rosenfeld Rosas)
01:29 AM Feature #6150: add Enumerable#grep_v
Alright, then let's simplify it further because passing {:invert=>true} seems more like Rails than Ruby:
def grep(pattern, invert=false)
...
end
["hello", "world"].grep(/h/, true) # => ["world"]
["hello", "world"].g...
sunaku (Suraj Kurapati)
01:30 AM Feature #5372 (Rejected): Promote blank? to a core protocol
Let it stay in ActiveSupport. Generally, string is string, array is array, in Ruby.
Matz.
matz (Yukihiro Matsumoto)
01:28 AM Revision b95b56cc (git): * process.c: no cuddle up else's.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:25 AM Feature #5644 (Feedback): add Enumerable#exclude? antonym
from that logic, don't we need to add antonyms to every predicate methods?
could you show us why include? is special?
Matz.
matz (Yukihiro Matsumoto)
12:28 AM Feature #5644 (Assigned): add Enumerable#exclude? antonym
mame (Yusuke Endoh)
01:12 AM Feature #5574 (Rejected): Make arrays comparable
Since arrays are not always compatible, I don't want to give wrong implication by making arrays comparable.
Adding <=> was a realistic compromise for me to allow array sorting.
Matz.
matz (Yukihiro Matsumoto)
01:08 AM Feature #5555 (Rejected): rename #include? to #includes?
The basic naming for methods in standard class libraries are:
* use basic form (include not includes)
* put question mark for predicates
* put bang mark for "dangerous" version of methods
"is_a" and "has_key" are exceptions. "is...
matz (Yukihiro Matsumoto)
01:07 AM Feature #5716 (Assigned): duplicated when clause is ignored -> Report which clause it is specifically.
mame (Yusuke Endoh)
01:03 AM Feature #5695 (Rejected): CoffeeScript "is" and "isnt" keywords
I strongly believe that this proposal has no hope.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:49 AM Feature #5673 (Assigned): undef_method probably doesn't need to raise an error
mame (Yusuke Endoh)
12:45 AM Feature #5669 (Assigned): Random thread scheduling based on a seed
Ko1, kosaki, tarui-san, what do you think?
Looks almost impossible to me, though.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:43 AM Feature #5666 (Assigned): Make rb_path2class public
Aaron-san, could you answer Kosaki's comment?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:41 AM Feature #5662 (Rejected): inject-accumulate, or Haskell's mapAccum*
I think the answer to this original proposal is "use each_with_object".
That's all. Closing.
Please open another ticket for an alias of the method if needed.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:34 AM Feature #5654 (Assigned): Introduce global lock to avoid concurrent require
NaHi-san, could you facilitate the discussion?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:33 AM Feature #5653 (Assigned): "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
Hello, NaHi-san
Hiroshi Nakamura wrote:
> This ticket is for discussion about removing autoload from stdlib (or not)
It would be good to open tickets for each library that uses autoload.
And, what do you think about Stephen a...
mame (Yusuke Endoh)
12:27 AM Feature #5643 (Assigned): require/load options and binding option
mame (Yusuke Endoh)
12:23 AM Feature #5632 (Assigned): Attempt to open included class shades it instead.
mame (Yusuke Endoh)
12:22 AM Feature #6088: Add Net::ReadTimeout to distinguish which operation failed
I don't object the direction but it should have more document about the new Exception. naruse (Yui NARUSE)
12:16 AM Feature #4906: rb_w32_add_socket / rb_w32_remove_socket
> Is this planned to be included in 2.0.0?
Yes.
Thank you for your reminder.
usa (Usaku NAKAMURA)
12:13 AM Feature #5613 (Assigned): Signal.termsigname メソッドの追加
パッチ晒して「反対がなければコミットします」って言えばいいんじゃないかと思います。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:07 AM Feature #5590 (Closed): Proposal for sustainable branch maintenance
See also [ruby-dev:45183] and [ruby-core:42363] naruse (Yui NARUSE)
12:07 AM Feature #5606 (Feedback): String#each_match(regexp)
遠藤です。
2011年11月10日17:19 Tomoaki Nishiyama <tomoakin@staff.kanazawa-u.ac.jp>:
> String#scan ではダメかというと
> ...
$~ を使うのが普通です。
longstring.scan(regex) do
...
puts "#{$~.begin(0)}-#{$~.end(0)-1} some other info"
end
「い...
mame (Yusuke Endoh)

03/27/2012

11:55 PM Feature #5583 (Assigned): Optionally typing
mame (Yusuke Endoh)
11:54 PM Feature #5460 (Closed): Improve "CONNECT" code in net/http. (patch inclulded)
Committed in r34362. naruse (Yui NARUSE)
11:54 PM Feature #5584 (Rejected): Array#sample!
まつもとさんの意見に対して feedback がないので閉じます。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:52 PM Feature #5582 (Assigned): Allow clone of singleton methods on a BasicObject
mame (Yusuke Endoh)
11:49 PM Feature #4906: rb_w32_add_socket / rb_w32_remove_socket
Is this planned to be included in 2.0.0? jonforums (Jon Forums)
11:45 PM Revision 4e380912 (git): * 2012-03-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:45 PM Revision a2c56d53 (git): * ext/psych/lib/psych.rb: updating version to match gem
* ext/psych/psych.gemspec: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing deprecation warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
11:45 PM Feature #5574 (Assigned): Make arrays comparable
mame (Yusuke Endoh)
11:44 PM Feature #5558 (Assigned): String#% strange arity errors
This behavior is certainly intended. See [ruby-core:5161].
There is another example that behavior changes whether it is
debug mode or not: Thread#abort_on_exception.
Thread.new { raise }
sleep 1
The above will termin...
mame (Yusuke Endoh)
11:41 PM Feature #5180 (Rejected): net/http の接続時に用いる IP アドレスの指定
これは reject します。
さておき、メンテナにはなりますかね。
まつもとさんの承認は必要だったような。
naruse (Yui NARUSE)
02:31 AM Feature #5180 (Assigned): net/http の接続時に用いる IP アドレスの指定
成瀬さん
微妙に反対意見が出てますが、net/http のメンテナの裁量で
好きにやっていい範囲だと思います。
しかし現在 net/http にはメンテナがいません。
成瀬さんがメンテナになりませんか?
おまけで、net/http 関係の issue が憑いてきます。
メンテナになるのってまつもとさんの了解が必要でしたっけ。
成瀬さんがメンテナやりたくないなら reject の方向で。
その場合は Eric Hodel あたりに声かけてみます...
mame (Yusuke Endoh)
11:38 PM Feature #5555 (Feedback): rename #include? to #includes?
Hello,
2011/11/13 Alexey Muranov <muranov@math.univ-toulouse.fr>:
> Good explanation.  The method names can also me viewed as #(does_it_)include?
I'm not sure but the rule seems Lisp's name convention?
Maybe it also came from Lis...
mame (Yusuke Endoh)
10:54 PM Feature #5534 (Assigned): Redefine Range class and introduce RelativeNumeric and RelativeRange
mame (Yusuke Endoh)
10:51 PM Feature #5531 (Assigned): deep_value for dealing with nested hashes
mame (Yusuke Endoh)
10:50 PM Feature #5458 (Assigned): DL should be removed
In principle, nothing should be removed from 2.0 because of compatibility.
I cannot advocate DL and Syck, though...
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:47 PM Feature #5456 (Assigned): kernel#syscall() should be removed.
Kosaki-san,
In principle, nothing should be removed from 2.0 because of compatibility.
Do you think it should be removed from 2.0?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:45 PM Feature #5446 (Feedback): at_fork callback API
Eric Wong,
Do you still want this feature?
If so, could you answer kosaki's comment?
OT: We noticed and surprised at your ID (normalperson) at the recent
developers' meeting in Akihabara. Clearly, you are greatperson :-)
--...
mame (Yusuke Endoh)
10:38 PM Feature #5445 (Assigned): Need RUBYOPT -r before ARGV -r
mame (Yusuke Endoh)
10:25 PM Bug #5488 (Closed): autoconf failure on HP-UX/PA
nobu (Nobuyoshi Nakada)
05:48 PM Feature #6150: add Enumerable#grep_v
trans (Thomas Sawyer) wrote:
> Can it be an option?
> ...
Agreed, adding another method seems overkill (not to mention it does not look right) for such change.
Eregon (Benoit Daloze)
04:04 AM Feature #6150: add Enumerable#grep_v
Can it be an option?
grep(pattern, :invert=>true)
trans (Thomas Sawyer)
03:39 AM Feature #6150: add Enumerable#grep_v
=begin
I think that this is a good idea.
=end
jacksonwillis (Jackson Willis)
02:44 PM Revision 9073db5c (git): * io.c (io_unread): fixed memory leak. report by nagachika via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
01:44 PM Revision 61dc4a8d (git): * configure.in (verconf.h): separate load path specific stuff from
config.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:43 PM Revision c2d7776f (git): * win32/Makefile.sub: fix config.h path to include.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:23 PM Revision c857c737 (git): merge revision(s) 33533: [Backport #6204]
* configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as
shell variable name. based on the patch by The Written Word Inc. at
[ruby-core:40421]. [Bug #5488]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
nobu (Nobuyoshi Nakada)
09:56 AM Feature #5064: HTTP user-agent class
=begin
I hope this shortened version is simple enough:
New class named Net::HTTP::Agent with this API:
agent = Net::HTTP::Agent.new
Built in ways to make HTTP requests similar to Net::HTTP:
agent.head "http://example/som...
drbrain (Eric Hodel)
09:09 AM Feature #5219: Array#pack should warn (or raise) if an invalid pack string is given
I was helping someone else write a patch, but they have gone missing.
Can you check this patch?
drbrain (Eric Hodel)
02:46 AM Feature #5219 (Assigned): Array#pack should warn (or raise) if an invalid pack string is given
drbrain,
> Ruby should at least warn like printf when -w is active:
Agreed. Could you offer a patch?
I think you can commit it, unless there is objection.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:27 AM Revision 35259b72 (git): * win32/win32.c (check_if_dir): fix memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:06 AM Revision 2434ad11 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:17 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
Personally I think it's a ugly notation. Also methods aren't 1st class --you don't get the same method object each time. If we did, then I say it agree it would be important to have a concise syntax. trans (Thomas Sawyer)
03:22 AM Feature #5364 (Assigned): How about new syntax: "object.\method" returns a Method instance?
Anyone is interested in facilitating the discussion?
Personally, I believe this proposal is the right way.
I tentatively assign this to matz, but I don't think
this is going to end well.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
04:13 AM Revision ab9c982c (git): * string.c (str_new_empty): should copy also the encoding as an
empty substring. [ruby-dev:45441][Bug #6206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:33 AM Feature #5394 (Feedback): Anonymous Symbols, Anonymous Methods
mame (Yusuke Endoh)
03:32 AM Feature #5392 (Assigned): Symbol GC
mame (Yusuke Endoh)
03:32 AM Feature #5389 (Assigned): New method Enumerator#iterate
mame (Yusuke Endoh)
03:27 AM Feature #5373 (Assigned): SMTP - new method
mame (Yusuke Endoh)
03:26 AM Feature #5372 (Assigned): Promote blank? to a core protocol
mame (Yusuke Endoh)
03:24 AM Feature #5371 (Rejected): add marshalling support for Mutex
There is no feedback or revised proposal from OP.
I close this as Rejected.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:11 AM Revision 9052a8cd (git): * tool/make-snapshot (package): EXEEXT is now used in mkmf.rb.
[ruby-core:43685]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:11 AM Revision be42c354 (git): * tool/make-snapshot (package): suppress constant overwritting warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:08 AM Feature #5361 (Assigned): Lice?
mame (Yusuke Endoh)
03:07 AM Feature #5352 (Assigned): How about using <> to represent Here Document?
mame (Yusuke Endoh)
03:06 AM Bug #5317 (Assigned): rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
まあこれは何かしら対処すべきじゃないですかね。
#define off_t を入れたのはなかださんっぽい (r10720) ので、
なかださんお願いします。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:04 AM Feature #5310 (Assigned): Integral objects
Hello, Mrkn-san
Could you tell me the status?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:50 AM Feature #5281 (Assigned): Support for custom sitearch and vendorarch directories
Nobu, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:49 AM Feature #5231 (Assigned): Allow to disable versioned paths
Nobu, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:48 AM Feature #5220 (Rejected): NilClass#to_i should accept an argument to match String#to_i
There is no feedback or revised proposal from OP.
I close this as Rejected.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:43 AM Feature #5206 (Assigned): ruby -K should warn
Naruse-san, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:42 AM Feature #3963 (Assigned): Map class in standard library
Okay, thanks. I mark this ticket as matz's issue.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:32 AM Feature #3963: Map class in standard library
Not much difference, except perhaps for the more flexible #convert_key idea. I was just clarifying in this ticket b/c of some of the comments made about Map specifically.
The conversation referenced did not seem to have any kind of co...
trans (Thomas Sawyer)
02:20 AM Feature #3963: Map class in standard library
Did you read the thread Shyouhei said?
shyouhei wrote:
> FYI: There has been a Mash merge request about a year ago. Pleas take a look at
> ...
I don't remember it in detail, but a similar idea you are talking about
was discussed, I...
mame (Yusuke Endoh)
01:49 AM Feature #3963: Map class in standard library
Just to be sure, I think I should clarify.
I do not mean Ruby ought provide Ara's Map class specifically (though, for the most part it is probably a very good implementation which is why I reference it). But that Ruby provide at least...
trans (Thomas Sawyer)
12:53 AM Feature #3963: Map class in standard library
Hello,

2012/3/25, akr (Akira Tanaka) <akr@fsij.org>:
> I think no hope to add Map class as builtin.

I agree for two reasons.

The name "map" is not suitable. In computer science, "map" stands for
an abstract data stru...
mame (Yusuke Endoh)
02:34 AM Feature #5185 (Assigned): Set#merge acts in place but Hash#merge does not
I understand the problem, but I guess it is too late to fix it.
Anyway, I'm assigning this to knu, the maintainer of lib/set.rb.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:20 AM Bug #6205 (Closed): YAML Regexp in anchor gets converted to String
Thanks for the bug report!
This was fixed in r33679. I'll make a request to backport the fix to the 1.9.3 branch.
tenderlovemaking (Aaron Patterson)
02:12 AM Feature #5145 (Feedback): Function extension of Array#transpose
Interesting but do you have any use case?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:55 AM Feature #5129 (Assigned): Create a core class "FileArray" and make "ARGF" its instance
Hello,
I like the idea, but it requires matz's approval.
> Now when I "p ARGF.class", I get "ARGF.class", so ARGF is an instance of ARGF.class, how meaningless it is.
FYI: In fact, it is meaningful. You can "exploit" it.
...
mame (Yusuke Endoh)
01:44 AM Feature #6118: Hash#keys_of(values), returns related keys of given values
Here is the updated patch ssuda (Sambasiva Suda)
01:38 AM Feature #6118: Hash#keys_of(values), returns related keys of given values
Here is the implementation for Hash#keys_of ssuda (Sambasiva Suda)
01:44 AM Feature #5106 (Feedback): Is MurmurHash overkill?
Hello,
> Simpler hash functions may be appropriate for hash tables, esp. small
> ...
Please make it quantitative when talking about performance.
Please show a benchmark first.
How slow is MurmurHash? How fast will st.c be if the...
mame (Yusuke Endoh)
01:41 AM Revision f25efeb8 (git): * 2012-03-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:41 AM Revision e9e93e5d (git): * test/net/ftp/test_ftp.rb: property.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:36 AM Feature #5006 (Rejected): Allow ~> as a method
Hello,
This syntax would bring ambiguity.
Consider "0.~>1". This can parse as:
0.send("~>", 1)
as well as:
0.send("~") > 1
. So I close this ticket as Rejected.
There are some incomplete or arguable points in th...
mame (Yusuke Endoh)
01:29 AM Bug #6159: Enumerable::Lazy#inspect
Hello,

2012/3/27 Yusuke Endoh <mame@tsg.ne.jp>:
>> So I prefer the current behavior.
>
> I agree with you, as a core team member.
> It is a simple and straightforward implementation.
> But I also agree with Benoit, as a u...
shugo (Shugo Maeda)
12:29 AM Bug #6159: Enumerable::Lazy#inspect
Hello,

2012/3/25, shugo (Shugo Maeda) <redmine@ruby-lang.org>:
> So I prefer the current behavior.

I agree with you, as a core team member.
It is a simple and straightforward implementation.
But I also agree with Benoit,...
mame (Yusuke Endoh)
01:19 AM Feature #4967 (Rejected): dmalloc reported memory leaks in ruby
Hello,
Thank you for introducing an analysis tool and providing the
result. But, please send such information as a mail, not open
a ticket. A ticket should be for each concrete problem.
I guess valgrind (with option --show-reac...
mame (Yusuke Endoh)
01:05 AM Feature #4712 (Feedback): File.writable? inaccurate in windows
Hello,
usa wrote:
> The problem is who/when/how does it...
We need contribution. I mark this ticket as Feedback.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:03 AM Feature #4601 (Closed): Re-ordering method parameters.
Hello,
More or less, this problem is solved by keyword arguments, I guess.
So I close this ticket.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:30 AM Feature #4057 (Rejected): FileUtils.copy with FIFOs and Special Devices
Hello,
Runpaint, I think you meant FileUtils.copy_entry.
$ mkfifo fifo
$ ruby -rfileutils -e 'FileUtils.copy_entry("fifo", "lifo")'
...:in `copy': cannot handle FIFO (RuntimeError)
> So,
> ...
I object to replac...
mame (Yusuke Endoh)
12:18 AM Feature #5903: Optimize st_table (take 2)
Add couple of commits to pull request https://github.com/ruby/ruby/pull/107 :
1. Removal of ST_CHECK .
ST_CHECK were always returned instead of ST_CONTINUE inside of some st_foreach loops.
Now such calls to st_foreach are conv...
funny_falcon (Yura Sokolov)
 

Also available in: Atom