Project

General

Profile

Activity

From 11/01/2012 to 11/07/2012

11/07/2012

11:46 PM Bug #7081 (Assigned): GServer orphaned threads lead to resource exhaustion
stevegoobermanhill (stephen gooberman-hill) wrote:
> Hi,
> ...
As you know, there is no maintainer for GServer.
(I really want to remove GServer...)
So, I'd like to apply a minimum patch for 2.0.0. How about this?
diff --git a/li...
mame (Yusuke Endoh)
11:44 PM Bug #7303: Logger fails on log rotation in Windows (log shifting failed. Permission denied)
Addition to my previous post:
require 'fileutils' is needed at the beginning of logger.rb, if using FileUtils.cp().
pink-ink (Herman Munster)
11:40 PM Bug #7303 (Closed): Logger fails on log rotation in Windows (log shifting failed. Permission denied)
I have the problem that the logger fails in rotating the log file (daily) with Ruby 1.9.3 in Windows 7.
The cause is, that the log file is open and shall be renamed.
This results in an error "log shifting failed. Permission denied".
...
pink-ink (Herman Munster)
11:38 PM Bug #7302: r37497 changes rb_enumeratorize without NEWS
Oh, please excuse my ignorance. I'll revert `rb_enumeratorize` to what it was and create `rb_enumeratorize_with_size` instead, as you suggest.
I thought that functions in intern.h were internal to CRuby... So, which headers are consid...
marcandre (Marc-Andre Lafortune)
07:53 PM Bug #7302 (Closed): r37497 changes rb_enumeratorize without NEWS
r37497 [Feature #6636] changed the prototype of rb_enumeratorize.
It is public Ruby CAPI.
I think it shouldn't be changed and add another CAPI like rb_enumeratorize_with_size.
At least a description should be add to NEWS
naruse (Yui NARUSE)
11:09 PM Bug #7300 (Assigned): Hash#[] の挙動が 1.9.3 と異なっている
柴田さん、またまたありがとうございます。
hsbt (Hiroshi SHIBATA) wrote:
> 元のコードは以下の行になります。
compact 足してよ、という感じで微妙なところですが、今回は警告に一票投じます (コードがすごく汚くなるとかでなければ) 。なかださん再検討お願いします。
余談ですが、「特に実用上困ったわけじゃないけど気がついた非互換 (RubySpec みたいな)」の報告もありがたいですが、「実コードに影響があった非互...
mame (Yusuke Endoh)
10:51 PM Bug #7300: Hash#[] の挙動が 1.9.3 と異なっている
元のコードは以下の行になります。
https://github.com/apotonick/cells/blob/master/lib/cell/test_case.rb#L78
テストケースによっては `Hash[[nil, nil, nil,...]]` というような状態になるようです。
ライブラリ本体を直すべきであるということであれば、異論はありませんのでそのように動くつもりです。
hsbt (Hiroshi SHIBATA)
06:04 PM Bug #7300: Hash#[] の挙動が 1.9.3 と異なっている
なんかいろいろ微妙にミスった。
```ruby
Hash[enum.map {|x| x > 0 ? [x, x*x] : nil }.compact] # minimum change
Hash[*enum.flat_map {|x| x > 0 ? [x, x*x] : [] }] # 1.9+ only
{}.tap { |h| enum.each {|x| x > 0 and h[x] = x*x } }
```
です。
knu (Akinori MUSHA)
06:02 PM Bug #7300: Hash#[] の挙動が 1.9.3 と異なっている
これ、元のコードは何でしょうか。
もし文字通り`nil`なんて埋めてあったらコーディングミスなので、警告を出すくらいなら例外を出して直させるべきだと思います。
問題は、
```ruby
Hash[enum.map {|x| x > 0 ? [x, x*x] : nil }]
```
のように動的にハッシュを作るときに意図的に`nil`(あるいは配列化できない任意の値)を使ってペアの生成をスキップする場合でしょうか。
これにしてもそんな仕様は最初から示さ...
knu (Akinori MUSHA)
05:05 PM Bug #7300 (Closed): Hash#[] の挙動が 1.9.3 と異なっている
`Hash[[nil]]` を実行すると 1.9.3 では `{}` となるものが 2.0.0 では `ArgumentError` となります。
なかださんに相談してみたら、2.0.0 の動きが不正なものをチェックしてて正しい挙動と
いうことを教えてもらいましたが、2.0.0 では duplicate の警告だけにして、
次のリリースで消すという方が良さそうに思います。
hsbt (Hiroshi SHIBATA)
10:54 PM Bug #6756: FileUtils.rm_rf がアクセス権のない空ディレクトリを削除しない
> あいざわです
>
>> Windows ならしょうがない(私の知る限りアクセス権のないファイルは
>> 削除不可なので)と思うのですが、少なくとも UNIX 系の OS では rm -rf と
>> 同じく削除して欲しいです。
>
> パッチの適用には反対です。
> Windowsで実現できないのであればプラットフォームによって同じメソッドで
> 明らかに異なる結果になるのはありがたくないです。
> (他にもそういうのがのあるの...
kosaki (Motohiro KOSAKI)
04:23 PM Bug #6756: FileUtils.rm_rf がアクセス権のない空ディレクトリを削除しない
あいざわです

> Windows ならしょうがない(私の知る限りアクセス権のないファイルは
> 削除不可なので)と思うのですが、少なくとも UNIX 系の OS では rm -rf と
> 同じく削除して欲しいです。

パッチの適用には反対です。
Windowsで実現できないのであればプラットフォームによって同じメソッドで
明らかに異なる結果になるのはありがたくないです。
(他にもそういうのがのあるのかもしれないですが。。。)
ayumin (Ayumu AIZAWA)
10:23 PM Feature #7299: Ruby should not completely ignore blocks.
Em 07-11-2012 11:00, Aaron Patterson escreveu:
> On Wed, Nov 07, 2012 at 01:06:34PM +0900, marcandre (Marc-Andre Lafortune) wrote:
>> Issue #7299 has been reported by marcandre (Marc-Andre Lafortune).
>>
>> ---------------------...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:23 PM Feature #7299: Ruby should not completely ignore blocks.
On Wed, Nov 07, 2012 at 01:06:34PM +0900, marcandre (Marc-Andre Lafortune) wrote:
>
> Issue #7299 has been reported by marcandre (Marc-Andre Lafortune).
>
> ----------------------------------------
> Feature #7299: Ruby shou...
Anonymous
09:48 PM Feature #7299 (Rejected): Ruby should not completely ignore blocks.
So you think of changing introducing new functions. I see.
In that case, it's better to submit a new issue for the idea, with API proposal.
Matz.
matz (Yukihiro Matsumoto)
02:23 PM Feature #7299 (Open): Ruby should not completely ignore blocks.
matz (Yukihiro Matsumoto) wrote:
> I ... had problem with how to detect non block calling block.
Sorry, I am not sure I understand completely.
To avoid case like the example I gave, we could modify "rb_mod_const_set" by adding "WA...
marcandre (Marc-Andre Lafortune)
01:42 PM Feature #7299 (Feedback): Ruby should not completely ignore blocks.
I considered this issue before, and had problem with how to detect non block calling block.
Things go easier if & block argument is mandatory for block taking methods, but I am not doing so in near future.
Do you have any good idea?
...
matz (Yukihiro Matsumoto)
01:06 PM Feature #7299 (Rejected): Ruby should not completely ignore blocks.
Ruby should not completely ignore blocks.
const_set :Example, Class.new do
p "Hello, world"
end
# Doesn't print anything, generate any warning nor error.
To minimize any impact, Ruby should issue a warning, and in futu...
marcandre (Marc-Andre Lafortune)
10:23 PM Feature #4085: Refinements and nested methods
Em 06-11-2012 22:10, Aaron Patterson escreveu:
> On Mon, Nov 05, 2012 at 02:17:49PM +0900, headius (Charles Nutter) wrote:
>> Issue #4085 has been updated by headius (Charles Nutter).
>>
>>
>> I currently don't see any way to ...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:19 AM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> At first, I expected using is called only at an early stage of a program execution.
> ...
It seems that singleton method definitions and Kernel#extend also invalidate the entire global method cache.
Is it ...
shugo (Shugo Maeda)
09:23 AM Feature #4085: Refinements and nested methods
On Mon, Nov 05, 2012 at 02:17:49PM +0900, headius (Charles Nutter) wrote:
>
> Issue #4085 has been updated by headius (Charles Nutter).
>
>
> I currently don't see any way to support enabling refinements in blocks without a...
Anonymous
09:56 PM Feature #7226: Add Set#join method as a shortcut for to_a.join
+1. I was about to create the same feature request some weeks ago when I tried to join a set but was too lazy to do so :) rosenfeld (Rodrigo Rosenfeld Rosas)
09:52 PM Feature #7297: map_to alias for each_with_object
I just searched each_with_object in GitHub and aside from some specs testing each_with_object all real-use cases I could see after navigating though several pages of the results were ".each_with_object({})...":
https://github.com/sear...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:38 AM Feature #7297 (Rejected): map_to alias for each_with_object
I feel the name #map_to does not make sense for the behavior.
If the behavior were like this,
def map_to(o)
self.each {|x|
o << x
}
o
end
at least makes sense. I know that's not what you want, so I rejec...
matz (Yukihiro Matsumoto)
05:30 AM Feature #7297 (Rejected): map_to alias for each_with_object
I would love to have a shorter alias for 'each_with_object', and would like to propose 'map_to'. Here are my arguments:
* It reads logically and clearly:
[1, 2, 3].map_to({}) {|i, hash| hash[i] = i ** 2 }
#=> {1 => 1, 2 => 4, 3 =>...
nathan.f77 (Nathan Broadbent)
09:43 PM Bug #7221: Unable to compile kgio under 1.9.3 with error: ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert nil into Integer (TypeError)
My apologies Yusuke. I've been working hard as of late. I never noticed the email. Please give me another day or two to get the info to you, I have to intentionally break the system again in order to regenerate all the logs and informati... davidderyldowney (David Deryl Downey)
07:49 PM Revision 79e95a4d (git): * 2012-11-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:49 PM Revision 8f41e149 (git): merge revisions r33453, r37542:
* array.c: rdoc fix and improvements
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
07:49 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
kosaki (Motohiro KOSAKI) wrote:
> > @kosaki @mrkn Would it be useful if I could provide you the core dump and other info?
> ...
Unfortunately, r37474 does not seem to solve the problem (but it was definitely a potential problem).
This...
Eregon (Benoit Daloze)
07:46 PM Revision a68cc24a (git): * include/ruby/intern.h: Restore rb_enumeratorize as it was before r37497
and introduce rb_enumeratorize_with_size instead. [#7302]
* enumerator.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
07:45 PM Revision bc634493 (git): * array.c: Fix mistake in rdoc of Array#uniq.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
07:19 PM Bug #7100: WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
webrick-dont-use-ipv4-mapped-ipv6-address.patch みたいなかんじかなぁ。 akr (Akira Tanaka)
06:34 PM Bug #7301 (Closed): URI::FTP.new2()の引数typecodeを省略するとNoMethodErrorが発生します。
URI::FTP.new2()の引数typecodeを省略するとNoMethodErrorが発生します。
----------------------------
$ cat nil-typecode.rb
# encoding: utf-8
require 'uri'
URI::FTP.new2('anonymous', 'anonymous', 'ftp.ubuntu.com', 21, '/')
$ ruby -v nil-typecod...
shi-mo (Yoshifumi Shimono)
05:05 PM Bug #7200 (Rejected): Setting external encoding with BOM|
BOM| specifier is available only on mode_enc.
:encoding of open and set_encoding(mode_enc) handles mode_enc,
but :external_encoding of open and set_encoding(ext, int) handles encodings.
naruse (Yui NARUSE)
05:04 PM Bug #7213: Namespace regression problem in RSpec from 1.9.2 to 1.9.3
mame (Yusuke Endoh) wrote:
> I meant your answers in these tickets:
> ...
In 1.9.2, constant lookup in instance_eval or module_eval had already been reverted to the behavior of 1.8,
but there was a bug (#4536) in 1.9.2, and the bug wa...
shugo (Shugo Maeda)
03:51 PM Revision 0ab21f95 (git): * test/ruby/test_enumerator.rb: Add test to shed light upon the bug
which made by r37498. See http://bugs.ruby-lang.org/issues/7298
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ayumin (Ayumu AIZAWA)
03:36 PM Bug #7286 (Closed): CGI#header が 1.9.3 と異なる挙動となっている
This issue was solved with changeset r37535.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/cgi/core.rb: alias CGI#http_header to CGI#header .
[Bu...
xibbar (Takeyuki FUJIOKA)
10:35 AM Bug #7286: CGI#header が 1.9.3 と異なる挙動となっている
CGI#http_headerを新設という方向は変えずに、
html4までは
alias :header :http_header
が効くようにして、
html5の時は、
CGI#headerが上書きされるような仕様にしておこうかと思います。
--- a/lib/cgi/core.rb
+++ b/lib/cgi/core.rb
@@ -171,6 +171,7 @@ class CGI
return buf
end
...
xibbar (Takeyuki FUJIOKA)
03:36 PM Revision 94cd486b (git): * 2012-11-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:36 PM Revision 316947ea (git): * ext/curses/view.rb: Do not fail if the file to view is shorter
than the screen height.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
02:12 PM Bug #7242: Bignum mathematical accuracy regression in r31695
After some inspections, I found the cause of this bug.
One omission of bigtrunc made a different result for the minus Bignum value.
Here is a patch:
diff --git a/bignum.c b/bignum.c.new
index 305a63d..8cf6160 100644
--- a/bign...
phasis68 (Heesob Park)
01:23 PM Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
きしもとです

> > >  gcc には #include "..." にだけ作用する -iquote dir というオプションが
> > > あり、これが正にずばりなのですが、 追随しているのは clang くらいかもし
> > > れません。

そういった制御のために使える -I- が deprecated になってしまって、
代替がないのかなぁ、と思っていたのですが、ちゃんとあったのですね。
metanest (Makoto Kishimoto)
10:23 AM Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
At Wed, 7 Nov 2012 02:15:08 +0900,
KOSAKI Motohiro wrote:
> >> # -I/usr/local/include は他のライブラリのために要るので、
> >> # "" で囲んでもあまり意味がなく
> >>
> >> 「同名のヘッダファイル」問題のベストプラクティス、って無いもので
> >> しょうかねぇ?
> >
> >  よく知られたヘッダファイルと同じ名前のものは作らず、必...
Anonymous
02:23 AM Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
>> # -I/usr/local/include は他のライブラリのために要るので、
>> # "" で囲んでもあまり意味がなく
>>
>> 「同名のヘッダファイル」問題のベストプラクティス、って無いもので
>> しょうかねぇ?
>
>  よく知られたヘッダファイルと同じ名前のものは作らず、必要なら階層化す
> べし、というところですかねえ。
>
>  gcc には #include "..." にだけ作用する -iquote d...
kosaki (Motohiro KOSAKI)
02:21 AM Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
ああ、やっと問題が理解できました。(すいません、別メールでへんなコメントをつけてしまいました)
回避策のrevertと名前変更は一緒にやったほうがいいと思うのでngotoさんがコミットしてもらったほうがいいかと思います。
名前は rb_atomic.h で異論ありません。(ほかのでもOK、そこにこだわりはない)
kosaki (Motohiro KOSAKI)
01:09 PM Bug #7290 (Closed): Overriding method_added on a refinement's anonymous module can cause the opt_* opcodes to behave incorrectly
This issue was solved with changeset r37534.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* eval.c (rb_mod_refine): set RMODULE_IS_REFINEMENT to a creat...
shugo (Shugo Maeda)
01:02 PM Bug #7298 (Closed): Behavior of Enumerator.new different between 1.9.3 and 2.0.0
Sorry, completely forgot to check rubyspec. Fixed.
I'll take this occasion to open a new feature request sitting on my todo list for over a year...
marcandre (Marc-Andre Lafortune)
12:32 PM Bug #7298 (Assigned): Behavior of Enumerator.new different between 1.9.3 and 2.0.0
Marc-Andre, please fix it by preview2.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:12 AM Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0
r37498 makes this issue. ayumin (Ayumu AIZAWA)
07:27 AM Bug #7298 (Closed): Behavior of Enumerator.new different between 1.9.3 and 2.0.0
Under 1.9.3, when Enumerator.new was called with arguments and block, it return Enumerator object.
But under trunk, it makes TypeError.

$ ruby -v -e "p Enumerator.new([1,2,3]){|y|y.yield 4}"
ruby 1.9.3p194 (2012-04-20 revision ...
ayumin (Ayumu AIZAWA)
01:01 PM Feature #7292: Enumerable#to_h
marcandre (Marc-Andre Lafortune) wrote:
> > I'm moving this ticket into the feature tracker.
> ...
Oops, I was mistaken. I just set the target to next minor. Sorry.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:48 PM Feature #7292: Enumerable#to_h
matz (Yukihiro Matsumoto) wrote:
> So what's the difference from rejected #7241?
As Nathan said, #7241 (and #666) accept a block and are therefore more related to the more complex categorize/associate/... #4151.
The implementation...
marcandre (Marc-Andre Lafortune)
12:31 PM Feature #7292 (Assigned): Enumerable#to_h
Use the traditional Hash[] in 2.0.0. I'm moving this ticket into the feature tracker.
p Hash[ [[:name, 'Joe Smith'], [:age, 42]] ]
#=> {name: 'Joe Smith', age: 42}
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:05 AM Feature #7292: Enumerable#to_h
> So what's the difference from rejected #7241?
The main difference is that `to_h` wouldn't take a block or any arguments. It would be a simple conversion from Enumerable to Hash, and would only support a collection of arrays containi...
nathan.f77 (Nathan Broadbent)
08:44 AM Feature #7292 (Feedback): Enumerable#to_h
So what's the difference from rejected #7241? matz (Yukihiro Matsumoto)
04:56 AM Feature #7292: Enumerable#to_h
I agree, Enumerable#to_h would make sense and be quite useful.
(1..3).to_h would be a special case for the Range class, because [1, 2, 3].to_h should raise an exception.
Here's an example in Ruby:
module Enumerable
def to_h
...
nathan.f77 (Nathan Broadbent)
02:53 AM Feature #7292 (Closed): Enumerable#to_h
Now that #to_h is the official method for explicit conversion to Hash, we should also add
Enumerable#to_h: Returns a hash for the yielded key-value pairs.
[[:name, 'Joe Smith'], [:age, 42]].to_h # => {name: 'Joe Smith', age: 42...
marcandre (Marc-Andre Lafortune)
12:22 PM Bug #6634: Deadlock with join and ConditionVariable
Hi mame-san,
ko1 found the second case (i.e. below) is a his regression since October. He told me he plan to fix soon.
> $ ruby -e 'loop { system("./ruby lol2.rb > t") || break }'
> ...
And I couldn't reproduce this issue at co...
kosaki (Motohiro KOSAKI)
07:03 AM Revision a3286ba3 (git): Suppress warning: Bignum out of Float range
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:03 AM Revision 172d8f9b (git): * numeric.c (ruby_float_step): fix r37514: it yielded with NaN
if the unit is infinity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:55 AM Bug #7080 (Third Party's Issue): Segmentation Fault (sometimes) when running script
scnissen (Sam Nissen) wrote:
> This fix does work, with on caveat:
> ...
Dunno why you had to donwload the gem manually, but mysql-2.8.1-x86-mingw32.gem actually contains the pre-compiled extension.
You need to download mysql-2.8.1....
luislavena (Luis Lavena)
06:51 AM Feature #7106 (Feedback): FileUtils.touch should allow touching the symlink itself rather than the file the link points to
=begin
I've combined your patch and Usa's Windows modification (plus other misses) and put it here:
https://gist.github.com/4022459
Also, I've created the following files on a drive:
* foo: directory
* READ: a real file

...
luislavena (Luis Lavena)
06:49 AM Revision 043c0eaa (git): * lib/webrick.rb: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
06:36 AM Revision 8549059d (git): * lib/cgi/core.rb: alias CGI#http_header to CGI#header .
[Bug #7286]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA
04:09 AM Revision 5836962f (git): * eval.c (rb_mod_refine): set RMODULE_IS_REFINEMENT to a created
refinement module, and don't override method_added.
* vm_method.c (rb_method_entry_make): check redefinition of
optimized methods when a method is added to a refinement module.
[ruby-core:48970] [Bug #7290]
* test/ruby/test_refinem...
shugo (Shugo Maeda)
03:53 AM Feature #6421: Add zlibwapi to extconf.rb file for zlib library
usa (Usaku NAKAMURA) wrote:
> Sorry, I can't understand the conclusion.
> ...
Sorry for late response. I've committed this to trunk in r37527
Will open a backport request too.
Thank you
luislavena (Luis Lavena)
03:50 AM Feature #6421 (Closed): Add zlibwapi to extconf.rb file for zlib library
This issue was solved with changeset r37527.
Daniel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Recognize zlibwapi as linking library
* ext/zlib/extconf.rb: R...
luislavena (Luis Lavena)
02:48 AM Revision 1c5104ac (git): ruby-additional.el: set encoding
* misc/ruby-additional.el (ruby-mode-set-encoding): now encoding needs
to be set always explicitly actually. [Feature #6679]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:23 AM Feature #7252: version number of 2.0 release
あいざわです

[ruby-dev:44604] でも議論されていましたが、ABI互換性はTEENYバージョンの変更
であっても常に壊れる(可能性がある)という認識でいればいいと個人的には思います。

なので、以下を提案します。

- 方針: 少なくとも ruby 2.0.x のうちはパッチリリースを除いてABI互換は保証しない
 (ABI互換が壊れるよな変更を入れる必要がある場合はパッチリリースではなく
  TEENYのバージョン番号を上げるリリー...
ayumin (Ayumu AIZAWA)
01:36 AM Feature #7252: version number of 2.0 release
まつもとさん
またバージョン番号関連の話ですが、ABI の方針と名前はどうしましょう。
たたき台として以下を提案します。
- 方針: 少なくとも 2.0.x のうちは ABI は原則壊さない
- 名前: 2.0ABI
名前は適当ですが、1.9 の時の混乱 (Ruby 1.9.2 なのに ABI は 1.9.1 の
ままでややこしい) を踏まえて、同じ轍を踏まない名前にしたいですね。
[ruby-core:48984] で Vít Ondru...
mame (Yusuke Endoh)
02:09 AM Feature #6636 (Closed): Enumerable#size
This issue was solved with changeset r37495.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c (enumerator_initialize): Warn when using dep...
marcandre (Marc-Andre Lafortune)
01:44 AM Feature #6321: Find and repair bad bytes in encodings, without transcoding
I ran into this and filed #7282. MRI allows bad byte sequences to parse as UTF-8, and then subsequent transcode to UTF-8 (no-op) does not catch them. As a result, they can propagate until they hit some method that actually does verify th... headius (Charles Nutter)
01:39 AM Bug #7282: Invalid UTF-8 from emoji allowed through silently
duerst (Martin Dürst) wrote:
> > On my system, where the default encoding is UTF-8, the following should not parse:
> ...
Yeah sorry...I guess I was rushed filing this issue. The last one is what I was going for.
> I'm no longer s...
headius (Charles Nutter)
12:16 AM Revision bd9b31e5 (git): object.c: inadvertent symbol
* object.c (rb_mod_const_get): avoid inadvertent symbol creation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

11/06/2012

11:59 PM Feature #7288: Documentation missing: FileUtils.chmod "+X", "directory"
I was looking through lib/fileutils.rb
It seems it's using the private method symbolic_modes_to_i which takes the mode passed from FileUtils.chmod and translates it into an octal number, or absolute mode, for use with File.chmod. This...
zzak (zzak _)
05:36 PM Feature #7288 (Closed): Documentation missing: FileUtils.chmod "+X", "directory"
Documentation for chmods "X" (uppercase) feature is missing. This sets the execute bit on directories but not on files. Tested on my Ubuntu machine it works although not documented.
Reproducable like this:
[irb]
require 'fileutils'
...
joerg.herzinger (Jörg Herzinger)
11:48 PM Bug #7027: Tempfile#inspect is Confusing
+ r37493 (for ChangeLog ML, ticket ref.) nagachika (Tomoyuki Chikanaga)
06:47 PM Bug #7027 (Closed): Tempfile#inspect is Confusing
I have commited in r37492. Glass_saga (Masaki Matsushita)
10:52 PM Revision db54dc72 (git): enum.c: prefix
* enum.c (rb_enum_cycle_size): prefix with rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:50 PM Revision 7f00f853 (git): adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:00 PM Revision 6678422f (git): Fix typos in comments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e h.shirosaki (Hiroshi Shirosaki)
09:41 PM Bug #7287 (Assigned): please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
atomic.h を入れた kosaki さんに振ってしまいます。rb_atomic.h とかにするんですかね。
他は大丈夫ですかねえ。
$ ls *.h
addr2line.h encdb.h iseq.h regint.h timev.h vm_core.h
atomic.h eval_intern.h method.h regparse.h transcode_dat...
mame (Yusuke Endoh)
08:53 PM Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
At Tue, 6 Nov 2012 17:28:27 +0900,
KISHIMOTO, Makoto wrote:
> きしもとです
>
> > #include "atomic.h" とは違って #include <atomic.h> のように<>で囲んでいるので、システムのヘッダファイルが優先されるはず、と思っていたら、実はそうではなく、configureがコンパイル時のオプションとして "-I." を追加しているため、Rubyソース側の at...
Anonymous
05:29 PM Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
きしもとです

> #include "atomic.h" とは違って #include <atomic.h> のように<>で囲んでいるので、システムのヘッダファイルが優先されるはず、と思っていたら、実はそうではなく、configureがコンパイル時のオプションとして "-I." を追加しているため、Rubyソース側の atomic.h しか読み込むことができず、どう頑張ってもシステムの /usr/include/atomic.h は読み込まれないことが判明し...
metanest (Makoto Kishimoto)
04:32 PM Bug #7287 (Open): please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
回避策はコミットしましたが、根本的解決ではないので再openします。 ngoto (Naohisa Goto)
04:30 PM Bug #7287 (Closed): please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
This issue was solved with changeset r37491.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* atomic.h: add #include <sys/atomic.h> for the workaround of
...
ngoto (Naohisa Goto)
04:21 PM Bug #7287 (Closed): please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
Solaris10にて、ccやfccなどgcc以外を使用してコンパイルする際は、Rubyソース内の atomic.h にて、以下のようにシステムの atomic.h (/usr/include/atomic.h)を#includeしています。
#elif defined(__sun)
#include <atomic.h>
#include "atomic.h" とは違って #include <atomic.h> のように<>で囲んでいるので、システム...
ngoto (Naohisa Goto)
09:31 PM Bug #7110: CGI: Add support for HTML5 <header> tag
Let me complement. xibbar suggested three options:
1. Just delete the old header method (current)
2. Change CGI#header only before HTML4 mode
3. Change CGI#header only in HTML5 mode
(I don't know any merit of (2), I guess ...
mame (Yusuke Endoh)
09:12 PM Bug #7110: CGI: Add support for HTML5 <header> tag
Curretly, some japanese programmer talk about compatibility. #7286
Many traditional web applications use cgi.rb .
This change give a impact to these applications.
Some committer said that cgi.rb 's importance is traditional code can r...
xibbar (Takeyuki FUJIOKA)
09:12 PM Bug #7286: CGI#header が 1.9.3 と異なる挙動となっている
xibbar (Takeyuki Fujioka) wrote:
> ちょっと方針を誤解していたことと、やはりインパクトが大きいので、
> ...
いいと思います。よろしくおねがいします。
方針について余談ですが、「100% 互換」のスローガンは、機能の議論を加速させるのに大変役立ったと思っています。
しかし一般ユーザに対する売り文句としては、衆目を集めるメリットより、ちょっとしたことで失望させるデメリットの方が大きそうなので、あんまり声高に主張しないほうが...
mame (Yusuke Endoh)
08:58 PM Bug #7286: CGI#header が 1.9.3 と異なる挙動となっている
ちょっと方針を誤解していたことと、やはりインパクトが大きいので、
3にするコードを書いてみて、英語圏の方に議論してくれている2人と
redmineでやりとりしてみましょうか。
xibbar (Takeyuki FUJIOKA)
07:32 PM Bug #7286 (Assigned): CGI#header が 1.9.3 と異なる挙動となっている
問題報告ありがとうございます > 柴田さん
ちゃんと考えてなかったので見逃してました (Zachary Scott が文句言ってくれてたのに) 。
これはちょっとまずそうですね。今から cgi.rb で html5 書くユーザと、cgi.rb で
書かれたレガシーコードをメンテする可哀想なユーザ、多分後者の方が多いと思うので。
といいつつ、既存コードで CGI.new("html5").header って書かれてる可能性ってどのくらい
ありますかね。考...
mame (Yusuke Endoh)
04:38 PM Bug #7286: CGI#header が 1.9.3 と異なる挙動となっている
CGIのHTML出力機能を使っているスクリプトで cgi.header を使っているものは少なくないと思うので、この変更は痛いですね。
妥協案としては、3を採用しつつ、
- ブロックが渡されていたらタグを出力する
および
- 他のタグ生成メソッドのブロック内ではタグを出力する
ようにしておいて、ブロックなしの呼出には(将来変わるかもしれないからhttp_headerを使えと)警告を入れるということでどうでしょう。
knu (Akinori MUSHA)
04:24 PM Bug #7286: CGI#header が 1.9.3 と異なる挙動となっている
1. 現状のまま
2. HTML4以前の時のみ、CGI#headerの挙動を変える
3. HTML5の時のみ、CGI#headerの挙動を変える
うーむ。
xibbar (Takeyuki FUJIOKA)
03:45 PM Bug #7286: CGI#header が 1.9.3 と異なる挙動となっている
hsbt (Hiroshi SHIBATA) wrote:
> http://bugs.ruby-lang.org/issues/show/7110 の変更の結果、CGI#header の挙動が 1.9 系と異なる挙動となっています。
> ...
100%互換とかただの根拠のない噂なので、あまり広めないでください!
naruse (Yui NARUSE)
03:35 PM Bug #7286 (Closed): CGI#header が 1.9.3 と異なる挙動となっている
http://bugs.ruby-lang.org/issues/show/7110 の変更の結果、CGI#header の挙動が 1.9 系と異なる挙動となっています。
2.0.0 は 100% 互換という方針だったと思うので、今の trunk の CGI#header は 1.9 系に戻して、新しい機能はメソッド名を header_tag 等にするか、変更自体を2.0.0リリース後にした方が良いと思います。
hsbt (Hiroshi SHIBATA)
09:07 PM Bug #7213 (Rejected): Namespace regression problem in RSpec from 1.9.2 to 1.9.3
I meant your answers in these tickets:
https://bugs.ruby-lang.org/issues/6838
https://bugs.ruby-lang.org/issues/5777
As far as I know, #instance_eval with block changed constant lookup scope in 1.9.2, but it has stopped since 1.9....
mame (Yusuke Endoh)
12:04 PM Bug #7213: Namespace regression problem in RSpec from 1.9.2 to 1.9.3
mame (Yusuke Endoh) wrote:
> If I recall, this is an intentional change since 1.9.3.
> ...
Do you mean Bug #4536?
It seems that foobar_spec.rb fails even if the fix of #4536 (r31215) is reverted.
Or do you mean another issue?
I ...
shugo (Shugo Maeda)
08:56 PM Feature #6321: Find and repair bad bytes in encodings, without transcoding
I have stumbled upon this issue too. The same use-case as above, I have untrusted utf-8 files which I need to fix. Currently there is a messy workaround with replacing invalid characters manually, but it would be so much better and more ... brainopia (Ravil Bayramgalin)
08:43 PM Bug #7156 (Feedback): Invalid byte sequence in US-ASCII when using URI from std lib
I'm not sure what you want. I cannot reproduce this issue by the following code.
$ cat bulgarian.rb
# coding: UTF-8
require "uri"
p URI.escape("История")
$ ruby bulgarian.rb
"%D0%98%D1%81%D1%82%D0%BE%D1...
mame (Yusuke Endoh)
08:32 PM Bug #6575 (Rejected): Thread#kill sets rb_errinfo() to Fixnum 8 after rb_protect(function, data, &error_tag)
This is not a bug. So I'm closing this ticket.
Because Thread#kill should not be rescue'd so easily, it does throw a special exception which has no class, to make it hard to rescue.
Incidentally, the value 8 means INT2FIX(TAG_FATA...
mame (Yusuke Endoh)
08:12 PM Bug #7290 (Closed): Overriding method_added on a refinement's anonymous module can cause the opt_* opcodes to behave incorrectly
Ruby stores flags in (({ruby_vm_redefined_flag})) to track whether certain methods have been redefined on particular classes. If the redefined flag for a certain class and operator is not set, Ruby will skip method lookup and directly ca... Anonymous
08:01 PM Bug #4960 (Rejected): Crash on start up using rubymine 107.315 build
Looks similar to: http://youtrack.jetbrains.com/issue/RUBY-7586
Please try the new version of ruby-debug-base19x.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:59 PM Feature #6643: io.seek(off, :end)
2012年10月31日 22:23 Glass_saga (Masaki Matsushita) <glass.saga@gmail.com>:
>
> Issue #6643 has been updated by Glass_saga (Masaki Matsushita).

> そうですね。
> 最新のパッチ(patch2.diff)では、そういう懸念があるのでIO::SEEK_*の値は変えずにIntegerもSymbolも受け付けるように...
akr (Akira Tanaka)
07:54 PM Bug #5175 (Rejected): Ruby1.9.2p290 MySQLアクセスエラー
エラーメッセージで検索しただけで申し訳ないんですが、
新しいバージョンの mysql の libmysql.dll だと MySQL gem は動かない
ことがあるらしいです。
http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/368332?368278-370552+split-mode-vertical
http://fuyun.org/2010/01/ruby-mysql-ada...
mame (Yusuke Endoh)
07:40 PM Revision 75c20a79 (git): Remove FIXME skip on Windows test
* test/ruby/test_file_exhaustive.rb: Remove FIXME skip on Windows
specific test because the test in question was already fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
luislavena (Luis Lavena)
07:29 PM Bug #7216: object.c defines clone method for objects that cannot be cloned.
2012/11/5 mame (Yusuke Endoh) <mame@tsg.ne.jp>:
>
> Issue #7216 has been updated by mame (Yusuke Endoh).

> Akr-san, what do you think?

It may be good idea.

The root problem is that Liskov substitution principle is vio...
akr (Akira Tanaka)
06:53 PM Bug #7100: WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
2012/11/5 mame (Yusuke Endoh) <mame@tsg.ne.jp>:
>
> akr さん、どう思われますか?

IPv4-mapped IPv6 address はプラットフォームによって利用できたりできなかったりするので、
どのプラットフォームでも利用しないで動作するようにするのが動作が一貫してよいと思います。

私は、長期的には、TCPServer とかを使うのはやめて、
Socket に移行して欲しいと...
akr (Akira Tanaka)
06:50 PM Revision 95cd5aaa (git): Recognize zlibwapi as linking library
* ext/zlib/extconf.rb: Recognize zlibwapi as linking library.
Patch by Daniel Berger.
[ruby-core:44979] [Feature #6421]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
luislavena (Luis Lavena)
05:37 PM Bug #7289 (Closed): test-unit.gemspec should not be installed into StdLib
Probably since r36872, the test-unit.gemspec is installed into StdLib (test/unit/test-unit.gemspec), where it has not meaning and it should not be installed there. vo.x (Vit Ondruch)
05:17 PM Revision 81bfd9a6 (git): * NEWS: Update for lazy size evaluation [Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:16 PM Revision 0814c4ac (git): * enumerator.c: Support for lazy.cycle.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:16 PM Revision 7a310962 (git): * enumerator.c: Add support for lazy.drop.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:16 PM Revision 9aafa954 (git): * enumerator.c: Support for lazy.take.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:16 PM Revision 5dbbfc3b (git): * enumerator.c: Support for lazy.{map|flat_map|...}.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:15 PM Revision c8426ce8 (git): * enumerator.c: Support for lazy.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:15 PM Revision 44374034 (git): * string.c: Support for String#{each_byte,each_char,each_codepoint}.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:15 PM Revision 3a4eb4dd (git): * numeric.c (int_dotimes): Support for Integer#times.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:15 PM Revision c2dc0dc1 (git): * numeric.c (int_upto, int_downto): Support for Integer#{down|up}to.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:15 PM Revision faed90d8 (git): * range.c: Support for range.step.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:14 PM Revision 28d8bf90 (git): * range.c: Support for Range#size and Range#each.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:14 PM Revision 34be3a5d (git): * numeric.c (num_step): Support for Numeric#step.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:14 PM Revision f02c29ee (git): * numeric.c: Extract ruby_float_step_size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:14 PM Revision ce0bf9f4 (git): * struct.c: Support for Struct's enumerators #size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:13 PM Revision 17c0aff0 (git): * hash.c: Support for enumerators created by ENV:
each, each_value, ...
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:13 PM Revision 19ed71c8 (git): * hash.c: Support for enumerators created by Hash:
delete_if, reject!, ...
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:13 PM Revision cef054d5 (git): * enum.c (enum_cycle): Support for Enumerable#cycle.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:13 PM Revision fe9386cd (git): * enum.c (enum_each_cons): Support for Enumerable#each_cons.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:12 PM Revision df8451e6 (git): * enum.c (enum_each_slice): Support for Enumerable#each_slice.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:12 PM Revision c82ad6d2 (git): * enum.c: Support for enumerators created by Enumerable with forwarding:
find_all, reject, ...
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:12 PM Revision 727024fb (git): * vm_eval.c (rb_f_loop): Support for loop.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:12 PM Revision b8b01ab9 (git): * array.c (rb_ary_cycle): Support for Array#cycle.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:11 PM Revision ba59365d (git): * array.c (rb_ary_repeated_combination): Support for repeated_combination.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:11 PM Revision 68c90c4a (git): * array.c (rb_ary_repeated_permutation): Support for repeated_permutation.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:11 PM Revision 6bbf668d (git): * array.c (rb_ary_combination): Support for Array#combination.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:11 PM Revision 1cb9f27c (git): * array.c (rb_ary_permutation): Support for Array#permutation.size
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:10 PM Revision 55fb13ef (git): * array.c: Support for Enumerator#size in trivial cases:
each, each_index, reverse_each, sort_by, collect,
collect!, select, select!, keep_if, reject, reject!, delete_if
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:10 PM Revision 57d596cd (git): * enumerator.c: Support #size for enumerators created from enumerators
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:10 PM Revision acfd34a6 (git): * enumerator.c (obj_to_enum): Have #to_enum accept a block
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:10 PM Revision 610eeffa (git): * enumerator: New method #size; constructor accepts size
[Feature #6636]
* include/ruby/intern.h: RETURN_SIZED_ENUMERATOR for support of
sized enumerators
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:09 PM Revision 2f4769a8 (git): * 2012-11-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:09 PM Revision c73b6bd7 (git): * enumerator.c (enumerator_initialize): Warn when using deprecated form
[Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:02 PM Bug #7066: test_segv_test(TestRubyOptions) が F になる
メモ追加というか、
#7141 と http://gist.github.com/3833763
metanest (Makoto Kishimoto)
04:47 PM Bug #7066: test_segv_test(TestRubyOptions) が F になる
あ、ステータスそのままでした。承知しました。
メモというか #5139 にあとから気付いたのですが、症状としては同じでしょうか。
metanest (Makoto Kishimoto)
03:23 PM Bug #7282: Invalid UTF-8 from emoji allowed through silently
Hello Charles,

On 2012/11/06 11:51, headius (Charles Nutter) wrote:
>
> Issue #7282 has been reported by headius (Charles Nutter).
>
> ----------------------------------------
> Bug #7282: Invalid UTF-8 from emoji allowed...
duerst (Martin Dürst)
02:58 PM Bug #7282 (Assigned): Invalid UTF-8 from emoji allowed through silently
usa (Usaku NAKAMURA)
11:51 AM Bug #7282 (Closed): Invalid UTF-8 from emoji allowed through silently
On my system, where the default encoding is UTF-8, the following should not parse:
ruby-2.0.0 -e 'p "Hello, \x96 world!\"}'
But it does. And it is apparently marked as "ok" as far as code range goes, because encoding to UTF-8 does ...
headius (Charles Nutter)
01:40 PM Feature #7106 (Assigned): FileUtils.touch should allow touching the symlink itself rather than the file the link points to
luislavena (Luis Lavena)
11:48 AM Bug #6334 (Rejected): 64 bit build broken for 1.9.3 on Solaris 10 and openindiana - test_fork.rb
Closing because of no feedback.
Please reopen the ticket with detailed information if you still have the problem.
ngoto (Naohisa Goto)
11:42 AM Revision ac7f5157 (git): * object.c (rb_mod_const_get): Fix constant missing exception class
and message to maintain backwards compatibility. Constant search
should start at Object when constant starts with '::'
* test/ruby/test_module.rb: test for fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37494 b2dd03c8-39d4-4...
tenderlovemaking (Aaron Patterson)
09:50 AM Feature #6767 (Closed): Utility method to get a duplicated string whose encoding is ASCII-8BIT
This issue was solved with changeset r37486.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_b): Add String#b, returning a copied string
w...
naruse (Yui NARUSE)
09:50 AM Feature #6679 (Closed): Default Ruby source file encoding to utf-8
This issue was solved with changeset r37485.
Clay, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ruby.c (load_file_internal): set default source encoding as
U...
naruse (Yui NARUSE)
09:46 AM Revision e5e5d0c5 (git): * ChangeLog: add link to redmine and ruby-core
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
09:44 AM Bug #7242: Bignum mathematical accuracy regression in r31695
I am curious, what can I do on my end to disable Toom3 in my own Ruby interpreter? mhall (Matthew Hall)
09:06 AM Bug #7277: mingw: Makefile no longer links ruby.res.o with PROGRAM or WPROGRAM
h.shirosaki (Hiroshi Shirosaki) wrote:
> Luis, I fixed at r37475. Please check it.
Thank you Hiroshi, worked like a charm.
I'll release 2.0.0-preview1 as is mentioning this small detail in the experimental notes.
Thank you again.
luislavena (Luis Lavena)
08:26 AM Feature #7256: Update Rake
I asked Jim and he thought rake 0.9.3 was better to include in Ruby 2.0.0, so I plan to import that.
We can consider updating to rake 10 for the next minor.
drbrain (Eric Hodel)
08:06 AM Revision 31f72cf5 (git): * lib/tempfile.rb: fix confusing inspect.
previous Tempfile#inspect says it is a File, but actually
it is not a File.
t = Tempfile.new("foo") #=> #<File:/tmp/foo20121106-31970-1ffbum0>
t.is_a? File #=> false
now Tempfile#inspect returns like:
t = Tempfile.new(...
Glass_saga (Masaki Matsushita)
07:30 AM Revision e2418e3f (git): * atomic.h: add #include <sys/atomic.h> for the workaround of
header file name conflict of atomic.h with /usr/include/atomic.h
on Solaris 10. [ruby-dev:46414] [Bug #7287]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
06:42 AM Feature #6737: Add Hash#read and alias as #[].
This was a simple enough feature so I made a patch (with the assumption that #retrieve is an acceptable name for this method). I hope this will be accepted --the Hashery project really needs to be able to depend on an official name for t... trans (Thomas Sawyer)
05:43 AM Revision bba3ceaf (git): * test/win32ole/test_win32ole.rb: follow other test files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:39 AM Revision f2fc82fc (git): * test/win32ole/test_win32ole.rb: now source encoding is UTF-8, so
binary strings in old scripts are dangerous.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:31 AM Revision 510148e9 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:30 AM Revision ccd7a805 (git): * lib/net/protocol.rb (Net::InternetMessageIO#each_crlf_line):
don't use /n in universal regexp. [ruby-dev:46394] [Bug #7278]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:45 AM Bug #7085: Subversion → GitHub gateway stops.
It's now r37483. As another (or two) manual sync might happen you should find the latest repo-dump by the mtime field from:
ftp://ftp.ruby-lang.org/pub/incoming/
shyouhei (Shyouhei Urabe)
04:43 AM Bug #7272: twice-a-week manual svn -> github sync
I did.
I keep it open for the porpose of my remembering this issue for next Friday.
shyouhei (Shyouhei Urabe)
12:22 AM Bug #7272 (Assigned): twice-a-week manual svn -> github sync
Assigned to Urabe-san. Otsukare sama desu!
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:38 AM Bug #7161: Perf fix: use symbols instead of strings for const/ivar access methods
The performance gain is not tremendous, but it does avoid a lot of intermediate string objects that could cumulatively impact performance through GC overhead.
In any case, it's a good cleanup patch, and there are certainly small perf ...
headius (Charles Nutter)
02:16 AM Feature #6636: Enumerable#size
Hi,
matz (Yukihiro Matsumoto) wrote:
> After skimming your modifies, I feel they are decent.
Thanks for looking at them. Very happy to read this :-)
I'll then commit these and finish implementing size for ranges of strings.
--...
marcandre (Marc-Andre Lafortune)
01:59 AM Bug #2154: filesystem encoding of UNIX
>> ・2.0ではデフォルトはlocaleにしておいたほうが、あとから自然に拡張できるような気がする
>
> default_externalじゃなくて、ということでしょうか?

default_external
という仕様にしてしまうと、default_file_systemを作った時に互換性のため最終仕様が以下のようになってしまうので、わかりにくいかなあとか思ってました

以下の順に影響
1) expand_path()の引数エンコ...
kosaki (Motohiro KOSAKI)
01:47 AM Feature #5617: Allow install RubyGems into dediceted directory
Ping. Any possibility to accept this patch please? vo.x (Vit Ondruch)
01:45 AM Feature #5231: Allow to disable versioned paths
Ping? Could you accept this patch please? vo.x (Vit Ondruch)
01:44 AM Bug #7281: Fix typo in macro name to actually enable rb_reserved_fd_p()
Thanks for digging!
Your patch was commited at r37483 as is.
kosaki (Motohiro KOSAKI)
01:43 AM Bug #7281 (Closed): Fix typo in macro name to actually enable rb_reserved_fd_p()
This issue was solved with changeset r37483.
Mark, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread_pthread.c (rb_reserved_fd_p): fix typo in macro check
...
kosaki (Motohiro KOSAKI)
01:10 AM Bug #7281 (Closed): Fix typo in macro name to actually enable rb_reserved_fd_p()
In trunk (r37474), there is a typo in a macro name in the rb_reserved_fd_p() function. This prevents any actual checking that the file descriptor is reserved by the VM. Spakman (Mark Somerville)
01:44 AM Feature #5281: Support for custom sitearch and vendorarch directories
Ping? Could you accept please? vo.x (Vit Ondruch)
12:50 AM Revision a6ec2584 (git): * string.c (rb_str_b): Add String#b, returning a copied string
whose encoding is ASCII-8BIT. [ruby-dev:45992] [Feature #6767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:49 AM Revision 58ef0f06 (git): * ruby.c (load_file_internal): set default source encoding as
UTF-8 instead of US-ASCII. [ruby-core:46021] [Feature #6679]
* parse.y (parser_initialize): set default parser encoding as
UTF-8 instead of US-ASCII.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37485 b2dd03c8-39d4-4d8f-98ff-823...
naruse (Yui NARUSE)
12:41 AM Bug #7119 (Third Party's Issue): Running wisp causes a segmentation fault
(Hooray, wisp user!)
The trace strongly suggests an eventmachine issue:
> 6 libSystem.B.dylib 0x00007fff85b5e1ba _sigtramp + 26
> ...
So, could you contact on eventmachine developers?
Incidentally, it worked with t...
mame (Yusuke Endoh)
12:25 AM Bug #7231: StringIO inconsistently raises IOError or RuntimeError if the string is frozen
Indeed. I think that it should raise IOError constantly. Any opinion?
Anyone could create a patch, please?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:24 AM Bug #7158 (Closed): require is slow in its bookkeeping; can make Rails startup 2.2x faster
This issue was solved with changeset r37477.
Greg, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Clarify and explain loaded_feature_path and rb_feature_p
* load....
Anonymous
12:20 AM Bug #7112 (Assigned): File.extname documentation fix
Drbrain, could you handle this?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:16 AM Bug #6634 (Assigned): Deadlock with join and ConditionVariable
I succeeded to reproduce the issue, by adding set_trace_func to lol.rb, redirecting the output to the file, and repeating the invocation until the error occurs.
It looks very very timing sensitive issue.
$ gem install threadpool
...
mame (Yusuke Endoh)

11/05/2012

11:25 PM Bug #4437 (Rejected): Hash does not match character read from file via IO#getc
I can't repro with trunk.
We cannot investigate this issue any more. I'm closing this ticket.
If you can reproduce it, or if you know anything, feel free to reopen.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:10 PM Bug #7276 (Assigned): TestFile#test_utime failure
mame (Yusuke Endoh)
02:50 AM Bug #7276: TestFile#test_utime failure
Appears to be a trunk regression as `TestFile#test_utime` passes on ruby_1_9_3@37334
C:\Jenkins\workspace\ruby-1_9_3-svn>ruby -v test\ruby\test_file.rb
ruby 1.9.3p305 (2012-10-26 revision 37334) [i386-mingw32]
Run options:
# Runn...
jonforums (Jon Forums)
02:40 AM Bug #7276 (Closed): TestFile#test_utime failure
I'm currently travelling and am in UTC-5. I get the following `make test-all` failure on Win7 32bit with mingw-w64 gcc 4.7.2. It appears that trunk@37467 is not handling daylight savings time correctly.
I'm not going to have time to t...
jonforums (Jon Forums)
11:05 PM Bug #7277: mingw: Makefile no longer links ruby.res.o with PROGRAM or WPROGRAM
Luis, I fixed at r37475. Please check it. h.shirosaki (Hiroshi Shirosaki)
11:00 PM Bug #7277 (Closed): mingw: Makefile no longer links ruby.res.o with PROGRAM or WPROGRAM
This issue was solved with changeset r37475.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* cygwin/GNUmakefile.in (uncommon.mk): link *.res.o.
EXTOBJES i...
Anonymous
04:20 AM Bug #7277 (Closed): mingw: Makefile no longer links ruby.res.o with PROGRAM or WPROGRAM
=begin
Just recently noticed that when linking ruby.exe or rubyw.exe, the icon defined in ruby.rc (or rubyw.rc) is not linked in.
The following is the command line make ruby.exe V=1 generates:
x86_64-w64-mingw32-gcc -O3 -fno-omit...
luislavena (Luis Lavena)
11:03 PM Bug #7259 (Assigned): ruby-debug-base19x does not compile on 2.0.0-head
Ko1, what do you think about?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:02 PM Bug #7085 (Assigned): Subversion → GitHub gateway stops.
Evan Phoenix, ping?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:01 PM Bug #7248 (Assigned): Shouldn't Enumerator::Lazy.new be private?
Yhara-san, I'd like your opinion about this ticket.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:57 PM Bug #4923: [ext/openssl] test_ssl.rb: test_client_auth fails
Emboss and NaHi, ping?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:56 PM Bug #1341 (Rejected): pthread_cond_timedwait failing in 1.9.1-p0 thread tests on HP-UX 11i v2
HP-UX is not supported. I'm sorry, but please create a patch that works yourself.
If you provide us the patch and it looks benign to other platforms, we may apply it to trunk.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:53 PM Bug #3600 (Rejected): HP-UX compilation
HP-UX is not supported. I'm sorry, but please create a patch yourself.
If you provide us the patch and it looks benign to other platforms, we may apply it to trunk.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:42 PM Bug #7227 (Assigned): failed to build native extension for bcrypt-ruby gem under cygwin on windows xp
Aaron, are you one of bcrypt-ruby developers?
Do you know anything about this issue?
Looks related to: https://github.com/codahale/bcrypt-ruby/issues/46
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:26 PM Bug #7216 (Assigned): object.c defines clone method for objects that cannot be cloned.
Akr-san, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:25 PM Bug #7213 (Assigned): Namespace regression problem in RSpec from 1.9.2 to 1.9.3
If I recall, this is an intentional change since 1.9.3.
Shugo-san, could you check give him a reference to the discussion and close this ticket?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:22 PM Bug #7167 (Assigned): Segmentation Fault
Looks very difficult to reproduce this issue.
The segfault seems to occur in read_nonblock.
Akr-san, do you know anything? If not, please close this ticket.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:19 PM Bug #4199 (Rejected): make test ruby-1.9.2-p0 failed on Solaris10 x86
I'm thinking that too many platforms are "supported" currently with respect to the human resource.
If Solaris is really supported as a "best effort" platform, this ticket should not be left untouched so long. No effort.
So, I'm like...
mame (Yusuke Endoh)
10:10 PM Feature #7280 (Closed): How to set filesystem encoding
[Bug #2154] から分離します。あっちは2.0.0(と1.9.3)をどう落ち着けるか、
こっちはnext minorあたりでファイルシステムエンコーディングをどうするか、
ということで。
今のところ、
* UNIX系でfilesystem encodingを設定したいユースケースはあるので、
何らかの手段は提供したい。
* コマンドライン引数 --filesystem-encoding= およびメソッドEncoding...
usa (Usaku NAKAMURA)
09:59 PM Bug #2154: filesystem encoding of UNIX
こんにちは、なかむら(う)です。

In message "[ruby-dev:46403] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX"
on Nov.05,2012 21:33:52, <h.shirosaki@gmail.com> wrote:
> File.expand_pathのencodingが変わったのは、中田さんの修正による変更のように思い...
usa (Usaku NAKAMURA)
09:53 PM Bug #2154: filesystem encoding of UNIX
2012/11/5 U.Nakamura <usa@garbagecollect.jp>:
> ただUNIX系については特に意図せず変更されていると思うので、現
> 時点では挙動を戻すのが妥当なラインかと思っているのですが...
> なおこの変更は例のWindows用のFile.expand_path高速化の副作用で
> あるというのが私の観測なので、それが事実かどうか(そして事実だ
> としたらどこを直せばいいのか)をちょっと考えてみてほしいです...
h.shirosaki (Hiroshi Shirosaki)
05:53 PM Bug #2154: filesystem encoding of UNIX
2012/11/5 U.Nakamura <usa@garbagecollect.jp>:
> 実はbackportの都合で今時点の1.9.3 HEADも現状のtrunkの実装を引
> き継いでいるので、個人的には、まずさっさと2.0.0でどうするか、
> を決めてしまいたい気分です。1.9.3はそれに合わせるので。
>

expand_pathのencodingが引数のencodingと同じになるのは、コードを書くときには、それはそれで分かり...
h.shirosaki (Hiroshi Shirosaki)
03:23 PM Bug #2154: filesystem encoding of UNIX
こんにちは、なかむら(う)です。

In message "[ruby-dev:46375] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX"
on Nov.03,2012 04:56:59, <kosaki.motohiro@gmail.com> wrote:
> 1)
> ロケールは UTF-8
> ファイルシステムはFAT(よってファイルシステム...
usa (Usaku NAKAMURA)
09:58 PM Bug #7201 (Assigned): Setting default_external affects STDIN encoding but default_internal does not
Naruse-san, could you handle this?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:58 PM Bug #7200 (Assigned): Setting external encoding with BOM|
Naruse-san, could you handle this?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:52 PM Bug #7183 (Assigned): Resolv::DNS::getresources throws Errno::EACCES: Permission denied - bind(2) on solaris
Akr-san, could you check this?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:51 PM Bug #7180: set_trace_func with error in proc block locks up Ruby with 100% cpu usage and no way to exit without killing proc
Gary Weaver, ping?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:51 PM Bug #7279 (Closed): Zlib load error on HP-UX
This was apparently a known issue on HP-UX and it is preventing me from compiling zlib
http://www.ruby-forum.com/topic/191987
To reproduce -
PA-RISC/HP-UX 11.11
alexharv074 (Alex Harvey)
09:44 PM Bug #7161 (Assigned): Perf fix: use symbols instead of strings for const/ivar access methods
The patch looks benign. I wonder how much is the performance improved, though.
Urabe-san, could you handle the pull request?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:41 PM Bug #7155 (Rejected): Invalid byte sequence in US-ASCII when using open-air
Closing because OP seemed to re-register another ticket #7156.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:37 PM Bug #7100 (Assigned): WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
akr さん、どう思われますか?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:33 PM Bug #6653: 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections
Erik Hollensbe, ping?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:14 PM Bug #7066 (Closed): test_segv_test(TestRubyOptions) が F になる
岸本さん、いつもありがとうございます。
これは多分直ったってことで大丈夫ですかね。
もしまた観測されたら reopen なりなんなりしてください。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:11 PM Feature #4569: Replace IPAddr with IPAddress
Hello knu,
just back from a quick holiday :)
Thanks very much for your update. Here's my feedback:
- introduction of IPAddr::Error for ease of selectively catching IP address errors
that's an easy change for IPAddress, should...
ceresa@gmail.com (Marco Ceresa)
09:08 PM Bug #7109 (Rejected): File.utime doesn't set nanoseconds
It cannot be avoided because the limitation is due to OS. Closing.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:05 PM Bug #6803 (Feedback): Ruby Interpreter (CUI) 1.9.3p194 [i386-mingw32] has stopped working
Did you contact on watir-webdriver developer(s)?
Please give us a complete reproducing process and resource, the error message and the trace.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:58 PM Bug #6283 (Assigned): Segmentation fault pg_ext.bundle
I guess #7089 is the same cause.
#7089 has the console log which shows that an error occurred in "require".
#6283 has only the CrashReporter log, so I can't determine where an error occurred, but I guess that the point is "require", ...
mame (Yusuke Endoh)
08:55 PM Revision c9fc6b08 (git): * test/ruby/test_require.rb
(TestRequire#test_require_to_path_redefined_in_load_path,
TestRequire#test_require_to_str_redefined_in_load_path):
Suppress method redefined warning when test-all with RUBYOPT=-w.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3...
h.shirosaki (Hiroshi Shirosaki)
08:47 PM Feature #7087 (Assigned): ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
In similar way to #7087, I think this is not a bug, but a feature request.
Moved to feature tracker.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:44 PM Feature #7086 (Assigned): ConditionVariable#wait has meaningless return value
mame (Yusuke Endoh)
08:44 PM Feature #7086: ConditionVariable#wait has meaningless return value
This is not a bug. As you said ("Otherwise the idiom shown above would become more complex"), there is a trivial workaround.
I think that Ruby thread APIs are modeled on pthread APIs. pthread_cond_wait does not return such as informat...
mame (Yusuke Endoh)
08:38 PM Bug #7042 (Rejected): String#=~ is not equal to Regexp#=~
Because this is a kind of assignment, the value is in the right side and the variable is in the left side... we thought.
This is actually intentional. Closing.
You can open a feature request to add a pattern to regexp assignment, if...
mame (Yusuke Endoh)
08:33 PM Bug #7044 (Assigned): BigDecimal#power randomly raises coercion errors
Confirmed, good catch!
Looks GC issue. An intermediate object seems to be GC'd too early.
The following patch will fix. Mrkn, could you review and commit it if it looks good?
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigd...
mame (Yusuke Endoh)
08:10 PM Bug #7043 (Rejected): bug with Require
This is an intentional change. Since 1.9, the default search path does
not include "." (current working directory) to make it more secure.
You may want to use require_relative which loads a file relative to the
directory that cont...
mame (Yusuke Endoh)
08:02 PM Bug #7027 (Assigned): Tempfile#inspect is Confusing
Glass_saga,
Sounds good. Please commit it.
If something comes up, we can deal with it then.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:57 PM Bug #6344 (Rejected): 1.9.3 p125, p194 ruby causes SEGV with test_massign.rb on ppc/ppc64
After all, increasing the value is not an essential fix, I think.
Again, there is no powerpc maintainer. I'm closing this ticket.
Feel free to reopen or open a new ticket if you can make a patch.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:53 PM Bug #7009 (Assigned): Crash in method_missing
I cannot reproduce on Linux.
I wonder if altstack does not work on os x.
Kosaki-san, do you know anything about this?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
04:59 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
On 2012/11/03 3:54, meta (mathew murphy) wrote:
>
> Issue #7267 has been updated by meta (mathew murphy).
>
>
> Relevant links:
>
> http://search.cpan.org/~tomita/Encode-UTF8Mac-0.03/lib/Encode/UTF8Mac.pm
>
> Seems to ...
duerst (Martin Dürst)
04:43 PM Revision 4e73323a (git): * thread_pthread.c (rb_reserved_fd_p): fix typo in macro check
that prevented the ifdef ever being true.
[Bug #7281] [ruby-core:48940]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
04:38 PM Bug #7271: Refinement doesn't seem lexical
ko1 (Koichi Sasada) wrote:
> (2012/11/05 11:57), shugo (Shugo Maeda) wrote:
> ...
I may have confused you by the word lexical, but I used the word lexical in the sense that refinements have no local rebinding. I'm not sure whether ref...
shugo (Shugo Maeda)
03:59 PM Bug #7271: Refinement doesn't seem lexical
(2012/11/05 11:57), shugo (Shugo Maeda) wrote:
> Yes, it's intentional. Refinements are activated when C_User is reopend.
>
> I'm not sure whether is'a good idea or not, but if C_User.module_eval is affected by refinements, it s...
ko1 (Koichi Sasada)
11:57 AM Bug #7271: Refinement doesn't seem lexical
ko1 (Koichi Sasada) wrote:
> C_User#y is refined. Is that intentional?
Yes, it's intentional. Refinements are activated when C_User is reopend.
I'm not sure whether is'a good idea or not, but if C_User.module_eval is affected by...
shugo (Shugo Maeda)
04:24 PM Feature #6767: Utility method to get a duplicated string whose encoding is ASCII-8BIT
OK to check in.
Matz.
matz (Yukihiro Matsumoto)
04:23 PM Feature #4085: Refinements and nested methods
(2012/11/04 5:57), SASADA Koichi wrote:
> I have another implementation idea, using "prepend".

Nobu taught me that this approach is not work.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
03:17 PM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> I currently don't see any way to support enabling refinements in blocks without a global, unavoidable impact to all call sites.
> ...
In Ruby 1.9, a new cref node with the special flag (NODE_FL_CREF_PU...
shugo (Shugo Maeda)
03:07 PM Feature #4085: Refinements and nested methods
matz (Yukihiro Matsumoto) wrote:
> I agree with Charles here. Avoiding global cache invalidation is priority one.
> ...
At first, I expected using is called only at an early stage of a program execution.
However, this expectation does...
shugo (Shugo Maeda)
02:17 PM Feature #4085: Refinements and nested methods
I currently don't see any way to support enabling refinements in blocks without a global, unavoidable impact to all call sites.
If refinements are applied lexically, then a block suddenly having refinements active does not make sense,...
headius (Charles Nutter)
01:53 PM Feature #4085: Refinements and nested methods
Sorry, this got double-posted because I thought my email did not come through properly.
On Sun, Nov 4, 2012 at 8:50 PM, shugo (Shugo Maeda)
<redmine@ruby-lang.org> wrote:
> Such an anonymous module may be reused in a_matsuda's cases,...
headius (Charles Nutter)
01:39 PM Feature #4085: Refinements and nested methods
I agree with Charles here. Avoiding global cache invalidation is priority one.
At the same time, I want a way to enable refinement to given block.
Matz.
matz (Yukihiro Matsumoto)
01:33 PM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> matz wrote:
> ...
To me, this means the module_eval feature absolutely cannot be supported unless a new implementation can be found. No normal feature of Ruby should force full cache invalidation globally.
headius (Charles Nutter)
11:50 AM Feature #4085: Refinements and nested methods
matz wrote:
> But I am not sure allowing refinement application in blocks should be
> ...
Such an anonymous module may be reused in a_matsuda's cases, but method caching may be a worse problem. In the current implementation, using in...
shugo (Shugo Maeda)
11:44 AM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> Discussed refinements a bit with Matz + ko1 plus a_matsuda and others at lunch...here's summary.
Thanks for the summary.
The current implementation is cref-based because I came up with the idea in...
shugo (Shugo Maeda)
07:25 AM Feature #4085: Refinements and nested methods
Hi,

In message "Re: [ruby-core:48828] Re: [ruby-trunk - Feature #4085] Refinements and nested methods"
on Sun, 4 Nov 2012 08:42:11 +0900, Akira Matsuda <ronnie@dio.jp> writes:
|
|Playing with refinements after talking wit...
Anonymous
03:36 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Kosaki-san, you can move a ticket to Backport because you are a committer.
So, pelase do so instead of only changing the status to Open.
usa (Usaku NAKAMURA)
11:48 AM Bug #6825 (Assigned): forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Reopened. because r37474 only fixed trunk.
kosaki (Motohiro KOSAKI)
11:46 AM Bug #6825 (Closed): forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
This issue was solved with changeset r37474.
Mark, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread_pthread.c (native_thread_init, native_thread_destroy):
...
kosaki (Motohiro KOSAKI)
03:27 PM Revision d33b9a8a (git): Fix compatibility of cached expanded load path
* file.c (rb_get_path_check_to_string): extract from
rb_get_path_check(). We change the spec not to call to_path of
String object.
* file.c (rb_get_path_check_convert): extract from rb_get_path_check().
* file.c (rb_get_path_check)...
h.shirosaki (Hiroshi Shirosaki)
03:27 PM Revision 9823c461 (git): Cache the expanded load path
* load.c (rb_get_expanded_load_path): cache the expanded load
path. This saves 4KB of allocation and some stats for every
element of the load path (so nearly a MB in my Rails app)
on every require.
* load.c (rb_construct_expanded...
h.shirosaki (Hiroshi Shirosaki)
03:27 PM Revision b56a2afc (git): Index $LOADED_FEATURES so that require isn't so slow
* load.c (rb_feature_p, rb_provide_feature): index $LOADED_FEATURES
so that require isn't so slow.
* load.c (rb_provide_feature, get_loaded_features_index): ensure
that $LOADED_FEATURES entries are frozen strings. The user
must m...
h.shirosaki (Hiroshi Shirosaki)
03:25 PM Feature #6744: ruby unable to run system commands that require elevated privileges
About UAC, I'm untouching now.
It is dicfficult to design and implement into 2.0.0, I guess.
If python does something to manage UNC, please tell me what python does :)
usa (Usaku NAKAMURA)
03:24 PM Revision 2a7d349e (git): * 2012-11-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:24 PM Revision e575070f (git): Expose whether two arrays are shared
* array.c (rb_ary_shared_with_p): new function.
Expose whether two arrays are shared (read-only, C only).
* include/ruby/intern.h (rb_ary_shared_with_p): declare.
Patch by Greg Price.
[ruby-core:47970] [Bug #7158]
git-svn-id: svn...
h.shirosaki (Hiroshi Shirosaki)
03:24 PM Revision 4d414c9f (git): Clarify and explain loaded_feature_path and rb_feature_p
* load.c (loaded_feature_path): clarify and briefly comment
function. These clarifications have no effect on the behavior
of the function.
* load.c (rb_feature_p): explain the search loop. Especially
useful because the logic is ...
h.shirosaki (Hiroshi Shirosaki)
02:49 PM Bug #7269: Refinement doesn't work if using locate after method
matz (Yukihiro Matsumoto) wrote:
> OK, I understand the behavior. What are pros and cons of module based refinement?
pros:
* not affected by the order of loading/using
* consistent with module_eval and behavior when a module is ...
shugo (Shugo Maeda)
01:49 PM Bug #7269: Refinement doesn't work if using locate after method
I should also mention that if we can't tell ahead of time that a call site has to search refinements, it means all calls everywhere will have to have cref available. In JRuby, this could easily be a crippling blow to performance, and in ... headius (Charles Nutter)
01:42 PM Bug #7269: Refinement doesn't work if using locate after method
Making refinements *less* lexical seems like the wrong direction to me. It means all calls everywhere have to check for refinements all the time, similar to the module_eval problem.
In the following code:
a.rb:
module Foo
def...
headius (Charles Nutter)
01:10 PM Bug #7269: Refinement doesn't work if using locate after method
OK, I understand the behavior. What are pros and cons of module based refinement?
Matz.
matz (Yukihiro Matsumoto)
12:16 PM Bug #7269: Refinement doesn't work if using locate after method
headius (Charles Nutter) wrote:
> I commented on the other bug about how refinements need to be temporal
> ...
I've started to wonder if it's better to limit refinements based on modules instead of lexical scopes.
In the current im...
shugo (Shugo Maeda)
02:25 PM Bug #5530: SEEK_SET malfunctions when used with 'append' File.open mode
Hi Eric,
Currently, rdoc seems failed to understand rb_define_file_const() in io.c and doesn't make correct File::Constant documentation.
Is there any workaround for it?
I don't understand
1) why rb_file_const() is necessary
2) ...
kosaki (Motohiro KOSAKI)
02:03 PM Bug #7264: Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
naruse (Yui NARUSE) wrote:
> The gcc-4.2 is llvm-gcc, use clang.
> ...
try this:
CONFIGURE_OPTS="--use-gcc=clang" rbenv install …
sorah (Sorah Fukumori)
11:53 AM Bug #7264 (Third Party's Issue): Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
The gcc-4.2 is llvm-gcc, use clang.
If rbenv forces to use llvm-gcc, this issue should be reported to rbenv.
naruse (Yui NARUSE)
11:24 AM Bug #7264: Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
Reproduced with Lion & default gcc: "i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)"
(comes from Command Line Tools (OS X Lion) for Xcode - October 2012, xcode451cltools_10_7693820...
sorah (Sorah Fukumori)
02:00 PM Revision 9bb55f76 (git): * ext/dl/win32/lib/Win32API.rb (Win32API#call): use 64bit pointer for x64
Windows. This would fix
TestSecureRandom#test_s_random_bytes_without_openssl error.
[ruby-core:47451] [Bug #6990]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
02:00 PM Revision 868ab650 (git): * cygwin/GNUmakefile.in (uncommon.mk): link *.res.o.
EXTOBJES is defined in uncommon.mk. *.res.o setting should be below
uncommon.mk.
[ruby-core:48858] [Bug #7277]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
01:30 PM Feature #6636: Enumerable#size
After skimming your modifies, I feel they are decent.
Sorry for being late to check.
Matz.
matz (Yukihiro Matsumoto)
01:30 PM Feature #7240: Inheritable #included/#extended Hooks For Modules
Oops, I made mistakes.
I am positive about the change, but I have concern about compatibility.
Maybe we should provide a new method, but I cannot think of any good name right now.
Matz.
matz (Yukihiro Matsumoto)
10:10 AM Bug #7110: CGI: Add support for HTML5 <header> tag
xibbar, it is your decision to make, and I support it.
Thank you.
zzak (zzak _)
09:33 AM Bug #7110: CGI: Add support for HTML5 <header> tag
I decide this change.
Because minor version up is is more important than consistency.
But 2.0 is major version up.
HTML5 will be gradually standard format.
xibbar (Takeyuki FUJIOKA)
09:29 AM Bug #7110: CGI: Add support for HTML5 <header> tag
stomar (Marcus Stollsteimer) wrote:
> Perhaps a note should be added to NEWS, maybe something like
> ...
Thank you. I will add.
xibbar (Takeyuki FUJIOKA)
05:12 AM Bug #7110: CGI: Add support for HTML5 <header> tag
> In my opinion compatibility is more important than consistency, but
> ...
I don't think a general rule can be derived from this single statement. Also, the circumstances are different. Here, it is more a question of avoiding inconsiste...
stomar (Marcus Stollsteimer)
04:23 AM Bug #7110: CGI: Add support for HTML5 <header> tag
In my opinion compatibility is more important than consistency, but
ultimately it is up to xibbar.

Other ruby-core share this sentiment, see ruby-core:48469


On Sun, Nov 4, 2012 at 9:15 AM, stomar (Marcus Stollsteimer)
<...
zzak (zzak _)
04:13 AM Bug #7110: CGI: Add support for HTML5 <header> tag
In my opinion compatibility is more important than consistency, but
ultimately it is up to xibbar.
Other ruby-core share this sentiment, see ruby-core:48469
zzak (zzak _)
10:00 AM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
I agree.
Quite simple: https://github.com/marcandre/ruby/compare/marcandre:trunk...marcandre:bind_with_owner
Diff: https://github.com/marcandre/ruby/compare/marcandre:trunk...marcandre:bind_with_owner.diff
note that `make test` an...
marcandre (Marc-Andre Lafortune)
09:37 AM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
Reposted as original text was not posted on ruby-core mailing list. marcandre (Marc-Andre Lafortune)
02:46 AM Revision 9da62b63 (git): * thread_pthread.c (native_thread_init, native_thread_destroy):
removed HAVE_PTHREAD_CONDATTR_INIT check because this silly
#ifdef makes use-uninitialized-var issue and (2) native_cond_initialize()
already have a right platform and caller don't need any additional care.
[Bug #6825]
git-svn-i...
kosaki (Motohiro KOSAKI)
02:34 AM Revision 0ba4526d (git): * lib/cgi/core.rb: check if Tempfile is defined before use it.
* lib/cgi/core.rb: remove tempfiles only if tempfiles exist
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:19 AM Revision 0ba78cb2 (git): * lib/uri/http.rb (URI::HTTP.build): Fix example
Patch by Carina C. Zona
[Fixes #209 Github]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
12:57 AM Revision 1362d81a (git): Mon Nov 5 09:55:05 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/core.rb: remove tempfile more early.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA
12:57 AM Revision d5528ec3 (git): Mon Nov 5 09:50:28 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* NEWS: add a news about html5 tagmaker
and rename CGI#header to CGI#http_header
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA

11/04/2012

11:54 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
> @kosaki @mrkn Would it be useful if I could provide you the core dump and other info?
Thanks!
r35672 seems broke this area and I'll fix it soon. However there is no r35672 in 1.9.3 branch and 1.9.3 seems correct. hmm...
Could you ...
kosaki (Motohiro KOSAKI)
09:09 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
I poked around an produced a core dump (the bug would not reproduce under gdb with a breakpoint set).
Arguments to pthread_cond_timedwait() seem valid, in particular the timespec is about 500ms in the future.
Other calls to pthread_c...
Eregon (Benoit Daloze)
07:55 AM Bug #6825 (Assigned): forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
This is also true with latest trunk (r37462).
I'm assigning to myself.
bug6825.rb:31: [BUG] pthread_cond_timedwait: Invalid argument (EINVAL)
ruby 2.0.0dev (2012-11-04 trunk 37462) [x86_64-darwin10.8.0]
-- Control frame informa...
Eregon (Benoit Daloze)
07:47 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
mrkn (Kenta Murata) wrote:
> I don't have snow-leopard environment, so I cannot investigate this issue.
I do still have a snow-leopard environment and I can reproduce with
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10....
Eregon (Benoit Daloze)
07:01 AM Bug #6825 (Closed): forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
> I don't have snow-leopard environment, so I cannot investigate this issue.
OK. Thank you.
This looks like old OS X bug but we have no way to dig. give up. I'd like to close this feature as won't fix.
Anyway snow leopard is no long...
kosaki (Motohiro KOSAKI)
05:43 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
I don't have snow-leopard environment, so I cannot investigate this issue. mrkn (Kenta Murata)
02:34 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
> Kosaki-san, do you have any idea to addres this issue?
I have no idea. unfortunately snow leopard is too old and i have no chance to get it.
@mrkn, do you have any chance to see this issue?
kosaki (Motohiro KOSAKI)
11:15 PM Bug #7110: CGI: Add support for HTML5 <header> tag
Perhaps a note should be added to NEWS, maybe something like

* cgi
* incompatible changes:
* CGI#header has been renamed to CGI#http_header.
CGI#header is now used by the HTML5 tag maker to
create a <header> ele...
stomar (Marcus Stollsteimer)
08:48 PM Bug #7110 (Closed): CGI: Add support for HTML5 <header> tag
This issue was solved with changeset r37466.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Sun Nov 4 20:41:28 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.o...
xibbar (Takeyuki FUJIOKA)
07:24 PM Bug #7110: CGI: Add support for HTML5 <header> tag
I think this function should be included in 2.0.0
So, I will commit.
Sorry late.
xibbar (Takeyuki FUJIOKA)
05:17 PM Bug #7110: CGI: Add support for HTML5 <header> tag
I really think for the proposed patch 2.0 would be the best place.
@zzak:
I can not judge how big the impact of renaming CGI#header would be.
BUT: Your proposal would mean that the <header> tag would have to be treated different...
stomar (Marcus Stollsteimer)
09:51 AM Bug #7110: CGI: Add support for HTML5 <header> tag
Sorry, xibber -> xibbar. mame (Yusuke Endoh)
09:50 AM Bug #7110: CGI: Add support for HTML5 <header> tag
I recommend xibber to postpone this to next minor, if there is room to discuss anything about the spec of this feature (such as a method name).
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:10 AM Bug #7110: CGI: Add support for HTML5 <header> tag
I think CGI#header should stay the same, and this method to product html5 compatible headers should be CGI#html_header zzak (zzak _)
10:01 PM Bug #7275 (Third Party's Issue): net/http wrong status line: "\x00HTTP/1.1 200 OK"
Can't reproduce without proxychain.
I believe this is a proxychain issue, or at least you are using it in wrong way.
Please consult proxychain's docs or issue tracker or whatever.
shyouhei (Shyouhei Urabe)
08:33 PM Bug #7275 (Third Party's Issue): net/http wrong status line: "\x00HTTP/1.1 200 OK"
1. install proxychains
2. proxychains irb
ProxyChains-3.1 (http://proxychains.sf.net)
1.9.3p194 :001 > require "net/http"
=> true
1.9.3p194 :002 > res = Net::HTTP.start("www.google.com", "80") do |http|
1.9.3p194 :003 > http....
puchuu (Andrew Aladjev)
09:14 PM Revision a8aaf1eb (git): * 2012-11-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:14 PM Revision b5c5b980 (git): Don't redefine methods
If HTML5 element methods are already defined, don't redefine them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:55 PM Feature #7274 (Rejected): UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
=begin
as a corollary, (({UnboundMethod}))s referencing the same method name on the same owner, should be equal
currently (({UnboundMethod}))s binding is determined by the class via which they were retrieved, not the owner
class ...
rits (First Last)
07:51 PM Feature #6638: Array as queue
I've rebased branch against trunk. funny_falcon (Yura Sokolov)
11:44 AM Feature #6638: Array as queue
On Win7 32bit with a one-line tweak to Yura's `174.patch` to allow it to apply to trunk I get the following success when building with mingw-w64 gcc 4.7.2:
C:\Jenkins\workspace\ruby-trunk-svn>svn log -l 1
----------------------------...
jonforums (Jon Forums)
07:41 PM Bug #7264: Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
=begin
I've got this issue on OS X 10.8.2 with gcc-4.2
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software...
igor.alexandrov (Igor Alexandrov)
05:03 PM Bug #6954 (Closed): Build failure on trunk 36856 with VC 2010
Thank you!
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
04:56 PM Bug #6954: Build failure on trunk 36856 with VC 2010
This bug was fixed by r36864.
And I confirmed 2.0.0-preview1 builds fine with the VC 2010.
phasis68 (Heesob Park)
12:19 PM Bug #6954 (Feedback): Build failure on trunk 36856 with VC 2010
Heesob Park, could you try 2.0.0-preview1?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:23 PM Feature #7252: version number of 2.0 release
2012年11月1日 23:50 Urabe Shyouhei <shyouhei@ruby-lang.org>:
> On 11/01/2012 02:33 AM, KOSAKI Motohiro wrote:
>>>> 旧来の開発版/開発版とかもういらないんじゃないですかね。
>>>> trunkが開発版、リリースされたら安定版、で。
>>>
>>> その行為が開発を促進するか停滞させるかは意見の分かれるところでしょう。
>>>
>>>...
naruse (Yui NARUSE)
01:26 PM Bug #7272: twice-a-week manual svn -> github sync
Hi, when I saw Evan at RubyConf yesterday he said he's doing the action that day so I waited.
He was super-busy at that conference so it's quite natural he's still working on that. But it's OK. I'll re-sync the repo on Monday if he'...
shyouhei (Shyouhei Urabe)
11:28 AM Bug #7272 (Closed): twice-a-week manual svn -> github sync
Until the automated svn -> github gateway can be resuscitated, can I cajole someone (Shyouhei-san?) into doing a Monday and Friday manual sync for just the ruby_1_9_3 and trunk branches?
I know this non-automation is painful, so a MEG...
jonforums (Jon Forums)
12:37 PM Revision 8519a2d5 (git): * ChangeLog: Remove garbages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
12:25 PM Bug #7000 (Assigned): Tk::Scrollable の include が成功しない?
永井さん、このチケットをご確認ください。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:24 PM Bug #6974 (Assigned): Functionality Loss in Bignum for Very Large Numbers (5.9 million digits)
Mrkn, could you check this too?
Maybe the same causes as #7242.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:12 PM Bug #6892 (Third Party's Issue): segfault of interpreter (possibly related to libxml-ruby)
This is very subtle bug.
libxml makes sure to free a object by writing NULL to the entries,
which breaks Ruby internal finalizing list.
Applying the following patch to libxml fixes the issue in my
environment.
But because I'm no...
mame (Yusuke Endoh)
11:56 AM Feature #7028 (Closed): Please Repatch FileUtils.compare_stream
This issue was solved with changeset r37465.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/fileutils.rb (module FileUtils): repatch [ruby-core:39622...
Anonymous
11:48 AM Revision 6837f3dc (git): Sun Nov 4 20:41:28 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi.rb, lib/cgi/*/rb: rename CGI#header to
CGI#http_header,
add and update HTML5 tag generater. [Bug #7110]
Patch provided by Marcus Stollsteimer, thank you !
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37466 b...
Takeyuki FUJIOKA
11:12 AM Feature #6643: io.seek(off, :end)
patch2.diff(IO::SEEK_*の値は変えないで、新たにSymbolも大文字小文字を無視して受け付けるようにしたpatch)をコミットしたいのですが、反対はありませんか?
しばらく待って反対がなければ、入れてしまおうと思います。
Glass_saga (Masaki Matsushita)
10:19 AM Feature #5422 (Closed): File.fnmatch != Dir.glob # {no,sets}
This issue was solved with changeset r37463.
Suraj, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
dir.c: FNM_EXTGLOB
* dir.c (file_s_fnmatch): match with expandi...
nobu (Nobuyoshi Nakada)
09:54 AM Bug #6691 (Closed): MinGW: KNOWNBUGS.rb 4/4 failures
These bugs have been fixed in r37430. ktsj (Kazuki Tsujimoto)
08:53 AM Feature #4085: Refinements and nested methods
Playing with refinements after talking with Charlie, I found
refinements are not very much attractive feature without module_eval.
I think I do understand the down sides Charlie described.
And I'm sure people will abuse this refineme...
matsuda (Akira Matsuda)
05:59 AM Feature #4085: Refinements and nested methods
I have another implementation idea, using "prepend".
I also try it next week.
(I can't explain this idea in English, so I will write code).


(2012/11/03 14:33), headius (Charles Nutter) wrote:
>
> Issue #4085 has been up...
ko1 (Koichi Sasada)
05:33 AM Feature #4085: Refinements and nested methods
Discussed refinements a bit with Matz + ko1 plus a_matsuda and others at lunch...here's summary.
The using method currently touches cref, making it largely scoped like constants. If refinement lookup at a call site proceeds the same w...
headius (Charles Nutter)
01:53 AM Feature #4085: Refinements and nested methods
More thoughts...

I could get behind refinements if using were a keyword (so we could
tell at parse time refinements would be active) and purely lexical.
The following features of the current implementation would have to be
removed...
headius (Charles Nutter)
01:53 AM Feature #4085: Refinements and nested methods
On Fri, Nov 2, 2012 at 7:12 PM, shugo (Shugo Maeda)
<redmine@ruby-lang.org> wrote:
> headius (Charles Nutter) wrote:
> > * Refinements in modules and class hierarchies does not seem like a problem to me yet.
> > * Refinements are "u...
headius (Charles Nutter)
05:36 AM Bug #7271 (Closed): Refinement doesn't seem lexical
C_User#y is refined. Is that intentional?
class C
def foo
p :C_foo
end
end

module RefineC
refine C do
def foo
p :RefineC_foo
super
end
end
end

class C_User
using RefineC
def x
...
ko1 (Koichi Sasada)
03:04 AM Bug #7242: Bignum mathematical accuracy regression in r31695
Although I'm trying to fix it for about two days, I found I need more time to find the direct causes of the bug.
I decide to disable Toom3 method until the bug is fixed.
mrkn (Kenta Murata)
02:56 AM Revision 2142287c (git): * lib/fileutils.rb (module FileUtils): repatch [ruby-core:39622]
[Feature #5337]. improve performance of FileUtils.compare_stream.
[ruby-core:47545] [Feature #7028]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
02:44 AM Revision a28a060d (git): * array.c (recursive_equal): fix to return true when self and other
are resized to same size and the current index become out of
range.
* test/ruby/test_array.rb: add a test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
02:23 AM Bug #7269: Refinement doesn't work if using locate after method
On Sat, Nov 3, 2012 at 10:45 AM, SASADA Koichi <ko1@atdot.net> wrote:
> # is that corner case? :)
>
> class C_User2
> def x
> 2.times{
> C.new.foo
> self.class.send(:using, RefineC)
> }
> end
...
headius (Charles Nutter)
01:53 AM Bug #7269: Refinement doesn't work if using locate after method
(2012/11/03 10:42), SASADA Koichi wrote:
> ###
>
> class C
> def foo
> p :C_foo
> end
> end
>
> module RefineC
> refine C do
> def foo
> p :RefineC_foo
> super
> end
> end
...
ko1 (Koichi Sasada)
01:53 AM Bug #7269: Refinement doesn't work if using locate after method
(2012/11/03 10:36), SASADA Koichi wrote:
> (2012/11/03 10:11), headius (Charles Nutter) wrote:
>> I don't like the idea that using should affect methods already defined. At this point I view using similar to private/protected/etc, w...
ko1 (Koichi Sasada)
01:53 AM Bug #7269: Refinement doesn't work if using locate after method
(2012/11/03 10:11), headius (Charles Nutter) wrote:
> I don't like the idea that using should affect methods already defined. At this point I view using similar to private/protected/etc, which also do not affect methods defined before...
ko1 (Koichi Sasada)
01:11 AM Bug #7269: Refinement doesn't work if using locate after method
I don't like the idea that using should affect methods already defined. At this point I view using similar to private/protected/etc, which also do not affect methods defined before you call them. headius (Charles Nutter)
01:19 AM Revision e59d5667 (git): dir.c: FNM_EXTGLOB
* dir.c (file_s_fnmatch): match with expanding braces if FNM_EXTGLOB
is set. [ruby-core:40037] [Feature #5422]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:43 AM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
Thanks for the explanation. I didn't think Ruby was being evil :)
If the translation from UTF8-MAC -> UTF-8 is entirely non-lossy and would do no harm to other UTF-8 strings (these decomposed patterns would only occur with the intenti...
kennygrant (Kenny Grant)
12:10 AM Feature #4872: REXML::XMLDecl#encodingがStringではなくEncodingを返すようにする
kou (Kouhei Sutou) wrote:
> kou (Kouhei Sutou) wrote:
> ...
なるほど、確かにその方がよいと思います。
naruse (Yui NARUSE)

11/03/2012

11:25 PM Bug #6896 (Feedback): Ruby crash bringing default http://localhost:3000 page
From my experience, this kind of issues is often caused by a bug of the extension library.
I'd like to know why ibm_db maintainer(s) thought that this is Ruby's bug.
Of course, I cannot deny the possibility of Ruby's bug.
But anyw...
mame (Yusuke Endoh)
09:02 PM Bug #7110 (Assigned): CGI: Add support for HTML5 <header> tag
xibbar, are you willing to include this in 2.0.0?
If so, please commit it ASAP, before preview2 (planned at 1 Dec.) at the latest.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:52 PM Bug #6864: bad value for range when using infinity with date or time
I see, thank you. Then, addressing this issue requires
changing Range's spec, which is too heavy from this time.
I postpone this to next minor.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:38 PM Bug #6864: bad value for range when using infinity with date or time
this asymmetry is intentional.
i don't want to accept aNum + aDate.
Range's spec is variable.
tadf (tadayoshi funaba)
12:47 PM Bug #6864 (Assigned): bad value for range when using infinity with date or time
This is caused by the following behavior.
p Date.today <=> 1.0 #=> 1
p 1.0 <=> Date.today #=> nil
Funaba-san, what do you think?
It may be good to provide Date#coerce.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:51 PM Revision 7ba2f1a9 (git): * 2012-11-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:51 PM Revision 129dafda (git): * ChangeLog: fix ML link for r37444 and r37447.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:39 PM Revision d4199057 (git): * complex.c: modified doc.
* rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
02:11 PM Feature #4872: REXML::XMLDecl#encodingがStringではなくEncodingを返すようにする
kou (Kouhei Sutou) wrote:
> * REXML::XMLDecl#encodingはEncodingを返すようにする。
これはやらないことにしました。
これをやりたかったもともとの理由は、ユーザーとしてエンコーディング情報を正規化した状態で扱いたかった(UTF-8かutf-8かとか気にしたくない)からでした。が、よく見てみたら、XMLDecl#encodingはupcaseして正規化していました。(utf-8を気にせずに常にUTF-...
kou (Kouhei Sutou)
01:53 PM Bug #6832: Module#instance_method and Module#method_defined? act inconsistently w.r.t #respond_to_missing?
+1, at least for instance_method returning an UnboundMethod.

On Fri, Nov 2, 2012 at 11:25 PM, mame (Yusuke Endoh) <mame@tsg.ne.jp> wrote:

>
> Issue #6832 has been updated by mame (Yusuke Endoh).
>
> Status changed from O...
claytrump (Clay Trump)
12:25 PM Bug #6832 (Assigned): Module#instance_method and Module#method_defined? act inconsistently w.r.t #respond_to_missing?
Let me summarize:
class Foo
def method_missing(name, *args)
return super unless name =~ /^foo_/
puts name
end
def respond_to_missing?(name, include_private)
super || name =~ /^foo_...
mame (Yusuke Endoh)
01:47 PM Bug #7230 (Closed): Updating Documentation for Dir::glob
This issue was solved with changeset r37447.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* dir.c (Dir#glob):
Documentation for pattern section, backslas...
zzak (zzak _)
01:39 PM Revision 64bb9749 (git): * ext/date/date_core.c: modified doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
01:27 PM Bug #7179 (Closed): IO doc: wrong/misleading text for mode
This issue was solved with changeset r37443.
Roman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (IO#new):
Documentation for IO#open modes and formattin...
zzak (zzak _)
01:27 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
Just another reason why Unicodes sucks.
Anyway, I know your feeling and I wish I could help you. The problem is, the world isn't built on top of Mac OS. So there're virtually thousands of different formats of hard disks, with differ...
shyouhei (Shyouhei Urabe)
07:50 AM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
The problem I encountered here was that although the encoding is also UTF-8, apparently there are several flavours of UTF-8, NFC or NFD. This is not something most Ruby users will be familiar with, and I'm not sure it's really the same a... kennygrant (Kenny Grant)
04:18 AM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
meta (mathew murphy) wrote:
> Seems to me Ruby should pick one of the standard normalization forms
No, Ruby's M17N design is that it never picks one standard form of strings. Strings have various encodings and it's you, not ruby, wh...
shyouhei (Shyouhei Urabe)
03:54 AM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
Relevant links:
http://search.cpan.org/~tomita/Encode-UTF8Mac-0.03/lib/Encode/UTF8Mac.pm
Seems to me Ruby should pick one of the standard normalization forms for all UTF-8 data, and convert when necessary.
Apparently there are O...
meta (mathew murphy)
12:40 PM Bug #6839: 1.9.3p194 [BUG] Segmentation fault
What is `Tweet' class? Is it provided by some gem?
Can you reproduce this issue with out rails dependency?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:35 PM Bug #6848 (Rejected): bundle install fails
Another reference.
http://blog.55minutes.com/2012/01/fixing-a-segmentation-fault-in-ruby-193/
This looks a known issue of openssl binary bundled with Mac OS X.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:31 PM Bug #6825 (Assigned): forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Kosaki-san, do you have any idea to addres this issue?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:29 PM Feature #6177 (Closed): array.cのrb_ary_equal()の高速化
r37438でrb_equal()後にArrayのサイズがiより小さくなっていない事をチェックするよう修正してコミットしました。 Glass_saga (Masaki Matsushita)
12:25 PM Feature #6177 (Assigned): array.cのrb_ary_equal()の高速化
2012年11月3日 2:45 znz (Kazuhiro NISHIYAMA) <redmine@ruby-lang.org>:
> 以下のようにすると p1, p2 の操作で配列の範囲外にアクセスしてしまうようです。
> ...
ご指摘ありがとうございます。
for文の継続条件に引っかかってくれるので実際に参照してしまう事はないのですが、不正なポインタを作ってしまうのは良くないですね。
修正します。
Glass_saga (Masaki Matsushita)
02:45 AM Feature #6177: array.cのrb_ary_equal()の高速化
以下のようにすると p1, p2 の操作で配列の範囲外にアクセスしてしまうようです。
p1++ などのポインタ操作だけで参照までは行かなかったですが。
A = Array.new(3){|n| n.to_s }
B = A.dup
obj = Object.new
def obj.==(o)
A.clear
B.clear
GC.start
true
end
A[1] = obj
A == B
znz (Kazuhiro NISHIYAMA)
12:23 PM Bug #7112: File.extname documentation fix
Eregon, what do you suggest?
I sorta feel like covering every special case would be bad, but maybe add a few more examples?
zzak (zzak _)
12:20 PM Bug #6820 (Assigned): Time#to_s on NEWS
Aaron, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:17 PM Feature #6810 (Assigned): `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
As Xavier Noria said, this is actually an intended behavior. So I'm moving this ticket to the feature tracker.
And assigning to matz, though I think it is hopeless to change this basic behavior...
At least, matz can explain the ration...
mame (Yusuke Endoh)
12:11 PM Bug #6805 (Rejected): heroku connection failure
Agreed with Sorah.
This looks a famous issue of openssl binary bundled with Mac OS X.
See the following site in detail.
http://blog.55minutes.com/2012/01/fixing-a-segmentation-fault-in-ruby-193/
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:06 PM Feature #6783 (Closed): Infinite loop in inspect, not overriding inspect, to_s, and no known circular references. Stepping into inspect in debugger locks it up with 100% CPU.
mame (Yusuke Endoh)
11:43 AM Bug #6776 (Rejected): segment fault for 1.9.3 trunk crosscompiled runing on am335x
Sorry, there is no arm maintainer. Please try to create a patch yourself
if you need.
If you provide the patch for us, please open a ticket. We will check if
it is benign for other platforms and may apply to trunk.
--
Yusuke En...
mame (Yusuke Endoh)
11:35 AM Bug #6773 (Assigned): "You may have encountered a bug in the Ruby interpreter or extension libraries."
The reproducing process is stated in http://railscasts.com/episodes/366-sidekiq, right?
No one can repro this? Sorah, could you try?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:13 AM Bug #6756 (Assigned): FileUtils.rm_rf がアクセス権のない空ディレクトリを削除しない
以下のパッチで直りますが、影響無いですかね。make check は通りました。
反対がなさそうならコミットします。が、問題が起きたら revert となります。
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index 67cc79f..b18ca30 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -1534,6 +1534,7 @...
mame (Yusuke Endoh)
10:58 AM Bug #6750 (Assigned): Comment above rb_iseq_struct.local_size gives out of date description
Thank you. Ko1, do you apply his patch? It is clearly benign.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:56 AM Bug #6645: Segmentation fault in net/http.rb
At least, we need your whole source code to reproduce. Can you provide?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:52 AM Feature #6744 (Assigned): ruby unable to run system commands that require elevated privileges
Usa-san, Tarui-san, Shirosaki-san, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:44 AM Bug #6742 (Assigned): Emacs compilation-shell-minor-mode misconfiguration
Nobu, please check this.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:40 AM Bug #6718 (Rejected): ruby segfault in abstract_mysql_adapter.rb when trying to run from command-line
The reproducing process is incomplete (what is contained in "schoolyard/releases/20120710202724"?), and no feedback.
We cannot investigate this issue any more. Please reopen with the information if you need.
--
Yusuke Endoh <mame@...
mame (Yusuke Endoh)
10:37 AM Feature #3346 (Closed): __DIR__ revisted
This issue was solved with changeset r37432.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* eval.c (f_current_dirname): add the new method for Kernel.
...
authorNari (Narihiro Nakamura)
10:37 AM Bug #6704 (Rejected): Random core dump
If it happens again, please reopen this ticket with how to reproduce.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:12 AM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> Ok, early notes from writing up specs and starting to explore an implementation for JRuby.
Thanks.
> ...
The current behavior is mainly for an implementation reason, but Matz and ko1 seem not to l...
shugo (Shugo Maeda)
02:12 AM Feature #4085: Refinements and nested methods
Adding a couple additional positive notes:
* For now, I don't see a reason for using and refine to be keywords.
using and refine basically just add some additional state to modules and methods.
For refine:
* add to the module...
headius (Charles Nutter)
02:06 AM Feature #4085: Refinements and nested methods
Ok, early notes from writing up specs and starting to explore an implementation for JRuby.
* Refinements in modules and class hierarchies does not seem like a problem to me yet.
* Refinements are "used" in temporal order...methods ad...
headius (Charles Nutter)
09:41 AM Revision 65b746be (git): * vm.c (rb_vm_rewrite_ep_in_errinfo, vm_rewrite_ep_in_errinfo):
merge code and remove `rb_vm_rewrite_ep_in_errinfo'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
09:29 AM Bug #7269 (Closed): Refinement doesn't work if using locate after method
Refinement doesn't work if using locate after method.
(I eliminate discussion because my laptop doesn't have enough power...)
class C
def foo
p :C_foo
end
end
module M1
refine C do
def foo
p :M1_foo
...
ko1 (Koichi Sasada)
09:25 AM Bug #6995 (Feedback): Code converter not found (UTF-8 to EUC-TW)
We don't have UTF-8:EUC-TW converter yet.
If you want it, make a feature request ticket.
But as far as I know EUC-TW is not widely used, it is only used in goverment.
Instead of EUC-TW, many people use Big5.
Do you really need EUC-...
naruse (Yui NARUSE)
09:23 AM Bug #2154: filesystem encoding of UNIX
>> 2) ロケールはUTF-8だけどファイルシステムエンコーディングはUTF8MACな某OS
>>
>> というパターンだと思うので、これをケアする必要があるならAPIが必要そうに思えます。要望を上がってこない所をみるとあんまり困ってないのかな
>
> 後者に関してはリクエストが来てますね([ruby-core:48745] [Bug #7267])、否定的な返答しちゃったけど。

まったく技術的じゃない感覚論でいうと、Macユーザロケール...
kosaki (Motohiro KOSAKI)
05:23 AM Bug #2154: filesystem encoding of UNIX
On 11/02/2012 01:56 PM, KOSAKI Motohiro wrote:
>>> とくに指定しなければ、default external は locale から設定されるので、
>>> 「UNIXにおけるfilesystem encodingはlocaleである」というのはそれほど
>>> 変ではないのではないでしょうか。
>>
>> ふむ。
>> とすると、本当は、filesystem encodingを明示して設定するA...
shyouhei (Shyouhei Urabe)
04:59 AM Bug #2154: filesystem encoding of UNIX
>> とくに指定しなければ、default external は locale から設定されるので、
>> 「UNIXにおけるfilesystem encodingはlocaleである」というのはそれほど
>> 変ではないのではないでしょうか。
>
> ふむ。
> とすると、本当は、filesystem encodingを明示して設定するAPIが
> 合ったほうがいいんでしょうかね。
> 2.0.0にも間に合わなわなさそうなので今は深入りを...
kosaki (Motohiro KOSAKI)
09:18 AM Revision 049ace58 (git): * vm.c, proc.c: avoid unnecessary `rb_vm_rewrite_ep_in_errinfo'
calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
09:14 AM Revision c1dbeada (git): * ChangeLog: fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
09:07 AM Feature #6762: Control interrupt timing
and maybe undeferred is better than immediate. :)
because 'immediate' can't guarantee an interrupt fire immediately when running heavy weight C code.
kosaki (Motohiro KOSAKI)
08:36 AM Feature #6762: Control interrupt timing
> It still remains naming consideration.
> ...
After while thinking, I prefer to suggest this control_interrupt() method doesn't support to mask trap handler.
because of,
- people only want to defer Interrupt exception. trap hander...
kosaki (Motohiro KOSAKI)
08:33 AM Feature #6762: Control interrupt timing
> >> * Thread.control_interrupt
> ...
>
> Okay. Give us a good name.
How's this?
control_interrupt() => defer_async_raise() or defer_unwinding()
"control" is unclear and don't explain what action does. Actually this procedur...
kosaki (Motohiro KOSAKI)
08:56 AM Revision 98d69f42 (git): * bin/testrb: Use only Test::Unit::AutoRunner in test-unit gem
compatible API to be available by both test/unit bundled in Ruby
and test-unit gem.
* lib/test/unit.rb (Test::Unit::AutoRunner): Move codes from testrb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37455 b2dd03c8-39d4-4d8f-98ff-...
Sutou Kouhei
05:59 AM Revision 0ae90522 (git): * ext/date/date_parse.c (parse_eu): should capture apostrophe too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
05:47 AM Revision d55aa2bf (git): * ext/date/date_parse.c (date__parse): revised the tight parser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
05:44 AM Revision 6bc138b0 (git): * lib/rexml/xmldecl.rb (REXML::XMLDecl#content): Add missing \A
and \z.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
05:43 AM Revision 04f41f01 (git): * lib/rexml/output.rb (REXML::Output#initialize): Use normalized
encoding name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
05:42 AM Revision ac9a8ac6 (git): * lib/rexml/output.rb (REXML::Output): Don't output BOM in middle
of the output string.
* test/rexml/test_document.rb: Add a test for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
05:11 AM Revision 15a743b3 (git): * NEWS: Add an item about REXML::Document#write.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
05:05 AM Feature #5422: File.fnmatch != Dir.glob # {no,sets}
Thanks for your agreement Thomas.
Hey Ruby-core developers, we have agreed on the following API, where passing a File::FNM_EXTGLOB flag (the name "extglob" comes from the Bash/Zsh option for extended globbing) to the File.fnmatch meth...
sunaku (Suraj Kurapati)
04:58 AM Revision 82aef2ae (git): * test/rexml/test_document.rb: Fix tests that expect encoding name
isn't normalized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
04:47 AM Revision c420f844 (git): * dir.c (Dir#glob):
Documentation for pattern section, backslash subsection
Patch by Eric Bouchut
[ruby-core#48528] [Bug #7230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:46 AM Revision bdbc8c5b (git): Revert r37439 and r37441
r37439:
* lib/rexml/xmldecl.rb (REXML::XMLDecl): Stop using REXML::Encoding
module because XMLDecl doesn't convert encoding. This causes
removing XML encoding name normalization (encoding.upcase).
En...
Sutou Kouhei
04:40 AM Revision 4aca275e (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:28 AM Revision c442d221 (git): * io.c (IO#new):
Documentation for IO#open modes and formatting
[ruby-core#48052] [Bug #7179]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:27 AM Revision 4d422778 (git): * io.c (IO#new):
Documentation for IO#open modes and formatting
[ruby-core#48052] [Bug #7179]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:22 AM Bug #6460 (Closed): `unexpected return' occurs when a proc is called in ensure
やっぱり全部辿らないとまずいですね。
r37430でコミットしました。
nobu (Nobuyoshi Nakada)
01:14 AM Bug #6460: `unexpected return' occurs when a proc is called in ensure
=begin
辻本です。
なかださんのパッチだと、例えば以下のようなコードでunexpected returnとなってしまいます。
class C
def m1
m2{|e|
return
}
end

def m2
begin
yield :foo
ensure
begin
begin
...
ktsj (Kazuki Tsujimoto)
04:10 AM Bug #7264: Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
=begin
I can reproduce it doing the build manually with (({./configure; make})). Logs attached. gcc version:
erlang:ruby-2.0.0-preview1 lambda$ gcc-4.2 --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build ...
lambda (Brian Campbell)
04:03 AM Revision dbfb5dea (git): * test/rexml/test_encoding.rb (EncodingTester#test_in_different_out):
Fix a test that expects encoding in XML declaration is changed by
Output's encoding. It is dropped feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
03:55 AM Revision 9c606a0a (git): * test/rexml/test_core.rb (Tester#test_ticket_88): Follow the
change that encoding name in XML declaration isn't normalized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
03:53 AM Revision 3f817764 (git): * lib/rexml/document.rb (REXML::Document#write): Document encoding
option. Now different encoding between XML file's encoding and
XML declaration's encodiong is support.
[Feature #4872] (work in progress)
* lib/rexml/xmldecl.rb (REXML::XMLDecl#write): Always use XMLDecl's
encoding.
* test/rexml/te...
Sutou Kouhei
03:41 AM Revision 69eedf6a (git): * lib/rexml/xmldecl.rb (REXML::XMLDecl): Stop using REXML::Encoding
module because XMLDecl doesn't convert encoding. This causes
removing XML encoding name normalization (encoding.upcase).
Encoding name in XML declaration is what user specifies.
I think this is reasonable change.
* test/rexml/test_...
Sutou Kouhei
03:21 AM Revision c032c5bc (git): * array.c (recursive_equal): fix not to make invalid pointers when
self and other are resized to same size in #== of their elements.
[ruby-dev:46373] [Feature #6177]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
03:06 AM Revision bd202416 (git): * test/rexml/test_xml_declaration.rb (TestXmlDeclaration#test_*):
Remove needless prefix from test names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
03:05 AM Revision 9a2dc8f9 (git): * test/rexml/test_xml_declaration_parent_child.rb: Rename to ...
* test/rexml/test_xml_declaration.rb: ... this.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
02:45 AM Revision 63e9bc50 (git): * hash.c (rb_hash_delete): Correct grammar
Patch by Glenn Oppegard
[Fixes #208 Github]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:35 AM Revision 41663902 (git): * NEWS: add a news about GC::Profiler.raw_data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
02:35 AM Revision e2f95165 (git): * NEWS: add a news about rb_newobj_of() and NEWOBJ_OF().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
01:37 AM Revision 805b08f2 (git): * eval.c (f_current_dirname): add the new method for Kernel.
This method almotst same as File.dirname(__FILE__). One
different behavior is it returns nil when __FILE__ returns nil.
[Feature #3346]
* NEWS: ditto
* test/ruby/test_method.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.or...
authorNari (Narihiro Nakamura)
01:01 AM Feature #6173: re.cのrb_memsearch()におけるmemchr()の利用
ベンチマークの負荷が小さすぎて非常に短い時間で終わってしまい、他の要因に左右されている可能性を否定できないと思ったので、
文字列の大きさと繰り返し回数を増やしてベンチマークを取り直しました。
require 'benchmark'
str = " " * 10_0000 + "\n"
Benchmark.bm do |x|
x.report do
10000.times do
str.index("\n")
e...
Glass_saga (Masaki Matsushita)
12:09 AM Revision d2fd7f32 (git): * test/ruby/test_refinement.rb (test_new_method_by_send,
test_new_method_by_method_object): add tests for Kernel#send and
Kernel#method with refinements.
* test/ruby/test_refinement.rb (test_symbol_to_proc): add a test
calling a proc created by Symbol#to_proc outside the scope where
a r...
shugo (Shugo Maeda)

11/02/2012

11:30 PM Bug #7092: StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives
I guess it would be intentional.
'^' and '\A' are `beginning of the target' (and beginning of a line for ^) anchors, so seems reasonable that it matches the beginning of the part to be matched.
nobu (Nobuyoshi Nakada)
10:12 PM Bug #7092: StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives
FYI: You may want to use StringScanner#beginning_of_line?.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:11 PM Bug #7092 (Feedback): StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives
Sorry for late reply.
Honestly, it is difficult to say whether it is intended or a bug because there is no strscan maintainer.
But since 1.8, StringScanner#scan has behaved so. I guess there is some existing programs that depends on...
mame (Yusuke Endoh)
08:33 PM Bug #7092: StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives
I've now reproduced this in 2.0.0-preview1. Is anyone out there...? jayferd (Jay Adkisson)
11:27 PM Bug #7264: Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
Bad news. Nobu failed to reproduce this issue.
Could you try to build preview1 without ruby-build?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:13 PM Bug #7264 (Assigned): Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
Thank you for the report! Sorah will check it early next week.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:11 PM Bug #7264 (Third Party's Issue): Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
=begin
I tried installing ruby-2.0.0-preview1 using rbenv install on Mac OS X 10.7.4. It crashed in miniruby while generating encdb.h
CC = gcc-4.2
LD = ld
LDSHARED = gcc-4.2 -dynamic -bundle
CFLAGS = -O3 -fno-fast-math -ggdb3 ...
lambda (Brian Campbell)
09:10 PM Feature #3388: regexp support for start_with? and end_with?
headius (Charles Nutter) wrote:
> JRuby currently does have a global cache for regexps. If you're interested, one of us can show you how it works.
Interesting. I see it's implemented using a SoftReference map.
I'm not aware of somet...
Eregon (Benoit Daloze)
08:53 PM Bug #2154: filesystem encoding of UNIX
こんにちは、なかむら(う)です。

In message "[ruby-dev:46310] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX"
on Oct.29,2012 10:57:06, <akr@fsij.org> wrote:
> その時点の記憶はすでにないのですが、おそらく、
> locale と異なる encoding でパス名を扱いたい場合...
usa (Usaku NAKAMURA)
08:32 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
Output of the test.rb script:
Tested on Ruby 2.0.0-preview and 1.9.3 on Mac OS X
1.9.3x86_64-darwin11.4.0
Inline string works as expected
Source encoding: UTF-8
External encoding: UTF-8
Name: "./Testé.txt"
Encoding: UTF-8
Chars...
kennygrant (Kenny Grant)
07:54 PM Bug #7267 (Closed): Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
Tested on Ruby 1.9.3-p194 and ruby-2.0.0-preview1 on Mac OS X 10. 7.5
When calling file system methods with Ruby on Mac OS X, it is not possible to manipulate the resulting file name as a normal UTF-8 string, even though it reports th...
kennygrant (Kenny Grant)
08:21 PM Bug #6675 (Rejected): Raise exception when convert encoding of a character from GBK to UTF
No feedback, closing.
2012/7/2 "Martin J. Dürst" <duerst@it.aoyama.ac.jp>:
> \ue863 is in the Unicode private use area. Therefore, conversion to GBK
> ...
I guess Justen expected round-trip.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:05 PM Bug #6508 (Rejected): Add an (optional) GNU configure option to demand libyaml before continuing, when compiling ruby from source
mame (Yusuke Endoh)
08:05 PM Bug #6431 (Rejected): Segmentation Fault When Using RightAWS with Delayed Job To Connect to Amazon S3
Agreed with naruse-san. Looks like os x's broken openssl issue.
Please try the workaround, and reopen this ticket if the issue still occurs.
See also #6217.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:03 PM Bug #6355 (Closed): arm-linux build test suite fails: on : /lib/ruby/1.9.1/arm-linux/digest/md5.so: [BUG] Segmentation fault
mame (Yusuke Endoh)
08:03 PM Bug #6363 (Rejected): mak test fail on hpux 11.31 ia
No feedback, we cannot grasp the current situation. Closing.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:02 PM Bug #6358 (Closed): arm-linux : sleep() time dependent threading bug
mame (Yusuke Endoh)
08:02 PM Bug #7265 (Closed): r37414 breaks building with BSD make and nmake.
This issue was solved with changeset r37426.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
mkmf.rb: timestamp_file
* lib/mkmf.rb (MakeMakefile#timestamp_f...
nobu (Nobuyoshi Nakada)
04:08 PM Bug #7265 (Closed): r37414 breaks building with BSD make and nmake.
# IRCでなかださんにも伝えましたけど、直さないで寝たっぽいので
# チケット化しておきます。
表題の通りですが、例えばBSD makeで普通にビルドしようとすると
...
compiling bigdecimal.c
linking shared-object bigdecimal.so
make: don't know how to make ./.@RUBYLIBDIR@!bigdecimal.time. Stop

make: ...
usa (Usaku NAKAMURA)
08:01 PM Bug #6356 (Rejected): arm linux build test suite fails on test/socket
No feedback, we cannot grasp the current situation. Closing.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:00 PM Bug #5680 (Rejected): IPPROTO_GGP undeclared when compiling ext/socket/constants.c
No feedback, closing.
Please open a new ticket if anyone creates a patch.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:59 PM Bug #5882 (Rejected): segfault in miniruby in ruby1.9.3 crosscompile for ARM
No feedback, closing.
Please open a new ticket if anyone creates a patch.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:47 PM Bug #6217 (Rejected): Bundle crash
Agreed with Luis. Closing.
This looks the famous known issue of the openssl binary bundled in OS X.
Please try his advice, and reopen this ticket if the issue still occurs.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:14 PM Revision f7894e42 (git): vm.c: rewrite all catch points
* vm.c (rb_vm_rewrite_ep_in_errinfo): rewrite all catch points in
errinfo, not only the topmost frame. based on the patch by
ktsj (Kazuki Tsujimoto) in [ruby-dev:45656]. [Bug #6460]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
nobu (Nobuyoshi Nakada)
06:34 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
tarui (Masaya Tarui) wrote:
> I think reasonable to change specification to stop calling to_path
> ...
I agree with that. to_path of T_STRING may be less-useful.
Then I'm going to stop calling to_path of T_STRING in rb_get_path_check...
h.shirosaki (Hiroshi Shirosaki)
03:53 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
Hi,

In message "Re: [ruby-core:48738] Re: [ruby-trunk - Bug #7158] require is slow in its bookkeeping; can make Rails startup 2.2x faster"
on Fri, 2 Nov 2012 14:42:16 +0900, SASADA Koichi <ko1@atdot.net> writes:
|
|(2012/...
Anonymous
02:53 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
(2012/11/01 21:10), Masaya TARUI wrote:
> shirosaki-san, sasada-san, endoh-san, what do you think?

I don't have any idea on it.

Matz:
Please decide it.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
12:23 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
Thank you for the careful work.

Although I saw patch, compatibility is maintained now or it cannot
have confidence.
ex) OK even if String#to_path is defined after constructing expand_path?

I think reasonable to change spec...
tarui (Masaya Tarui)
09:10 AM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
Just wanted to update with some test results. I tried Hiroshi's patch along with my DTrace patches to time require searches against a small Rails application. Without GC running, before Hiroshi's patch, require searching took about 30%... tenderlovemaking (Aaron Patterson)
06:11 PM Bug #7262 (Assigned): module extension (#include/#prepend) in refinements
shugo (Shugo Maeda)
06:11 PM Bug #7262: module extension (#include/#prepend) in refinements
匿名ユーザ wrote:
> ということは、通常のメソッドを追加するだけであればrefinement
> ...
prependの方はちょっと変な挙動になっているようなので少し考えさせてください。
class C
def foo
[:C]
end
end
module M1
def foo
super << :M1
end
end
module M2
def foo
super <<...
shugo (Shugo Maeda)
05:54 PM Bug #7262: module extension (#include/#prepend) in refinements
まつもと ゆきひろです


In message "Re: [ruby-dev:46351] [ruby-trunk - Bug #7262] module extension (#include/#prepend) in refinements"
on Fri, 2 Nov 2012 12:04:27 +0900, "shugo (Shugo Maeda)" <redmine@ruby-lang.org> writes:

|まとめる...
Anonymous
12:04 PM Bug #7262: module extension (#include/#prepend) in refinements
matz (Yukihiro Matsumoto) wrote:
> refinementの中でモジュールのincludeやprependがしたい(かつ、そのスコープの範囲内だけで有効にしたい)なんて思ったんですが、きっと困難ですよね。
> ...
# 以下では"refinement"はrefineのブロック中のselfになる匿名モジュールを指します。
Enumerableにはeachは定義されていないので、以下のようにしたいということでしょうか。
mo...
shugo (Shugo Maeda)
06:12 AM Bug #7262 (Closed): module extension (#include/#prepend) in refinements
refinementの中でモジュールのincludeやprependがしたい(かつ、そのスコープの範囲内だけで有効にしたい)なんて思ったんですが、きっと困難ですよね。
「無理」と思ったら遠慮なくrejectしてください。
module Experiment
refine String do
include Enumerable
def foo; p :foo; end
end
end
using...
matz (Yukihiro Matsumoto)
05:56 PM Bug #6897 (Closed): With --no-retry option parallel test-all result
This issue was solved with changeset r37425.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/test/unit.rb (_run_parallel): Delete status line before ...
sorah (Sorah Fukumori)
04:25 PM Bug #6914 (Feedback): unable to build ruby-head
1. In Mountain Lion, crash logs are in ~/Library/Logs/DiagnosticReports or /Library/Logs/DiagnosticReports. Please check these places and attach if you found.
2. try again after cleaning ruby-head gemset and ruby-head installation if yo...
sorah (Sorah Fukumori)
04:23 PM Bug #6577 (Closed): GC中にstack overflowが発生するとSEGVする
そうですね、よいとおもいます、ありがとうございました。
なお、聞くべき対象はわたしなので feedback じゃなくて assgined であるべきだったかと。
Feedback は開発者出ない報告者か、誰ともなく助けを求めるときのためのものなので。
naruse (Yui NARUSE)
04:04 PM Feature #6177 (Closed): array.cのrb_ary_equal()の高速化
This issue was solved with changeset r37420.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (recursive_equal): performance improvement.
[ruby-dev...
Anonymous
03:28 PM Revision 0446be77 (git): * 2012-11-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:28 PM Revision 2f3068fd (git): * ChangeLog: add explanation about how performace is improved in r37420.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
02:48 PM Bug #7261 (Closed): Symbol#to_proc to retrieve a method from current refinement
This issue was solved with changeset r37418.
Yukihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (sym_to_proc, sym_call): A Proc created by Symbol#...
shugo (Shugo Maeda)
05:52 AM Bug #7261 (Closed): Symbol#to_proc to retrieve a method from current refinement
Currently Symbol#to_proc retrieves the global definition of the method, since refinement is a lexical scope.
But if possible, it is better that Symbol#to_proc can retrieve a method from current refinement.
module Silly
refine ...
matz (Yukihiro Matsumoto)
02:48 PM Feature #6609 (Closed): Toplevel as self extended module
This issue was solved with changeset r37417.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
proc.c: main.define_method
* proc.c (top_define_method): new m...
nobu (Nobuyoshi Nakada)
02:37 PM Feature #7028 (Assigned): Please Repatch FileUtils.compare_stream
Glass_saga (Masaki Matsushita)
12:47 PM Bug #7263 (Rejected): ruby 2.0.0-preview1 does not detect readline on Fedora 17 x86-64
Thank you, feel free to report any other things you notice!
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:43 PM Bug #7263: ruby 2.0.0-preview1 does not detect readline on Fedora 17 x86-64
Nevermind, close this! Built ruby 2.0.0-preview1 manually and that fixed the problem. postmodern (Hal Brodigan)
12:32 PM Bug #7263 (Rejected): ruby 2.0.0-preview1 does not detect readline on Fedora 17 x86-64
I just installed ruby 2.0.0-preview1 using ruby-build [1] on Fedora 17 x86-64. However, it appears ./configure did not detect Fedora's readline 6.2 (/usr/lib64/libreadline.so.6 and /usr/include/readline/):
$ ruby-build -k 2.0.0-pr...
postmodern (Hal Brodigan)
11:54 AM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> I would like to request time to implement refinements as they stand today in JRuby.
> ...
Thanks for your consideration of Refinements.
Please inform me if the current behavior of Refinements is hard ...
shugo (Shugo Maeda)
07:03 AM Feature #4085: Refinements and nested methods
I would like to request time to implement refinements as they stand today in JRuby.
We have not had much time to look into how refinements will affect the way we optimize Ruby code, structure class hierarchies, and so on. The impact c...
headius (Charles Nutter)
11:11 AM Revision 5f06ee7e (git): mkmf.rb: timestamp_file
* lib/mkmf.rb (MakeMakefile#timestamp_file): remove @ which looks like
configure variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:02 AM Revision e627955d (git): mkmf.rb: timestamp_file
* lib/mkmf.rb (MakeMakefile#timestamp_file): use .-. instead of !, a
special character of NMAKE and BSD make. [Bug #7265]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:40 AM Bug #6460 (Open): `unexpected return' occurs when a proc is called in ensure
=begin
これどうしましょうか。
最低限のパッチはこんな感じみたいです。
index d4d4ebb..3f31558 100644
--- i/vm.c
+++ w/vm.c
@@ -493,9 +494,20 @@ rb_vm_make_env_object(rb_thread_t * th, rb_control_frame_t *cfp)
return envval;
}

+static int vm_...
nobu (Nobuyoshi Nakada)
09:35 AM Bug #7198: No documentation of Psych on ruby-doc.org
Thanks Eric, I wasn't sure if TPI was considered resolved. zzak (zzak _)
07:38 AM Bug #7198 (Third Party's Issue): No documentation of Psych on ruby-doc.org
Closed and Third Party Issue are separate resolutions drbrain (Eric Hodel)
08:56 AM Revision 7f6d2173 (git): * lib/test/unit.rb (_run_parallel): Delete status line before showing
results. Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250]
* lib/test/unit.rb (_run_parallel): Fix strange result when disabled retrying.
Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250]
git-svn-id: svn+ssh://ci.ruby...
sorah (Sorah Fukumori)
08:53 AM Revision b14e2b44 (git): * object.c (rb_mod_to_s): Module#{to_s,inspect}, when invoked on
a refinement, returns a string in the format #<refinement:C@M>,
where C is a refined class and M is a module at which the refinemet
is defined.
* eval.c (rb_mod_refine): store information on a refinement for the
above change.
* t...
shugo (Shugo Maeda)
08:35 AM Bug #7260 (Closed): make realclean でError
r37414で修正しました。 nobu (Nobuyoshi Nakada)
02:52 AM Bug #7260 (Closed): make realclean でError
tkを削除しようとするときにエラーが出ているようです。
$ make realclean
sed 's/{\$([^(){}]*)[^{}]*}//g' common.mk > uncommon.mk
cd -P . && exec autoconf
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/Users/ayumin/temp/ruby --with-arch=x86_64 --wi...
ayumin (Ayumu AIZAWA)
08:20 AM Feature #2565: adding hooks for better tracing
Aaron,
At the developers' meeting, matz entirely leaved this up to Yugui.
I must say "please confirm Yugui"... But I know she is absence a while,
and I believe she would accept it willingly.
So, please go ahead. ASAP. It will b...
mame (Yusuke Endoh)
05:07 AM Feature #2565: adding hooks for better tracing
I've attached an updated version of the dtrace probes.
@mame-san may I commit this to trunk? @ko1 said I should ask you. :-)
tenderlovemaking (Aaron Patterson)
08:00 AM Revision a8b3d67e (git): * vm_dump.c (rb_vm_bugreport): Because of many log directories,
making directory lists readable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
07:52 AM Revision 8db54e07 (git): * vm_dump.c (rb_vm_bugreport): add ~/Library/Logs/DiagnosticReports
in the locations list of crash reports.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
07:16 AM Revision 584afabc (git): * ChangeLog: added a missed space
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
07:04 AM Revision da9f6cdc (git): * array.c (recursive_equal): performance improvement.
[ruby-dev:45412] [Feature #6177]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
06:16 AM Bug #5990 (Feedback): Random Segmentation Fault when running on Linux Fedora
This is either a GC bug or a bug in Nokogiri. nari-san fixed GC bugs for us, but I'm not sure what patch level. Blair, can you try this with the latest 1.9.3 patch level? If there is still a problem on 1.9.3, then it's probably a bug ... tenderlovemaking (Aaron Patterson)
05:48 AM Revision fb4e75c1 (git): * 2012-11-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:48 AM Revision bb504213 (git): * string.c (sym_to_proc, sym_call): A Proc created by Symbol#to_proc
should close over the current refinements.
[ruby-dev:46345] [Bug #7261]
* vm_eval.c (rb_call0, rb_search_method_entry,
rb_funcall_passing_block_with_refinements): add a new argument
`refinements' for the above changes.
* test/rub...
shugo (Shugo Maeda)
05:04 AM Feature #5690 (Closed): Module#qualified_const_get
I committed this in r37340 and r37335 tenderlovemaking (Aaron Patterson)
04:50 AM Bug #7085: Subversion → GitHub gateway stops.
I vote for time-to-time manual sync until automatic sync is set up.
Matz.
matz (Yukihiro Matsumoto)
04:46 AM Bug #7085: Subversion → GitHub gateway stops.
I heard that they tagged 2.0.0's preview. Should I re-sync that by hand or wait for Evan to set up his environment? shyouhei (Shyouhei Urabe)
03:23 AM Feature #6083: Hide a Bignum definition
2012/11/2 SASADA Koichi <ko1@atdot.net>:
> (2012/11/01 11:05), shyouhei (Shyouhei Urabe) wrote:
>> +1 for next major.
>
> +1 for next major or next minor.
>
> We need discussion about how to break binary compatibility in ano...
mame (Yusuke Endoh)
02:53 AM Feature #6083: Hide a Bignum definition
(2012/11/01 11:05), shyouhei (Shyouhei Urabe) wrote:
> +1 for next major.

+1 for next major or next minor.

We need discussion about how to break binary compatibility in another
thread :)

--
// SASADA Koichi at atdo...
ko1 (Koichi Sasada)
02:05 AM Feature #6083: Hide a Bignum definition
+1 for next major.
No one is against this basic concept of hiding Bignums, meseems. It's just a bad timing for us.
shyouhei (Shyouhei Urabe)
01:33 AM Feature #6083: Hide a Bignum definition
> If there's no big opposition, I can accept this proposal.
Sorry, but I must voice big opposition.
Unfortunately, hiding RBignum will cause significant incompatibility.
The macro RBIGNUM_BDIGITS uses RBignum internally. Many ext...
mame (Yusuke Endoh)
02:07 AM Bug #7259 (Closed): ruby-debug-base19x does not compile on 2.0.0-head
I'm trying to make ruby-debug-base19x used by IDE debugger work on 2.0.0-head. I've managed to get it mostly compiling (latest sources are at https://github.com/ruby-debug/ruby-debug-base19) and found one major problem: rb_vm_get_sourcel... denofevil (Dennis Ushakov)
12:53 AM Feature #6973: Add an #integral? method to Numeric to test for whole-number values
On 31/10/12 13:03, alexeymuranov (Alexey Muranov) wrote:
>
> Issue #6973 has been updated by alexeymuranov (Alexey Muranov).
>
>
> regularfry (Alex Young) wrote:
>
>>
>> So if I knowingly and correctly construct a calc...
regularfry (Alex Young)
12:13 AM Feature #7258 (Rejected): Update Rdoc
Eric Hodel is planning to update Rdoc by the end of November.
See [ruby-core:48212].
Eric, please do it asap.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:13 AM Feature #7257 (Rejected): Update Rubygems
Eric Hodel is planning to update Rubygems by the end of November.
See [ruby-core:48212].
Eric, please do it asap.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:11 AM Feature #7256 (Closed): Update Rake
Eric Hodel is planning to update Rake by the end of November.
See [ruby-core:48212].
Eric, will you update it to the version 10?
If so, do you think the incompatibility is not a problem?
(ko1 told me that it has not a small numbe...
mame (Yusuke Endoh)
12:05 AM Bug #6401: Windows bug with File.pos
I can confirm this bug has been fixed in Ruby 1.9.3-p286. Thanks! jmthomas (Jason Thomas)

11/01/2012

11:53 PM Feature #7252: version number of 2.0 release
On 11/01/2012 02:33 AM, KOSAKI Motohiro wrote:
>>> 旧来の開発版/開発版とかもういらないんじゃないですかね。
>>> trunkが開発版、リリースされたら安定版、で。
>>
>> その行為が開発を促進するか停滞させるかは意見の分かれるところでしょう。
>>
>> 1.8がなくて1.9だけしかなかったらYARVは怖くて突っ込めなかったと思いますよ。
>
> 2.x は全部安定版にしてしま...
shyouhei (Shyouhei Urabe)
06:06 PM Feature #7252: version number of 2.0 release
matz (Yukihiro Matsumoto) wrote:
> まつもと ゆきひろです
> ...
お返事ありがとうございます!では、"2.0.0" は確定としましょう。
ルールやブランチの切り方は、おいおい考えましょう。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
05:53 PM Feature #7252: version number of 2.0 release
あいざわです

基本的に成瀬さんの意見に賛成で、2.0.x系統は頑張って互換性を保つように頑
張ってメンテをするということでいいと思います。

なにかしら非互換な変更が入りそうならその時になってからそれを2.1.xの中に
収めるか3.0にするか考えればいいのではないでしょうか。

# 個人的には3.0は相当将来の夢のリリースであっていて欲しいとおもっています。
ayumin (Ayumu AIZAWA)
05:53 PM Feature #7252: version number of 2.0 release
>> 旧来の開発版/開発版とかもういらないんじゃないですかね。
>> trunkが開発版、リリースされたら安定版、で。
>
> その行為が開発を促進するか停滞させるかは意見の分かれるところでしょう。
>
> 1.8がなくて1.9だけしかなかったらYARVは怖くて突っ込めなかったと思いますよ。

2.x は全部安定版にしてしまって、開発版が欲しくなるぐらいの重量級の機能が入ったら
3.0にバージョンアップしたて、またバージョンルールを定義...
kosaki (Motohiro KOSAKI)
03:23 PM Feature #7252: version number of 2.0 release
あいざわです

いちマーケターの意見としては、2/24には"2.0.0-p0" またはもっとシンプルに "2.0" で出すべきかなと思います。
その後の取扱を考えると"2.0.0-p0" を基本としてメッセージングとしては "2.0" を露出させていくのがよいかと。

ちなみにHerokuでは 2/28にwazaというテクニカルイベントを予定しており、2.0のリリースに合わせてHeroku
の環境下ですぐに ruby2.0を試してもらえるように社内調整を進...
ayumin (Ayumu AIZAWA)
01:29 PM Feature #7252: version number of 2.0 release
naruse (Yui NARUSE) wrote:
> 旧来の開発版/開発版とかもういらないんじゃないですかね。
> ...
その行為が開発を促進するか停滞させるかは意見の分かれるところでしょう。
1.8がなくて1.9だけしかなかったらYARVは怖くて突っ込めなかったと思いますよ。
shyouhei (Shyouhei Urabe)
01:08 PM Feature #7252: version number of 2.0 release
旧来の開発版/開発版とかもういらないんじゃないですかね。
trunkが開発版、リリースされたら安定版、で。
1.9/1.8 の時みたいに dev/stable の2系統持つという案もあり得るとは思いますが、
releaseブランチのメンテだけでも手一杯なのにstable ブランチの維持はちょっと出来る気があんまり……。
というので、正確には stable ブランチの復活に反対という意見かも。
まとめると、わたしは以下の通りにするのがよいと思います。(基...
naruse (Yui NARUSE)
12:49 PM Feature #7252: version number of 2.0 release
まつもと ゆきひろです
1.8の頃のルールに戻すかどうかはまだ迷っているのですが、インパクトの観点から2/24にリリースするものは2.0.0にしたいです。
matz (Yukihiro Matsumoto)
12:46 PM Feature #7252: version number of 2.0 release
usa (Usaku NAKAMURA) wrote:
> よって、ポイントは、
> ...
予定は考えていませんでした。そろそろ引き締めないと。ありがとうございます。
提案ですが、(2) で、1.8 の時代に戻しませんか?
つまり 2.0 はすべて安定版、2.1 はすべて開発版。2 月にリリースするのは 2.0.0 。
今晩あたり実装予定 feature の告知の意味で preview1 をリリースしたいと画策して
いますので、まつもとさんが反対で...
mame (Yusuke Endoh)
11:08 AM Feature #7252: version number of 2.0 release
2.0.1 だとキャッチーさが薄れるのでお誕生日イベントの盛り上がり的には 2.0.0 or 2.0 のほうがいいなあ(ぼそっ kosaki (Motohiro KOSAKI)
09:56 AM Feature #7252 (Closed): version number of 2.0 release
2月にリリースされるモノのバージョン番号はどうなる予定でしょうか?
例えばredmineでは「対象バージョン」に「2.0.0」とか書いてあるので、
2.0.0になるのかと思われがちですが、バージョン番号付けルールは
[ruby-dev:15923] にあるように、
1.9.0からは末尾0が開発版、1以降が安定版
とされており、以降変更されていない、と理解しています。
よって、ポイントは、
(1) 2月に出すのは安定版ですか? それと...
usa (Usaku NAKAMURA)
11:53 PM Feature #6083: Hide a Bignum definition
Hi,

In message "Re: [ruby-core:48640] Re: [ruby-trunk - Feature #6083] Hide a Bignum definition"
on Wed, 31 Oct 2012 15:31:08 +0900, KOSAKI Motohiro <kosaki.motohiro@gmail.com> writes:

|> Target version changed from 2.0....
Anonymous
03:53 AM Feature #6083: Hide a Bignum definition
On Wed, Oct 31, 2012 at 9:26 AM, SASADA Koichi <ko1@atdot.net> wrote:
> (2012/10/31 0:31), KOSAKI Motohiro wrote:
>>> Target version changed from 2.0.0 to next minor
>>> I am sorry but it's too late. I admit my fault.
>>
>> Ma...
kosaki (Motohiro KOSAKI)
11:24 PM Revision 499b5a91 (git): proc.c: main.define_method
* proc.c (top_define_method): new method, main.define_method.
[ruby-core:45715] [Feature #6609]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:23 PM Revision 603fcafd (git): eval.c: fix message
* eval.c (top_include): fix a warning message, main is not a class or
module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:02 PM Feature #3346: __DIR__ revisted
Hi.
yhara (Yutaka HARA) wrote:
> mame (Yusuke Endoh) wrote:
> ...
I've created a patch for Kernel#__dir__. How about it?
authorNari (Narihiro Nakamura)
08:01 PM Feature #7250: A mechanism to include at once both instance-level and class-level methods from a module
I have fantasized a bit more about an alternative Object Model for
Ruby. Here is what i imagined:
1. Objects are allowed to keep their methods more or less the same way as they keep attributes in instance variables. Methods are con...
alexeymuranov (Alexey Muranov)
07:48 PM Revision 71dcc25f (git): suppress warning: 'val' may be used uninitialized in this function
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:47 PM Bug #7247 (Closed): r37079以降Solaris10でthread_pthread.cがコンパイルエラー
This issue was solved with changeset r37402.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread_pthread.c: RUBY_STACK_MIN
* thread_pthread.c (RUBY_STA...
nobu (Nobuyoshi Nakada)
07:41 PM Revision 1d4ec583 (git): mkmf.rb: timestamp_file
* lib/mkmf.rb (MakeMakefile#timestamp_file): use ! instead of %, a GNU
make special character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:40 PM Revision 27f41491 (git): test_process.rb: use never existing file
* test/ruby/test_process.rb (test_execopts_preserve_env_on_exec_failure):
use never existing file in the current temporary directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:24 PM Revision 082e1344 (git): * tool/merger.rb: add feature to tag preview/rc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:23 PM Feature #7241: Enumerable#to_h proposal
>
> I wouldn't say it is over. See #4151. ...

Is #each_with a better name?
>

Has anyone suggested `map_to`? I think `map_to` has a clearer intention
than `each_with`, because you're mapping the collection onto somethin...
nathan.f77 (Nathan Broadbent)
05:49 PM Feature #7241: Enumerable#to_h proposal
=begin
I wouldn't say it is over. See #4151.
I still like:
module Enumerable
def each_with(x={})
each{ |e| yield(x,e) }
x
end
end
Is #each_with a better name?
=end
trans (Thomas Sawyer)
05:10 PM Feature #7241: Enumerable#to_h proposal
Just in case, here is some relevant discussion on StackOverflow with benchmarks:
http://stackoverflow.com/questions/3230863/ruby-rails-inject-on-hashes-good-style
alexeymuranov (Alexey Muranov)
12:29 PM Feature #7241: Enumerable#to_h proposal
>
> I think it should go in to ActiveSupport first.
>
> matz.
>

Thanks for your reply! The pull request has just been rejected on
ActiveSupport, so I guess that's th...
nathan.f77 (Nathan Broadbent)
12:23 PM Feature #7241: Enumerable#to_h proposal
Hi,

In message "Re: [ruby-core:48690] Re: [ruby-trunk - Feature #7241] Enumerable#to_h proposal"
on Thu, 1 Nov 2012 08:07:11 +0900, Nathan Broadbent <nathan.f77@gmail.com> writes:

|@matz: Do you think this `each_with_has...
Anonymous
12:23 PM Feature #7241: Enumerable#to_h proposal
>
> Almost no one uses #each_with_object as it is. #each_with_hash is hardly
> better. We need a short method name. Moreover I don't think this method's
> behavior is really the best approach to the real use case.
>

It's tr...
nathan.f77 (Nathan Broadbent)
11:53 AM Feature #7241: Enumerable#to_h proposal
Almost no one uses #each_with_object as it is. #each_with_hash is hardly
better. We need a short method name. Moreover I don't think this method's
behavior is really the best approach to the real use case.



On Wed, Oct 31,...
trans (Thomas Sawyer)
06:24 PM Revision 072ab753 (git): lib/mkmf.rb: fix for if config["libdir"] is nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:22 PM Revision b2bbfb3e (git): * tool/make-snapshot: fix wrong regexp for releasing preview.
patched by mame.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:45 PM Feature #7251 (Closed): using usings in usinged Module
This issue was solved with changeset r37399.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* eval.c (rb_using_module): using should be used indirectly.
[...
shugo (Shugo Maeda)
02:07 PM Feature #7251 (Assigned): using usings in usinged Module
shugo (Shugo Maeda)
01:29 PM Revision 98c96a69 (git): * NEWS: add a news about objspace,
ObjectSpace.reachable_objects_from.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
01:09 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
I noticed one compatibility issue.
rb_file_expand_path_fast calls to_path method before to_str, but to_path was ignored.
I fixed to_path is called before to_str. If StringObject has to_path, the object are expended every time becau...
h.shirosaki (Hiroshi Shirosaki)
01:04 PM Revision a3e5a865 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_new),
test/bigdecimal/test_bigdecimal.rb:
Fix exception message of BigDecimal constructor with a Float.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
01:03 PM Revision 2e6b5ece (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_add),
test/bigdecimal/test_bigdecimal.rb:
need to specify precision for converting Rational and Float.
[ruby-core:48045] [Bug #7176]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
12:48 PM Feature #6895 (Assigned): TracePoint API
I need to consider about:
- TracePoint enable/disable API [ruby-core:47305]
- Add interface to get returned/raised value [ruby-core:47259]
- trace block enter/leave interface
Sorry for my late response.
This ticket should be ope...
ko1 (Koichi Sasada)
12:46 PM Revision a5fc96a5 (git): * test/ruby/test_process.rb: Revert r37404. My ubuntu box has
actually the directory named "/nonexistent"... Sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
12:33 PM Revision de082042 (git): * test/ruby/test_process.rb: Process.exec raised EACCES on Linux
3.5.0-17-generic. This is a temporal fix to rescue that exception.
Needs kosaki's review.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
12:20 PM Revision 0c4a27a5 (git): iseq.c: fix r37397
* iseq.c (set_relation): parent_iseq need to be set regardless iseq
type. fix r37397.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:47 AM Revision 5aa7ff2b (git): thread_pthread.c: RUBY_STACK_MIN
* thread_pthread.c (RUBY_STACK_MIN): may not a compile time constant.
fix r37079. [ruby-dev:46322] [Bug #7247]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:30 AM Feature #905: Add String.new(fixnum) to preallocate large buffer
On Wed, Oct 31, 2012 at 3:43 PM, Eric Wong <normalperson@yhbt.net> wrote:
> "headius (Charles Nutter)" <headius@headius.com> wrote:
>> * For folks doing crypto stuff that want to know exactly how big the
>> buffer is right away,...
headius (Charles Nutter)
05:53 AM Feature #905: Add String.new(fixnum) to preallocate large buffer
"headius (Charles Nutter)" <headius@headius.com> wrote:
> * For folks doing crypto stuff that want to know exactly how big the
> buffer is right away, this provides a way to do so.

I'm not sure exactly what you mean. Do you ...
normalperson (Eric Wong)
05:53 AM Feature #905: Add String.new(fixnum) to preallocate large buffer
> So we have something like this:
>
> Platforms known to not support any sort of O(1) realloc: JVM
>
> Platforms that may not support O(1) realloc: OS X, others?
>
> Platforms that do (should?) support O(1) realloc: Linux
...
kosaki (Motohiro KOSAKI)
05:06 AM Feature #905: Add String.new(fixnum) to preallocate large buffer
So we have something like this:
Platforms known to not support any sort of O(1) realloc: JVM
Platforms that may not support O(1) realloc: OS X, others?
Platforms that do (should?) support O(1) realloc: Linux
In any case, I st...
headius (Charles Nutter)
07:48 AM Revision ba1bd089 (git): * NEWS: add note for Module#refine, Module#refinements,
Module#using, and Kernel#using.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:45 AM Revision 5f0b7f8c (git): * ChangeLog: fix indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
05:45 AM Revision 7a58c65a (git): * eval.c (rb_using_module): using should be used indirectly.
[ruby-dev:46326] [Feature #7251]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:43 AM Feature #7051: Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
I concur with ko1's objection to having the bindings available. It would introduce *massive* performance overhead and kill many optimizations we implementers do currently or hope to do in the future.
Having the classes available is al...
headius (Charles Nutter)
05:40 AM Feature #6216: SystemStackError backtraces should not be reduced to one line
Some details on the JRuby side of things:
* SystemStackError is not consistently raised. There are a decreasing number of places in JRuby's codebase where we attempt to rescue Java's StackOverflowError and reraise it as SystemStackErr...
headius (Charles Nutter)
05:36 AM Feature #5481: Gemifying Ruby standard library
FWIW, here's how we're handling the gemification of OpenSSL...
Background: Previously, JRuby's 'openssl' support was always distributed as a gem, since we did not want to ship crypto (bouncycastle). Starting with JRuby 1.7, however, w...
headius (Charles Nutter)
05:29 AM Feature #5123: Alias Hash 1.9 as OrderedHash
I was only proposing an alias for now. Maybe `OHash`, `OSet`? alexeymuranov (Alexey Muranov)
05:09 AM Feature #5123: Alias Hash 1.9 as OrderedHash
The decision is already made. Hash has been ordered since 1.9.1 (or 1.9.2?) and changing it now would break all code that expects ordering. Ordering also does not necessarily limit options for implementation...it just makes certain imple... headius (Charles Nutter)
05:22 AM Feature #3388: regexp support for start_with? and end_with?
JRuby currently does have a global cache for regexps. If you're interested, one of us can show you how it works. headius (Charles Nutter)
05:21 AM Feature #5378: Prime.each is slow
JRuby numbers for the various implementations proposed (best times out of ten in-process iterations):
mconigliario's version:
user system total real
primes_up_to 2.100000 0.000000 2.100000 ...
headius (Charles Nutter)
04:17 AM Revision 94d10fbb (git): * 2012-11-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:17 AM Revision 130bb41d (git): iseq.c: simplify
* iseq.c (set_relation): simplify and merge same conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:41 AM Bug #5627 (Closed): [ASYNC BUG] thread_timer: select
> The error.log suggests that any module (I'm suspecting old Passenger)
> ...
This is known issue and we already solved it on current trunk.
see [ruby-core:37727] Issue of Passenger and ruby-trunk.
Jeff may need to upgrade both ruby...
kosaki (Motohiro KOSAKI)
 

Also available in: Atom