Project

General

Profile

Activity

From 10/13/2011 to 10/19/2011

10/19/2011

11:26 PM Feature #3187: Allow dynamic Fiber stack size
Hi,
I've written a patch. This patch adds some methods Fiber.default_vm_stacksize, Fiber.default_vm_stacksize=, Fiber#vm_stacksize and add an optional Hash argument to Fiber#initialize, and tests for them.
You can specify default VM ...
nagachika (Tomoyuki Chikanaga)
09:05 PM Revision 2e32ad81 (git): * ext/openssl/ossl_ns_spki.c (Init_ossl_ns_spki): Stub documentation
for Netscape SPKI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:34 PM Revision 9bec8ef5 (git): Imported minitest 2.6.2 (r6712)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
08:05 PM Revision 9cfc7a65 (git): * 2011-10-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:05 PM Revision 65ca601b (git): * lib/openssl/buffering.rb: Force multi-byte strings to be treated as
binary data.
* test/openssl/test_ssl.rb: Add test for it.
Thanks to Niklas Baumstark for reporting the issue!
[Ruby 1.9 - Bug #5233] [ruby-core:39120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33485 b2dd03c8-39d4-4d8f-98ff-82...
MartinBosslet (Martin Bosslet)
05:46 PM Feature #5065 (Rejected): Allow "}" as an alternative to "end"
Rejected because there's no discussion about this issue for three months. technohippy (Yasushi ANDO)
04:11 PM Bug #5244: Continuation causes Bus Error on Debian sparc
My machine is UltraSparc III based, so it's a v9 and 64-bit. For historical reasons though Debian is using 64-bit kernel and 32-bit userspace:
jurij@debian:~$ gcc -E -dM -xc /dev/null | grep -i -e sparc -e arch64
#define sparc 1
#de...
jurij (Jurij Smakov)
02:28 PM Bug #5244: Continuation causes Bus Error on Debian sparc
knu says that 'flushw' is correct for SparcV9, but not 'ta 0x03'.
And your platform seems 32bit, right?
Then why defined(__sparc_v9__) || defined(__sparcv9) || defined(__arch64__) is true?
Can't you show the result from:
$ gcc -E -...
nobu (Nobuyoshi Nakada)
11:29 AM Bug #5244 (Open): Continuation causes Bus Error on Debian sparc
At r3285, defined(__FreeBSD__) was lost.
I have no idea if 'flushw' is preferable to 'ta 0x03' on FreeBSD.
nobu (Nobuyoshi Nakada)
08:05 AM Bug #5244: Continuation causes Bus Error on Debian sparc
I think we figured it out. The problem arises in cont_save_machine_stack() function, where the register windows are flushed using 'flushw' assembler instruction, and the machine stack is then saved by memcpy'ing it from cont->machine_sta... jurij (Jurij Smakov)
12:04 PM Bug #5463: PTY or IO.select timing issue results in no EOF
Oops! I uploaded the wrong file. Apologies, here is the correct file (the 2.3 kB one). thinkerbot (Simon Chiang)
12:02 PM Bug #5463 (Rejected): PTY or IO.select timing issue results in no EOF
I have observed that when running a shell through PTY the slave will sometimes fail to produce an EOF after an exit command. As a result polling via IO.select can timeout. A full example is attached. This is a simplified example illus... thinkerbot (Simon Chiang)
11:44 AM Bug #5449: nested constant opasign not working
I checked this just for my curiosity.
Foo ||= 42
does not work on ruby1.8,
::Foo = 42 # constant re-assignment
Foo = Foo || 42 # uninitialized constant
and these two statements raise exceptions on ruby1.9. IMHO, ...
technohippy (Yasushi ANDO)
11:32 AM Bug #5438 (Closed): [PATCH] Add exception hierarchy in Exception class documentation.
This issue was solved with changeset r33481.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* error.c (Init_Exception): Add hierarchy of Exception subcla...
drbrain (Eric Hodel)
11:32 AM Bug #5438: [PATCH] Add exception hierarchy in Exception class documentation.
I modified your patch to use bullet lists and removed the top-most Exception bullet. I also added notes for the default require/rescue subclasses. drbrain (Eric Hodel)
11:27 AM Feature #5462 (Closed): TLS support for WEBrick::HTTPProxyServer
Currently, HTTPProxyServer does not proxy https requests. MartinBosslet (Martin Bosslet)
11:20 AM Revision 1a2f6357 (git): * ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
11:14 AM Bug #5110 (Closed): Ruby SSL error - sslv3 alert unexpected message
If nobody disagrees, I would like to close this. MartinBosslet (Martin Bosslet)
11:07 AM Bug #5393 (Closed): some style fixes in enum.c docs
This issue was solved with changeset r33480.
b, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enum.c: Reformat block args to a single standard, { |args| ... }.
...
drbrain (Eric Hodel)
08:07 AM Revision 6b8d4ab8 (git): * version.h (RUBY_RELEASE_DATE): finally declare start of 2.0 work!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matz (Yukihiro Matsumoto)
07:37 AM Feature #5461 (Assigned): Add pipelining to Net::HTTP
=begin
The attached patch adds HTTP/1.1 pipelining support to Net::HTTP.
Pipelining is only performed on HTTP/1.1 servers. Net::HTTP will check if the server supports pipelining by using the first request in the list. The user can ...
drbrain (Eric Hodel)
02:52 AM Revision 34fb3642 (git): * error.c (Init_Exception): Document $! and $@. Provide
recommendations for creating exceptions for a library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:32 AM Revision 62bd3dd4 (git): * error.c (Init_Exception): Add hierarchy of Exception subclasses.
Based on patch by Sylvain Daubert. [Ruby 1.9 - Bug #5438]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:07 AM Revision 2a4ce075 (git): * enum.c: Reformat block args to a single standard, { |args| ... }.
Patch by b t. [Ruby 1.9 - Bug #5393]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:53 AM Bug #5407: Cannot build ruby-1.9.3-rc1 with TDM-GCC 4.6.1 on Windows XP SP3
> There is only one proposal from me.
> In mswin, /Oy- is always specified.

Why is this required for mswin?
-roger-
Anonymous
01:52 AM Revision dc56a459 (git): Ignore extconf generated files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
01:23 AM Feature #5454: keyword arguments
Hello,
2011/10/19 Joshua Ballanco <jballanc / gmail.com>:
> For example, should this work:
> ...
Though the example will not work because x is in the different
variable scope, you can write any expression as a default value,
like:
de...
mame (Yusuke Endoh)
12:53 AM Feature #5454: keyword arguments
On Tue, Oct 18, 2011 at 11:31 AM, Yukihiro Matsumoto <matz@ruby-lang.org>wrote:

> Hi,
>
> In message "Re: [ruby-core:40207] Re: [Ruby 2.0 - Feature #5454] keyword
> arguments"
> on Wed, 19 Oct 2011 00:14:13 +0900, Joshu...
jballanc (Joshua Ballanco)
12:53 AM Feature #5454: keyword arguments
Hello,

2011/10/19 Yukihiro Matsumoto <matz@ruby-lang.org>:
> |With the current proposal for keyword arguments, I think MacRuby would not
> |be able to implement this feature.
>
> I know.  But I have warned MacRuby guys for years...
mame (Yusuke Endoh)
12:53 AM Feature #5454: keyword arguments
Hi,

In message "Re: [ruby-core:40209] Re: [Ruby 2.0 - Feature #5454] keyword arguments"
on Wed, 19 Oct 2011 00:31:44 +0900, Yusuke Endoh <mame@tsg.ne.jp> writes:

|Interesting. Matz, which do you prefer?

I prefer th...
matz (Yukihiro Matsumoto)
12:53 AM Feature #5454: keyword arguments
Hello,

2011/10/19 Joshua Ballanco <jballanc@gmail.com>:
>     # Ruby 2.0 proposal:
>     def foo(a: 1, b: 2, c: 3)
>         puts [a, b, c]
>     end
>     foo(a: 'one', b: 'two', c: 'three') #
mame (Yusuke Endoh)
12:53 AM Feature #5454: keyword arguments
Hi,

In message "Re: [ruby-core:40207] Re: [Ruby 2.0 - Feature #5454] keyword arguments"
on Wed, 19 Oct 2011 00:14:13 +0900, Joshua Ballanco <jballanc@gmail.com> writes:

|With the current proposal for keyword arguments, I...
matz (Yukihiro Matsumoto)
12:23 AM Feature #5454: keyword arguments
On Tue, Oct 18, 2011 at 1:33 AM, Haase, Konstantin <
Konstantin.Haase@student.hpi.uni-potsdam.de> wrote:

> Also, these are really named arguments in a Python sense, not keyword
> arguments in a Smalltalk sense.
>

I just ...
jballanc (Joshua Ballanco)
01:15 AM Revision e4af86d6 (git): * 2011-10-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:15 AM Revision c35204f7 (git): * ext/openssl/ossl_ssl.c: Remove set, but unused variables.
ext/openssl/ossl_pkey.c: ditto
* ext/openssl/ossl_pkey_dh.c: Make functions passed to
rb_thread_blocking_region return VALUE instead of void.
ext/openssl/ossl_pkey_dsa.c: ditto
ext/openssl/ossl_pkey_rsa.c: ditto
git-svn-id: svn+...
MartinBosslet (Martin Bosslet)

10/18/2011

10:12 PM Bug #5459: Silence -Wmissing-declarations and -Wold-style-definition warnings in mkmf
I reviewed your patch. +1 me too.
kosaki (Motohiro KOSAKI)
06:52 PM Bug #5459: Silence -Wmissing-declarations and -Wold-style-definition warnings in mkmf
+1. It seems harmless. shyouhei (Shyouhei Urabe)
06:12 PM Bug #5459 (Closed): Silence -Wmissing-declarations and -Wold-style-definition warnings in mkmf
The attached patch silences -Wmissing-declarations and -Wold-style-definition warnings in c files generated by mkmf. This is required, as mkmf uses $CFLAGS when running the c compiler on the generated c files. now (Nikolai Weibull)
08:53 PM Bug #5407: Cannot build ruby-1.9.3-rc1 with TDM-GCC 4.6.1 on Windows XP SP3
Hello,

I'm glad to here the solution of this problem.
Thanks to all the people that tackled it.

There is only one proposal from me.
In mswin, /Oy- is always specified.
So, in mingw, We should specify -fno-omit-frame-poin...
usa (Usaku NAKAMURA)
08:11 PM Bug #5407: Cannot build ruby-1.9.3-rc1 with TDM-GCC 4.6.1 on Windows XP SP3
I have same issues as above.
trunk@33473 and 1.9.3dev build fails on Windows XP SP3 with gcc version 4.6.1 (tdm-1).
And build with -fno-omit-frame-pointer flag works fine.
This document explains about setjmp and Frame-Pointer Om...
h.shirosaki (Hiroshi Shirosaki)
06:20 PM Feature #5460 (Closed): Improve "CONNECT" code in net/http. (patch inclulded)
The net/http sends "CONNECT" request when communicate https server via proxy.
At this time, net/http calls "write" each request.
This is a fair but inefficient code because it increases the system call invocation and packet fragmenta...
nazy (Hiroki Najima)
03:53 PM Feature #5444: Object.free
help

Best,

Eric Scrivner,

Level2 Designs






On Oct 13, 2011, at 8:28 AM, Thomas Sawyer wrote:


Issue #5444 has been reported by Thomas Sawyer.

----------------------------------------
Feature #5444: Object.fre...
Anonymous
02:53 PM Feature #5454: keyword arguments
See below.

--
Evan Phoenix // evan@phx.io


On Monday, October 17, 2011 at 10:33 PM, Haase, Konstantin wrote:

> From the current patch it seems to me that this would raise an ArgumentError, as it does now. Neither name nor...
Anonymous
02:53 PM Feature #5454: keyword arguments
From the current patch it seems to me that this would raise an ArgumentError, as it does now. Neither name nor age are "keyword arguments". There is no way to define keyword arguments without a default.

Also, these are really named...
rkh (Konstantin Haase)
02:31 PM Feature #5454: keyword arguments
Please ask such question at the Rails mailing list, the ruby-talk mailing list, or Stack Overflow. The core list is about developing Ruby, not developing *in* Ruby.

Konstantin

On Oct 17, 2011, at 22:14 , Praveer Dikshit wrote:...
rkh (Konstantin Haase)
02:31 PM Feature #5454: keyword arguments
Thanks for the translation!

I've got a question about the proposal that will help me understand how it would be implemented.

Given a method:

def foo(name, age)
p [name, age]
end

And then code that calls this method:

ar...
Anonymous
02:26 PM Feature #5454: keyword arguments
Do I need to learn Ruby first to learn Rails?

Loving Ruby and want to learn it.

Thanks

2011/10/18 Yukihiro Matsumoto <matz@ruby-lang.org>

> Hi,
>
> I should have posted in English at first.
> Thank you guys for translatio...
Anonymous
01:23 PM Feature #5454: keyword arguments
Hi,

I should have posted in English at first.
Thank you guys for translation.

matz.

In message "Re: [ruby-core:40191] Re: [Ruby 2.0 - Feature #5454] keyword arguments"
on Tue, 18 Oct 2011 11:56:29 +0900, Yu...
matz (Yukihiro Matsumoto)
11:59 AM Feature #5454: keyword arguments
Hi,

2011年10月18日8:13 Evan Phoenix <evan@phx.io>:
> This looks very interesting! Would someone be willing to translate to english? I've only got a vague idea of what is being discussed.
>
I and NaHi translated the mails.

http://r...
Anonymous
08:23 AM Feature #5454: keyword arguments
This looks very interesting! Would someone be willing to translate to english? I've only got a vague idea of what is being discussed.

--
Evan Phoenix // evan@phx.io
Anonymous
07:55 AM Feature #5454: keyword arguments
|細かいことはまだ気にしていませんが、キーワード引数が 2.0 に入る
|ことはかなり確定的なので、とりあえず trunk に入れて考えるという
|のはどうでしょうか。
賛成です。trunkに入れちゃっていいのかな。そういう機能の入っ
ていない1.9ブランチが欲しい人は急いで切ったほうがいいと思い
ますよ。
|以下は未実装・懸案です。
|
| - 残りのキーワード引数を受け取る方法が必要か
|
| def foo(str: "foo", ...
matz (Yukihiro Matsumoto)
01:21 AM Feature #5454 (Rejected): keyword arguments
遠藤です。
キーワード引数を実装してみました。
$ cat t.rb
def foo(str: "foo", num: 424242)
p [str, num]
end
foo(str: "bar")
$ ./ruby t.rb
["bar", 424242]
細かいことはまだ気にしていませんが、キーワード引数が 2.0 に入る
ことはかなり確定的なので、とりあえず trunk に入れて考えるという
...
mame (Yusuke Endoh)
02:28 PM Revision 12c497dc (git): * hash.c (identhash): share with type_numhash.
* st.c (st_hashtype_num): rename from type_numhash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:07 PM Revision eb21db77 (git): * vm_core.h (ruby_current_thread): probeprofiler has been removed
long ago.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:05 PM Revision 560a6c6f (git): * ext/ripper/eventids2.c (ripper_init_eventids2): separate
initializations of IDs and objects.
* ext/ripper/tools/generate.rb (generate_eventids1): ditto.
* parse.y (Init_ripper, InitVM_ripper): fix inversed roles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33474 b2dd03c8-39d4-4d8f-98ff-...
nobu (Nobuyoshi Nakada)
02:05 PM Bug #5450 (Open): rake 0.9.2.2 does not exist in rubygems.org
The problem I raised is an issue of "importing third party's gem as a standard library", not an issue of bundler. Sorry for let you confusing, Nobu.
The latest version of rake is 0.9.2 on RubyGems.org, but we're going to release modif...
nahi (Hiroshi Nakamura)
04:08 AM Feature #5458 (Closed): DL should be removed
DL and fiddle are redundant. Moreover DL has no maintainer and its code is problematic. kosaki (Motohiro KOSAKI)
04:06 AM Feature #5456 (Assigned): kernel#syscall() should be removed.
It doesn't works correctly a long time. It's not portable and JRuby have no chance to implement it.
Moreover, Fiddle provides better interface.
kosaki (Motohiro KOSAKI)
04:04 AM Feature #5455 (Rejected): $SAFE should be removed
see
[ruby-dev:44554](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/44554)
[ruby-dev:44572](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/44572)
kosaki (Motohiro KOSAKI)
02:33 AM Bug #5451 (Closed): cgi/core.rbのread_multipart()で$stdioを直接使っているために、ruby-fcgiでmultipart/form-dataが使えない
This issue was solved with changeset r33472.
Kazuhiko, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Tue Oct 18 02:24:19 2011 Takeyuki FUJIOKA <xibbar@ruby-lang...
xibbar (Takeyuki FUJIOKA)

10/17/2011

11:53 PM Bug #5407: Cannot build ruby-1.9.3-rc1 with TDM-GCC 4.6.1 on Windows XP SP3
Hi,

2011/10/17 Luis Lavena <luislavena@gmail.com>

> On Mon, Oct 17, 2011 at 11:59 AM, Heesob Park <phasis@gmail.com> wrote:
> >
> > Issue #5407 has been updated by Heesob Park.
> >
> >
> > After some trial and error,...
phasis68 (Heesob Park)
11:23 PM Bug #5407: Cannot build ruby-1.9.3-rc1 with TDM-GCC 4.6.1 on Windows XP SP3
On Mon, Oct 17, 2011 at 11:59 AM, Heesob Park <phasis@gmail.com> wrote:
>
> Issue #5407 has been updated by Heesob Park.
>
>
> After some trial and error, it turns out this bug is GCC 4.6.1 optimization flag issue.
>
> According ...
luislavena (Luis Lavena)
06:59 PM Bug #5407: Cannot build ruby-1.9.3-rc1 with TDM-GCC 4.6.1 on Windows XP SP3
After some trial and error, it turns out this bug is GCC 4.6.1 optimization flag issue.
According to the document of gcc 4.6.1(http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Optimize-Options.html#index-fomit_002dframe_002dpointer-691):
...
phasis68 (Heesob Park)
10:00 PM Bug #5450 (Third Party's Issue): rake 0.9.2.2 does not exist in rubygems.org
It just seems a bug of bundler or a mis-release of rake.
Why do we have to remove rake "gem"?
nobu (Nobuyoshi Nakada)
07:18 PM Feature #5453 (Third Party's Issue): Add gemspecs to auto-mode-alist for ruby-mode
ruby-mode is now a part of GNU Emacs so please report there.
The one we have is for older Emacs versions, like Emacs 21.
shyouhei (Shyouhei Urabe)
06:27 PM Feature #5453 (Third Party's Issue): Add gemspecs to auto-mode-alist for ruby-mode
"\\.gemspec\\'" should be added to auto-mode-alist for ruby-mode, as they are Ruby files. now (Nikolai Weibull)
06:20 PM Feature #4523: Kernel#require to return the path of the loaded file
False, the same as currently. regularfry (Alex Young)
05:50 PM Bug #5437: Using fibers leads to huge memory leak
I tried to use your setting but as you can see in the results files it does not change very much. Also I added finalizers to those fibers to make sure that they are garbage collected and most of them are. So why is the memory increasing ... rupert (Robert Pankowecki)
05:34 PM Revision 1a3f365c (git): * 2011-10-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:33 PM Revision 673448c2 (git): Tue Oct 18 02:24:19 2011 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/core.rb (QueryExtension#read_multiparat): replace 'stdinput'
from '$stdin' because using fast cgi. [Bug #5451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA

10/16/2011

12:14 PM Feature #1081: add File::write() convenience method
It seems the docs here are wrong http://www.ruby-doc.org/core-1.9.3/IO.html#method-c-write -- they mention 4 arguments when only 3 are supported and the :mode isn't explained - please update the docs. hackeron (Roman Gaufman)
10:47 AM Revision 4db34663 (git): * 2011-10-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:46 AM Revision e6ce15c6 (git): * ext/bigdecimal/bigdecimal.gemspec (files): fixed typo, and
removed nonexistent file.
* ext/bigdecimal/bigdecimal.gemspec (homepage): added.
* ext/io/console/io-console.gemspec (homepage): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:43 AM Bug #5451 (Closed): cgi/core.rbのread_multipart()で$stdioを直接使っているために、ruby-fcgiでmultipart/form-dataが使えない
ruby-fcgiを使うと、multipart/form-dataの時にPOSTできないことに気づきました。
調べたところ、ruby-fcgiでは、CGI#stdinputを@request.inに上書きしているのに、cgi/core.rbのread_multipart()でだけ$stdinを直接使っているために、以下のように例外が発生します。 ( https://github.com/tdiary/tdiary-core/issues/102 )
/usr/l...
kazuhiko (Kazuhiko Shiozaki)
04:06 AM Feature #4969: Subtle issue with require
Then it works.
>> $LOADED_FEATURES.reject! { |i| i =~/abbrev/ }
>> require 'abbrev'
true
trans (Thomas Sawyer)
02:23 AM Feature #4969: Subtle issue with require
what happens when you put `$LOADED_FEATURES.reject! { |i| i =~/abbrev/ }` before the last `require`
jonforums (Jon Forums)
01:36 AM Feature #4969: Subtle issue with require
Okay, I finally got around to digging into this a bit more. The issue can be seen from this simple example.
Given a local directory containing:
fixture/
abbrev.rb
Then:
$ irb
>> $LOAD_PATH.unshift('./fixture')
...
trans (Thomas Sawyer)
12:24 AM Feature #5448: Singleton module's ::instance method should forward parameters
Nobuyoshi Nakada wrote:
> Singleton has only one instance, why do you need parameters?
Maybe you're right, because one could do it with accessors as well. However, beside that a Singleton can just have one instance, there's nothing s...
Quintus (Marvin Gülker)

10/15/2011

09:55 PM Bug #5375: [mingw32] segfault on WinXP SP3 with 1.9.3dev@33347
Hello,
This seems to be a regression of the VM perhaps? Using same compiler (GCC 4.6.1) but against trunk, it works perfectly:
V:\>ruby -v
ruby 1.9.4dev (2011-10-14 trunk 33469) [i386-mingw32]
V:\>ruby -rpsych -ve "puts Psych.l...
luislavena (Luis Lavena)
12:48 PM Bug #5450 (Closed): rake 0.9.2.2 does not exist in rubygems.org
1.9.3 installs rake as a 'default gems' which version is 0.9.2.2, but the version does not exist in RubyGems's source repository.
I heard that it makes bundler confuse. For some environment (not 100%), bundler generates Gemfile.lock w...
nahi (Hiroshi Nakamura)
09:33 AM Feature #4523 (Feedback): Kernel#require to return the path of the loaded file
What do you expect when the library has loaded already? nobu (Nobuyoshi Nakada)
08:52 AM Feature #4523: Kernel#require to return the path of the loaded file
+1 trans (Thomas Sawyer)
08:32 AM Bug #5449 (Closed): nested constant opasign not working
=begin
This code works on 1.9:
Foo ||= 42
However, (({ ::Foo ||= 42 })) and
Foo ||= Module.new
Foo::Bar ||= 42
both raise a SyntaxError: constant re-assignment.
(Note: I had to use the (({...})) syntax so Redmine wou...
rkh (Konstantin Haase)

10/14/2011

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

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


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

10/13/2011

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

> fibers = []
>
> GC.start

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

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

Also available in: Atom