Project

General

Profile

Activity

From 10/24/2011 to 10/30/2011

10/30/2011

10:34 PM Bug #5516 (Closed): fill_standard_fds uses F_GETFD which is not defined on MinGW (broken build)
This issue was solved with changeset r33573.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ruby.c (fill_standard_fds): use fstat() instead of fcntl(F_GETF...
akr (Akira Tanaka)
10:15 PM Bug #5516 (Closed): fill_standard_fds uses F_GETFD which is not defined on MinGW (broken build)
Hello,
New fill_standard_fds broke build under MinGW:
compiling ../../../../ruby/ruby.c
../../../../ruby/ruby.c: In function 'fill_standard_fds':
../../../../ruby/ruby.c:1822:19: error: 'F_GETFD' undeclared (first use in this fun...
luislavena (Luis Lavena)
09:31 PM Bug #5297 (Closed): Either File.expand_path or File.join is corrupting string encoding
This has been solved already associated to another bug report. luislavena (Luis Lavena)
09:29 PM Feature #5321: Introducing Numeric#exact? and Numeric#inexact?
Charles, this is from the documentation of BigDecimal: "If a computation results in a value which is too small to be represented as a BigDecimal within the currently specified limits of precision, zero must be returned.".
Thus the operat...
alexeymuranov (Alexey Muranov)
08:57 AM Feature #5321: Introducing Numeric#exact? and Numeric#inexact?
Why is BigDecimal considered inexact? Unlike a float, a value in a BigDrcimal is always represented exactly. The value itself may be and estimate for various reasons (irrational, repeating, ...), but that is a property of the value, not ... headius (Charles Nutter)
07:09 AM Feature #5321: Introducing Numeric#exact? and Numeric#inexact?
I like this proposal. -Alexey. alexeymuranov (Alexey Muranov)
05:53 PM Bug #5515 (Closed): Integer#quo(aFloat) の結果が Rational になる
Integer#quo(aFloat) の結果が Rational になる。
5.quo(2.0) #=> (5/2)
1.9.2 では Float になります。
tadf (tadayoshi funaba)
05:27 PM Feature #5514 (Feedback): Numeric への quotient と quotrem の追加
Ruby では余りを求めるために modulo (%) と remainder が提供されています
が、modulo には対応する div があり、またその組み合わせである divmod も
存在しますが remainder にはありません。そこで対応する quotient と
quotrem を追加することを提案します。
tadf (tadayoshi funaba)
05:23 PM Feature #5513 (Rejected): Numeric へ述語語の追加
現在の Numeric では、その表現の特徴について問合せる基本的な語が不足して
おり、プログラミングにおいて総称性の確保が難しくなっています。いくつか
の述語を追加することで、未知への数値表現への備えが出来、協調して働く基
盤が整うと思われます。
具体的には以下の述語を追加する事を提案します。
Numeric#rational?、Numeric#complex?、Numeric#float?
Numeric#exact?、Numeric#inexa...
tadf (tadayoshi funaba)
05:19 PM Feature #5512 (Rejected): Integer#/ の改訂
Integer#/ を Integer#quo の別名として定義しなおす事を提案します。
現在の Integer#/ はオペランドが整数である場合値が整数になります。整数を
与えた場合の結果だけを見て、あるいは整数ではない場合の結果だけを見て自
分の望み通りの結果を得たと思い込んでしまうかもしれません。
これついての対処として、Integer#div、または Integer#quo を利用するよう
啓蒙するなどいくつかの提案がありうるでしょうが、本質的...
tadf (tadayoshi funaba)
03:51 PM Revision 0bbb8e89 (git): * configure.in: check -fno-omit-frame-pointer acceptance and usage
under MinGW. [ruby-core:39957] [Bug #5407]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
luislavena (Luis Lavena)
03:18 PM Bug #5511 (Closed): "make test" failure on HP-UX/PA
Building 1.9.2 with svn revision at 33531 produces an error during "make test":
$ ./configure --disable-rpath
...
$ gmake
...
Generating RI...
Files: 513
Classes: 1086 ( 649 undocumented)
Constants: 1...
twwlogin (The Written Word Inc)
03:17 PM Revision 64d4f3a4 (git): * 2011-10-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:17 PM Revision 5c19f077 (git): * include/ruby/intern.h (rb_cloexec_fcntl_dupfd): declared.
* io.c (rb_cloexec_fcntl_dupfd): new function.
(nogvl_io_cntl): use rb_cloexec_fcntl_dupfd.
* process.c (move_fds_to_avoid_crash): use rb_cloexec_fcntl_dupfd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33575 b2dd03c8-39d4-4d...
akr (Akira Tanaka)
03:17 PM Bug #5510 (Closed): "make test" failure on HP-UX/IA
Building 1.9.2 with svn revision at 33531 produces an error during "make test":
$ ./configure --disable-rpath
...
$ gmake
...
Generating RI...
Files: 513
Classes: 1086 ( 649 undocumented)
Constants: 1...
twwlogin (The Written Word Inc)
01:48 PM Revision e7f8c038 (git): * configure.in: check pipe2.
* io.c (rb_cloexec_pipe): use pipe2 if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:34 PM Revision a3efca16 (git): * ruby.c (fill_standard_fds): use fstat() instead of fcntl(F_GETFD)
for MinGW. reported by Luis Lavena. [ruby-core:40526] [Bug #5516]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:13 PM Revision 0d2a92e0 (git): * include/ruby/intern.h (rb_cloexec_pipe): declared.
* io.c (rb_cloexec_pipe): new function.
(rb_pipe): use rb_cloexec_pipe.
* thread_pthread.c (rb_thread_create_timer_thread): use
rb_cloexec_pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33572 b2dd03c8-39d4-4d8f-98ff-823f...
akr (Akira Tanaka)
11:07 AM Revision 6e0ed044 (git): * io.c (rb_cloexec_dup): refine control flow.
(rb_cloexec_dup2): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:47 AM Revision 8f29ff7d (git): * 2011-10-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:47 AM Revision 2c1d1fb1 (git): Bump version
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yugui (Yuki Sonoda)
09:46 AM Revision 7c43d852 (git): * ruby.c (fill_standard_fds): new function to open closed standard
file descriptors.
(ruby_sysinit): call fill_standard_fds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
08:23 AM Feature #5474: keyword argument
Hi,
On 23 October 2011 14:53, Yusuke Endoh <mame@tsg.ne.jp> wrote:
> Feature #5474: keyword argument
It sounds great!
I agree mandatory keyword arguments should be positional arguments and
all parameters should not be treated as keyw...
Eregon (Benoit Daloze)
07:39 AM Feature #3289: Division of negative numbers
I think that division with always rounding towards 0 is not logical. Rounding towards the closest integer, going towards 0 if there are 2 integers at equal distance, sounds better to me. This would be symmetric with respect to exchanging... alexeymuranov (Alexey Muranov)
07:30 AM Feature #3653: Diferential behaviour of positives and negatives ranges as subindex of string or arrays.
I agree with this proposal. -Alexey. alexeymuranov (Alexey Muranov)
07:24 AM Feature #4541: Inconsistent Array.slice()
I better remove my previous comment, it was not a good idea. I agree that there seem to be an inconsistency between `[1,2,3][3..1] # => []` and `[1,2,3][4..1] # => nil`.
In my opinion, the confusion about the behavior of `Array#slice` ...
alexeymuranov (Alexey Muranov)
06:53 AM Bug #5243: VC 2010 Has stdint.h - Patch to Fix Build Files
Thanks! cfis (Charlie Savage)
01:50 AM Revision d67ac15c (git): * tool/rbinstall.rb (install_recursive, bin-comm): split mere
string not path name. [ruby-core:40462] [Bug #5492]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:47 AM Revision 54816d10 (git): * io.c (rb_cloexec_dup, rb_cloexec_dup2): CLOEXEC has been set if
dup3 succeeded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:02 AM Revision f0b021c0 (git): * io.c (rb_cloexec_dup): don't allocate standard file descriptors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:26 AM Bug #5508 (Closed): Is BigDecimal really not $SAFE?
Why does BigDecimal call SafeStringValue?
irb(main):001:0> $SAFE = 1; BigDecimal.new('1'.taint)
SecurityError: Insecure operation - new
from (irb):1:in `new'
from (irb):1
from /usr/bin/irb:12:in `<main>'
...
angdraug (Dmitry Borodaenko)

10/29/2011

11:30 PM Revision e745a03c (git): * io.c (rb_cloexec_dup2): don't set CLOEXEC for standard file
descriptors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:48 PM Revision 503e5c97 (git): * 2011-10-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:48 PM Revision cb9f3040 (git): * configure.in: check dup3.
* io.c (rb_cloexec_dup2): use dup3 if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:08 PM Bug #5243 (Closed): VC 2010 Has stdint.h - Patch to Fix Build Files
This issue was solved with changeset r33556.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/Makefile.sub (CONFIG_H): have stdint.h if VC2010. [Bug...
arton (Akio Tajima)
08:56 PM Bug #5243 (Assigned): VC 2010 Has stdint.h - Patch to Fix Build Files
I've reproduced the bug and found it's harmful (one can't avoid it).
The patch is not fit for x64, so I reconfigure it. Thanks.
arton (Akio Tajima)
03:49 PM Revision c1ad87aa (git): * 2011-10-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@33560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:49 PM Revision b146b430 (git): * configure.in (CXX): Set CXX when mkconfig.rb wants it defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@33559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:26 PM Bug #5497: Math.log10(10_000) error on HP-UX/PA
Yui NARUSE wrote:
> The Written Word Inc wrote:
> ...
(ia64)
p 4.0
4.0
(pa-risc)
p 4.0
4.0
> > (pa-risc)
> ...
```c
$ cat t.c
#include <math.h>
#include <stdio.h>
int main(void) {
printf("%f\n", log10(10000)...
twwlogin (The Written Word Inc)
02:29 PM Bug #5497: Math.log10(10_000) error on HP-UX/PA
The Written Word Inc wrote:
> (ia64)
> ...
Show the result of `p 4.0`.
> (pa-risc)
> ...
Build and run following C code:
```c
% cat f.c
#include <math.h>
#include <stdio.h>
int main(void) {
printf("%a\n", log10(1000...
naruse (Yui NARUSE)
02:56 PM Revision 71804183 (git): * ChangeLog: style fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
01:11 PM Revision 0a9cb21e (git): * include/ruby/intern.h (rb_cloexec_dup2): declared.
* io.c (rb_cloexec_dup2): new function.
(io_reopen): use rb_cloexec_dup2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:08 PM Revision 195fbd18 (git): * win32/Makefile.sub (CONFIG_H): have stdint.h if VC2010. [Bug #5243]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e arton (Akio Tajima)
11:59 AM Revision 54d7e826 (git): * io.c (rb_cloexec_dup): use F_DUPFD_CLOEXEC if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:58 AM Revision a9648d1e (git): add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:02 AM Revision 4ae2b925 (git): * include/ruby/intern.h (rb_cloexec_dup): declared.
* io.c (rb_cloexec_dup): new function.
(ruby_dup): use rb_cloexec_dup.
* ext/pty/pty.c (pty_getpty): use rb_cloexec_dup.
* ext/openssl/ossl_bio.c (ossl_obj2bio): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33553 b2dd0...
akr (Akira Tanaka)
09:05 AM Bug #5491 (Closed): build failure on Tru64 UNIX 5.1
This issue was solved with changeset r33546.
The Written Word, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread_pthread.h: no Structured Exception Handling ...
nobu (Nobuyoshi Nakada)
08:33 AM Bug #5491: build failure on Tru64 UNIX 5.1
Yes, that should work. twwlogin (The Written Word Inc)
07:12 AM Revision 3bffb5f3 (git): * ext/sdbm/_sdbm.c (sdbm_prep): use O_CLOEXEC if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:27 AM Revision baa2d74d (git): * io.c (rb_cloexec_open): use O_CLOEXEC if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:01 AM Revision da74bc75 (git): * process.c (ruby_setsid): use rb_cloexec_open.
(rb_daemon): ditto.
* ruby.c (load_file_internal): ditto.
* file.c (rb_file_s_truncate): ditto.
(file_load_ok): ditto.
* random.c (fill_random_seed): ditto.
* ext/pty/pty.c (chfunc): ditto.
(get_device_once): ditto.
* ext/io/con...
akr (Akira Tanaka)
02:33 AM Revision 3ae3cd74 (git): * include/ruby/intern.h (rb_cloexec_open): declared.
* io.c (fd_set_cloexec): extracted from rb_fd_set_cloexec.
(rb_cloexec_open): new function.
(sysopen_func): use rb_cloexec_open.
(rb_sysopen_internal): use rb_update_max_fd instead of
rb_fd_set_cloexec.
git-svn-id: svn+ssh://c...
akr (Akira Tanaka)
12:06 AM Revision d498620a (git): * ChangeLog: commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:05 AM Revision b9c3a33b (git): * 2011-10-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:05 AM Revision 2fd8753b (git): * thread_pthread.h: no Structured Exception Handling like macros.
[ruby-core:40432] [Bug #5491]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/28/2011

11:36 PM Feature #5505: BasicObject#__extend__
Ah, right I forgot about this... what do you call it? The "callback"?
It needs to be:
Enumerable.__send__(:extend_object, BasicObject.new)
but it worked.
@matz thanks that will work too --although with a little more meta-pr...
trans (Thomas Sawyer)
11:29 PM Feature #5505: BasicObject#__extend__
On Fri, Oct 28, 2011 at 3:17 PM, Yukihiro Matsumoto <matz@ruby-lang.org>wrote:

> o = BasicObject.new
> class <<o
> include Enumerable
> end
>
> should work.
>

It doesn't, but this does:

o = BasicObject.n...
aprescott (Adam Prescott)
11:17 PM Feature #5505 (Rejected): BasicObject#__extend__

o = BasicObject.new
class <<o
include Enumerable
end
should work.
matz (Yukihiro Matsumoto)
11:15 PM Feature #5505: BasicObject#__extend__
Try Kernel.__send__(:extend_object, BasicObject.new) nobu (Nobuyoshi Nakada)
11:07 PM Feature #5505 (Rejected): BasicObject#__extend__
Unless there is already some way to do it that I've overlooked, the it would be nice if there were still some way to extend an instance of BasicObject.
Probably the easiest way is defining #__extend__.
trans (Thomas Sawyer)
07:23 PM Bug #5486: rb_stat() doesn’t respect input encoding
On Fri, Oct 28, 2011 at 09:20, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:

> (11/10/28 15:35), Nikolai Weibull wrote:
>> Actually, it’s probably easier than that.  It can be done on a HFS+
>> filesystem (and probably any other, as...
now (Nikolai Weibull)
04:23 PM Bug #5486: rb_stat() doesn’t respect input encoding
Hi,

(11/10/28 15:35), Nikolai Weibull wrote:
> Actually, it’s probably easier than that. It can be done on a HFS+
> filesystem (and probably any other, as well) just as easily

It's not true.

> % echo $LC_CTYPE
> UT...
nobu (Nobuyoshi Nakada)
03:53 PM Bug #5486: rb_stat() doesn’t respect input encoding
On Fri, Oct 28, 2011 at 08:14, Nikolai Weibull <now@bitwi.se> wrote:
> On Fri, Oct 28, 2011 at 07:28, Usaku NAKAMURA <redmine@ruby-lang.org> wrote:
>
>> Sorry, I can't understand your point.
>> If you think there is a bug, would you...
now (Nikolai Weibull)
03:23 PM Bug #5486: rb_stat() doesn’t respect input encoding
On Fri, Oct 28, 2011 at 07:28, Usaku NAKAMURA <redmine@ruby-lang.org> wrote:

> Sorry, I can't understand your point.
> If you think there is a bug, would you show us the bug by code?

That’s hard to do, but name a file in an encod...
now (Nikolai Weibull)
02:28 PM Bug #5486: rb_stat() doesn’t respect input encoding
Sorry, I can't understand your point.
If you think there is a bug, would you show us the bug by code?
usa (Usaku NAKAMURA)
04:08 PM Bug #5497 (Closed): Math.log10(10_000) error on HP-UX/PA
I've built 1.9.2 from svn revision at 33531 on HP-UX/PA and HP-UX/IA. I'm getting two different results for Math.log10(10_000) depending on IA64 and PA-RISC:
(ia64)
p Math.log10(10_000)
4
(pa-risc)
p Math.log10(10...
twwlogin (The Written Word Inc)
03:54 PM Bug #5496: ext/bigdecimal build failure on HP-UX 11.23/IA, 11.31/IA
Ok, thanks. Looking at mkmf.log reveals that --disable-rpath is the solution. -R isn't applicable to cc/ld on HP-UX. Please close. twwlogin (The Written Word Inc)
03:02 PM Bug #5496 (Feedback): ext/bigdecimal build failure on HP-UX 11.23/IA, 11.31/IA
The patch is not acceptable.
Please show the mkmf.log file.
nobu (Nobuyoshi Nakada)
01:56 PM Bug #5496 (Rejected): ext/bigdecimal build failure on HP-UX 11.23/IA, 11.31/IA
Building 1.9.2 with svn revision at 33531 produces an error while building ext/bigdecimal:
$ ./configure
...
$ gmake
...
gmake[1]: Leaving directory `/opt/build/china/ruby-1.9.2/ext/-test-/string'
compiling bigdecimal
/opt...
twwlogin (The Written Word Inc)
02:43 PM Bug #5491: build failure on Tru64 UNIX 5.1
=begin
You mean this?
diff --git a/thread_pthread.h b/thread_pthread.h
index f180a79..b3e7c36 100644
--- a/thread_pthread.h
+++ b/thread_pthread.h
@@ -32,6 +32,11 @@ typedef struct native_thread_data_struct {

#...
nobu (Nobuyoshi Nakada)
01:36 PM Bug #5491: build failure on Tru64 UNIX 5.1
For compile.c, we have:
#include "ruby/ruby.h"
#include "vm_core.h"
#include "thread_pthread.h"
#include <pthread.h>
#include <pthread_exception.h>
#include <c_excpt.h>
So, if you #undef leave and...
twwlogin (The Written Word Inc)
02:35 PM Feature #5494: Proposal: Improved Finalizer Semantics
Nobuyoshi Nakada wrote:
> Even if the object has not been freed, other objects referred by the
> ...
Good point. It would have to re-MARK the object and its references, recursively, to be safe.
kstephens (Kurt Stephens)
02:16 PM Feature #5494 (Rejected): Proposal: Improved Finalizer Semantics
Even if the object has not been freed, other objects referred by the
object might be freed already. It has to sort topologically the
directed graph, even for simple cases. Not only this would be quite
expensive, cyclic references ca...
nobu (Nobuyoshi Nakada)
12:53 PM Feature #5494: Proposal: Improved Finalizer Semantics
Hi,

In message "Re: [ruby-core:40474] [ruby-trunk - Feature #5494][Open] Proposal: Improved Finalizer Semantics"
on Fri, 28 Oct 2011 12:20:38 +0900, Kurt Stephens <ks.ruby@kurtstephens.com> writes:

|This is a simpler pro...
matz (Yukihiro Matsumoto)
12:20 PM Feature #5494 (Rejected): Proposal: Improved Finalizer Semantics
Proposal: Improved Finalizer Semantics:
ObjectSpace.define_finalizer(object, proc):
** proc should have a single parameter, the object to be finalized, not its id.
When an object with a finalizer is no longer referenced (sweepable...
kstephens (Kurt Stephens)
01:25 PM Revision 27295f10 (git): add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:06 PM Revision 769fcd70 (git): * ext/sdbm/_sdbm.c: RCS $Id$ removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:56 AM Bug #5493: Commit r33357 breaks build on Debian/sparc
Ok, the story is probably more complicated than just this commit breaking it. I tried reverting r33357 in the latest SVN snapshot, and it still fails when configuring fiddle. jurij (Jurij Smakov)
07:14 AM Bug #5493 (Rejected): Commit r33357 breaks build on Debian/sparc
While trying to build the Ruby SVN nightly snapshot I found that it fails while configuring fiddle:
[...]
configuring digest/sha2
configuring dl
configuring dl/callback
configuring dl/win32
Failed to configure dl/win32. It will ...
jurij (Jurij Smakov)
03:11 AM Revision 96031a6d (git): A test for r33542.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:59 AM Feature #5474: keyword argument
On Thu, Oct 27, 2011 at 11:42 AM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
> You didn't know? ;)
>
> Anyway, isn't it better to show which default value was evaluated in
> the backtrace?

Yes, it definitely is. I would l...
headius (Charles Nutter)
01:53 AM Feature #5474: keyword argument
Hi,

(11/10/27 18:56), Charles Oliver Nutter wrote:
> On Thu, Oct 27, 2011 at 3:16 AM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
>> An alternative:
>> def foo(a: raise(ArgumentError))
>> end
>
> You are an evil, ev...
nobu (Nobuyoshi Nakada)
12:59 AM Feature #5474: keyword argument
Hi,

In message "Re: [ruby-core:40454] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Fri, 28 Oct 2011 00:16:33 +0900, Yusuke Endoh <mame@tsg.ne.jp> writes:

|BTW, a current optional parameter will be depr...
matz (Yukihiro Matsumoto)
12:53 AM Feature #5474: keyword argument
On Thu, Oct 27, 2011 at 17:16, Yusuke Endoh <mame@tsg.ne.jp> wrote:

> 2011/10/27 Yukihiro Matsumoto <matz@ruby-lang.org>:
>> Yes, there could be a language with that kind of design.  But Ruby
>> will not have mandatory keyword argu...
now (Nikolai Weibull)
12:23 AM Feature #5474: keyword argument
Hello,

2011/10/27 Yukihiro Matsumoto <matz@ruby-lang.org>:
> Yes, there could be a language with that kind of design. But Ruby
> will not have mandatory keyword arguments. It is the design choice I
> made already. Every ke...
mame (Yusuke Endoh)
02:30 AM Revision 615d5068 (git): * parse.y (parser_nextc): set encoding for the buffer of ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

10/27/2011

11:23 PM Feature #5474: keyword argument
Hi,

In message "Re: [ruby-core:40449] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Thu, 27 Oct 2011 18:56:51 +0900, Charles Oliver Nutter <headius@headius.com> writes:

|It's a contrived example, of cou...
matz (Yukihiro Matsumoto)
06:59 PM Feature #5474: keyword argument
On Thu, Oct 27, 2011 at 3:16 AM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
> (11/10/27 11:02), Charles Oliver Nutter wrote:
>> def foo(a: nil)
>>   raise ArgumentError, 'must pass value for a' unless a
>>   ..
>> end
>
> It sh...
headius (Charles Nutter)
06:29 PM Feature #5474: keyword argument
Hi,

(11/10/27 11:02), Charles Oliver Nutter wrote:
> Also, Evan pointed out to me that if Ruby doesn't support mandatory
> keyword arguments, you're going to see a *lot* of this pattern:
>
> def foo(a: nil)
> raise Arg...
nobu (Nobuyoshi Nakada)
11:23 AM Feature #5474: keyword argument
On Wed, Oct 26, 2011 at 7:30 PM, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> Yes, there could be a language with that kind of design.  But Ruby
> will not have mandatory keyword arguments.  It is the design choice I
> made alrea...
headius (Charles Nutter)
10:23 AM Feature #5474: keyword argument
On Wed, Oct 26, 2011 at 8:30 PM, Yukihiro Matsumoto <matz@ruby-lang.org>wrote:

> Hi,
>
> In message "Re: [ruby-core:40418] Re: [ruby-trunk - Feature
> #5474][Assigned] keyword argument"
> on Thu, 27 Oct 2011 04:03:52 +0...
jballanc (Joshua Ballanco)
09:53 AM Feature #5474: keyword argument
Hi,

In message "Re: [ruby-core:40418] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Thu, 27 Oct 2011 04:03:52 +0900, Joshua Ballanco <jballanc@gmail.com> writes:

|I think the point is that not every arg...
matz (Yukihiro Matsumoto)
07:53 AM Feature #5474: keyword argument
Hi,

In message "Re: [ruby-core:40414] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Thu, 27 Oct 2011 02:51:51 +0900, Charles Oliver Nutter <headius@headius.com> writes:

|Evan and I would like to see sup...
matz (Yukihiro Matsumoto)
07:23 AM Feature #5474: keyword argument
On Wed, Oct 26, 2011 at 2:08 PM, Yukihiro Matsumoto <matz@ruby-lang.org>wrote:

> Hi,
>
> In message "Re: [ruby-core:40414] Re: [ruby-trunk - Feature
> #5474][Assigned] keyword argument"
> on Thu, 27 Oct 2011 02:51:51 +0...
jballanc (Joshua Ballanco)
09:07 PM Revision 509ed0d9 (git): * ext/sdbm/_sdbm.c (sdbm_prep): set FD_CLOEXEC flags for file
descriptors.
(fd_set_cloexec): new function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
06:02 PM Revision a5a7e2cd (git): * vm_insnhelper.c (vm_call_cfunc): adding back useless hack. For some
reason, this fixes CFP errors on OS X 10.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
04:10 PM Bug #5490 (Closed): Bignum#div(0.0) raises FloatDomainError instead of ZeroDivisionError
This issue was solved with changeset r33536.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (rb_big_divide): raise ZeroDivisionError if divisor i...
nobu (Nobuyoshi Nakada)
10:31 AM Bug #5490 (Closed): Bignum#div(0.0) raises FloatDomainError instead of ZeroDivisionError
Bignum#div(0.0) raises FloatDomainError. Everything else raises ZeroDivisionError.
This should be fixed in both 1.9.3 and 2.0.0.
sasha:rubinius brian$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
sasha...
brixen (Brian Shirai)
03:37 PM Bug #5488 (Assigned): autoconf failure on HP-UX/PA
nobu (Nobuyoshi Nakada)
02:55 PM Bug #5488 (Closed): autoconf failure on HP-UX/PA
This issue was solved with changeset r33533.
The Written Word, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in (RUBY_STACK_GROW_DIRECTION): substitut...
nobu (Nobuyoshi Nakada)
07:41 AM Bug #5488 (Closed): autoconf failure on HP-UX/PA
On HP-UX/PA:
$ bzip2 -dc ruby-1.9.2-p290.tar.bz2 | tar xf -
$ cd ruby-1.9.2-p290
$ ./configure
...
checking size of struct stat.st_ino... SIZEOF_LONG
checking whether _SC_CLK_TCK is supported... yes
checking stack gr...
twwlogin (The Written Word Inc)
03:11 PM Revision 344191d1 (git): * 2011-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:11 PM Revision f8751046 (git): * ext/sdbm/_sdbm.c (sdbm_prep): refactored for less nesting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:04 PM Feature #5484: regexp comparison bug
I think this is from a policy of comparison, not a bug.
If you have a reason that Ruby change the policy, please show us.
We'll change the policy if it is reasonable.
naruse (Yui NARUSE)
03:00 PM Bug #5491: build failure on Tru64 UNIX 5.1
I understand the problem, but the patch is hard to merge.
What header includes c_excpt.h?
I want to undef them just after including a header.
naruse (Yui NARUSE)
11:37 AM Bug #5491 (Closed): build failure on Tru64 UNIX 5.1
Building 1.9.2 with latest svn revision at 33531 produces a build error because <c_except.h> defines leave and except:
/* definitions of keywords and intrinsic function names */
#ifndef __cplusplus
#define try ...
twwlogin (The Written Word Inc)
01:23 PM Feature #5482: Rubinius as basis for Ruby 2.0
I think it is more important for Ruby to be fast, expressive and easy to use
rather than filled with "interesting puzzles" but perhaps I am in a minority
there. In any case, I doubt that 99% of developers would care if callcc went
awa...
headius (Charles Nutter)
12:23 PM Feature #5482: Rubinius as basis for Ruby 2.0
Hello, Charles
2011/10/26 Charles Oliver Nutter <headius@headius.com>:
> On Tue, Oct 25, 2011 at 11:45 PM, Tim Felgentreff <tim@nada1.de> wrote:
> ...
That is not a partial continuation.
A shift should first evaluate the given bloc...
mame (Yusuke Endoh)
09:53 AM Bug #5487: popen3 + timeout regression in ruby 1.9
William Morgan <wmorgan-redmine@masanjin.net> wrote:
> Bug #5487: popen3 + timeout regression in ruby 1.9
> http://redmine.ruby-lang.org/issues/5487
>
> Wrapping Open3.popen3 in a Timeout::timeout block used to work in Ruby 1.8...
normalperson (Eric Wong)
07:26 AM Bug #5487 (Rejected): popen3 + timeout regression in ruby 1.9
Wrapping Open3.popen3 in a Timeout::timeout block used to work in Ruby 1.8, but doesn't work in 1.9:
w@masanjin:~$ cat timeout.rb
require 'timeout'
require 'open3'
Timeout::timeout(1) { Open3.popen3("sleep 100 && echo hi") { |i, ...
wmorgan (William Morgan)
09:28 AM Revision c1de5660 (git): * configure.in (RUBY_DEFINE_IF): revert r33534 partially to get
rid of AS_ECHO which is not available in autoconf 2.61.
[ruby-dev:44702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:10 AM Revision 723038b0 (git): * bignum.c (rb_big_divide): raise ZeroDivisionError if divisor is
zero, as well as Fixnum. [ruby-core:40429] [Bug #5490]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:10 AM Revision e344d8a4 (git): * test/ruby/test_bignum.rb: ensure constants to be Bignum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:56 AM Revision 1b4e1375 (git): * configure.in (RUBY_FUNC_ATTRIBUTE): unset temporary variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:55 AM Revision 9598856e (git): * configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as
shell variable name. based on the patch by The Written Word Inc. at
[ruby-core:40421]. [Bug #5488]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:59 AM Revision bafe8376 (git): * include/ruby/ruby.h (SIZE_MAX): define SIZE_MAX if not defined.
patched by The Written Word Inc. [ruby-core:40422] [Bug #5489]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

10/26/2011

11:49 PM Revision 2b7bbe18 (git): * ext/psych/parser.c: remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
11:43 PM Revision ca05a2af (git): * 2011-10-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:43 PM Revision 4fe2dace (git): * ext/openssl/extconf.rb: add -Wall flag by default when compiler is
GCC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
10:23 PM Feature #5341: Add SSL session reuse to Net::HTTP
On 10/26/2011 11:39 AM, Eric Hodel wrote:
> Net::HTTP objects can be reused. You may start and finish a
> connection as many times as you like (the net-http-persistent gem
> works this way).

OK, so it's just I was wrong. I ...
Anonymous
02:58 PM Feature #5341: Add SSL session reuse to Net::HTTP
Eric Hodel wrote:
> I will update the patch to check for the timeout, I did not know it existed.
> ...
I could imagine that OpenSSL itself already checks for a timeout. I'm not sure,
and we have no related tests for test_ssl_sessio...
MartinBosslet (Martin Bosslet)
11:49 AM Feature #5341: Add SSL session reuse to Net::HTTP
I think it is best to add SSL session reuse to Net::HTTP because it is very hard to add it at a higher layer without adding hooks to Net::HTTP.
Net::HTTP is great at making connections and reading and writing the HTTP protocol. I thi...
drbrain (Eric Hodel)
11:39 AM Feature #5341: Add SSL session reuse to Net::HTTP
=begin
Net::HTTP objects can be reused. You may start and finish a connection as many times as you like (the net-http-persistent gem works this way).
Currently the SSLSession can only be initialized once due to OpenSSL restrictions....
drbrain (Eric Hodel)
10:00 PM Bug #5486 (Closed): rb_stat() doesn’t respect input encoding
rb_stat() overrides the input strings encoding and applies one of various encodings through rb_str_encode_ospath(). This may be convenient for certain kinds of user input or input from a source file in a different encoding, but it isn’t... now (Nikolai Weibull)
05:53 PM Feature #5482: Rubinius as basis for Ruby 2.0
On Tue, Oct 25, 2011 at 11:45 PM, Tim Felgentreff <tim@nada1.de> wrote:
> Can we have partial continuations instead? They allow for much better
> optimization _and_ have been shown to be more powerful. shift/reset style
> continua...
headius (Charles Nutter)
01:53 PM Feature #5482: Rubinius as basis for Ruby 2.0
On Mon, Oct 24, 2011 at 9:58 PM, SASADA Koichi <ko1@atdot.net> wrote:

> (2011/10/25 12:46), Yusuke Endoh wrote:
> > Come back when all 1.9 features and callcc are implemented :-)
>
> Off topic:
> I plan to propose that remo...
Anonymous
07:23 AM Feature #5482: Rubinius as basis for Ruby 2.0
On Tue, Oct 25, 2011 at 5:15 PM, Eric Wong <normalperson@yhbt.net> wrote:
> More seriously, I agree that Ruby should be used whenever it makes sense
> and I feel MRI uses too much C.

I agree wholeheartedly. This is perhaps the ...
headius (Charles Nutter)
07:23 AM Feature #5482: Rubinius as basis for Ruby 2.0
Charles Nutter <headius@headius.com> wrote:
> I think we should roll back to Evan's original pure-Ruby
> implementation and get rid of all that nasty C++. After all, if we
> truly believe that Ruby makes software development more ...
normalperson (Eric Wong)
03:24 PM Bug #5483 (Closed): Pathname doesn’t deal with encodings properly
This issue was solved with changeset r33525.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* file.c (rb_file_join): honor input encodings than ASCII-8BIT...
nobu (Nobuyoshi Nakada)
02:53 PM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
Hi,

(11/10/25 9:34), Thomas Sawyer wrote:
> I wonder if
>
> str->:each_char
>
> Would be viable.

No.

1) it doesn't appear what it means well.

2) it caused hundreds of conflicts.

--
Nobu Nakada
nobu (Nobuyoshi Nakada)
10:43 AM Bug #5450 (Closed): rake 0.9.2.2 does not exist in rubygems.org
Sure, it exactly is our issue as I explained, but the problem I stated in the subject is fixed. It must be closed now. Thanks! nahi (Hiroshi Nakamura)
10:31 AM Bug #5450 (Third Party's Issue): rake 0.9.2.2 does not exist in rubygems.org
This particular case seems solved. nobu (Nobuyoshi Nakada)
08:12 AM Bug #5450: rake 0.9.2.2 does not exist in rubygems.org
I forgot to mention. I heard that drbrain helped to push the version. Thank you, Eric. nahi (Hiroshi Nakamura)
08:11 AM Bug #5450: rake 0.9.2.2 does not exist in rubygems.org
0.9.2.2 is pushed to rubygems.org at 22 Oct. Now it's not a release blocker for 1.9.3 and I changed the priority to 'Normal'.
For 2.0.0, this issue should be solved at #5481. For 1.9.3-pX, we still need a care.
nahi (Hiroshi Nakamura)
09:52 AM Feature #5481: Gemifying Ruby standard library
I really like the proposal. Just wanted to add one thought - if we add yet more power to the gem infrastructure, we should probably revisit the idea of offering code-signed gems. The theory exists [1], we could build on that. This might ... MartinBosslet (Martin Bosslet)
07:23 AM Feature #5481: Gemifying Ruby standard library
On Oct 25, 2011, at 8:13 AM, Trans wrote:
> I think it's time to accept that we are in an Internet world.

But we aren't.

There are many users of Ruby and RubyGems that can't access the internet from the computers they are using r...
drbrain (Eric Hodel)
07:23 AM Feature #5481: Gemifying Ruby standard library
On Oct 25, 2011, at 5:56 AM, Magnus Holm wrote:
> That would require internet connection. I think you should be able to
> install a complete version of Ruby without an internet connection.

The current proposal does not envision ins...
drbrain (Eric Hodel)
05:23 AM Feature #5481: Gemifying Ruby standard library
Le 25/10/2011 17:13, Trans a écrit :
> On Tue, Oct 25, 2011 at 8:56 AM, Magnus Holm<judofyr@gmail.com> wrote:
>> On Tue, Oct 25, 2011 at 14:45, Intransition<transfire@gmail.com> wrote:
>>>
>>>
>>> On Oct 25, 1:58 am, Lucas N...
sdaubert (Sylvain Daubert)
01:23 AM Feature #5481: Gemifying Ruby standard library
On 25/10/11 at 22:43 +0900, Yusuke Endoh wrote:
> Hello,
>
> 2011/10/25 Lucas Nussbaum <lucas@lucas-nussbaum.net>:
> > Instead, I would prefer a plan where the interpreter no longer releases with the stdlib, but just releases w...
lucas (Lucas Nussbaum)
01:23 AM Feature #5481: Gemifying Ruby standard library
On 26/10/11 at 00:13 +0900, Trans wrote:
> On Tue, Oct 25, 2011 at 8:56 AM, Magnus Holm <judofyr@gmail.com> wrote:
> > On Tue, Oct 25, 2011 at 14:45, Intransition <transfire@gmail.com> wrote:
> >>
> >>
> >> On Oct 25, 1:58 am,...
lucas (Lucas Nussbaum)
12:23 AM Feature #5481: Gemifying Ruby standard library
On Tue, Oct 25, 2011 at 8:56 AM, Magnus Holm <judofyr@gmail.com> wrote:
> On Tue, Oct 25, 2011 at 14:45, Intransition <transfire@gmail.com> wrote:
>>
>>
>> On Oct 25, 1:58 am, Lucas Nussbaum <lu...@lucas-nussbaum.net> wrote:
>>> Is...
trans (Thomas Sawyer)
08:23 AM Feature #5474: keyword argument
See below.

--
Evan Phoenix // evan@phx.io

> > My worry about Yusuke's current proposal is that it requires a Hash be allocated on the caller side to use the feature, which makes the usage of keyword arguments much more hea...
Anonymous
07:05 AM Revision d4299c2f (git): * 2011-10-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@33528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:05 AM Revision 2102e644 (git): * string.c (rb_str_partition, rb_str_rpartition)
(rb_str_start_with, rb_str_end_with): preserve the last match
data. [ruby-core:39671] [Bug #5351]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@33527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:53 AM Feature #5479: import StringIO into core, add String#to_io
On Tue, Oct 25, 2011 at 1:56 PM, Haase, Konstantin
<Konstantin.Haase@student.hpi.uni-potsdam.de> wrote:
> Maybe another idea would be to introduce a Streamable protocol/class/module, and add a to_stream method both to IO and StringI...
headius (Charles Nutter)
06:53 AM Feature #5479: import StringIO into core, add String#to_io
On Tue, Oct 25, 2011 at 1:35 PM, Aaron Patterson
<tenderlove@ruby-lang.org> wrote:
> On Wed, Oct 26, 2011 at 02:22:21AM +0900, Haase, Konstantin wrote:
>> My main request was to add String#to_io, as Aaron described, so this protocol ...
headius (Charles Nutter)
03:53 AM Feature #5479: import StringIO into core, add String#to_io
On Wed, Oct 26, 2011 at 02:22:21AM +0900, Haase, Konstantin wrote:
> My main request was to add String#to_io, as Aaron described, so this protocol can actually be used. This is the only reason why I proposed moving StringIO to core. We...
Anonymous
02:23 AM Feature #5479: import StringIO into core, add String#to_io
My main request was to add String#to_io, as Aaron described, so this protocol can actually be used. This is the only reason why I proposed moving StringIO to core. We could also add String#to_io as a monkey-patch to String in stringio i... rkh (Konstantin Haase)
02:23 AM Feature #5479: import StringIO into core, add String#to_io
On Tue, Oct 25, 2011 at 10:14:54PM +0900, Charles Nutter wrote:
>
> Issue #5479 has been updated by Charles Nutter.
>
>
> I assume the IO produced from a StringIO would not have a real file descriptor, since...it doesn't have a ...
Anonymous
06:24 AM Revision e15e5251 (git): * 2011-10-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:24 AM Revision cba2e89c (git): * file.c (rb_file_join): honor input encodings than ASCII-8BIT.
[ruby-core:40338] [Bug #5483]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:41 AM Bug #5485 (Closed): ERB html_escape should follow OWASP recommendations
Hi,
OWASP recommends that we escape single quotes and forward slashes before inserting them in to HTML. I would like to change ERB::Util.html_escape to do that.
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention...
tenderlovemaking (Aaron Patterson)
02:08 AM Feature #5484 (Closed): regexp comparison bug
Based on ri Regexp.eql?:
Equality---Two regexps are equal if their patterns are identical, they have
the same character set code, and their casefold? values are the same.
/abc/ == /abc/x #=> false
/abc/ == /abc/i #=> fa...
ddebernardy (Denis de Bernardy)

10/25/2011

11:23 PM Feature #5474: keyword argument
On Mon, Oct 24, 2011 at 12:12 AM, Evan Phoenix <evan@phx.io> wrote:
>> |An alternative design is to treat all parameters as keyword
>> |arguments (as Evan said in [ruby-core:40195]).
>> |
>> | def create_point(x, y, color = "white",...
headius (Charles Nutter)
10:53 PM Feature #5481: Gemifying Ruby standard library
Hello,

2011/10/25 Lucas Nussbaum <lucas@lucas-nussbaum.net>:
> Instead, I would prefer a plan where the interpreter no longer releases with the stdlib, but just releases with a "core lib". Then the user would install the stdlib a...
mame (Yusuke Endoh)
10:23 PM Feature #5481: Gemifying Ruby standard library
Hello, Eric

Thank you. Your explanation helped me understand.

--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:23 PM Feature #5481: Gemifying Ruby standard library
Hello,

2011/10/25 Hiroshi Nakamura <nakahiro@gmail.com>:
> Sure, I will. But please don't wait to post your comment now. I should
> be still missing some issues like 'autoload'. I'll try to summarize
> per-role advantages/dis...
mame (Yusuke Endoh)
09:59 PM Feature #5481: Gemifying Ruby standard library
On Tue, Oct 25, 2011 at 14:45, Intransition <transfire@gmail.com> wrote:
>
>
> On Oct 25, 1:58 am, Lucas Nussbaum <lu...@lucas-nussbaum.net> wrote:
>> Issue #5481 has been updated by Lucas Nussbaum.
>>
>> (With my Debian hat)
>> ...
judofyr (Magnus Holm)
09:53 PM Feature #5481: Gemifying Ruby standard library
On Oct 25, 1:58 am, Lucas Nussbaum <lu...@lucas-nussbaum.net> wrote:
> Issue #5481 has been updated by Lucas Nussbaum.
>
> (With my Debian hat)
> I don't really like the plan of having releases of libraries both with the interprete...
trans (Thomas Sawyer)
02:57 PM Feature #5481: Gemifying Ruby standard library
(With my Debian hat)
I don't really like the plan of having releases of libraries both with the interpreter and as separate gems. Duplicating distribution paths for libraries will make things very complex since there would be no single ...
lucas (Lucas Nussbaum)
01:53 PM Feature #5481: Gemifying Ruby standard library
On Oct 24, 2011, at 8:49 PM, Yusuke Endoh wrote:
> Hello,
>
> Could you summarize advantages (if any) and disadvantages
> (or additional work) from POV of each person?

I will describe my thoughts

> - user

Users can obtai...
drbrain (Eric Hodel)
01:23 PM Feature #5481: Gemifying Ruby standard library
Hi,

On Tue, Oct 25, 2011 at 12:49, Yusuke Endoh <mame@tsg.ne.jp> wrote:
> Could you summarize advantages (if any) and disadvantages
> (or additional work) from POV of each person?

Sure, I will. But please don't wait to pos...
nahi (Hiroshi Nakamura)
06:51 AM Feature #5481: Gemifying Ruby standard library
=begin
== Background
There was an awesome keynote by Aaron at RubyKaigi2011.
* RubyKaigi 2011 keynote by Aaron Patterson (tenderlove) / AT&T Interactive: ((<URL:http://vimeo.com/26507951>))
* Most relevant parts for this topic
...
nahi (Hiroshi Nakamura)
06:49 AM Feature #5481: Gemifying Ruby standard library
=begin
== Implementation
=== Install stdlibs as 'default gems'
* Newly created stdlib gems version scheme: ruby's version + '.n'(dot plus a number)
* ex. WEBrick 'default gem': 2.0.0.0, 2.0.0.1, ...
* Gems which supports ...
nahi (Hiroshi Nakamura)
06:44 AM Feature #5481 (Closed): Gemifying Ruby standard library
=begin
Up-to-date summary of this proposal is at ((<URL:https://bugs.ruby-lang.org/projects/ruby/wiki/StdlibGem>))
== Motivation
* ruby's release cycle is slow for some standard libraries;
* ex. security fix for WEBrick, xm...
nahi (Hiroshi Nakamura)
10:14 PM Feature #5479: import StringIO into core, add String#to_io
I assume the IO produced from a StringIO would not have a real file descriptor, since...it doesn't have a real file descriptor.
Could be done in JRuby using a ByteArrayInputStream. I'm not sure what it would mean to have read *and* wr...
headius (Charles Nutter)
09:58 PM Feature #5479 (Rejected): import StringIO into core, add String#to_io
You propose two different feature requests at once.
I reject the first one, "import StringIO into core", because it doesn't seem necessary.
I'm considering the second one.
nobu (Nobuyoshi Nakada)
04:02 AM Feature #5479 (Rejected): import StringIO into core, add String#to_io
Currently, a lot of APIs accept both String and IO instances. To differentiate what has been handed to those methods, the code often checks the object's class. However, from statements made by Matz at this years RubyConf it became clear ... rkh (Konstantin Haase)
09:59 PM Feature #5482: Rubinius as basis for Ruby 2.0
How about we run on the Dalvik "I swear I'm not a JVM" VM and call it even? I think it can even fork! headius (Charles Nutter)
03:23 PM Feature #5482: Rubinius as basis for Ruby 2.0
Charles Nutter wrote:
>
> Remove fork, the C extension API, and ObjectSpace, and JRuby can be the new Ruby 2.0!

Add the JVM to the list and I'm sold!


;)

(Sorry Could Not Resist)

Bill
spatulasnout (B Kelly)
02:25 PM Feature #5482: Rubinius as basis for Ruby 2.0
Remove fork, the C extension API, and ObjectSpace, and JRuby can be the new Ruby 2.0! headius (Charles Nutter)
01:59 PM Feature #5482: Rubinius as basis for Ruby 2.0
(2011/10/25 12:46), Yusuke Endoh wrote:
> Come back when all 1.9 features and callcc are implemented :-)

Off topic:
I plan to propose that removing callcc from 2.0.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
11:36 AM Feature #5482: Rubinius as basis for Ruby 2.0
I think we should roll back to Evan's original pure-Ruby implementation and get rid of all that nasty C++. After all, if we truly believe that Ruby makes software development more enjoyable and more productive, then it only stands to rea... headius (Charles Nutter)
11:22 AM Feature #5482: Rubinius as basis for Ruby 2.0
Cute.
+1.
kosaki (Motohiro KOSAKI)
09:46 AM Feature #5482 (Rejected): Rubinius as basis for Ruby 2.0
I'll give you three great reasons why:
1. It's Ruby in Ruby (mostly).
2. Ruby is better.
3. Read #1 and #2, again.
As Rubyists, if we truly believe that Ruby makes software development more enjoyable and more productive, then it ...
trans (Thomas Sawyer)
07:40 PM Feature #5341: Add SSL session reuse to Net::HTTP
According to this tweet, ext/openssl in ruby 1.9.1 or earlier didn't work well with Google's SSL false-start servers, right?
https://twitter.com/#!/drbrain/status/115945404830449664
Then it might be a bug that existed in old version ...
nahi (Hiroshi Nakamura)
06:01 PM Feature #5341: Add SSL session reuse to Net::HTTP
The patch does;
- Let HTTP object keeps last SSLSession and reuse it when it tries to connect next time.
- Initializes a SSLContext only at first connection.
Comments;
- Is Net::HTTP object made for reusing? Is '5.times { http.s...
nahi (Hiroshi Nakamura)
05:48 PM Bug #5483 (Closed): Pathname doesn’t deal with encodings properly
Encoding.find('filesystem') # => Windows-1252
(Pathname('//Server/Share'.encode('filesystem'))+'Entry'.encode('filesystem')).to_path.encoding # => ASCII-8BIT
This actually seems to be a problem with File.join, as File.join doesn’t re...
now (Nikolai Weibull)
03:01 PM Feature #5480: remove GServer from stdlib
Agree for removal as the reasons Konstantin listed, but we might need migration period. How others think?
Do we add deprecation warning in 1.9.3 from now? (and remove GServer at 2.0.)
NB: We should remove lib/xmlrpc/httpserver.rb whi...
nahi (Hiroshi Nakamura)
04:12 AM Feature #5480 (Closed): remove GServer from stdlib
=begin
I propose removing the gserver library from Ruby's stdlib.
People should not use it for the following reasons:
* It has no tests at all.
* It does something completely different than it claims to do (the docs say it manage...
rkh (Konstantin Haase)
02:47 PM Bug #5476: ruby 1.9.3_rc1 segfaults in test_fork.rb on HPPA
Ruby on hppa is broken because hppa (at least last time I checked) was using a LinuxThreads-based thread implementation instead of NPTL.
Maybe it should not crash, but I don't expect that you will reach a working state anyway.
lucas (Lucas Nussbaum)
06:03 AM Bug #5476: ruby 1.9.3_rc1 segfaults in test_fork.rb on HPPA
Please give me C level backtrace.
kosaki (Motohiro KOSAKI)
01:52 AM Bug #5476 (Closed): ruby 1.9.3_rc1 segfaults in test_fork.rb on HPPA
Running tests on HPPA results in a segmentation fault when running test_fork.rb.
The downstream bug report at https://bugs.gentoo.org/show_bug.cgi?id=388123 has all the details and the full build log.
#246 test_fork.rb:24:in `<top ...
hansdegraaff (Hans de Graaff)
12:54 PM Revision 49f6242b (git): * include/ruby/defines.h: use "__sparc" instead of "sparc" and
"__sparc__".
* dln.c: ditto.
[ruby-dev:44694]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:23 AM Bug #5475: r33507以降SolarisでPTYが使えない
On Mon, 24 Oct 2011 22:59:20 +0900
Tanaka Akira <akr@fsij.org> wrote:

> ついでに、dln.c に
> #if defined(sun) && defined(sparc)
> というのがあって気がついたんですが、もしかして sparc も __sparc とかのほうが
> いいですかね。
> (うぅむ。SPARC の ABI を見ても載っていなかった...)

...
Anonymous
09:43 AM Bug #5477 (Rejected): to_f function / multiplication bug
Yes, see also:
http://wiki.github.com/rdp/ruby_tutorials_core/ruby-talk-faq#floats_imprecise
http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems
drbrain (Eric Hodel)
03:42 AM Bug #5477: to_f function / multiplication bug
I have been educated that this is more a floating number calculation issue than an issue with ruby itself by guys on stackoverflow see http://stackoverflow.com/questions/7879606/ruby-to-f-bug-or-multiplication-operator-bug
This document...
notomodungwa (Noto Modungwa)
03:26 AM Bug #5477 (Rejected): to_f function / multiplication bug
This is posted on stack overflow but I thought I should report it here
Hi I just ran into an issue where ruby's to_f function is giving me inconsistent results.
ruby-1.9.2-head :026 > 8.45.to_f * 100 => 844.9999999999999
ruby-1.9....
notomodungwa (Noto Modungwa)
09:34 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
I wonder if
str->:each_char
Would be viable.
trans (Thomas Sawyer)
03:46 AM Feature #5478 (Open): Add syntax to import Set into core
Set is a central data structure. However, a lot of Ruby developers use arrays for situations where it would be more reasonable to use a set. One reason for that is that it is way easier to use Array than Set at the moment. Another one is... rkh (Konstantin Haase)

10/24/2011

11:23 PM Bug #5475: r33507以降SolarisでPTYが使えない
2011年10月24日22:26 Naohisa GOTO <ngoto@gen-info.osaka-u.ac.jp>:
>
> なお、Solaris 9 およびそれ以前では posix_openpt が存在しないらしいため、
> defined(HAVE_PTSNAME) のところも同様に対策する必要がある気がしますが、
> 未だにSolaris9を使っている人が新しいRubyを求めることは無いと信じたい。

まぁ、分かっているのに直さない...
akr (Akira Tanaka)
10:40 PM Bug #5475 (Closed): r33507以降SolarisでPTYが使えない
This issue was solved with changeset r33519.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/pty/pty.c (get_device_once): delay rb_fd_set_cloexec() u...
akr (Akira Tanaka)
10:29 PM Bug #5475: r33507以降SolarisでPTYが使えない
On Mon, 24 Oct 2011 18:43:39 +0900
Tanaka Akira <akr@fsij.org> wrote:

> とりあえずワークアランドとして以下のようにすると避けられるでしょうか。

回避できました。以下のように正常終了します。
% ruby -rpty -e 'PTY.spawn("/bin/cat") { |r,w,id| p r; p w; p id }'
#<File:/dev/pts/28>...
Anonymous
04:56 PM Bug #5475 (Closed): r33507以降SolarisでPTYが使えない
r33507以降、SolarisでPTYがまともに使えません。
% ruby -rpty -e 'PTY.spawn("/bin/cat") { |r,w,id| p r; p w; p id }'
を実行すると、
-e:1:in `spawn': can't get Master/Slave device (RuntimeError)
from -e:1:in `<main>'
のようになります。
make test-all では...
ngoto (Naohisa Goto)
09:35 PM Revision 06a8e95f (git): * 2011-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:35 PM Revision 430f4da0 (git): * re.c (match_aref): Use <code> around indexing examples to prevent
hyperlinks. [ruby-talk:389396]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:57 PM Revision 2bb54418 (git): * complex.c: use "__sun" instead of "__sun__" to detect SunOS.
* math.c: ditto.
* hash.c: ditto.
* atomic.h: ditto.
* ext/io/wait/wait.c: ditto.
[ruby-dev:44693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:53 PM Feature #5474: keyword argument
Hi,

In message "Re: [ruby-core:40299] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Mon, 24 Oct 2011 14:12:21 +0900, Evan Phoenix <evan@phx.io> writes:

|> | def create_point(x, y, color = "white", size ...
matz (Yukihiro Matsumoto)
09:53 AM Feature #5474: keyword argument
Hi,

In message "Re: [ruby-core:40290] [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Sun, 23 Oct 2011 21:53:58 +0900, Yusuke Endoh <mame@tsg.ne.jp> writes:

|- it raises an TypeError when unknown keyword is g...
matz (Yukihiro Matsumoto)
01:49 PM Revision b317a4cd (git): * io.c: use "__sun" instead of "sun" to detect SunOS.
* dln.c: ditto.
* cont.c: ditto.
* ext/sdbm/_sdbm.c: ditto.
[ruby-dev:44693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:40 PM Revision 5153fd2a (git): * ext/pty/pty.c (get_device_once): delay rb_fd_set_cloexec() until
grantpt() on Solaris. grantpt() doesn't work with CLOEXEC on
Solaris 10.
reported by Naohisa GOTO. [ruby-dev:44688] [Bug #5475]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:08 AM Revision be561cbe (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:23 AM Feature #3187: Allow dynamic Fiber stack size
Tomoyuki Chikanaga wrote:
> 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.
> ...
spatulasnout (B Kelly)
08:19 AM Bug #5237 (Closed): IO.copy_stream calls #read on an object infinitely many times
This issue was solved with changeset r33515.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (copy_stream_fallback_body): check nil for EOF of read me...
akr (Akira Tanaka)
06:41 AM Revision 9a82672c (git): Follow the error format changed by FreeBSD 9.
FreeBSD 8.2's last line is
"./configure: Can't open ./configure: No such file or directory\n""
but FreeBSD 9's is
"cannot open ./configure: No such file or directory\n"".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33517 b2dd03c8-...
naruse (Yui NARUSE)
06:16 AM Bug #5468: IPSocket#valid_v6? in ipaddr.rb contains incorrect regexps
=begin
'FF32:00FF:A12:34FF:FE56:7890::/96' is an IPv6 prefix, but Socket::AF_INET means IPv4 address. It works if I say Socket::AF_INET6.
$ ruby -v
ruby 1.9.4dev (2011-10-18 trunk 33473) [x86_64-openbsd4.9]
$ irb
irb(main):001...
kernigh (George Koehler)
 

Also available in: Atom