Project

General

Profile

Activity

From 07/15/2011 to 07/21/2011

07/21/2011

11:53 PM Feature #5056: About 1.9 EOL
On Thu, Jul 21, 2011 at 16:22, Chuck Remes <[email protected]> wrote:
> On Jul 21, 2011, at 8:22 AM, Benoit Daloze wrote:
>> On 21 July 2011 02:55, SASADA Koichi <[email protected]> wrote:
>>> I think 2.0 is good point to throw away...
now (Nikolai Weibull)
11:23 PM Feature #5056: About 1.9 EOL
On Jul 21, 2011, at 8:22 AM, Benoit Daloze wrote:

> Hello,
> On 21 July 2011 02:55, SASADA Koichi <[email protected]> wrote:
>> I think 2.0 is good point to throw away some compatibility issues (e.g.
>> C APIs). We need more tim...
Anonymous
10:23 PM Feature #5056: About 1.9 EOL
Hello,
On 21 July 2011 02:55, SASADA Koichi <[email protected]> wrote:
> I think 2.0 is good point to throw away some compatibility issues (e.g.
> C APIs). We need more time to discuss.

On 21 July 2011 03:05, Yui NARUSE <naruse@airem...
Eregon (Benoit Daloze)
10:29 AM Feature #5056: About 1.9 EOL
>> Sorry, I don't get it. "2.0 is one of 1.9 series" ? Please explain a bit.
> ...
OK, I've caught your point and I like this. I would suggest
- 1.9.4 will be released in early 2012. It has only small update.
because developmen...
kosaki (Motohiro KOSAKI)
10:20 AM Feature #5056: About 1.9 EOL
Why was 1.9 named "1.9", not "2.0" ? Because some feature was missing?
Where can I refer the discussion of the time? Or can anyone remember?
I guess it will be helpful to discuss this ticket.
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
10:05 AM Feature #5056: About 1.9 EOL
Shyouhei Urabe wrote:
> Sorry, I don't get it. "2.0 is one of 1.9 series" ? Please explain a bit.
> ...
There are two principles of Ruby 2.0; in short,
* 2.0 is much different from 1.9.3
* 2.0 is not different from 1.9.3 so much
...
naruse (Yui NARUSE)
09:59 AM Feature #5056: About 1.9 EOL
Hi,

I understand NARUSE-san's comment (feature of 2.0 is matter) and
Urabe-san's comment (needs a lot of time to discuss 2.0 features).

My suggestion is:
- release 1.9.4, as an extension of 1.9.3 by 2012
- during making ...
ko1 (Koichi Sasada)
01:39 AM Feature #5056: About 1.9 EOL
Sorry, I don't get it. "2.0 is one of 1.9 series" ? Please explain a bit.
But I really want this topic to be concise. Thank you.
風呂敷広げて議論が発散するのは勘弁してください。
shyouhei (Shyouhei Urabe)
11:26 PM Bug #5067: BasicObject's constant lookup documentation
Matz explicitly stated in #3768, that it is intended that BasicObject does not
resolve constants beyond itself. But he does not make mention to the workaround
by using const_missing.
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
11:11 PM Bug #5067 (Closed): BasicObject's constant lookup documentation
Take a look at https://github.com/ruby/ruby/pull/31 .
It's OK for me to merge this request -- no technical difficulties -- but is it a right thing to be documented?
shyouhei (Shyouhei Urabe)
11:23 PM Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
On Thu, Jul 21, 2011 at 11:07 AM, Nobuyoshi Nakada <[email protected]> wrote:
> Hi,
>
> At Sun, 17 Jul 2011 05:22:32 +0900,
> Luis Lavena wrote in [ruby-core:38108]:
>> I would like to understand why original script is merged with...
luislavena (Luis Lavena)
11:23 PM Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
Hi,

At Sun, 17 Jul 2011 05:22:32 +0900,
Luis Lavena wrote in [ruby-core:38108]:
> I would like to understand why original script is merged with the
> batchfile stub in tools/rbinstall.rb
>
> Perhaps we can remove that?
...
nobu (Nobuyoshi Nakada)
11:23 PM Bug #4485: Gem.bin_path('rake') does not return the path of the system-installed rake
Hi,

At Sat, 9 Jul 2011 08:47:13 +0900,
Eric Hodel wrote in [ruby-core:37902]:
> The attached patch adds executables to the stub gemspecs and installs a copy of bin/rake into the gem directory.

