Project

General

Profile

Activity

From 08/20/2010 to 08/26/2010

08/26/2010

11:28 PM Feature #3447: argument delegation
Yuguiです
2010/6/17 Yukihiro Matsumoto <[email protected]>:
> が、もともとの動機とは別として、「`&`」1文字でそのコンテキスト
> ...
深い呼び出し階層でブロックを受け取るために、上位のメソッドが延々とブロックを引き渡し続けるっていうケースは実際にプログラムしていてよく出会います。ですから、このとき下位呼び出しの実引数に`&block`を足して、仮引数にも忘れずに`&block`を足してというの...
yugui (Yuki Sonoda)
11:15 PM Bug #3660: Trace events seem to be missing
=begin
still the case with ruby 1.9.3dev (2010-08-26 trunk 29104) [i386-mingw32]
=end
rogerdpack (Roger Pack)
11:14 PM Bug #3749 (Closed): -rtracer doesn't trace anymore
=begin
$ cat bad.rb

a = [1,2,3]
a.each{|n|
p n
}
$ ruby -vrtracer bad.rb
ruby 1.9.3dev (2010-08-26 trunk 29104) [i386-mingw32]
1
2
3
=end
rogerdpack (Roger Pack)
10:57 PM Revision 5b7ccc06 (git): * array.c (rb_ary_shuffle_bang): bail out from modification during
shuffle.
* array.c (rb_ary_sample): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:57 PM Bug #3745 (Closed): Typo in Array#shuffle! RDoc
=begin
This issue was solved with changeset r29105.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
08:32 PM Bug #3745 (Closed): Typo in Array#shuffle! RDoc
=begin
The example has a typo w.r.t PRNG argument.
=end
runpaint (Run Paint Run Run)
10:39 PM Bug #3480 (Rejected): gem_prelude: activation should accomodate for '=' and gem 'gem_name', 'version'
=begin
moving this feature request to rubygems proper and/or the faster_rubygems gem.
=end
rogerdpack (Roger Pack)
10:38 PM Feature #3465 (Rejected): improve gem_prelude's Quickloader's Gem.bin_path
=begin
moving this feature request to rubygems proper and/or the faster_rubygems gem.
=end
rogerdpack (Roger Pack)
09:55 PM Bug #3746 (Rejected): Incorrect Float subtraction
=begin
Read this.

What Every Computer Scientist Should Know About Floating-Point Arithmetic
http://docs.sun.com/source/806-3568/ncg_goldberg.html
=end
naruse (Yui NARUSE)
09:07 PM Bug #3746 (Rejected): Incorrect Float subtraction
=begin
This is copied from IRB:

ruby-1.9.2-p0 > 2.0 - 1.0
=> 1.0
ruby-1.9.2-p0 > 2.0 - 1.1
=> 0.8999999999999999
ruby-1.9.2-p0 > 2.0 - 1.2
=> 0.8
ruby-1.9.2-p0 > 2.0 - 1.3
=> 0.7
ruby-1.9.2-p0 > 2.0 - 1.4
...
dim (Dimitrij Denissenko)
08:16 PM Revision 6e08cd5e (git): * 2010-08-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:16 PM Revision 9eb72625 (git): * ext/pathname/pathname.c (path_sysopen): Pathname#sysopen translated
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:46 PM Bug #3742: failed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
=begin
> > このパッチのライセンスは Ruby's or 鬼車のライセンスとしてよいでしょうか。
>
> はい、Ruby's or 鬼車のライセンスでお願いします。

ありがとうございます。

> そのうちr29074含めて1.9.2にもバックポートしていただけると助かります。

ちょうどタイミングよく同じ問題を訴えてきた人がいたので、Backport #3743 というチケットにしています。
yugui さんよろしぅ
=...
naruse (Yui NARUSE)
01:53 PM Bug #3742: failed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
=begin
> このパッチのライセンスは Ruby's or 鬼車のライセンスとしてよいでしょうか。

はい、Ruby's or 鬼車のライセンスでお願いします。
そのうちr29074含めて1.9.2にもバックポートしていただけると助かります。
=end
beuniv (shintaro kuwamoto)
12:13 PM Bug #3742: failed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
=begin
追跡ありがとうございます。
regint.hはオリジナルの鬼車由来の部分だったので、intptr_t でコミットしました。