It seems a half of the path i...
nobu (Nobuyoshi Nakada)
02:34 PM Bug #4485: Gem.bin_path('rake') does not return the path of the system-installed rake
Nobu, please review Eric's patch soon. We don't have much time. kosaki (Motohiro KOSAKI)
10:20 PM Feature #5054: Compress a sequence of ends
It was suggested I show my gist :)
https://gist.github.com/1095634
wayneeseguin (Wayne E. Seguin)
03:20 PM Feature #5054: Compress a sequence of ends
> The best strategy that I have come up with is to arbitrarily insert/remove additional ends somewhere, and see what happens, and zoom in on the problem location with something close to binary search.
This is something I've definitely...
krainboltgreene (Kurtis Rainbolt-Greene)
02:37 PM Feature #5054: Compress a sequence of ends
end!, end*, endall. Counting is not very serious.
See a similar issue: #5065
lazaridis.com (Lazaridis Ilias)
02:34 PM Feature #5054: Compress a sequence of ends
deleted by myself
lazaridis.com (Lazaridis Ilias)
01:26 PM Feature #5054: Compress a sequence of ends
Kurtis Rainbolt-Greene wrote:
> The `endwhile` and `endif` or `fi` solutions aren't *solutions* because they can't be used for block arguments for methods:
> ...
What about enddo? That would work in the example above. We would have t...
duerst (Martin Dürst)
07:04 AM Feature #5054: Compress a sequence of ends
I'd just like to know, as someone who deals with this currently, that a lot of the examples shown here use keywords. While keywords are certainly a big part of Ruby blocks, they aren't the *only* blocks. In fact, as Ruby excels at it, th... krainboltgreene (Kurtis Rainbolt-Greene)
03:53 AM Feature #5054: Compress a sequence of ends
Ralph Corderoy wrote:
> Nothing seems to ensure the author will bother doing e___e___end and have the e's align with the start of the blocks though.
Nothing either ensures that someone will properly indent the source code (unless y...
pygy (Pierre-Yves Gérardy)
03:12 AM Feature #5054: Compress a sequence of ends
> If the code gets too big for this kind of reduction, then it should probably be refactored into multiple methods.
While this is a good advice in itself, it still does not give you the ability to OMIT the ends.
The proposal of "en...
shevegen (Robert A. Heiler)
02:42 AM Feature #5054: Compress a sequence of ends
Ralph Corderoy wrote:
> > I'm still _very_ much for the current style and haven't wrapped my mind around the new visual look.
> ...
What, you can't bare the idea of a room full of hackers with their shoes off trying to debug their 13 l...
jonforums (Jon Forums)
01:27 AM Feature #5054: Compress a sequence of ends
Jon Forums wrote:
> I'm still _very_ much for the current style and haven't wrapped my mind around the new visual look.
> ...
That makes me have to count the number of blocks it's closing to ensure it's five. Please have the computer ...
RalphCorderoy (Ralph Corderoy)
12:33 AM Feature #5054: Compress a sequence of ends
There are better ways to deal this, e.g.
module MyModule
class MyClass
def my_method
10.times{ p :small if rand < 0.5 }
end
end
end
If the code gets too big for this kind of reduction, then i...
trans (Thomas Sawyer)
12:20 AM Feature #5054: Compress a sequence of ends
I'm still _very_ much for the current style and haven't wrapped my mind around the new visual look. It all looks like some wacky mashup of Ruby and Python. That said, here's another one.
module MyModule
class MyClass
def my_me...
jonforums (Jon Forums)
09:40 PM Revision d9a7509b (git): * 2011-07-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:40 PM Revision 01e1dcef (git): * backport of r32600 from trunk
* lib/csv.rb: Do not modify CSV.generate's argument [ruby-core:38356]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
09:37 PM Revision 480c0f69 (git): * 2011-07-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:37 PM Revision 616cae10 (git): * lib/csv.rb: Do not modify CSV.generate's argument [ruby-core:38356]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
09:13 PM Feature #4347 (Closed): Tracing cannot be re-enabled after callcc [patch]
Done. Thank you very much!
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
08:43 PM Feature #4347: Tracing cannot be re-enabled after callcc [patch]
> @James
> ...
Of course, I'd respect your decision. Please commit it to ruby_1_9_3 branch. ;-)
kosaki (Motohiro KOSAKI)
08:20 PM Feature #4347 (Assigned): Tracing cannot be re-enabled after callcc [patch]
Hello,
@James
Sorry, I didn't make the deadline to import your patch.
Kosaki, who is the "virtual" release manager, changed this ticket to
1.9.x feature.
I've just imported it to trunk. It is up to a release manager to
decide wh...
mame (Yusuke Endoh)
08:09 PM Feature #4347 (Closed): Tracing cannot be re-enabled after callcc [patch]
This issue was solved with changeset r32597.
James, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c (set_trace_func, thread_set_trace_func_m): reset trac...
mame (Yusuke Endoh)
08:53 PM Feature #4539: Array#zip_with
On Mon, Jul 18, 2011 at 4:06 PM, Thomas Sawyer <[email protected]> wrote:

> @adam Perhaps you are right. Perhaps the real issue is why #map can't take
> optional "zipping" arguments?
>

I believe there is a suggestion fro...
aprescott (Adam Prescott)
08:53 PM Feature #5065: Allow "}" as an alternative to "end"
On Thu, Jul 21, 2011 at 6:28 AM, Lazaridis Ilias <[email protected]>wrote:
> ```ruby
> ...
I can't say I like this proposal, or my own thoughts below, but I would
expect this, instead:
```ruby
module MyModule {
class MyClass {
def...
aprescott (Adam Prescott)
03:47 PM Feature #5065: Allow "}" as an alternative to "end"
Your request looks nice for me. Additionally endall will be used at the end of file in most cases, so it's useful if EOF is interpreted as your endall. technohippy (Yasushi ANDO)
02:28 PM Feature #5065 (Rejected): Allow "}" as an alternative to "end"
I've noticed issue #5054, subjecting an "endall".
```ruby
module MyModule
class MyClass
def my_method
10.times do
if rand < 0.5
p :small
endall
```
To reduce typing, but to keep the lev...
lazaridis.com (Lazaridis Ilias)
08:14 PM Feature #4967: dmalloc reported memory leaks in ruby
Interesting, but briefly I inspect the list includes many false positive.
You may think they are leaked, but they are correctly GCed.
Anyway we sometimes uses valgrind.
naruse (Yui NARUSE)
05:31 PM Bug #5066 (Closed): Doc Array#delete_at inconsistence fix
This issue was solved with changeset r32594.
samuel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (rb_ary_delete_at_m): use simple array literal in rdo...
naruse (Yui NARUSE)
02:54 PM Bug #5066 (Closed): Doc Array#delete_at inconsistence fix
=begin
The documentation for the #delete_at method is inconsistent concerning the example array initialization. For all array examples brackets are used for the creation, except the #delete_at is uses the '%w' flavor.
In terms of a con...
tonini (samuel tonini)
05:27 PM Bug #5022 (Closed): WEBrick returns improper response for malformed HTTP Request
This issue was solved with changeset r32593.
Felix, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#each):
Allo...
naruse (Yui NARUSE)
02:30 PM Bug #5022 (Assigned): WEBrick returns improper response for malformed HTTP Request
kosaki (Motohiro KOSAKI)
03:52 PM Bug #5034: C Source Code formatting
> To make this issue productive again:
> ...
Historical reason.
Additional to say Ruby has some codes ported from other projects like *BSD, Oniguruma and so on.
Such codes keep its style to ease merging a new code.
> * please sugge...
naruse (Yui NARUSE)
02:55 PM Bug #5034: C Source Code formatting
=begin
"
To make this issue productive again:
* please state the rationale for the use of tab-8/space-4 for a indent-4 project.
* please suggest a solution for simple tools, thus there's no need to use tab-8/space-4 manually.
"
...
lazaridis.com (Lazaridis Ilias)
03:47 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
Please reconsider this issue independent of the given context (in it's general context of implementing an event which reports object creation).
I can file a new issue, but the essence would be the same:
Getting (on request, e.g. wh...
lazaridis.com (Lazaridis Ilias)
03:26 PM Feature #4963: Refine and Document the Issue Tracking Process
An issue type "Task" would be helpful (sometimes its simply a task which is filed). lazaridis.com (Lazaridis Ilias)
03:25 PM Feature #4963: Refine and Document the Issue Tracking Process
Yui NARUSE wrote:
> We want a documentation which prevents people who don't read previous discussion
> ...
Mr. Naruse, I'm sorry, I could not understand this comment.
lazaridis.com (Lazaridis Ilias)
02:59 PM Bug #4062: "gem uninstall" does not honor --program-suffix
Ping? kosaki (Motohiro KOSAKI)
02:57 PM Bug #4012 (Feedback): Get segmentation fault when trying to call method from 3rd party's API
kosaki (Motohiro KOSAKI)
02:55 PM Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?
ETIMEOUT. ruby-mode.el never be release stopper. kosaki (Motohiro KOSAKI)
02:50 PM Bug #4301: Off-by-one line number in Psych parse error
I wonder why this issue is not 3rd party issue. Anyway this is not 1.9.3 material.
kosaki (Motohiro KOSAKI)
02:24 PM Feature #4893: Literal Instantiation breaks Object Model
This one should do the work fine.
Further optimization / normalization (and thus increase of the overall method-handling consistency) depends on some refactoring (and slight redesign) of existent units, especially vm_method.c. I'll po...
lazaridis.com (Lazaridis Ilias)
02:12 PM Bug #5020 (Assigned): Rational cannot coerce into Complex with imag.
バグという意見に同意ですが、regressionじゃないようなので誰もハンドルしないなら
来週ぐらいにタイムアウト発動させる予定です
kosaki (Motohiro KOSAKI)
02:09 PM Bug #4398: Highlighting of "'?" in Emacs
error, ETOOLATE.
I don't think 1.9.3 must be included this patch.
But I hope nobu give the contributor a feedback more quickly, now he is full time commiter. ;)
kosaki (Motohiro KOSAKI)
02:03 PM Bug #4097: Unexpected result of STDIN.read on Windows
Tarui-san, ping? kosaki (Motohiro KOSAKI)
02:02 PM Bug #3924: Performance bug (in require?)
I've switched the target version to 1.9.x. This issue is absolutely important, but sadly it's too late. ;-)
kosaki (Motohiro KOSAKI)
01:57 PM Bug #4457: Time#strftime で %z 指定子などに大きな幅を指定した際の不具合
こちら、状況いかがでしょうか? kosaki (Motohiro KOSAKI)
01:56 PM Bug #4957: IO.copystream seems make hangup on cygwin (was 2011-07-01 Snapshot build)
サブジェクト変えます kosaki (Motohiro KOSAKI)
01:10 PM Feature #5064 (Assigned): HTTP user-agent class
Currently there are some problems with Net::HTTP:
* Too many ways to use (user confusion)
* No automatic support for HTTPS (must conditionally set use_ssl)
* No automatic support for HTTPS peer verification (must be manually set)
*...
drbrain (Eric Hodel)
12:12 PM Revision 1d9cac36 (git): * backport r32597 from trunk.
* thread.c (set_trace_func, thread_set_trace_func_m): reset tracing
state when set_trace_func hook is removed. This is workaround patch
to force to reset tracing state that is broken by continuation call.
a patch from James M. Law...
mame (Yusuke Endoh)
12:02 PM Revision 272322be (git): * ext/socket/ancdata.c (discard_cmsg): workaround for MacOS X Lion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:02 PM Revision f0353afd (git): * ext/socket/ancdata.c (discard_cmsg): workaround for MacOS X Lion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:09 AM Revision 9752864b (git): * thread.c (set_trace_func, thread_set_trace_func_m): reset tracing
state when set_trace_func hook is removed. This is workaround patch
to force to reset tracing state that is broken by continuation call.
a patch from James M. Lawrence. [Feature #4347] [ruby-core:34998]
* test/ruby/test_continuati...
mame (Yusuke Endoh)
10:55 AM Bug #5047: Segfault (most likely involving require)
I get SEGV with ruby 1.9.3dev (2011-07-21 revision 32592) [x86_64-linux] as well. Still investigating.
Note: Don't forget to backport when we fixes it.
nahi (Hiroshi Nakamura)
10:47 AM Bug #5047 (Assigned): Segfault (most likely involving require)
Confirmed the SEGV on my machine. I'll investigate it. nahi (Hiroshi Nakamura)
10:35 AM Revision e98c8451 (git): * node.c (dump_node): add today's knowledge. "init arguments (m)" and
"init arguments (p)" of compile.c indicates a Ruby code that
evaluates multiple assignments that is in method or block
parameters: def foo((m1,m2), (m3,m4), *r, (p1,p2), (p3,p4)); end
The former (init arguments (m)) evaluates the ...
mame (Yusuke Endoh)
10:28 AM Bug #5061 (Third Party's Issue): Segfault
Yusuke Endoh wrote:
> BTW, Nahi, who is familiar with rails, could you check #5047? :-)
OK, I'll check that though they're not related to Rails :)
nahi (Hiroshi Nakamura)
09:23 AM Feature #5041: Set FD_CLOEXEC for all fds (except 0, 1, 2)
Akira Tanaka <[email protected]> wrote:
> Eric Wong wrote:
> > I support this proposal for Ruby 2.0. Very few applications depend on
> > FD passing via exec() and they can easily be updated to set
> > close_on_exec=false.
> >
>...
normalperson (Eric Wong)
08:48 AM Feature #5041: Set FD_CLOEXEC for all fds (except 0, 1, 2)
> Eric Wong wrote:
> ...
We commonly dup FD 2 so subprocesses can drill back out to parent's $STDERR, after parent has redirected FD 2 to /dev/null.
Ruby needs a generic callback upon Process.fork.
See:
https://github.com/kstephens/rub...
kstephens (Kurt Stephens)
08:25 AM Feature #5041: Set FD_CLOEXEC for all fds (except 0, 1, 2)
Eric Wong wrote:
> I support this proposal for Ruby 2.0. Very few applications depend on
> ...
Thank you for your support for this issue.
My (and matz's) intent is for 1.9.4.
I'm not sure the next version will be 1.9.4 or 2.0, tho...
akr (Akira Tanaka)
07:53 AM Feature #5041: Set FD_CLOEXEC for all fds (except 0, 1, 2)
Akira Tanaka <[email protected]> wrote:
> I'd like to set FD_CLOEXEC for all file descriptors (except 0, 1, 2,
> i.e. standard input/output/error).
>
> I talked this issue with kosaki and matz at RubyKaigi 2011 and
> matz said "do...
normalperson (Eric Wong)
09:18 AM Bug #5031 (Feedback): Enumerable#zip SEGFAULTs with a Range Object (Mac OS X 10.7 LION)
We haven't try the Lion beta release, but We've try the Lion production release.
(yeah, the Lion has been released yesterday)
And I'd report we confirmed your testcase work for me on Lion production release.
Can you please try lates...
kosaki (Motohiro KOSAKI)
09:12 AM Revision 579f2a0a (git): * enum.c (enum_inject): remove empty line to notify rdoc
Enumerable#reduce is alias. patched by milki@github.
https://github.com/ruby/ruby/pull/26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:31 AM Revision 35f2f9bf (git): * array.c (rb_ary_delete_at_m): use simple array literal in rdoc.
patched by samuel tonini. [ruby-core:38310] [Bug #5066]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:27 AM Revision 2dfc9e16 (git): * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#each):
Allow HTTP/0.9 request which doesn't has any header or body.
patched by Felix Jodoin. [ruby-core:38040] [Bug #5022]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:49 AM Bug #5062 (Assigned): double free in OpenSSL::Engine
Thanks Ippei,
I'll take a look at it!
MartinBosslet (Martin Bosslet)
02:49 AM Bug #5062 (Closed): double free in OpenSSL::Engine
以下のコードを実行すると終了時にglibcがdouble freeを検出して停止します。
require 'openssl'
OpenSSL::Engine.load
OpenSSL::Engine.engines
OpenSSL::Engine.engines
停止時の出力を添付します。
ENGINE_get_nextが前に返したengineのref countを下げるのが原因のようで、添付したパッチでとりあえず直ります。
ohai (Ippei Obayashi)
04:17 AM Bug #5063 (Rejected): OpenSSL PKCS5 PBKDF2 implementation fails RFC6070 test.
drbrain (Eric Hodel)
03:33 AM Bug #5063: OpenSSL PKCS5 PBKDF2 implementation fails RFC6070 test.
RESOLVED: I accidentally tested with single quotes. My tests pass when I use the correct quotes. Paploo (Jeff Reinecke)
03:25 AM Bug #5063 (Rejected): OpenSSL PKCS5 PBKDF2 implementation fails RFC6070 test.
RFC6070 contains reference tests for the PKCS5 v2 PBKDF2 implementation in RFC2898. OpenSSL::PKCS5.pbkdf2_hmac_sha1 conforms to this standards in all of the reference tests, except for the last one:
OpenSSL::PKCS5.pbkdf2_hmac_sha1('p...
Paploo (Jeff Reinecke)

07/20/2011

11:59 PM Feature #5054: Compress a sequence of ends
If you use upper case for every other e, counting gets easier: eEeEeNd.

Konstantin
rkh (Konstantin Haase)
11:47 PM Feature #5054: Compress a sequence of ends
Nothing seems to ensure the author will bother doing e___e___end and have the e's align with the start of the blocks though. Some may just do e_e_end or eeend leaving the reader to tediously check by counting. We want something easy fo... RalphCorderoy (Ralph Corderoy)
09:40 PM Feature #5054: Compress a sequence of ends
Pierre-Yves Gérardy wrote:
> module MyModule
> ...
Interesting idea. A bit tedious to type. I suppose with an indentation level of 4 one could already do "end;end;end;end" and have them all align. :-)
RalphCorderoy (Ralph Corderoy)
09:12 PM Feature #5054: Compress a sequence of ends
What about this?
```ruby
module MyModule
class MyClass
def my_method
10.times do
if rand < 0.5
p :small
e_e_e_e_end
```
It makes it easier to match the nesting level. If you all...
pygy (Pierre-Yves Gérardy)
08:41 PM Feature #5054: Compress a sequence of ends
Yasushi ANDO wrote:
> Ralph Corderoy wrote:
> ...
"endif endif endif" would be uncommon. Normally a single "endwhile" or
whatever wrapped the nested if-statements would suffice. When it
couldn't, an extra begin...endbegin could be ...
RalphCorderoy (Ralph Corderoy)
06:41 PM Feature #5054: Compress a sequence of ends
I'm as slightly annoyed at a sequence of "end end end end" as the next guy, but "ennnnnd" just replaces a slight annoyance with a total aggravation. moonmaster9000 (matt parker)
05:26 PM Feature #5054: Compress a sequence of ends
Hi Clifford,
Thank you for your comment.
> Modify your editor so it automatically folds them for you on display.
Oh, you might talk about reading code. My concern is writing code.
> ...
Modify your editor so it automatically u...
technohippy (Yasushi ANDO)
05:23 PM Feature #5054: Compress a sequence of ends
On Tue, Jul 19, 2011 at 13:59, Benoit Daloze <[email protected]> wrote:

> I don't think eeend is beautiful at all. Even if you had to write "end
> end" (on the same line) I'd prefer it.

Sort of like the way you already /can/ wri...
now (Nikolai Weibull)
01:23 PM Feature #5054: Compress a sequence of ends
On 20/07/2011, at 1:55 PM, ANDO Yasushi ANDO wrote:
> Please don't be afraid of this issue. If this issue was accepted, no
> one would force you to use this.

But I will use code written by other people who have used it.
I d...
cjheath (Clifford Heath)
12:55 PM Feature #5054: Compress a sequence of ends
Hi guys,
Please don't be afraid of this issue. If this issue was accepted, no one would force you to use this. You can continue to use 'end end end end end,' if you want. I just want to listen your idea how to solve a sequence of ends. ...
technohippy (Yasushi ANDO)
12:41 PM Feature #5054 (Assigned): Compress a sequence of ends
nobu (Nobuyoshi Nakada)
11:49 AM Feature #5054: Compress a sequence of ends
- Category set to Joke.
Why don't you guys just ennnnnnnnnnnnnnnd this and get back to work.
knu (Akinori MUSHA)
11:41 AM Feature #5054: Compress a sequence of ends
kazuyuki kohno wrote:
> I propose to use '----', because good looking.
Okay, then how about '++' as an alias of 'do'. So we can get the definite answer to the question; "why Ruby doesn't have ++/-- operators?".
nobu (Nobuyoshi Nakada)
11:05 AM Feature #5054: Compress a sequence of ends
You guys should seriously try Python. ianlewis (Ian Lewis)
09:33 AM Feature #5054: Compress a sequence of ends
If vertical space is valuable, does this suffice?
```ruby
module MyModule
class MyClass
def my_method
10.times do
if rand < 0.5
p :small
end; end; end; end; end
```
it is similar to th...
kstephens (Kurt Stephens)
09:24 AM Feature #5054: Compress a sequence of ends
> I prefer end! to enn..d.
That cannot work because it's not known how many ends are being replaced;
indentation can't be relied upon as this isn't Python. Hence the original
suggestion of ennnd. But that's not good because human...
RalphCorderoy (Ralph Corderoy)
09:00 AM Feature #5054: Compress a sequence of ends
I propose to use '----', because good looking.
eg:
```ruby
module MyModule
class MyClass
def my_method
10.times do
if rand < 0.5
p :small
----
```
jugyo (kazuyuki kohno)
06:23 AM Feature #5054: Compress a sequence of ends
Hi all,

I prefer end! to enn..d.
It's like super parentheses in Lisp.

--
KOJIMA Satoshi <[email protected]> / @skoji
Anonymous
06:05 AM Feature #5054: Compress a sequence of ends
OK. Let's back to the work. Now. leandrodoze (Leandro Silva)
05:53 AM Feature #5054: Compress a sequence of ends
On 19 July 2011 21:36, Bill Kelly <[email protected]> wrote:
>
> David Aaron Fendley wrote:
>> Issue #5054 has been updated by David Aaron Fendley.
>>
>>
>> I think the phrase "fold up" is more descriptive of what this is attemp...
Eregon (Benoit Daloze)
05:39 AM Feature #5054: Compress a sequence of ends
What other languages, besides Python, have this feature of "close N blocks of code"? I *do* see value for this feature in interactive IRB sessions.
However, there are two different mechanisms going on when humans read code. The eye ...
kstephens (Kurt Stephens)
05:30 AM Feature #5054: Compress a sequence of ends
> I could write this:
module MyModule
class MyClass
[...]
e e e
e e e e e
Bad suggestion as well. I tend to use
e for outputting a lot in a colourized form.
I usually do:
alias e puts
or, with colours:
...
shevegen (Robert A. Heiler)
05:28 AM Feature #5054: Compress a sequence of ends
This is a bad suggestion.
First, it violates the beauty of the code and the simplicity of it.
Yes, typing "end" is ugly and the indent is not that great, but introducing new keywords like ennnnnd violates the principle that we use ...
shevegen (Robert A. Heiler)
05:27 AM Feature #5054: Compress a sequence of ends
I like being able to visually match the indentation so I wanted to see what a variation of this proposal might look like if 'e' was an substitute for 'end'.
I use two space chars as indentation for my Ruby code so instead of this:
...
stepheneb (Stephen Bannasch)
05:26 AM Feature #5054: Compress a sequence of ends
What about the following to close all open blocks?
e∞nd
(Please don't do this)
czarneckid (David Czarnecki)
05:02 AM Feature #5054: Compress a sequence of ends
Mark Kremer wrote:
> I think that the new syntax will make Ruby code harder to read, I find the nested ends more pleasant on the eyes than this new proposal or any of the suggested alternatives.
I agree completely. Please don't do th...
nathanvda (Nathan Van der Auwera)
04:53 AM Feature #5054: Compress a sequence of ends
David Aaron Fendley wrote:
> Issue #5054 has been updated by David Aaron Fendley.
>
>
> I think the phrase "fold up" is more descriptive of what this is attempting to do. Thus I propose:
>
> ```ruby
> module MyModule
...
spatulasnout (B Kelly)
04:53 AM Feature #5054: Compress a sequence of ends
Apart from this being rather unreadable in my opinion, there has not been a single proposal that doesn't seem extremely ridiculous to me. I mean, "eeeeend", "e5nd", "fuuu", really? "endmodule" seems to be the least ridiculous, but is th... rkh (Konstantin Haase)
04:13 AM Feature #5054: Compress a sequence of ends
I think the phrase "fold up" is more descriptive of what this is attempting to do. Thus I propose:
~~~ruby
module MyModule
class MyClass
def my_method
10.times do
if rand < 0.5
p :small
fuuuuu
Tricon (David Aaron Fendley)
03:57 AM Feature #5054: Compress a sequence of ends
I think that the new syntax will make Ruby code harder to read, I find the nested ends more pleasant on the eyes than this new proposal or any of the suggested alternatives. mkrmr (Mark Kremer)
03:05 AM Feature #5054: Compress a sequence of ends
Rather than inventing a whole new kind of syntax, why not allow
end * 4
as the equivalent of ennnnd as proposed?
meta (mathew murphy)
02:58 AM Feature #5054: Compress a sequence of ends
I don't think this is a good idea because I think it makes code harder to modify correctly.
Say you wanted to add a new method to `MyModule::MyClass`. With the old syntax it's simple, just add a line below the method defined in the cl...
baroquebobcat (Nick Howard)
02:53 AM Feature #5054: Compress a sequence of ends
On Jul 19, 2011, at 1:37 PM, Kurt Stephens wrote:

> If one really hates typing "end", most editors/IDE can be configured to close the "end"s automatically when a block is created.

Without commenting on the currently proposed solut...
Anonymous
02:37 AM Feature #5054: Compress a sequence of ends
Consider how this will impact editors and other code analysis tools.
If one really hates typing "end", most editors/IDE can be configured to close the "end"s automatically when a block is created.
kstephens (Kurt Stephens)
01:47 AM Feature #5054: Compress a sequence of ends
I find this syntax to be un-ruby like. If anything, using something like 'end!' seems more rubyish:
```ruby
module MyModule
class MyClass
def my_method
10.times do
if rand < 0.5
p :small
end!
...
jfraser (Jeff Fraser)
12:00 AM Feature #5054: Compress a sequence of ends
Masaru Iwashita wrote:
> How about writing en5d instead of ennnnnd ?
> ...
I shouldn't have to count at all as it's error-prone.
Writing "enddef" or "endmodule" would avoid the need.
See my http://redmine.ruby-lang.org/issues/5054#no...
RalphCorderoy (Ralph Corderoy)
11:04 PM Feature #5056: About 1.9 EOL
Shyouhei Urabe wrote:
> > I think the title of this topic is not "About 1.9 EOL" but "Road to 2.0".
> ...
I believe the future of 1.9.x series depends whether 2.0 is one of 1.9 series or not.
naruse (Yui NARUSE)
05:57 PM Feature #5056: About 1.9 EOL
> I think the title of this topic is not "About 1.9 EOL" but "Road to 2.0".
No, sorry. I know your "mood" but I'm honestly not interested in that area. Please make another thread for it.
What I'm worrying about here, is the futur...
shyouhei (Shyouhei Urabe)
10:50 AM Feature #5056 (Assigned): About 1.9 EOL
I think the title of this topic is not "About 1.9 EOL" but "Road to 2.0".
First of all we should decide what is the 2.0.
If 2.0 is the next release of Ruby (it is called 1.9.4), it is only the naming issue.
(because I want to rele...
naruse (Yui NARUSE)
09:53 AM Feature #5056: About 1.9 EOL
Hello,

2011/7/20 Shyouhei Urabe <[email protected]>:
> At RubyKaigi,  I was surprised to  hear Matz saying "there  will be no
> 1.9.4 because it becomes 2.0".
>
> Question 1: are you kidding?  or seriously speaking?
>
...
mame (Yusuke Endoh)
12:03 AM Feature #5056 (Closed): About 1.9 EOL
=begin
At RubyKaigi, I was surprised to hear Matz saying "there will be no
1.9.4 because it becomes 2.0".
Question 1: are you kidding? or seriously speaking?
Question 2: do you have plan(s) for making 1.9 branch just li...
shyouhei (Shyouhei Urabe)
10:46 PM Bug #5061 (Rejected): Segfault
That's good to hear. Closing.
BTW, Nahi, who is familiar with rails, could you check #5047? :-)
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
10:30 PM Bug #5061: Segfault
True, that was third-party issue and I'm sorry... I was confused by the fact it happened in 2 differents gems activesupport-3.1.0.rc4 and therubyracer-0.9.0.
Thank you very much !
kmmndr (Thomas K.)
10:24 PM Bug #5061: Segfault
Try to update therubyracer. Older versions of therubyracer doesn't work well with Threads. nahi (Hiroshi Nakamura)
10:12 PM Bug #5061: Segfault
Many committers (including I) are totally-unfamiliar with rails.
Could you elaborate how to reproduce the error?
As long as I look the traces, the segfault seems to occur in
therubyracer-0.9.0/ext/v8/v8.so.
So I'm suspecting third-...
mame (Yusuke Endoh)
10:04 PM Bug #5061 (Third Party's Issue): Segfault
It seems that there is a bug with memory allocation. I'm using ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] with Rails 3.1.0.rc4 and it crash with different gems.
This bug wasn't present with ruby 1.9.2p180.
To reprodu...
kmmndr (Thomas K.)
10:12 PM Revision ff4e38fb (git): * 2011-07-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:11 PM Revision fdcac098 (git): * backport r32579, r32581, r32587 by akr and r32588 by kazu.
r32579:
* io.c (rb_update_max_fd): new function.
* internal.h (rb_update_max_fd): declare rb_update_max_fd.
* thread_pthread.c (rb_thread_create_timer_thread): update max fd when
timer thread pipe is created.
r32581:
* io.c (UPDAT...
akr (Akira Tanaka)
09:59 PM Bug #4994: DelegateClass don't find extern global public method in 1.9.2
Fixed DelegateClass with method_missing(), somewhat ugly right? sylvain303 (Sylvain Viart)
07:37 PM Bug #4994: DelegateClass don't find extern global public method in 1.9.2
The Issue topic could be rewritten: "DelegateClass don't lookup toplevel method in 1.9.2"
Reading and patching the delegate.rb:http://redmine.ruby-lang.org/projects/ruby-19/repository/entry/lib/delegate.rb I've found that it's related...
sylvain303 (Sylvain Viart)
09:29 PM Bug #5060 (Closed): Executables in bin folder conflict with their gem versions.
It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionalit... vo.x (Vit Ondruch)
07:09 PM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Hi,
Kurt Stephens wrote:
> Minor GC improvement.
> ...
Nice try!
I read your patch.
In some program, GC is improved.
$ cat r.rb
GC::Profiler.enable
x = ["s"]
10_000_000.times do
x[0] = x.dup
end
p GC::Profiler.total_...
authorNari (Narihiro Nakamura)
04:23 PM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
> real    0m2.293s
> user    0m2.275s
> sys     0m0.013s
>
> real    0m2.096s
> user    0m2.074s
> sys     0m0.014s

Nice :)
I'm looking forward nari-san's responce.
kosaki (Motohiro KOSAKI)
03:21 PM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
There is a time improvement for Arrays deeply nested at their tails:
Stock:
+ ./miniruby -e '
x = [ nil ]
10000000.times do | i |
x[0] = [ i ]
x = x[0]
end
puts :OK
system "ps -l -p #{$$}"
'
OK
UID PID PPID ...
kstephens (Kurt Stephens)
10:23 AM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
> + git checkout trunk
> Switched to branch 'trunk'
> + make test
>
> real    0m49.938s
> user    0m19.598s
> sys     0m13.396s
>
> + git checkout trunk-gc-mark-optimization
> Switched to branch 'trunk-gc-mark-optimizatio...
kosaki (Motohiro KOSAKI)
08:29 AM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Eric Wong <[email protected]> wrote:
> Kurt Stephens <[email protected]> wrote:
> > Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
> > http://redmine.ruby-lang.org/issues/50...
normalperson (Eric Wong)
05:54 PM Bug #5034: C Source Code formatting
Nice joke.
I repeat:
1. Indentation is a holly war. It is not a matter of goodness. It is a point-of-view thing.
1.1. I know you are frustrated.
1.2. But we are not.
2. I never said those electronic giants are doing wrong.
...
shyouhei (Shyouhei Urabe)
09:24 AM Bug #5034: C Source Code formatting
Shyouhei Urabe wrote:
> Ilias you're challenging not only the ruby community but also the BSD kernel hackers,
> ...
Motorola, Thomson, ARM, Intel, NSC and a few more electronic multinationals:
I have *never* seen in any C source-cod...
lazaridis.com (Lazaridis Ilias)
04:41 PM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
=begin
後藤さんにアサインしておきます。
コミットログに「[ruby-dev:43284] [Bug #4456]」という文字列を含めつつ、[[ruby:CommitterHowtoJa]] を参考にコミットしてくださいませ
=end
naruse (Yui NARUSE)
03:52 PM Bug #5021: test_empty(DL::TestCFunc): DL::DLError: unknown symbol "strcpy"
ちなみに、これの再現コードは以下のとおりでした。
require 'dl'
require 'socket'
Socket.gethostbyname("localhost")
DL::dlopen("/usr/lib/libc.so")['strcpy']
naruse (Yui NARUSE)
03:50 PM Bug #5021 (Closed): test_empty(DL::TestCFunc): DL::DLError: unknown symbol "strcpy"
This issue was solved with changeset r32586.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/dl/handle.c (dlhandle_sym): clear previous error with dle...
naruse (Yui NARUSE)
03:38 PM Feature #5053: ruby コマンドと libruby の食い違いチェック
同じソースでも違うバイナリになることも問題かと思いますが、一種の個体追跡
(CPUの個体IDのような)のようなことに使えるのも問題かなと思いました。
ソースコードのとバイナリの同一性を重視するのであれば、指定したファイルの
ハッシュ値とかになるでしょうかね?
metanest (Makoto Kishimoto)
02:23 PM Feature #5053: ruby コマンドと libruby の食い違いチェック
In message <[email protected]>
on Wed, 20 Jul 2011 13:47:24 +0900,
Makoto Kishimoto <[email protected]> wrote:
> Issue #5053 has been updated by Makoto Kishimoto.
>
>
> コンパイルした時刻のunix...
taca (Takahiro Kambe)
02:23 PM Feature #5053: ruby コマンドと libruby の食い違いチェック
In message <[email protected]>
on Wed, 20 Jul 2011 13:47:24 +0900,
Makoto Kishimoto <[email protected]> wrote:
> Issue #5053 has been updated by Makoto Kishimoto.
>
>
> コンパイルした時刻のunix...
taca (Takahiro Kambe)
01:47 PM Feature #5053: ruby コマンドと libruby の食い違いチェック
コンパイルした時刻のunix timeを埋め込んで、とかいうのも考えましたが、
そうするとちょっとオーバーキルかな、と思いました
metanest (Makoto Kishimoto)
10:13 AM Feature #5053: ruby コマンドと libruby の食い違いチェック
パッチがこれでいいかどうかは確認してませんが、このチェックを入れることには
賛成します。
# 個人的には警告でなくエラーでいいと思う。
回避の努力自体はもうそれなりに入ってるので、それはそれ、これはこれ、
ということで。
usa (Usaku NAKAMURA)
03:20 PM Revision 4aa9e1ac (git): Add test for r32586.
FreeBSD (at least 7.2 to 7.2) calls nsdispatch(3) when it calls
getaddrinfo(3). And nsdispatch(3) doesn't call dlerror(3) even if
it calls _nss_cache_cycle_prevention_function with dlsym(3).
So our DL::Handle#sym must call dlerror(3) bef...
naruse (Yui NARUSE)
03:00 PM Revision 4c58bed8 (git): * 2011-07-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision 55b0c9fb (git): * io.c (rb_update_max_fd): remove parentheses. they are not in macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:26 PM Revision b41ccc4a (git): * include/ruby/intern.h (rb_update_max_fd): declaration moved from
internal.h.
* file.c: ditto.
* io.c: call rb_update_max_fd for each new fds.
* process.c: ditto.
* random.c: ditto.
* ruby.c: ditto.
* ext/io/console/console.c: ditto.
* ext/openssl/ossl_bio.c: ditto.
* ext/pty/pty.c: ditto.
* e...
akr (Akira Tanaka)
01:15 PM Bug #921: autoload is not thread-safe
(Still no progress, just adding a note for future work)
I proposed the fix for JRuby at http://bit.ly/npPi66 (http://jira.codehaus.org/browse/JRUBY-3194)
And I had a talk about this issue in front of other Japanese CRuby committers l...
nahi (Hiroshi Nakamura)
12:59 PM Feature #4539: Array#zip_with
Hello,

2011/7/18 Thomas Sawyer <[email protected]>:
> @Endoh  Why would you have to rewrite? You can still iterate, just don't use the return result.

I have used Array#zip in hot-path code to avoid unused array
generation. S...
mame (Yusuke Endoh)
11:52 AM Bug #5058 (Rejected): Memory leak in Psych.load
tenderlovemaking (Aaron Patterson)
11:51 AM Bug #5058: Memory leak in Psych.load
The leaks are fixed on trunk, but the commits have not been ported back to the 1.9.2 branch:
http://redmine.ruby-lang.org/issues/4832
If you install and use the gem until the backport is applied, that should fix the problem:
...
tenderlovemaking (Aaron Patterson)
03:05 AM Bug #5058 (Rejected): Memory leak in Psych.load
=begin
I believe there's a memory leak in (({Psych.load})) that affects all long running processes that loads YAML a large number of times.
The expected behaviour is that the memory consumption doesn't grow just because a very simple...
nerdd (Rasmus Grouleff)
11:21 AM Feature #4766: Range#bsearch
Hello,
Let me summarize.
There are two typical use cases for bsearch: from array soreted
in ascending order,
1) find minimum i so that s <= a[i]
2) find any i so that s == a[i]
Case 2 is the point I overlooked; "find mi...
mame (Yusuke Endoh)
09:20 AM Bug #5025 (Rejected): YAML::Syck::Map#children returns [nil, nil]
Hi,
Please use Psych rather than syck. I don't think `parse` was meant to be public API in Syck, but I do consider it to be public API in Psych. The only problem is that the method exposes the parse tree for the YAML document. Ther...
tenderlovemaking (Aaron Patterson)
07:00 AM Bug #5059 (Closed): Mailing List
I know this is not really the place to report this. But I have tried all other avenues and have had no success.
I have tried multiple times to subscribe to ruby-core mailing list both via the web form on the website and manually via e...
trans (Thomas Sawyer)
06:50 AM Revision 13f62a38 (git): * ext/dl/handle.c (dlhandle_sym): clear previous error with dlerror()
before calling dlsym(). [ruby-dev:44091] [Bug #5021]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:10 AM Bug #5057 (Closed): Update readline docs to contain completion examples
I've been given permission from Joseph Pecoraro to use all or parts of this readline tutorial ( http://bogojoker.com/readline/ ) as part of ruby docs.
This patch adds tab completion examples.
mfn (Markus Fischer)

07/19/2011

11:35 PM Feature #5054: Compress a sequence of ends
Hi Guys,
How about writing en5d instead of ennnnnd ?
This would be much clearer how many n's are included.
Thanks.
tamaxyo (Masaru Iwashita)
11:27 PM Feature #5054: Compress a sequence of ends
I feel the proposed syntax including e+nd by ko1 is ugly, as nested end chains are so.
They tell us the code must be made refactoring avoiding use them.
So, we can expect well-trained people avoid using them.
BTW, the proposed synta...
mrkn (Kenta Murata)
10:32 PM Feature #5054: Compress a sequence of ends
> I disagree in this case. I don't see much here that could (or should)
> ...
I actually agree, in this case. However, this means you might have cascading ends once, at the end of a file. This is infrequent enough that I don't see it as...
steveklabnik (Steve Klabnik)
09:52 PM Feature #5054: Compress a sequence of ends
With reference to e+nd or en+d; I haven't had to count characters since
Hollerith string constants in Fortran; 11HHELLO WORLD ;-). My
suggestion is to introduce end{if,while,def,...} as keywords; they act
as one or more "end"s up...
RalphCorderoy (Ralph Corderoy)
09:29 PM Feature #5054: Compress a sequence of ends
On 19/07/11 12:27, Steve Klabnik wrote:
>
> Issue #5054 has been updated by Steve Klabnik.
>
>
> Yeah, I don't like this change. Mostly because that huge chain of
> ends is _supposed_ to look ugly; it reminds me that my c...
regularfry (Alex Young)
09:23 PM Feature #5054: Compress a sequence of ends
On 19 July 2011 13:27, Steve Klabnik <[email protected]> wrote:
>
> Issue #5054 has been updated by Steve Klabnik.
>
>
> Yeah, I don't like this change. Mostly because that huge chain of ends is _supposed_ to look ugly; i...
Eregon (Benoit Daloze)
08:27 PM Feature #5054: Compress a sequence of ends
Yeah, I don't like this change. Mostly because that huge chain of ends is _supposed_ to look ugly; it reminds me that my code is far too nested, and should be reworked and written properly.
I'd prefer bad code to look ugly.
steveklabnik (Steve Klabnik)
07:53 PM Feature #5054: Compress a sequence of ends
Hi Guys

It seems so strange to me.
It is not visible at first sight how many "end" was included :(

ayumin (Ayumu AIZAWA)
05:10 PM Feature #5054: Compress a sequence of ends
Hi,
I like your proposal. I'd like to merge this.
But this is new syntax, so if we merge this proposal, I recommend to merge at 2.0.
And I agree to indenting rule by Martin. This rule is more beautiful and human readable.
P.S.:...
sorah (Sorah Fukumori)
04:27 PM Feature #5054: Compress a sequence of ends
It looks great at first glance, but
> it works badly with
> * tab/space mixture
technohippy (Yasushi ANDO)
04:23 PM Feature #5054: Compress a sequence of ends
(2011/07/19 15:55), Martin Dürst wrote:
> please put the first character of the `ennnnd` in the same column as the *outermost* construct it closes:

How about to close nested block with "e+nd"?

```ruby
module MyModule
c...
ko1 (Koichi Sasada)
03:55 PM Feature #5054: Compress a sequence of ends
I'm not sure yet what to think of this proposal, but if it gets introduced, please lets make sure to improve the allignment of the ennnnnd.
Rather than:
Yasushi ANDO wrote:
> ```ruby
> ...
please put the first character of the ...
duerst (Martin Dürst)
03:35 PM Feature #5054 (Rejected): Compress a sequence of ends
Though as matz said at rubykaigi2011 ruby is a quite good language, many people hate a long sequence of `end` like this:
```ruby
module MyModule
class MyClass
def my_method
10.times do
if rand < 0.5
...
technohippy (Yasushi ANDO)
10:50 PM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
I don't know of a reliable means to record max stack depth, but the speed isn't necessarily better or worse:
> bash ./profile-gc-mark
+ export 'CFLAGS=-O2 -I/opt/local/include' LDFLAGS=-L/opt/local/lib
+ CFLAGS='-O2 -I/opt/local/inclu...
kstephens (Kurt Stephens)
10:17 PM Revision 7e0907ce (git): * NEWS: mention Kernel#warn. [ruby-core:38119] [Feature #5029]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:23 PM Feature #5053: ruby コマンドと libruby の食い違いチェック
きしもとです

> ./configure --program-suffix=hogehoge とかしても librubyは上書きされて消えてしまうので、
> 以前すごくイライラした記憶があるんですけど、そもそもlibrubyにバージョン番号か、
> program suffixをつけるべきな気がしてるんですよね。
>
> 衝突を検知するよりも、衝突しない方向に頑張る方が前向きな気がするんですよ。はずしてるかなぁ

FreeBSD だ...
metanest (Makoto Kishimoto)
09:23 PM Feature #5053: ruby コマンドと libruby の食い違いチェック
きしもとです

> ./configure --program-suffix=hogehoge とかしても librubyは上書きされて消えてしまうので、
> 以前すごくイライラした記憶があるんですけど、そもそもlibrubyにバージョン番号か、
> program suffixをつけるべきな気がしてるんですよね。
>
> 衝突を検知するよりも、衝突しない方向に頑張る方が前向きな気がするんですよ。はずしてるかなぁ

FreeBSD だ...
metanest (Makoto Kishimoto)
07:23 PM Feature #5053: ruby コマンドと libruby の食い違いチェック
> ビルドした ruby を、インストールせずに、ビルドディレクトリで ./ruby のように実行すると、実行する ruby コマンドと、ロードされる libruby でバージョンが食い違うことがありますが、その警告というのは(バイナリライブラリに互換性がないバージョンだったりしなければ)特に出たりしません
> たまにはまることがあるので、main.c 中で RUBY_DESCRIPTION マクロと、グローバル変数 ruby_description で一致するか...
Anonymous
07:23 PM Feature #5053: ruby コマンドと libruby の食い違いチェック
> ビルドした ruby を、インストールせずに、ビルドディレクトリで ./ruby のように実行すると、実行する ruby コマンドと、ロードされる libruby でバージョンが食い違うことがありますが、その警告というのは(バイナリライブラリに互換性がないバージョンだったりしなければ)特に出たりしません
> たまにはまることがあるので、main.c 中で RUBY_DESCRIPTION マクロと、グローバル変数 ruby_description で一致するか...
Anonymous
02:20 PM Feature #5053 (Rejected): ruby コマンドと libruby の食い違いチェック
ビルドした ruby を、インストールせずに、ビルドディレクトリで ./ruby のように実行すると、実行する ruby コマンドと、ロードされる libruby でバージョンが食い違うことがありますが、その警告というのは(バイナリライブラリに互換性がないバージョンだったりしなければ)特に出たりしません
たまにはまることがあるので、main.c 中で RUBY_DESCRIPTION マクロと、グローバル変数 ruby_description で一致するかどうかを調べ...
metanest (Makoto Kishimoto)
07:09 PM Bug #5055 (Rejected): ruby-1.9.2-p290 Test Error @Cygwin
ruby-1.9.2-p290 Test Error @Cygwin
#5042 の環境変数の対応でビルドできたので make test したところ一件 Error で返ってきました。
---
#246 test_io.rb:
at_exit { p :foo }

megacontent = "abc" * 12345678
#File.open("megasrc", "w") {|f| f << m...
mfurui (Mitsuru FURUI)
06:41 PM Feature #4872: REXML::XMLDecl#encodingがStringではなくEncodingを返すようにする
=begin
成瀬さんと話して(やるなら)以下のようにすることにした。
* REXML::XMLDecl#encodingはEncodingを返すようにする。
* REXML::XMLDecl#writeで使うXMLエンコーディングは引数で指定できるようにする。(指定されない場合はREXL::XMLDecl#encodingを使ってXMLエンコーディングを決める。)
=end
kou (Kouhei Sutou)
05:23 PM Bug #4971: Module#class_variables
> まつもとさん
> 前田です。
>
>> この方針で作ったパッチを添付しておきます。
>> # trunkならRails風に勝手にcommitしてもいいんですかね。
>
> こさきさんに「Matzがackしねーからreject、それが慣行だ」と言われてしまったので、
> 上記のような修正でよいかどうか確認をお願いします。

えええええええ。なにこの意図的な曲解(><;;
kosaki (Motohiro KOSAKI)
05:23 PM Bug #4971: Module#class_variables
> まつもとさん
> 前田です。
>
>> この方針で作ったパッチを添付しておきます。
>> # trunkならRails風に勝手にcommitしてもいいんですかね。
>
> こさきさんに「Matzがackしねーからreject、それが慣行だ」と言われてしまったので、
> 上記のような修正でよいかどうか確認をお願いします。

えええええええ。なにこの意図的な曲解(><;;
kosaki (Motohiro KOSAKI)
10:56 AM Bug #4971: Module#class_variables
まつもとさん
前田です。
Shugo Maeda wrote:
> > 個人的には、Module#class_variablesもModule#constantsのように引数でコントロールできる
> ...
こさきさんに「Matzがackしねーからreject、それが慣行だ」と言われてしまったので、
上記のような修正でよいかどうか確認をお願いします。
shugo (Shugo Maeda)
03:00 PM Revision 0c65c828 (git): * 2011-07-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision 1278d514 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:05 PM Bug #5051 (Closed): r26838 should be backported to 1.8.6
r26838 should be backported to 1.8.6 .
Without this backport, 1.8.6 cannot build at my box.
metanest (Makoto Kishimoto)
08:00 AM Bug #5050 (Rejected): unable remap error when 'make test' on cygwin
After I build trunk ruby on cygwin and ran 'make test', I
recieved many unable remap error.
101 [main] ruby 3912 C:\cygwin\home\suke\work\ruby\bin-cygwin\ruby.exe: *** fatal error - unable to remap \\?\C:\cygwin\home\suke\work\ruby...
suke (Masaki Suketa)
07:39 AM Revision 8ea395f5 (git): * cont.c (cont_save_thread): fix missing semicolon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e takano32 (Mitsuhiro TAKANO)
07:27 AM Revision b1c03685 (git): * io.c (UPDATE_MAXFD): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:10 AM Revision bd793165 (git): * 2011-07-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:10 AM Revision 2c7576a0 (git): * io.c (rb_update_max_fd): new function.
* internal.h (rb_update_max_fd): declare rb_update_max_fd.
* thread_pthread.c (rb_thread_create_timer_thread): update max fd when
timer thread pipe is created.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32579 b2dd03c8-39d4-4...
akr (Akira Tanaka)
06:50 AM Bug #4012: Get segmentation fault when trying to call method from 3rd party's API
Sorry for being too late to reply.
I would like to know the value of iid_ISupportCopyPaste.
Could you tell me the value?
p iid_ISupportCopyPaste # I would to know the result of this line.
iscp = tstsf.ole_query_interface(iid_IS...
suke (Masaki Suketa)
03:47 AM Bug #5047 (Closed): Segfault (most likely involving require)
Rails application randomly segfaults when running rspec. It will segfault about 80% of the time before any specs run. It seems to be related to requiring files. If it succeeds in getting to any specs it will run all of them without segfa... jackc (Jack Christensen)
12:39 AM Feature #4921: Remove intern.h
sora_hです.
ちょっとまって.まだなることにはなってないと記憶しています.
2.0に本当にtrunkをシフトするか,等といったはなしはやっぱりMLでやるべきで,
まだ決まってないです.これから正式に確定させましょう.
ちなみに,2.0になったときそれをやるのは(自分は)良いのではないかと思っています.
sorah (Sorah Fukumori)
12:06 AM Feature #4539: Array#zip_with
@adam Perhaps you are right. Perhaps the real issue is why #map can't take optional "zipping" arguments?
trans (Thomas Sawyer)
12:00 AM Feature #4539: Array#zip_with
@matz is symbol really needed?
class Array
def zip(a, &b1)
if b
r = []
b2 = lambda{ |x| r << b1.call(*x) }
super(a, &b2)
r
else
super(a)
e...
trans (Thomas Sawyer)

07/18/2011

11:58 PM Feature #4539: Array#zip_with
@Endoh Why would you have to rewrite? You can still iterate, just don't use the return result. trans (Thomas Sawyer)
10:29 PM Feature #5044: #zip with block return mapped results
Hi,
Please have a look at http://redmine.ruby-lang.org/issues/4539 (or [ruby-core:35613]).
The reason is explained by Yusuke in [ruby-core:35682]:
>2011/4/5 Benoit Daloze <[email protected]>:
> ...
That issue kind of got lost,...
Eregon (Benoit Daloze)
12:35 PM Feature #5044 (Rejected): #zip with block return mapped results
Is there any reason that #zip doesn't return results like map?
[1,2,3].zip([1,2,3]){ |a,b| a + b } #=> [2,4,6]
Currently, it just returns nil, which seems rather contrary to the return result of the non-block form.
trans (Thomas Sawyer)
10:25 PM Bug #5046 (Closed): Bug with xmlrpc::client, basic auth and long authentication strings
XMLRPC::Client has support for basic auth. This tries to encode the
combination of the username and password with the base64 algorithm using
Array.pack. If however your username and password exceed a certain
length the truncate algori...
herwinw (Herwin Quarantainenet)
10:03 PM Bug #5045 (Closed): wrong method in doc of Net::HTTP
Hello,
I found a small typo in the documentation of Net::HTTP:
diff --git a/lib/net/http.rb b/lib/net/http.rb
index f898588..7c9032a 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -108,7 +108,7 @@ module Net #:nodoc:
...
Eregon (Benoit Daloze)
05:15 PM Bug #4994: DelegateClass don't find extern global public method in 1.9.2
Sorry, but links are in Japanese.
I can read the code, but not why the DelegateClass shouldn't search the toplevel method, any more?
Could you translate or post a link to an English doc?
For the correction you suggest, I've wrote this...
sylvain303 (Sylvain Viart)
05:01 PM Feature #4921: Remove intern.h
2.0になることになったので、intern.h の中にあるあやしげな関数どもは internal.h に移しませんか?
あと、互換性維持の観点から拡張関数用のAPIからマクロ関数は全廃したい
kosaki (Motohiro KOSAKI)
04:53 PM Bug #4863: config.charset not found
2.0が突然身近に見えてきましたが ext/iconvはどうしますかね? kosaki (Motohiro KOSAKI)
03:23 PM Feature #4766: Range#bsearch
On Jul 18, 2011, at 1:30 AM, Yusuke ENDOH wrote:

> I agree that it seems neat, but it is ambiguous to me how it works
> concretely. What do you expect the following code outputs?

I see now my misunderstanding; the "minimum ...
Anonymous
02:59 PM Feature #4766: Range#bsearch
Oops,

2011/7/18 Yusuke ENDOH <[email protected]>:
>> Or just the first element that matches?
>
> Good question :-)  Interestingly, break can be used.
>
>  ary
mame (Yusuke Endoh)
02:53 PM Feature #4766: Range#bsearch
Hello,

Thank you for all your opinions!


2011/7/18 Michael Edgar <[email protected]>:
> This is handy, but what if someone wanted the maximum?

Please invert the condition. For example, if you want the maximum
index ...
mame (Yusuke Endoh)
09:29 AM Feature #4766: Range#bsearch
On Jul 17, 2011, at 8:12 PM, Michael Edgar wrote:

> # Returns the first-discovered elt for which the block yields true
> def bsearch_find(&blk)
> binary_matches(&blk).each do |elt|
> return elt if blk.call(elt)
> end
> end
...
Anonymous
09:23 AM Feature #4766: Range#bsearch
On Jul 17, 2011, at 7:54 PM, Eric Hodel wrote:

> When performing a binary search you may have multiple matching values, the three 100 values from the example. For the proposed implementation the first one is chosen for consistency.
...
Anonymous
08:52 AM Feature #4766: Range#bsearch
No, it's not about finding any minimum value, it's about binary search:
> I propose Range#bsearch for binary search
and
> ...
The important information in English does not necessarily come first. To make it more clear maybe it ...
drbrain (Eric Hodel)
12:13 AM Feature #4766: Range#bsearch
@eric So you are saying #bsearch _is_ #beach --that the minimum value return is just an aside to have the return value be useful? But won't the min value logic interfere with trying to do anything else with bsearch, e.g. "to_enum(:bsearc... trans (Thomas Sawyer)
11:06 AM Bug #5027: Snapshot(2011-07-14) Build Test Error @Cygwin
優先度はLowにさせてもらいますが、Cygwinを見れる人はいませんか? tarui (Masaya Tarui)
10:39 AM Bug #5034: C Source Code formatting
Lazaridis Ilias wrote:
> =begin
> ...
Could you be so kind as to point to a specific file (and possibly a line range) that you are having issues with? This is something that is really easier with a concrete example.
wishdev (John Higgins)
09:41 AM Bug #5034: C Source Code formatting
Ilias you're challenging not only the ruby community but also the BSD kernel hackers,
where they also use 4-space and tabs mixed (google "BSD KNF"). So if you've never
seen this, you are just... innocent.
Indentation is a holly war...
shyouhei (Shyouhei Urabe)
02:38 AM Bug #5034: C Source Code formatting
Martin Dürst wrote:
> Lazaridis Ilias wrote:
> ...
Please keep your advices for the juniors.
That I change to a harsher tenor does not mean that I've lost control or that I do no respect the people and their work (hint: a real frien...
lazaridis.com (Lazaridis Ilias)
07:53 AM Bug #5039: Re: socket related errors on chkbuild
2011年7月18日7:15 Hiroshi Nakamura <[email protected]>:
>
> 水曜日に見ます。が、再現させるのに時間がかかるかもしれません。手元では出てないんですが、他にこのエラー出てる方が居たら情報提供お願いします。

boron でない、手元の Debian lenny でも起きますね。

また、検索すると、
http://redmine.ruby-lang.org/issues/4923 では
...
akr (Akira Tanaka)
07:53 AM Bug #5039: Re: socket related errors on chkbuild
2011年7月18日7:15 Hiroshi Nakamura <[email protected]>:
>
> 水曜日に見ます。が、再現させるのに時間がかかるかもしれません。手元では出てないんですが、他にこのエラー出てる方が居たら情報提供お願いします。

boron でない、手元の Debian lenny でも起きますね。

また、検索すると、
http://redmine.ruby-lang.org/issues/4923 では
...
akr (Akira Tanaka)
07:12 AM Bug #5039: Re: socket related errors on chkbuild
水曜日に見ます。が、再現させるのに時間がかかるかもしれません。手元では出てないんですが、他にこのエラー出てる方が居たら情報提供お願いします。
akrさんに聞いたところによると、boronはDebian lennyで、Debian lennyは0.9.8gなんですね。それほど古いわけでもないなあ。
nahi (Hiroshi Nakamura)
04:38 AM Revision dc229682 (git): * ext/psych/lib/psych.rb: define a new BadAlias error class.
* ext/psych/lib/psych/visitors/to_ruby.rb: raise an exception when
deserializing an alias that does not exist.
* test/psych/test_merge_keys.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32578 b2dd03c8-39d4-...
tenderlovemaking (Aaron Patterson)
03:19 AM Feature #4893: Literal Instantiation breaks Object Model
=begin
Note: I've used tab-4 in the latest patch (v5b) by accident. See the issue #5034
=end
lazaridis.com (Lazaridis Ilias)
03:06 AM Feature #4893: Literal Instantiation breaks Object Model
Lazaridis Ilias wrote:
> Not "perfect", but should be stable and adoptable to other classes.
> ...
rb_set_call_flags -> rb_set_redefined_flags
rb_obj_call_init_fast -> rb_call_init_if_redefined
This name change "clarifies" that...
lazaridis.com (Lazaridis Ilias)
02:53 AM Bug #5038: Ruby 1.9.2 stops on some Regular Expressions
I put #{} into your Issue and got nil

n = 50
st = "Phone" + " "#{*n} + "Fax"
st.match(/(.+\s)*email/i)

----- Original Message -----
From: "Yui NARUSE" <[email protected]>
To: [email protected]
Sent: Sunda...
Anonymous
01:47 AM Bug #5038 (Rejected): Ruby 1.9.2 stops on some Regular Expressions
It is limitation of the spec which uses NFA regexp engine.
see also http://swtch.com/~rsc/regexp/regexp1.html
naruse (Yui NARUSE)
02:11 AM Feature #4963: Refine and Document the Issue Tracking Process
We want a documentation which prevents people who don't read previous discussion
even if we show a reference to the discussion.
naruse (Yui NARUSE)
01:21 AM Feature #4963: Refine and Document the Issue Tracking Process
=begin
See #5034 as a negative example: rejecting issue in the middle of a conversation.
=end
lazaridis.com (Lazaridis Ilias)
01:15 AM Feature #5041 (Closed): Set FD_CLOEXEC for all fds (except 0, 1, 2)
I'd like to set FD_CLOEXEC for all file descriptors (except 0, 1, 2,
i.e. standard input/output/error).
I talked this issue with kosaki and matz at RubyKaigi 2011 and
matz said "do it" and see that someone will cry or not.
FD_CLO...
akr (Akira Tanaka)
12:53 AM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
まつもと ゆきひろです

In message "Re: [ruby-dev:44143] Re: [Ruby 1.9 - Bug #4456] Time#strftime で %F 指定子に大きな幅を指定した際の不具合"
on Mon, 18 Jul 2011 00:30:09 +0900, KOSAKI Motohiro <[email protected]> writes:

|2011年7月18日0:24 Mas...
matz (Yukihiro Matsumoto)
12:53 AM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
2011年7月18日0:24 Masaya TARUI <[email protected]>:
> 非常に重要な所が抜けてました。
>
> 『後藤 直久さん』は
>> いつも手薄なSolarisでチェックしてパッチを書いていただいているので、

+1.
kosaki (Motohiro KOSAKI)
12:29 AM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
非常に重要な所が抜けてました。

『後藤 直久さん』は
> いつも手薄なSolarisでチェックしてパッチを書いていただいているので、

です。
--
樽家昌也(Masaya TARUI)
No Tool,No Life.
tarui (Masaya Tarui)
12:13 AM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
Naohisa Gotoさんは いつも手薄なSolarisでチェックしてパッチを書いていただいているので、
コミット権を取ってもらうのはどうでしょうか?
今日勝手に聞いてみたところ、メンテナをしてもよいと言ってもらいました。
tarui (Masaya Tarui)
12:10 AM Feature #4896 (Closed): Add newpad() support to Curses
This issue was solved with changeset r32576.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/curses/curses.c: added the new class Curses::Pad, which
s...
shugo (Shugo Maeda)

07/17/2011

11:00 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
ありがとうございます。
では、CommitterHowtoのお作法に則って送らせてもらいます。
ktsj (Kazuki Tsujimoto)
10:23 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
(11/07/17 21:47), KOSAKI Motohiro wrote:
>> コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。
>
> 取ってください。
> どうせコードがあってるだろなーって場合は代理コミットするの面倒くさいです

前田さんに公開鍵を送ってください。
nobu (Nobuyoshi Nakada)
10:23 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
(11/07/17 21:47), KOSAKI Motohiro wrote:
>> コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。
>
> 取ってください。
> どうせコードがあってるだろなーって場合は代理コミットするの面倒くさいです

前田さんに公開鍵を送ってください。
nobu (Nobuyoshi Nakada)
09:53 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
> コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。

取ってください。
どうせコードがあってるだろなーって場合は代理コミットするの面倒くさいです
kosaki (Motohiro KOSAKI)
09:53 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
> コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。

取ってください。
どうせコードがあってるだろなーって場合は代理コミットするの面倒くさいです
kosaki (Motohiro KOSAKI)
07:52 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
対応ありがとうございました。
# なお、このコミット(r32569)でt.rbが混入してしまっています。
ktsj (Kazuki Tsujimoto)
04:26 PM Bug #5036 (Closed): time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
This issue was solved with changeset r32569.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* error.c (rb_check_trusted): new function to check an object i...
nobu (Nobuyoshi Nakada)
12:03 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。 ktsj (Kazuki Tsujimoto)
11:41 AM Bug #5036 (Assigned): time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
入れちゃっていいんじゃないでしょうか。
あとはrb_check_frozen()のようにinsecureチェック用の関数を作るとか。
nobu (Nobuyoshi Nakada)
11:01 AM Bug #5036 (Closed): time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
=begin
辻本です。
time_modify/struct_modifyにて生成される例外のメッセージに
クラス名がハードコーディングされているため、
これらがサブクラスのオブジェクトから呼ばれた場合でも
そのことが例外メッセージから読み取れません。
Timeの例:
class Time2 < Time
end
t = Time2.now
$SAFE=4
t.gmtime # => Insecure: can't modi...
ktsj (Kazuki Tsujimoto)
10:23 PM Bug #5038: Ruby 1.9.2 stops on some Regular Expressions
Your regular expression is exponential, with a repeater (+) inside a repeater (*). It requires the regex engine to do a ton of backtracking, creating the seemingly endless loop. A lot of languages would choke on an expression like that. JEG2 (James Gray)
09:32 PM Bug #5038 (Rejected): Ruby 1.9.2 stops on some Regular Expressions
# Code to reproduce:
n = 50
st = "Phone" + " "*n + "Fax"
st.match(/(.+\s)*email/i)
nil is expected
The execution stops on match, or enters some endless loop. CPU load is high.
Works as expected when not using /i (case-insensit...
docolabs (Bob Ambartsumov)
09:53 PM Bug #5039: Re: socket related errors on chkbuild
>>> 1) Error:
>>> test_write_nonblock(OpenSSL::TestPair):
>>
>> これは原因が違うようで、直っていません。
>
> これが起き始めたのはそんなに古くないのですね。
> http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110624T071200Z.diff.html.gz
> からなんですが、
>
...
kosaki (Motohiro KOSAKI)
09:53 PM Bug #5039: Re: socket related errors on chkbuild
>>> 1) Error:
>>> test_write_nonblock(OpenSSL::TestPair):
>>
>> これは原因が違うようで、直っていません。
>
> これが起き始めたのはそんなに古くないのですね。
> http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110624T071200Z.diff.html.gz
> からなんですが、
>
...
kosaki (Motohiro KOSAKI)
09:35 PM Bug #5039 (Assigned): Re: socket related errors on chkbuild
kosaki (Motohiro KOSAKI)
09:34 PM Bug #5039 (Closed): Re: socket related errors on chkbuild
2011年7月16日23:09 Tanaka Akira <[email protected]>:
>
>> 1) Error:
>> test_write_nonblock(OpenSSL::TestPair):
>
> これは原因が違うようで、直っていません。

これが起き始めたのはそんなに古くないのですね。
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/2011062...
akr (Akira Tanaka)
06:23 PM Feature #3378: Range#each should not yield its `begin' itself
2011/7/17 Akinori MUSHA <[email protected]>:
> まあselfが返ってくることもあり、いじってしまうと影響は不定、ということで一度閉じます。


なんでこれを登録したのかもう覚えてないのですが、おそらく
この違いにハマってカッとなって登録したんだと思います。

今から見ると不定と言われてもしょうがないかなと思いますし、
1.8.7 を変えるべきとは全く思わないので、1.8.8 がなさそう
...
mame (Yusuke Endoh)
06:23 PM Feature #3378: Range#each should not yield its `begin' itself
2011/7/17 Akinori MUSHA <[email protected]>:
> まあselfが返ってくることもあり、いじってしまうと影響は不定、ということで一度閉じます。


なんでこれを登録したのかもう覚えてないのですが、おそらく
この違いにハマってカッとなって登録したんだと思います。

今から見ると不定と言われてもしょうがないかなと思いますし、
1.8.7 を変えるべきとは全く思わないので、1.8.8 がなさそう
...
mame (Yusuke Endoh)
05:10 PM Feature #3378 (Rejected): Range#each should not yield its `begin' itself
まあselfが返ってくることもあり、いじってしまうと影響は不定、ということで一度閉じます。 knu (Akinori MUSHA)
06:23 PM Feature #4766: Range#bsearch
2011/7/17 Thomas Sawyer <[email protected]>:
> Hi, thanks for example. I may not fully understand bsearch, but basically what I mean is that if finding minimum value is the important thing, then why not call it #find_minimum ? (and w...
mame (Yusuke Endoh)
12:59 PM Feature #4766: Range#bsearch
The method is not about finding the minimum, it's about binary search. It has the additional behavior of finding the minimum value at the boundary condition for the block. If multiple values match the boundary condition the minimum is c... drbrain (Eric Hodel)
12:38 PM Feature #4766: Range#bsearch
Hi, thanks for example. I may not fully understand bsearch, but basically what I mean is that if finding minimum value is the important thing, then why not call it #find_minimum ? (and what about #find_maximum ?). But if binary search is... trans (Thomas Sawyer)
10:23 AM Feature #4766: Range#bsearch
> How is this useful? It's basically "find minimum" value, right? What difference does it make that it uses a binary search?
>
> If binary searching is important, then why not have a #beach --which can then be used to extrapolate an...
mame (Yusuke Endoh)
08:36 AM Feature #4766: Range#bsearch
How is this useful? It's basically "find minimum" value, right? What difference does it make that it uses a binary search?
If binary searching is important, then why not have a #beach --which can then be used to extrapolate any variet...
trans (Thomas Sawyer)
12:25 AM Feature #4766 (Assigned): Range#bsearch
Hello,
Today I talked with matz and got his approval about this ticket,
under the following two condition:
- commit it to trunk
- provide not only Range#bsearch but also Array#bsearch
- avoid C-level undefined behavior (e....
mame (Yusuke Endoh)
05:48 PM Bug #4223: GC.stress = true で謎の ArgumentError
RB_GC_GUARD マクロについて簡単にまとめておきます
* オブジェクトの中身を指してるポインタがCコード中にあって参照中なのに、オブジェクトを指すポインタ(VALUE)がどこにもなくなっちゃってGCに回収されるのを防ぐ
* 関数の最初のほうにあるコードがけっこうある。展開内容を工夫して、それでも困らないようにがんばってはいるけど、コンパイラによる高度な最適化で、結構わからない
* ソースコードのコントロールフロー中、オブジェクトの中身にアクセスしていて、か...
metanest (Makoto Kishimoto)
05:13 PM Bug #5034: C Source Code formatting
Lazaridis Ilias wrote:
[citing in pieces]
> Are you all blind? > The sources are like crap, > That's just insane.
> ...
Just some advice: If you hope to have some influence on Ruby, it would help
if you would give all t...
duerst (Martin Dürst)
02:23 PM Bug #5034: C Source Code formatting
see [ruby-core:36255] naruse (Yui NARUSE)
12:25 PM Bug #5034: C Source Code formatting
Nobuyoshi Nakada wrote:
> Hi,
> ...
Explain me this "real world" please.
Why do I have to see continuously crap like this:
....code
------->code
------->....code
------->------->code
------->------->....code
....code
Can ...
lazaridis.com (Lazaridis Ilias)
11:23 AM Bug #5034: C Source Code formatting
Hi,

At Sun, 17 Jul 2011 11:03:36 +0900,
Lazaridis Ilias wrote in [ruby-core:38118]:
> Within 20 years, I've *never* saw something like this, *never*.

Then you should know the real world more, not only the bikeshed world.
...
nobu (Nobuyoshi Nakada)
11:06 AM Bug #5034: C Source Code formatting
We don't want to waste time with bikedhed like coding styles. naruse (Yui NARUSE)
11:03 AM Bug #5034: C Source Code formatting
Yui NARUSE wrote:
> see [ruby-core:36255]
I don't see the relation of the linked message to this issue (which was ONCE MORE rejected much to fast).
What is going on with you people here?
Are you all blind?
Or are you kidding...
lazaridis.com (Lazaridis Ilias)
10:38 AM Bug #5034 (Rejected): C Source Code formatting
see [ruby-core:36255] naruse (Yui NARUSE)
09:23 AM Bug #5034: C Source Code formatting
2011/7/17 Nobuyoshi Nakada <[email protected]>:
> Hi,
>
> At Sun, 17 Jul 2011 07:25:18 +0900,
> Lazaridis Ilias wrote in [ruby-core:38109]:
>> The C sources use tab-4, tab-8 and spaces intermixed.
>>
>> The tab-8 do not display ...
kosaki (Motohiro KOSAKI)
08:53 AM Bug #5034: C Source Code formatting
Hi,

At Sun, 17 Jul 2011 07:25:18 +0900,
Lazaridis Ilias wrote in [ruby-core:38109]:
> The C sources use tab-4, tab-8 and spaces intermixed.
>
> The tab-8 do not display correctly in several tools (displayed as tab-4).

...
nobu (Nobuyoshi Nakada)
07:25 AM Bug #5034 (Rejected): C Source Code formatting
=begin
The C sources use tab-4, tab-8 and spaces intermixed.
The tab-8 do not display correctly in several tools (displayed as tab-4).
The suggestion is that the use of tab8 is disallowed (two tab-4 instead of one tab-8).
((<UR...
lazaridis.com (Lazaridis Ilias)
03:30 PM Feature #5029 (Closed): accept multiple args in Kernel#warn(), like puts()
This issue was solved with changeset r32568.
Suraj, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* error.c (rb_warn_m): accept multiple args in like puts. rdoc
...
nobu (Nobuyoshi Nakada)
11:06 AM Feature #5029: accept multiple args in Kernel#warn(), like puts()
I implemented this feature request in the attached patch if there's any interest in the changed behavior of Kernel#warn(). boredomist (Erik Price)
03:10 PM Revision d95cb162 (git): * 2011-07-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:10 PM Revision e5f8aa95 (git): * ext/curses/curses.c: added the new class Curses::Pad, which
supports scrolling. patch by Eric Hodel. [Feature #4896]
[ruby-core:37206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:09 PM Revision e4324d71 (git): delete garbage file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
11:56 AM Feature #4893: Literal Instantiation breaks Object Model
Not "perfect", but should be stable and adoptable to other classes.
Needs possibly some renaming, and finally a review of Mr. Holms tip subjecting YARV/vm_init_redefined_flag(void). But once more, I need to take distance for some days.
lazaridis.com (Lazaridis Ilias)
09:17 AM Feature #4893: Literal Instantiation breaks Object Model
Magnus Holm wrote:
> YARV already has flags to see if methods are redefined (used for fast
> ...
This sounds plausible. But due to the many delays, I've not much energy/focusation left for this issue, and thus I avoid to change the tak...
lazaridis.com (Lazaridis Ilias)
09:10 AM Feature #4893: Literal Instantiation breaks Object Model
John Higgins wrote:
[...]
> You are hijacking the callbacks - if anyone implemented any of the callbacks your implementation fails because your callbacks won't fire anymore
You're right, that's one reason I dislike to use the callba...
lazaridis.com (Lazaridis Ilias)
09:32 AM Revision ffd9245a (git): Backport r24500; fixes #2556.
* lib/date.rb (complete_frags): Monday must be suitable for %W's
default day.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:53 AM Revision d040bf75 (git): Backport r23730; fixes #2462.
* numeric.c (flo_cmp): Infinity is greater than any bignum
number. [ruby-dev:38672]
* bignum.c (rb_big_cmp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:42 AM Feature #4787: Integer#each_modulo(n)
Why not just let #modulo/#divmod take a block, rather than define a new method? trans (Thomas Sawyer)
08:30 AM Revision d187fc72 (git): Fix credit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
08:02 AM Bug #4961 (Closed): [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7
This issue was solved with changeset r32563.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/openssl/test_ssl_session.rb: add PEM SSL session without...
Anonymous
04:35 AM Bug #4961: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7
OK, I found it. The Base64-encoded session in test_ssl_session.rb contains the field
tlsext_tick [10] OCTET STRING OPTIONAL
This was added with TLS and is not recognized by OpenSSL 0.9.7 yet. So this issue can be f...
MartinBosslet (Martin Bosslet)
08:01 AM Revision cd276fcd (git): * 2011-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:01 AM Revision dc13c010 (git): Backport r31365; fixes #4661.
* configure.in (STRIP): use proper toolchain. based on a patch
from Jon Forums at [ruby-core:35909]. fixes #4617
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
07:26 AM Revision e2fd80b3 (git): * error.c (rb_check_trusted): new function to check an object is
trusted.
* struct.c (rb_struct_modify), time.c (time_modify): check by the
above function to show proper class names. [Bug #5036]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:30 AM Revision 18f0a650 (git): * error.c (rb_warn_m): accept multiple args in like puts. rdoc
patch by Erik Price at [ruby-core:38119]. [Feature #5029]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:23 AM Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
On Sat, Jul 16, 2011 at 7:46 AM, Nobuyoshi Nakada <[email protected]> wrote:
>
> I see.  There is only irb.bat, not irb sans the suffix.  In
> that sense, it's natural to fail, but maybe unexpected
> behavior.  Now I'm thinking ...
luislavena (Luis Lavena)
03:17 AM Revision 1297cc61 (git): * test/ruby/test_module.rb (TestModule#test_method_{undefined,removed}):
tests for method_undefined and method_removed. Bug#5015
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:53 AM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Kurt Stephens <[email protected]> wrote:
> Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
> http://redmine.ruby-lang.org/issues/5033

In [ruby-core:36931], ko1 told us GC eats...
normalperson (Eric Wong)
01:15 AM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Personally I don't think goto matters so much in GC implementation.
But I'm not sure if the patch is actually so effective.
Did you benchmark? If you did, could you show it?
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
01:01 AM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Not aware of any compiler that is smart enough to optimize away the second half of gc_mark() (lines 1616-1628), when tail called from gc_mark_children().
gc_mark_children() already uses goto.
kstephens (Kurt Stephens)

07/16/2011

11:10 PM Revision ea6044ea (git): * 2011-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:10 PM Revision 6eecb436 (git): * backport r32563 from trunk
* test/openssl/test_ssl_session.rb: add PEM SSL session without TLS
extensions. Use this as the default for the tests to ensure
compatibility with OpenSSL 0.9.7.
[ Ruby 1.9 - Bug #4961 ] [ruby-core:37726]
git-svn-id: svn+ssh://ci...
MartinBosslet (Martin Bosslet)
11:02 PM Revision 6349c7bf (git): * 2011-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:02 PM Revision f8a53849 (git): * test/openssl/test_ssl_session.rb: add PEM SSL session without TLS
extensions. Use this as the default for the tests to ensure
compatibility with OpenSSL 0.9.7.
[ Ruby 1.9 - Bug #4961 ] [ruby-core:37726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
10:40 PM Feature #2542: URI lib should be updated to RFC 3986
Just for information or memo.
http://tools.ietf.org/html/draft-ietf-iri-3987bis-05
http://tools.ietf.org/html/draft-weber-iri-guidelines-00
naruse (Yui NARUSE)
08:50 PM Bug #4971: Module#class_variables
前田です。
Shugo Maeda wrote:
> 個人的には、Module#class_variablesもModule#constantsのように引数でコントロールできる
> ...
この方針で作ったパッチを添付しておきます。
# trunkならRails風に勝手にcommitしてもいいんですかね。
shugo (Shugo Maeda)
08:04 PM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
-1 I believe my compiler is smart enough to do that optimization and goto is considered harmful. shyouhei (Shyouhei Urabe)
06:12 PM Feature #5033 (Assigned): PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
kosaki (Motohiro KOSAKI)
04:45 PM Feature #5033 (Closed): PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Minor GC improvement.
Avoid recurring into gc_mark() when "goto again;" is sufficient.
-- KAS
kstephens (Kurt Stephens)
07:53 PM Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
Hi,

At Fri, 15 Jul 2011 21:28:50 +0900,
Luis Lavena wrote in [ruby-core:38075]:
> On RubyInstaller we replaced that with plain stubs and the
> original scripts from Ruby's source code, see here:

I see. There is only irb.bat, n...
nobu (Nobuyoshi Nakada)
05:29 PM Bug #4977 (Closed): CFLAGSやLDFLAGSの-m64が消されるためsparc64(sparc v9)バイナリ作成不能
This issue was solved with changeset r32562.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
Bug...
nobu (Nobuyoshi Nakada)
12:43 PM Bug #4517: ArgumentError when sorting array of objects
=begin
I did some investigation into this. The following code does not trigger the error
class Thing
attr_accessor :value

def initialize(value)
@value = value
end
end

stuff = [Thing.new("Fred"), Thing.new("...
jbl26 (Brian Lindauer)
12:02 PM Bug #5032 (Assigned): Gem::Specification#loaded? が常に false を返す
TITLE: Gem::Specification#loaded? always returns false
BODY:
On 1.9.3 RubyGems deprecates Gem::Specification#loaded? and always returns false.
It says to use Gem::Specification#activated? and it returns true when gemspec is loade...
naruse (Yui NARUSE)
11:35 AM Bug #5032 (Closed): Gem::Specification#loaded? が常に false を返す
1.9.3 の RubyGems で Gem::Specification#loaded? が deprecated になったのですが、
常に false を返すようです。かわりに使えと言われる Gem::Specification#activated? は gemspec がロードできているときは
ちゃんと true を返してくれます。
rabbit の 1.0.0 では Gem::Specification#loaded? を使っているので新しい Ruby...
okkez (okkez _)
08:29 AM Revision 64b80038 (git): * configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
Bug #4977
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:29 AM Revision 2915c155 (git): * configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
Bug #4977
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:29 AM Bug #4864 (Closed): RubyGems が環境変数 MAKE を見てくれない
Added to rubygems repo. Will migrate to core on next pull. zenspider (Ryan Davis)
07:26 AM Feature #1193 (Closed): Justified Error Messages
The latest minitest's assert_equal uses diff where appropriate. zenspider (Ryan Davis)
07:25 AM Bug #4658 (Rejected): Minitest - invalid return code when using MiniTest::Unit.after_tests
No reply. Closing. zenspider (Ryan Davis)
07:23 AM Feature #2643 (Open): test/unit redefinition check of test_* method
I agree with Benoit. -w is there for a reason. If you're willing to ignore warnings coming from ruby, why would adding another line that says essentially the same thing be any better?
Regardless, I don't maintain test/unit, but I vote...
zenspider (Ryan Davis)
06:33 AM Bug #5026 (Closed): 1.9.3 allows URI(uri, parser)
Agreed.
Fixed in r32559 & r32560.
Thanks.
marcandre (Marc-Andre Lafortune)
04:20 AM Bug #5030: [Win7/MinGW] build fail on trunk@32549
Confirmed fixed at r32557 using mingw-w64 gcc 4.5.4. Passed quick testing run via `make test-all TESTS='openssl fiddle psych' && make test` jonforums (Jon Forums)
03:46 AM Bug #5030 (Closed): [Win7/MinGW] build fail on trunk@32549
fixed at r32557, I hope. usa (Usaku NAKAMURA)
03:17 AM Bug #5030: [Win7/MinGW] build fail on trunk@32549
is_socket is defined only in io.c:
https://github.com/ruby/ruby/blob/trunk/io.c#L236-237
is_console is only defined in win32/win32.c, but further down in the file, and is not declared before.
luislavena (Luis Lavena)
01:18 AM Bug #5030 (Assigned): [Win7/MinGW] build fail on trunk@32549
kosaki (Motohiro KOSAKI)
12:45 AM Bug #5030 (Closed): [Win7/MinGW] build fail on trunk@32549
This commit
https://github.com/ruby/ruby/commit/f15d0deaaf1ae0b92c539bd823dd2b00afbaf502
appears to be the cause of the following build failure on Win7 32bit with tdm gcc 4.5.2 and mingw-w64 gcc 4.5.4
...
compiling ../../../....
jonforums (Jon Forums)
03:06 AM Bug #5031 (Closed): Enumerable#zip SEGFAULTs with a Range Object (Mac OS X 10.7 LION)
Tested on 1.9.2-head, 1.9.2-p0 and 1.9.2-p180.
If I run this:
lucasefe (Lucas Florio)
02:22 AM Revision f9e63da2 (git): * win32/setup.mak: support to build x64-mswin64 on Windows7 (and Vista,
perhaps).
backported r32521 from trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:26 AM Bug #5012: Timeオブジェクト間で特異オブジェクトが共有される
ありがとうございます。よさげに見えたので1.9.3ブランチにも入れてしまいました。 kosaki (Motohiro KOSAKI)
01:06 AM Bug #5012 (Closed): Timeオブジェクト間で特異オブジェクトが共有される
This issue was solved with changeset r32554.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* time.c (time_dup): used rb_obj_class() instead of CLASS_OF()....
kosaki (Motohiro KOSAKI)
12:29 AM Feature #5009 (Closed): Bang method (!) consistency in Ruby 2 API
Close this; force_encoding is another problem. naruse (Yui NARUSE)
12:23 AM Feature #5008 (Assigned): Equal rights for Hash (like Array, String, Integer, Float)
First of all, Ruby has two way of the type conversion; implicit and explicit.
to_i, to_f, to_s, to_a and so on are explicit conversion.
to_int, to_str, to_ary and so on are implicit conversion.
> Establish #to_h as the convention me...
naruse (Yui NARUSE)
12:10 AM Bug #5024 (Assigned): ruby-mode.el syntax highlighting breaks on regular expression with quotes
naruse (Yui NARUSE)

07/15/2011

09:32 PM Revision 22120bcc (git): * Backport of r32559 from trunk
* lib/uri/common.rb (module): Remove optional parser argument to Kernel#URI
[ruby-core:38061]
* lib/uri/generic.rb (module): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32560 b2dd03c8-39d4-4d8f-98ff-823fe69b...
Marc-Andre Lafortune
09:28 PM Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
Nobuyoshi Nakada wrote:
> I can't reproduce it.
> ...
After `make install` the end result in the indicated prefix is a series of batch files like: irb.bat which contains a mix of windows commands and the Ruby script in it, which is the...
luislavena (Luis Lavena)
11:10 AM Bug #4731 (Feedback): ruby -S irb fails with mingw/msys vanilla builds
I can't reproduce it.
Is irb only a batch file, or an exe file?
nobu (Nobuyoshi Nakada)
09:28 PM Revision c2dfaa7d (git): * lib/uri/common.rb (module): Remove optional parser argument to Kernel#URI
[ruby-core:38061]
* lib/uri/generic.rb (module): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
08:07 PM Bug #4456 (Assigned): Time#strftime で %F 指定子に大きな幅を指定した際の不具合
kosaki (Motohiro KOSAKI)
08:07 PM Bug #4456 (Open): Time#strftime で %F 指定子に大きな幅を指定した際の不具合
kosaki (Motohiro KOSAKI)
06:41 PM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
ruby_1_9_3のリビジョン32548にて、sparc Solaris10 (32ビット, Solaris Studio 12)ではSEGVが未だに発生します。パッチを添付するので適用希望です。
デバッガ上で実行すると以下のような感じです。
$ dbx ../../sparc32-cc12-debug-svn193/bin/ruby
(===snip===)
(dbx) run -e 'Time.now.strftime("%1000000000F...
ngoto (Naohisa Goto)
07:16 PM Bug #4223 (Closed): GC.stress = true で謎の ArgumentError
This issue was solved with changeset r32551.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (bigsub_int): add RB_GC_GUARD. This patch is made b...
mrkn (Kenta Murata)
06:24 PM Revision e05e9928 (git): * ChangeLog: mention to the ticket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:22 PM Revision 5a7a4ce4 (git): * win32/win32.c (is_socket, is_console): add prototypes to fix compile
problem with gcc introduced at r32549.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:16 PM Revision f11eb9bb (git): merge revision(s) 32554:
* time.c (time_dup): used rb_obj_class() instead of CLASS_OF().
The patch is made by Kazuki Tsujimoto. [Bug #5012] [ruby-dev:44071]
* test/ruby/test_time.rb (TestTime#test_getlocal_dont_share_eigenclass):
add...
kosaki (Motohiro KOSAKI)
04:06 PM Revision 61254671 (git): * 2011-07-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:06 PM Revision 6270ce85 (git): * time.c (time_dup): used rb_obj_class() instead of CLASS_OF().
The patch is made by Kazuki Tsujimoto. [Bug #5012] [ruby-dev:44071]
* test/ruby/test_time.rb (TestTime#test_getlocal_dont_share_eigenclass):
added a new test for eigenclass of time object.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
kosaki (Motohiro KOSAKI)
01:34 PM Bug #4611: [BUG] Segementation fault reported
Piotr, thanks for feedback. Nice, it includes both OpenSSL 0.9.8 (from ruby) and 1.0.0 (from mysql).
Please try to compile your ruby (/usr/local/bin/ruby) with OpenSSL 1.0.0. I don't know much about Mac OS X but giving '--with-openssl...
nahi (Hiroshi Nakamura)
01:20 PM Bug #4875 (Closed): Segmentation fault in http.rb
I close this as a duplicate of #4611. nahi (Hiroshi Nakamura)
01:18 PM Bug #4320 (Closed): Bus Error in digest/sha2 on sparc
I applied the last patch to trunk at r32546 and ruby_1_9_3 at r32547.
Nils, sorry for not merging your patch directly. The reason I didn't apply yours is almost from the size of the patch. Would you please report the issue to the upst...
nahi (Hiroshi Nakamura)
01:05 AM Bug #4320: Bus Error in digest/sha2 on sparc
This looks much simpler. I'll check this patch tomorrow.
Index: ext/digest/sha2/sha2.c
===================================================================
--- ext/digest/sha2/sha2.c (revision 32536)
+++ ext/digest/sha2/sha2.c (work...
nahi (Hiroshi Nakamura)
11:27 AM Revision 2cdfa81a (git): * bignum.c (bigsub_int): add RB_GC_GUARD. This patch is made by
Makoto Kishimoto. fixes #4223 [ruby-dev:42907]
* bignum.c (bigadd_int): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
11:12 AM Bug #5012 (Assigned): Timeオブジェクト間で特異オブジェクトが共有される
nobu (Nobuyoshi Nakada)
10:16 AM Revision 4b29cccf (git): * bignum.c (bigsub_int): add RB_GC_GUARD. This patch is made by
Makoto Kishimoto. fixes #4223 [ruby-dev:42907]
* bignum.c (bigadd_int): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
05:37 AM Revision ade91aca (git): * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:34 AM Feature #5029 (Closed): accept multiple args in Kernel#warn(), like puts()
Hello,
Please make Kernel#warn() like Kernel#puts():
* Accept multiple arguments.
* Print them separated by newline.
This will allow me to warn exceptions easily:
begin
...
rescue => error
warn error.inspect, error.ba...
sunaku (Suraj Kurapati)
05:33 AM Revision f15d0dea (git): * win32/win32.c, include/ruby/win32.h (rb_w32_io_cancelable_p): renamed
from rb_w32_has_cancel_io(). now it takes a parameter as fd to check
the fd is console or not, because we cannot cancel console input even
if we have cancel_io function.
* io.c (WAIT_FD_IN_WIN32): call above function instead of the...
U.Nakamura
05:00 AM Feature #5009: Bang method (!) consistency in Ruby 2 API
Interesting, the Rails' save/save! example makes sense.
And why worry about keeping backwards compatibility?
Ruby 2 can break it, in the interest of removing cruft.
sunaku (Suraj Kurapati)
03:05 AM Revision 22a0e9e9 (git): * 2011-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 AM Revision b03e3cc5 (git): * backport r32546 from trunk.
* ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus
Error caused by unalignment access on Sparc-Solaris (and possibly on
other similar environment.) This patch just do memcpy always instead
of checking architecture. ...
Hiroshi Nakamura
03:03 AM Revision e56f2abe (git): * ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus
Error caused by unalignment access on Sparc-Solaris (and possibly on
other similar environment.) This patch just do memcpy always instead
of checking architecture. I see no perf drop on my 64bit env. For
more details, see #4320.
*...
Hiroshi Nakamura
02:27 AM Bug #5028 (Third Party's Issue): Solaris encoding problems with rdiscount & redcarpet
It is the issue of markdown.c in redcarpet.
In ext/redcarpet/redcarpet.c it passes the data from Ruby's String to markdown.c's input_buffer without Ruby's encoding:
input_buf.data = RSTRING_PTR(text);
input_buf.size = RSTRING_LE...
naruse (Yui NARUSE)
01:24 AM Bug #5028 (Third Party's Issue): Solaris encoding problems with rdiscount & redcarpet
=begin
Hi,
I've been having encoding problems under 1.9.2 and Solaris, which I've been unable to explain.
Certain strings produce invalid encodings when passed through Redcarpet/RDiscount - for example, the tamil character ழ - (U+0BB4...
jondelStrother (Jonathan del Strother)
 

Also available in: Atom