で、このバグはオリジナルの鬼車にも影響するので、うちの日記 <http://d.hatena.ne.jp/nurse/>あたりに
他の 5.9.2 に対する修正とともにまとめようと思っているのですが、
このパッチのライセンスは Ruby's or 鬼車のライセンスとしてよいでしょうか。
=end
naruse (Yui NARUSE)
10:57 AM Bug #3742 (Closed): failed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
=begin
This issue was solved with changeset r29102.
shintaro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
10:32 AM Bug #3742 (Assigned): failed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
=begin

=end
usa (Usaku NAKAMURA)
01:54 PM Revision 71cf670f (git): * array.c (rb_ary_shuffle): rdoc fix. argument name was missing.
a patch from Run Paint Run Run at [ruby-core:31848].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:50 PM Revision bafaff1f (git): * ext/pathname/pathname.c (path_readlines): Pathname#readlines
translated from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:41 AM Revision 0eb31be6 (git): * random.c (rb_random_int32): suppress warning on LP64 platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:27 AM Bug #3744 (Rejected): Fails to compile on OpenSolaris
=begin
I'm running RVM on a Joyent Accelerator which runs OpenSolaris. RVM fails to compile ruby 1.9.1 and 1.9.2 - the RVM team tell me this is a problem with Ruby rather than RVM. A full description and error log can be found at http:...
adamp83 (Adam Pennycuick)
01:50 AM Revision b3545895 (git): * regint.h (OnigStackIndex): the type should be intptr_t.
Original Oniguruma assumes the size of long and that of void *
are equal, but it's not true on LLP64 platform: mswin64.
originally patched by shintaro kuwamoto [ruby-dev:42133]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29102...
naruse (Yui NARUSE)
01:16 AM Revision 6ef6cbc4 (git): Creating dummy library for dl/fiddle tests on AIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Yutaka Kanemoto
12:49 AM Revision 7e4015e1 (git): * array.c (rb_ary_shuffle_bang): check number of argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:14 AM Revision 3dc6edf7 (git): * ext/bigdecimal/bigdecimal.c (Init_bigdecimal, rmpd_set_thread_local_exception_mode, VpGetException, VpSetException): thread-local exception mode.
* ext/bigdecimal/bigdecimal.c (Init_bigdecimal, rmpd_set_thread_local_precision_limit, VpGetPrecLimit, VpSetPrecLimit): thread-local precision limit.
* ext/bigdecimal/bigdecimal.c (Init_bigdecimal, rmpd_set_thread_local_rounding_mode, Vp...
Kenta Murata

08/25/2010

11:55 PM Bug #3737 (Rejected): DateTime#to_time doesn't preserve zone
=begin
not a bug

this is same as Time.parse:

Time.parse('2010-08-23T20:14:10+08:00')
#=> 2010-08-23 21:14:10 +0900
=end
tadf (tadayoshi funaba)
10:30 PM Revision 8554e163 (git): * array.c (rb_ary_{shuffle_bang,sample}): use Random class object.
* random.c (try_get_rnd): use default_rand for Random as same as
singleton methods.
* random.c (rb_random_real): check the range of result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:31 PM Bug #3742: failed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
=begin
次のパッチでテスト通るようになりました。

Index: ../regint.h
===================================================================
--- ../regint.h (リビジョン 29091)
+++ ../regint.h (作業コピー)
@@ -720,7 +720,7 @@
BBuf* mbuf; /* multi-byte ...
beuniv (shintaro kuwamoto)
01:23 PM Bug #3742 (Closed): failed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
=begin
http://redmine.ruby-lang.org/issues/show/3459 の続きです。
SEGVするのはr29074で修正していただいたので、そもそもの原因であるメモリ確保失敗のチケットを作っておきます。

Z:\trunk\build>nmake test-all TESTS=ruby/test_regexp.rb

Microsoft(R) Program Maintenance Utility Version...
beuniv (shintaro kuwamoto)
09:07 PM Feature #3447: argument delegation
遠藤です。
2010年8月25日3:23 SASADA Koichi <[email protected]>:
>  できれば,`VM_CALL_ARGS_BLOCKTRGH_BIT` を増やすんじゃなく
> ...
コメントありがとうございます。でも、見かけ上バリエーションを増やさない
ところで、`VM_CALL_ARGS_BLOCKTRGH_BIT` に結構異なる 2 つの意味を突っ込む
ことになる (スタックに `Proc` を載せる・載せないの違いがあるの...
mame (Yusuke Endoh)
03:23 AM Feature #3447: argument delegation
 ささだです.
 あまりに暑くて目が覚めました.
(2010/08/25 0:30), Yusuke ENDOH wrote:
> ~~~diff
> ...
 できれば,`VM_CALL_ARGS_BLOCKTRGH_BIT` を増やすんじゃなく
て,`VM_CALL_ARGS_BLOCKARG_BIT` だけど,blockiseq かなんかの値を特殊にし
ておくとか,そういう実装にしてもらえるといいんじゃないかと思います.
(命令オペランド...
ko1 (Koichi Sasada)
12:30 AM Feature #3447: argument delegation
遠藤です。
2010年6月17日6:31 Yukihiro Matsumoto <[email protected]>:
> が、もともとの動機とは別として、「`&`」1文字でそのコンテキスト
> ...
パッチを書いてみました。思ったより小さく書けました。
~~~ruby
def foo
yield
end
def bar
foo(&)
end
bar { p 1 } #=> 1
~~~
カッコを省略した場合、...
mame (Yusuke Endoh)
01:11 PM Revision 2034fe61 (git): * ext/pathname/pathname.c (path_binread): Pathname#binread translated
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:14 PM Revision 2531892c (git): reverted to r29091; r29092 breaks test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
11:22 AM Revision 00dcf07e (git): * random.c (rb_random_int32): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:31 AM Revision fd1022c0 (git): * random.c (rb_random_real): check the range of result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:00 AM Revision ae6a9009 (git): * array.c (rb_ary_{shuffle_bang,sample}): use Random class object.
* random.c (try_get_rnd): use default_rand for Random as same as
singleton methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:56 AM Revision 569d8219 (git): * array.c (rb_ary_sample): use frozen shared array to get rid of
reallocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:51 AM Bug #3741 (Closed): Remove Mention of Obsolete Method from Object#class RDoc
=begin
The documentation for Object#class refers to the obsolete--and removed--method Object#type. This patch is a fix.
=end
runpaint (Run Paint Run Run)
07:43 AM Feature #1122: request for: Object#try
=begin
Now we have rb_check_funcall(), this idiom is easier to realise in C than in Ruby. What's the next step here? More name suggestions? A patch? A call for further comments?
=end
runpaint (Run Paint Run Run)

08/24/2010

11:49 PM Feature #3346: __DIR__ revisted
=begin
Good to hear. __dir__ works for me if that is deemed better, though I concur that it inclines me to expect __FILE__ to be __file__ too. Also, I do not recall who suggested it, but an optional join parameter was once suggested too...
trans (Thomas Sawyer)
06:46 PM Revision c6465aee (git): * ext/dl/cfunc.c (rb_dlcfunc_call): workaround for VC9 for x64.
reported by kuwamoto shintaro in [ruby-dev:42125].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:24 PM Revision 031c0db7 (git): * 2010-08-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:24 PM Revision e0c56f76 (git): * ext/tk/tcltklib.c: add codes for Ruby/Tk-Kit which depends on recent
versions of kitgen for Tclkit (ready to use Mk4tcl or Vqtcl). And
support working on a file tree extracted from a VFS dataset on
Ruby/Tk-Kit. It's still experimental, because ext/tk/extconf.rb
can't make a Makefile for Ruby/Tk-Kit....
nagai (Hidetoshi Nagai)
05:24 PM Revision f9f6289b (git): * 2010-08-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:24 PM Revision bb897dc7 (git): * ext/tk/tcltklib.c: add codes for Ruby/Tk-Kit which depends on recent
versions of kitgen for Tclkit (ready to use Mk4tcl or Vqtcl). And
support working on a file tree extracted from a VFS dataset on
Ruby/Tk-Kit. It's still experimental, because ext/tk/extconf.rb
can't make a Makefile for Ruby/Tk-Kit....
nagai (Hidetoshi Nagai)
02:29 PM Revision 53081b87 (git): * .gitignore: updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
01:08 PM Revision f21230b4 (git): * ext/pathname/pathname.c (path_read): Pathname#read translated from
pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:57 AM Bug #3739: IO sets streams attached to pseudo-terminal devices to buffered
=begin
2010/8/24 Scott Thompson <[email protected]>:
> Bug #3739: IO sets streams attached to pseudo-terminal devices to buffered
> http://redmine.ruby-lang.org/issues/show/3739
>
> Author: Scott Thompson
> Status: Open, Priori...
akr (Akira Tanaka)
05:19 AM Bug #3739 (Rejected): IO sets streams attached to pseudo-terminal devices to buffered
=begin
In embedding ruby into an application I opened a pseduo-terminal using the system call "openpty".

I passed the file descriptor for one end of the pseudo terminal to IO::for_fd to create a Ruby IO object.

In the implem...
easco (Scott Thompson)
07:17 AM Feature #3649 (Closed): Array#sample, Array#shuffle, Array#shuffle! で使用する乱数生成器を指定するためにオプショナル引数を追加する
=begin
This issue was solved with changeset r29083.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
06:07 AM Bug #3703 (Closed): ChangeLog too big.
=begin
This issue was solved with changeset r29080.
Shyouhei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
05:01 AM Bug #3738 (Closed): Invalid Line Number in Unused Variable Warning
=begin
run@paint:/tmp → cat unused.rb
def unused *x
self.class.send(:define_method, :m) {|*x| }
end
run@paint:/tmp → ruby -v unused.rb
ruby 1.9.3dev (2010-08-19 trunk 29056) [i686-linux]
unused.rb:2: warni...
runpaint (Run Paint Run Run)
03:27 AM Bug #3737 (Rejected): DateTime#to_time doesn't preserve zone
=begin
Why does DateTime#to_time doesn't preserve the time zone but convert the timestamp to local time zone?

d = DateTime.new(2010, 8, 23, 20, 14, 10, '+08:00')
puts d # => 2010-08-23T20:14:10+08:00

t = d.to_time
puts t #...
janfri (Jan Friedrich)
02:56 AM Feature #3714: Add getters for Enumerator
=begin
The information's presence in #inspect output implies its utility. It is a nod to symmetry to allow the arguments with which the enumerator was instantiated to be retrieved subsequently. However, the selector named 'method' is pr...
runpaint (Run Paint Run Run)
02:44 AM Feature #3715: Enumerator#size and #size=
=begin
>> I find the semantics of Enumerator#size's block argument confusing. Maybe
> if it was called "count" instead which is also a verb, it would less
> confusing?

I don't think so. As Benoit notes, Enumerator already responds...
runpaint (Run Paint Run Run)
01:11 AM Revision f2ff3eb6 (git): * configure.in: read API version from include/ruby/version.h.
* {bcc,win}32/setup.mak (-version-): ditto.
* version.h (RUBY_LIB_VERSION): use API version numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:23 AM Bug #3736 (Closed): Complex#argがエラーになることがある
=begin
[ruby-dev:42106] にあるようにエラーになることがある。

Complex(-0.0, 0.0).arg
Math::DomainError: Numerical argument is out of domain - "atan2"
from (irb):3:in `arg'
from (irb):3
from ./bin/irb:12:in `<main>'
=end
tadf (tadayoshi funaba)

08/23/2010

10:37 PM Bug #3706 (Closed): dependency from version.o to version.h
=begin
This issue was solved with changeset r29076.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
10:07 PM Revision 2f6c0e3b (git): * array.c (rb_ary_shuffle_bang, rb_ary_sample): add optional
argument random. [ruby-dev:41923] [EXPERIMENTAL]
* random.c (rb_random_{int32,real,bytes}): fallback to normal
method invocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:08 PM Revision 89339af9 (git): * include/ruby/version.h (RUBY_API_VERSION_*): renamed and moved
from version.h. [ruby-dev:42103]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:03 PM Revision 0d5b1718 (git): * doc/ChangeLog-1.9.3: mistake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:58 PM Revision 4be11cde (git): * ChangeLog: flushed. [ruby-dev:42050]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:22 PM Revision e586e054 (git): * 2010-08-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:22 PM Revision af8cae1e (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): to_f must underflow when the exponent is less than DBL_MIN_10_EXP - BASE_FIG.
* test/bigdecimal/test_bigdecimal.rb (test_to_f): added test for the above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
03:22 PM Bug #3726: require degradation from 1.9.1
=begin
Some bugs are called "features" ;-D
Anyway, faster-rubygems do the job. Perhaps, some ideas from it could be incorparated into the rubygems?
=end
funny_falcon (Yura Sokolov)
02:16 PM Revision 526d246f (git): * ext/pathname/pathname.c (path_each_line): Pathname#each_line
translated from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:31 PM Revision 645114b2 (git): * common.mk (version.o): depends on both of version.h and
include/ruby/version.h. [ruby-dev:42063]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:37 PM Bug #3459 (Closed): test_regexp.rb Segmentation fault on x64-mswin64
=begin
This issue was solved with changeset r29074.
shintaro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
04:12 AM Revision 298a6e1c (git): * backport r29071 from ruby_1_8;
* ext/openssl/ossl_asn1.c (obj_to_asn1bool): fixed ASN1::Boolean
encoding issue for OpenSSL 1.0.0 compatibility.
ASN1::Boolean.new(false).to_der wrongly generated "\1\1\377" which
means 'true'.
...
Hiroshi Nakamura
03:32 AM Revision d078f51f (git): * re.c (rb_reg_search): fix: 4th argument should be regexp
object. patched by shintaro kuwamoto [ruby-dev:41667] #3459
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:19 AM Revision 815ab029 (git): * util.c (ruby_strtod): make sure to have digit-sequence after 'p'
for hexadecimal-floating-constant. [ruby-dev:42105]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:06 AM Revision 06625fd8 (git): * 2010-08-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 AM Revision 8d764960 (git): * ext/openssl/ossl_asn1.c (obj_to_asn1bool): fixed ASN1::Boolean
encoding issue for OpenSSL 1.0.0 compatibility.
ASN1::Boolean.new(false).to_der wrongly generated "\1\1\377" which
means 'true'.
ASN1_TYPE_set of OpenSSL <= 0.9.8 treats value 0x100 as 'false' but
...
Hiroshi Nakamura
02:15 AM Bug #3734 (Assigned): Float('0xf.fp') がエラーにならない
=begin

=end
naruse (Yui NARUSE)
12:49 AM Bug #3734 (Closed): Float('0xf.fp') がエラーにならない
=begin
Float('0xf.fp') がエラーにならない。

$ ./ruby -e "p Float('0xf.fp')"
15.9375

$ ./ruby -e "p Float('0xf.fq')"
-e:1:in `Float': invalid value for Float(): "0xf.fq" (ArgumentError)
from -e:1:in `<main>'

$ ./ruby -e "p Fl...
tadf (tadayoshi funaba)
12:24 AM Bug #3687 (Closed): Date#rfc3339 does not include time, which breaks Date._rfc3339
=begin

=end
tadf (tadayoshi funaba)

08/22/2010

11:56 PM Bug #3726: require degradation from 1.9.1
=begin

On 22 Aug 2010, at 03:25, Yura Sokolov wrote:

> Issue #3726 has been updated by Yura Sokolov.
>
>
>> It is also worth noting that this is actually measuring the load time for rubygems itself.
>
> I understood it.
> ...
raggi (James Tucker)
05:30 PM Bug #3726: require degradation from 1.9.1
=begin
Well, faster-rubygems seems to do the job. Thank you, Roger.
=end
funny_falcon (Yura Sokolov)
03:19 PM Bug #3726: require degradation from 1.9.1
=begin
> It is also worth noting that this is actually measuring the load time for rubygems itself.

I understand it.

I have shell scripts running by schedule, and some cgi scripts, and they runs much slower under 1.9.2 than under ...
funny_falcon (Yura Sokolov)
11:31 PM Bug #3693: visibility hidden functions
=begin
 ささだです.

 SEGV バグなので,1.9.2 にバックポートして頂ければと思います.

(2010/08/14 18:17), Narihiro Nakamura wrote:
> チケット #3693 が更新されました。 (by Narihiro Nakamura)
>
>
> nari です。
>
> 中田さんの修正のおかげで ext/objspace/objspace.c が動くようになったので
> テストとバグ...
ko1 (Koichi Sasada)
09:10 PM Bug #3678: CMath.sqrt(1.i) results to 0.0+0.0i
=begin
This bug still exists in ruby 1.9.2p0.

I think changeset r28964 should be backported.
=end
phasis68 (Heesob Park)
06:26 PM Bug #3733: $SAFE==1環境下でtaintな文字列のFile.expand_path
=begin
ただただしです。

ちょっと追いかけてみました。tmpdir.rbの実装が変わって、$SAFE > 0の
時に常にEtc.systmpdirを使うようになっていて、これがtaintな文字列を
返すためみたいです。

以前「/tmpは危険とみなす」ような話があったと思うので、これは意図的?

tmpdir.rb内のDir::tmpdirで、@@systmpdir.unraintとすれば動くようにな
りましたが、たぶんこれ...
tdtds (Tadashi TADA)
05:50 PM Bug #3733 (Closed): $SAFE==1環境下でtaintな文字列のFile.expand_path
=begin
ただただしです。

$SAFEが1な環境下で、taintな文字列をFile.expand_pathにかけると、
Insecure operationになります。1.8では発生しませんでした。

% ruby18 -ve '$SAFE=1;File.expand_path(".".taint)'
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

% ruby19 -ve...
tdtds (Tadashi TADA)
05:36 PM Feature #3731: Easier Embedding API for Ruby
Dear Asher,
Well, I certainly agree documentation should be improved for this use case! :)
However, the problem with what you suggest is that it doesn't work more than once.
For example; I get a segmentation violation (crash) w...
Beoran (Beoran Aegul)
07:58 AM Feature #3731: Easier Embedding API for Ruby
What is difficult about this?
Example:
```c
#include <ruby.h>
int main( int argc __attribute__((unused)), char *argv[] __attribute__((unused)) ) {

ruby_init();

// Ruby Options are just like /usr/bin/ruby
// interpr...
asher (Asher Haig)
07:16 AM Feature #3731 (Assigned): Easier Embedding API for Ruby
=begin
With Ruby 1.9, it has become more difficult to embed Ruby in a C application correctly.
It would be nice if there was a clearly documented and simple C API to embed ruby in C programs.
I know Ruby was not designed from the ...
Beoran (Beoran Aegul)
03:24 PM Revision 54f34409 (git): * 2010-08-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:24 PM Revision 9d2025c8 (git): * lib/date.rb, lib/date/format.rb: [ruby-core:31695]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
09:17 AM Bug #3721 (Closed): Unsigned formats broken in 1.9.2's unpack
=begin
This issue was solved with changeset r29068.
Daniel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
akr (Akira Tanaka)
08:11 AM Bug #3721: Unsigned formats broken in 1.9.2's unpack
=begin
Thanks, the patch seems to fix it!
Perhaps it's worthwhile to extend the "make test" suite of self-tests to verify the expected behavior of the unpack method?
=end
Noxerus (D. G.)
03:26 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
=begin
Hi,

I am attaching my patch rebased against the new Ruby 1.9.2p0 release.

Should I just continue rebasing my patch against Ruby trunk/releases
periodically like this until someone really considers this patch again?
...
sunaku (Suraj Kurapati)
12:10 AM Revision b25bda45 (git): * include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.
reported by Daniel Gutmanas. [ruby-core:31778]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

08/21/2010

11:30 PM Feature #3714: Add getters for Enumerator
=begin
Hi,

On 18 August 2010 21:51, Marc-Andre Lafortune <[email protected]> wrote:
> For sake of completeness and introspection, it could be useful to have access to them.

Do you have any idea for a use case ?

Would it al...
Eregon (Benoit Daloze)
11:15 PM Feature #3715: Enumerator#size and #size=
=begin
Hi,

On 18 August 2010 22:02, Marc-Andre Lafortune <[email protected]> wrote:
> It would be useful to be able to ask an Enumerator for the number of times it will yield, without having to actually iterate it. [...]
> This...
Eregon (Benoit Daloze)
01:43 PM Feature #3715: Enumerator#size and #size=
=begin
Hi,

On Thu, Aug 19, 2010 at 9:08 PM, Run Paint Run Run <[email protected]> wrote:
> An enumerator is effectively immutable.

Indeed, it would be better to specify the size (value or proc) at creation time. I sugge...
marcandre (Marc-Andre Lafortune)
09:46 PM Revision 119da02e (git): * array.c (RAND_UPTO): macro for random number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:55 PM Revision 6eb92276 (git): * configure.in: fix typo. a patch from Eric Wong at
[ruby-core:31810].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:19 PM Bug #2420 (Open): super call may use wrong receiver object
=begin

=end
wanabe (_ wanabe)
07:07 PM Bug #2420 (Closed): super call may use wrong receiver object
=begin
This issue was solved with changeset r29063.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
wanabe (_ wanabe)
07:07 PM Bug #2502 (Closed): strange behavior of anonymous class inside a proc
=begin
This issue was solved with changeset r29063.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
wanabe (_ wanabe)
07:07 PM Bug #3136 (Closed): reuse of singleton method definition causes SEGV
=begin
This issue was solved with changeset r29063.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
wanabe (_ wanabe)
02:38 PM Revision df5f6825 (git): * test/ruby/test_super.rb: add test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wanabe (_ wanabe)
01:19 PM Bug #3730 (Closed): invalid sed invocation breaks extra LDFLAGS
=begin
sed needs the '-e' flag when there are multiple arguments passed to it. This
was introduced in r28626 in trunk and r28781 in 1.9.2 and breaks my
normal way of linking libtcmalloc_minimal:

I get this error from ./configu...
normalperson (Eric Wong)
11:10 AM Revision 72c811a3 (git): * vm.c: add missing prototype of rb_iseq_clone for r29063.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:00 AM Revision d1b77f5e (git): * vm.c (vm_define_method): copy iseq to avoid overwriting iseq->klass.
#2502, #3136. see #2420.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
wanabe (_ wanabe)
08:37 AM Revision a161f124 (git): * 2010-08-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:37 AM Revision 86b26898 (git): * ext/pathname/pathname.c (path_split): Pathname#split translated from
pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:38 AM Bug #3728 (Closed): IO.select is not documented.
=begin
Go here: http://ruby-doc.org/ruby-1.9/index.html

Click the IO class and the select method. It links to Kernel#select which also appears to have no documentation.
=end
mperham (Mike Perham)
03:35 AM Bug #3722: segfault in rb_iterate (1.9.3, r29057)
=begin
I started tearing everything apart and came up with this minimal case:

% ruby --version
ruby 1.9.3dev (2010-08-19 trunk 29056) [x86_64-linux]

% cat fail.rb
require 'profile'
class A
include Enumerable

...
Cezary (Cezary Baginski)
02:45 AM Bug #3723: Remove unused control frame variable: rb_control_frame_t.block_iseq
=begin
I apologise, I did not understand the connection between rb_control_frame_t and rb_block_t. I see now that these macros are used to access rb_control_frame_t members via a rb_block_t:

vm_core.h:
#define RUBY_VM_GET_BLOCK_P...
pweldon (Peter Weldon)
02:16 AM Bug #3726: require degradation from 1.9.1
=begin
It is also worth noting that this is actually measuring the load time for rubygems itself.

A more accurate representation of the speed of require would come from first loading rubygems explicitly.

require 'rubygems'

Prof...
raggi (James Tucker)
02:12 AM Bug #3726: require degradation from 1.9.1
=begin
This isn't degradation, it's actually correct behaviour. RubyGems can be (and will be) optimised over time, but the old performance was reliant on very incorrect semantics that are not acceptable for production use.
=end
raggi (James Tucker)
12:49 AM Bug #3726: require degradation from 1.9.1
=begin
This is probably because it no longer uses gem_prelude "as much" in 1.9.2
If this is the case and you want the old speed back you could use the faster_rubygems gem.
=end
rogerdpack (Roger Pack)
01:58 AM Feature #3727 (Closed): rb_f_require_relative not included in Ruby API
=begin
Now that Ruby no longer includes the current directory in $: as of Ruby 1.9.2, those of us using the C API cannot use rb_require() to require a file in the same directory as our native code without adding the current directory t...
jeffshantz (Jeff Shantz)

08/20/2010

10:51 PM Bug #3726 (Closed): require degradation from 1.9.1
=begin
I have two simultaneous installation of ruby 1.9.1 and ruby 1.9.2.
There are installed gems ( pg in particular ).

Having file 5.rb containing

require 'pg'

i have following results:

For ruby 1.9.1:

# ...
funny_falcon (Yura Sokolov)
06:39 PM Bug #3723 (Rejected): Remove unused control frame variable: rb_control_frame_t.block_iseq
=begin
I talked this with ko1.
It is used from rb_block_t.iseq, so it can't be removed.
=end
naruse (Yui NARUSE)
02:09 PM Bug #3723 (Assigned): Remove unused control frame variable: rb_control_frame_t.block_iseq
=begin
As you said, it seems useless variable.

But if block_iseq of rb_control_frame_t is simply removed, it breaks ABI compatibility.

I assign this to ko1.
=end
naruse (Yui NARUSE)
10:25 AM Bug #3723 (Rejected): Remove unused control frame variable: rb_control_frame_t.block_iseq
=begin
rb_control_frame_t.block_iseq does not appear to serve any purpose and can possibly be removed.
=end
pweldon (Peter Weldon)
03:11 PM Bug #3150: net/https peer verification doesn't do anything
=begin
On Fri, Aug 20, 2010 at 07:12:47AM +0900, Hiroshi NAKAMURA wrote:
> Issue #3150 has been updated by Hiroshi NAKAMURA.
>
> Assigned to set to Hiroshi NAKAMURA
>
> Anyone can reproduce this? On Snow Leopard only? It must be ...
tenderlovemaking (Aaron Patterson)
07:10 AM Bug #3150: net/https peer verification doesn't do anything
=begin
Anyone can reproduce this? On Snow Leopard only? It must be critical issue if it still exists.
=end
nahi (Hiroshi Nakamura)
02:17 PM Bug #3718 (Closed): [doc] ri doesn't document Object#<=>
=begin
This issue was solved with changeset r29060.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
01:25 PM Feature #3715: Enumerator#size and #size=
=begin
Hi,

In message "Re: [ruby-core:31785] [Feature #3715] Enumerator#size and #size="
on Fri, 20 Aug 2010 10:08:44 +0900, Run Paint Run Run <[email protected]> writes:

|An enumerator is effectively immutable. The exist...
matz (Yukihiro Matsumoto)
10:08 AM Feature #3715: Enumerator#size and #size=
=begin
An enumerator is effectively immutable. The existence of #size= and potentially invoking a Proc for each call to #size, implies that its maximum size will change over the course of the iteration. Is this likely? If not, we can re...
runpaint (Run Paint Run Run)
10:41 AM Bug #3724 (Third Party's Issue): instance_variables comparison not working with symbol ?
=begin

=end
nobu (Nobuyoshi Nakada)
10:37 AM Bug #3724: instance_variables comparison not working with symbol ?
=begin
OK. it's because I enabled Wirble in IRB! I should report this to Wirble instead :)

ruby-1.9.1-p378 > a = :@ok
=> :ok

My bad
=end
fridim (Guillaume Coré)
10:31 AM Bug #3724 (Third Party's Issue): instance_variables comparison not working with symbol ?
=begin
ruby-1.9.1-p378 > class A; attr_accessor :ok; end
=> nil
ruby-1.9.1-p378 > a = A.new
=> #<A:0x8d2b0b8>
ruby-1.9.1-p378 > a.ok = 2
=> 2
ruby-1.9.1-p378 > a.instance_variables
=> [:ok]
ruby-1.9.1-p378 > a.in...
fridim (Guillaume Coré)
09:53 AM Bug #3721: Unsigned formats broken in 1.9.2's unpack
=begin
2010/8/20 Daniel Gutmanas <[email protected]>:
> Bug #3721: Unsigned formats broken in 1.9.2's unpack
> http://redmine.ruby-lang.org/issues/show/3721
>
> Author: Daniel Gutmanas
> Status: Open, Priority: Normal
> ruby -...
akr (Akira Tanaka)
08:49 AM Bug #3721 (Assigned): Unsigned formats broken in 1.9.2's unpack
=begin

=end
nobu (Nobuyoshi Nakada)
08:23 AM Bug #3721: Unsigned formats broken in 1.9.2's unpack
=begin
Wrapping right now RubyInstaller 1.9.2-p0 release, but will fire a x64 compilation with GCC and report back in a few hours.
=end
luislavena (Luis Lavena)
08:20 AM Bug #3721: Unsigned formats broken in 1.9.2's unpack
=begin
Yes, 4294967295 is the expected result.

I've just tried the same code in a 32-bit build (ruby 1.9.2p0 (2010-08-18 revision 29036) [i386-mswin32_100]), and it also gives the correct result:
"\xFF\xFF\xFF\xFF".unpack(?V) => ...
Noxerus (D. G.)
08:02 AM Bug #3721: Unsigned formats broken in 1.9.2's unpack
=begin
Is this the expected result?

ruby.exe -ve 'puts "\xFF\xFF\xFF\xFF".unpack(?V)'
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
4294967295

If so, then GCC compiled Ruby works.
=end
luislavena (Luis Lavena)
07:59 AM Bug #3721 (Closed): Unsigned formats broken in 1.9.2's unpack
=begin
When specifying the V format code, unpack should treat the four bytes as an unsigned long integer. As can be seen in the following example, it treats it as a signed integer instead:
"\xFF\xFF\xFF\xFF".unpack(?V) => [-1]
The s...
Noxerus (D. G.)
08:49 AM Bug #3722 (Closed): segfault in rb_iterate (1.9.3, r29057)
=begin
Reproducible every time while running bundler + cucumber + rprofile on a private rails project
(hard to reduce).

The second attached contains a short gdb session using Ruby with -g3/-O0/-ggdb.

I know this isn't much, ...
Cezary (Cezary Baginski)
07:13 AM Feature #2456: It is better to let user to select particular ssl protocol easily.
=begin
To administrator: please change the target project of this ticket to ... "Ruby"? or anywhere I can handle.
=end
nahi (Hiroshi Nakamura)
05:13 AM Revision b88a5027 (git): Add rdoc about Kernel#<=> [ruby-core:31770]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:40 AM Revision fedc3756 (git): * 2010-08-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:40 AM Revision 19fb560d (git): * ext/pathname/pathname.c (path_expand_path): Pathname#expand_path
translated from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
 

Also available in: Atom