Project

General

Profile

Activity

From 11/05/2012 to 11/11/2012

11/11/2012

11:15 PM Feature #6643: io.seek(off, :end)
:setか:SETの類だけ受け付ければ良いのであれば、小文字のシンボルも大文字のシンボルも変数として持っておいて良いんじゃないかなあと思いました。
(あまりスマートではない気もしますが)
# :Setや:Currentも使えた方が良い、という人はいませんよね?
なので、そのようにしたpatchをつくりました。
:eNdのようなシンボルまで受け付けてしまう問題、エラーメッセージの正確さの問題はこれで解決します。
また、先のpatchではdowncase!...
Glass_saga (Masaki Matsushita)
10:53 PM Bug #7312: test_str_crypt(TestM17NComb) fails
I guess following discussion is a source of this bug.
http://sourceware-org.1504.n7.nabble.com/RFC-FIPS-compliance-and-other-crypt-3-improvements-td6884.html
kosaki (Motohiro KOSAKI)
05:15 PM Bug #7312 (Closed): test_str_crypt(TestM17NComb) fails
This issue was solved with changeset r37622.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
glibc 2.16 or later denies salt contained other than [0-9A-Za-z./]...
naruse (Yui NARUSE)
09:41 PM Bug #7330 (Closed): TestRequire#test_race_exception sometimes fails
=begin
I noticed TestRequire#test_race_exception sometimes fails on RubyCI recently.
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121111T095100Z.log.html.gz
I was able to reproduce that on my local.
With this ...
h.shirosaki (Hiroshi Shirosaki)
08:23 PM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
I've splited the patch into two commits and pushed it to github.
Could you check it? Thank you.
https://github.com/shirosaki/ruby/compare/trunk...weakref
h.shirosaki (Hiroshi Shirosaki)
02:53 PM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
Would you split the patch into refactor by renaming and the fix? nobu (Nobuyoshi Nakada)
01:13 AM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
Thank you Shirosaki-san,
Applying the patch, it fixes the WeakRef issues.
~~~
ruby -v: ruby 2.0.0dev (2012-11-10 trunk 37612) [i386-mingw32]
3 tests, 4 assertions, 0 failures, 0 errors, 0 skips
~~~
Reassigning to Narihiro Nak...
luislavena (Luis Lavena)
06:53 PM Feature #7241: Enumerable#to_h proposal
>
> Clojure has a function (({into})) that might fit the bill.
>>
>
> This indeed looks very promising.


I like the sound of 'into', but am not sure about appending results with
the '<<' operator. If Hash had '<<' and '...
nathan.f77 (Nathan Broadbent)
05:59 PM Feature #7241: Enumerable#to_h proposal
On 2012/11/11 0:47, jballanc (Joshua Ballanco) wrote:
>
> Issue #7241 has been updated by jballanc (Joshua Ballanco).
>
>
> =begin
> Clojure has a function (({into})) that might fit the bill.

This indeed looks very prom...
duerst (Martin Dürst)
12:47 AM Feature #7241: Enumerable#to_h proposal
=begin
Clojure has a function (({into})) that might fit the bill. An equivalent Ruby implementation might look something like the following:
class Hash
alias :<< :merge!
end

module Enumerable
def int...
jballanc (Joshua Ballanco)
06:38 PM Feature #7328: Move ** operator precedence under unary + and -
I have not still figured out how exactly this mailing issue tracker works, i have not managed to configure it to receive email notifications, and it seems that if i edit my comment, the edited version is not what the others reply to, so ... alexeymuranov (Alexey Muranov)
06:33 PM Feature #7328: Move ** operator precedence under unary + and -
phluid61 (Matthew Kerwin) wrote:
> It woudl never be -i. (-1) ** 0.5 => i (or, in complex coordinates, 0+1i,
> ...
What do you mean? Why (-1)^(0.5) is i and not -i? Mathematically, it is not defined.
alexeymuranov (Alexey Muranov)
05:53 PM Feature #7328: Move ** operator precedence under unary + and -
It woudl never be -i. (-1) ** 0.5 => i (or, in complex coordinates, 0+1i,
which is basically what (6.123233995736766e-17+1.0i) means.


On 11 November 2012 18:01, alexeymuranov (Alexey Muranov) <
[email protected]> wrote:...
phluid61 (Matthew Kerwin)
05:01 PM Feature #7328: Move ** operator precedence under unary + and -
(-1) ** 0.5 should not be defined! I just tried it and it gave me (6.123233995736766e-17+1.0i) -- approximately the complex i. Why not the (-i)??
Well, after some thought, maybe from pragmatic point of view it is better to return i than...
alexeymuranov (Alexey Muranov)
03:58 PM Feature #7328 (Rejected): Move ** operator precedence under unary + and -
I would like to ask to consider decreasing ** operator precedence just below that of -/+ unary operators. I know that other languages (eg. Python) have ** operator bind tighter than negation, but seeing -1 ** 0.5 give the result -1 and h... Anonymous
04:14 PM Bug #7327: ruby.c typo
=begin
What about the other line?
require the library, before executing your script
=end
bt (Bernd Homuth)
08:51 AM Bug #7327 (Closed): ruby.c typo
fixed with commit 37615 duerst (Martin Dürst)
04:53 AM Bug #7327 (Closed): ruby.c typo
No comma before 'before'. bt (Bernd Homuth)
03:39 PM Bug #7300 (Closed): Hash#[] の挙動が 1.9.3 と異なっている
This issue was solved with changeset r37621.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
hash.c: warn for wrong elements
* hash.c (rb_hash_s_create): ...
nobu (Nobuyoshi Nakada)
02:40 PM Feature #6311: memmem()によるrb_memsearch()の高速化
こちらもベンチマークの実行時間が短すぎるのでやり直してみました。
require 'benchmark'
str = "hoge" * 100_0000 + "fugafuga"
Benchmark.bm do |x|
x.report do
1000.times { str.index("fugafuga") }
end
end
trunk(r37617):
user system to...
Glass_saga (Masaki Matsushita)
02:23 PM Feature #7299: Ruby should not completely ignore blocks.
(12/11/09 1:53), marcandre (Marc-Andre Lafortune) wrote:
> ko1 (Koichi Sasada) wrote:
>> If compiled method does not contain
>> - `yield' statement
>> - super statement
>> - block argument
>> then the method is marke...
nobu (Nobuyoshi Nakada)
01:23 PM Bug #5269 (Closed): All ThreadError in PStore transaction will be caught and replaced with PStore::Error
This issue was solved with changeset r37617.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/pstore.rb (PStore): fix not to replace ThreadError raised...
Anonymous
10:02 AM Revision cb9beafd (git): * test/date/test_date_{parse,strptime}.rb: changed the format of
some extra messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
09:45 AM Revision 8defbc44 (git): * ext/date/date_parse.c (date__parse): revised the tight parser
(about handling of apostrophes).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
08:53 AM Bug #7009: Crash in method_missing
(12/11/09 1:31), kosaki (Motohiro KOSAKI) wrote:
> Recently nobu changed stack overflow detection logic, I suspect it also fixes this issue.
> Nobu, if yes, can you please tell us exact commit number what revision should be backport...
nobu (Nobuyoshi Nakada)
08:15 AM Revision 64757d28 (git): glibc 2.16 or later denies salt contained other than [0-9A-Za-z./] [Bug #7312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:39 AM Revision 5051186a (git): hash.c: warn for wrong elements
* hash.c (rb_hash_s_create): just warn for wrong elements now.
[ruby-dev:46440] [Bug #7300]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:38 AM Revision 5a5a86cc (git): hash.c: refine error messages
* hash.c (rb_hash_s_create): refine error messages.
* error.c (rb_builtin_class_name): share for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:28 AM Bug #7326: Time.c doc improvements
Actually, I'm not really happy with my "improvements". After looking through more classes there is inconsistency everywhere and it seems every class has its own style. Maybe there should be some API documentation guideline first. I check... bt (Bernd Homuth)
02:43 AM Bug #7326 (Closed): Time.c doc improvements
I tried to improve some parts of the documentation. Mainly I changed +Time+ for classes and _time_ for objects. I fixed some typos and probably introduced new ones. Please check carefully. bt (Bernd Homuth)
06:14 AM Revision 10ba3bdd (git): * eval.c (top_using): remove Kernel#using, and add main.using instead.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:53 AM Feature #7322: Add a new operator name #>< for bit-wise "exclusive or"
> "a^n" usually means "the n-th power of a"

I agree, I think using "^" for exponents would be more consistent with
other languages. I don't have a strong opinion on a replacement for
'exclusive or', but some other approximations of...
nathan.f77 (Nathan Broadbent)
04:45 AM Revision b0c8aeeb (git): * eval.c (rb_using_refinement, rb_mod_using, f_using): clear method
cache only when using is called explicitly.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:23 AM Revision fc4b6cd2 (git): * lib/pstore.rb (PStore): fix not to replace ThreadError raised in
#transaction block with PStore::Error.
[ruby-core:39238] [Bug #5269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
02:42 AM Revision ba5ea548 (git): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo):
add a new field for inline method cache.
* vm_insnhelper.c (vm_search_method): check rb_call_info_t::refinements
not to confuse inline method cache when module_eval is used with
refinements.
* test/ruby/test_refinement.rb: related ...
shugo (Shugo Maeda)
12:23 AM Bug #7201: Setting default_external affects STDIN encoding but default_internal does not
Hello Brian,

I'm not sure what the reason was for the current state, but I can easily
imagine a situation where stdin/stdout are the console and therefore in
one encoding, whereas the data a script is working on is all in another...
duerst (Martin Dürst)
12:21 AM Feature #6478: BasicObject#__class__
Maybe `BasicObject` is not intended to be subclassed directly? Why not to subclass `Object` instead? I do not think it is wrong that basic objects do not know who their class is, after all they are basic. alexeymuranov (Alexey Muranov)
12:04 AM Feature #6199 (Closed): Organize gc.c a bit
This issue was solved with changeset r37613.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: move immutable fields from struct heaps_slot and struct
...
authorNari (Narihiro Nakamura)

11/10/2012

11:47 PM Revision 35020e35 (git): ruby.c: removed a comma before "before"
(at Tamatsukuri Hot Spring (Onsen Hackathon))
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
09:33 PM Feature #6284: Add composition for procs
In Math multiplication is always associative, even for matrix. I.e: `(A*B)*C == A*(B*C)`. If we use `*` for `∘` (composition) it resembles multiplication. Function composition is analog to matrix multiplication which are commonly used fo... rosenfeld (Rodrigo Rosenfeld Rosas)
06:23 PM Feature #6284: Add composition for procs
phluid61 (Matthew Kerwin) wrote:
> I agree that `(f ∘ g)(x)` is `g(f(x))` is more intuitive from a purely
> ...
When functions are applied from left to right, the argument is usually (if not always) on the left. The form `(x)(fg)=((x)...
alexeymuranov (Alexey Muranov)
01:23 PM Feature #6284: Add composition for procs
I agree that `(f ∘ g)(x)` is `g(f(x))` is more intuitive from a purely
programmatic point of view. It is "natural" for the operations to be
applied left to right, exactly like method chaining.
--
Matthew Kerwin, B.Sc (CompSci) ...
phluid61 (Matthew Kerwin)
12:06 PM Feature #6284: Add composition for procs
marcandre (Marc-Andre Lafortune) wrote:
> +1 for `#*`
> ...
Very good point.
> Finally, the `f ∘ g(x)` is defined as `f(g(x))`, so there is no argument there either.
Not true. Depending on which field of mathematics you look at, ...
duerst (Martin Dürst)
02:42 AM Feature #6284: Add composition for procs
+1 for `#*`
The symbol used in mathematics for function composition is a circle (`∘`); the arrows are for the definitions of functions (like lambdas) only, so `#<-` or whatever make no sense to me.
Finally, the `f ∘ g(x)` is define...
marcandre (Marc-Andre Lafortune)
01:25 AM Feature #6284: Add composition for procs
I think that the meaning of `#<-` would not be symmetric with the meaning of `#->`.
Also, in mathematics, arrows are more like relations than operations. When used to describe functions, usually function arguments go to the arrow'...
alexeymuranov (Alexey Muranov)
08:26 PM Feature #7322 (Rejected): Add a new operator name #>< for bit-wise "exclusive or"
=begin
I propose to alias (({Fixnum#^})) and (({Bignum#^})), which stand for bit-wise "exclusive or", with a new operator name (({#><})).
Is it necessary to go along with C, Python, and Mathematica?
According to Wikipedia ( http://e...
alexeymuranov (Alexey Muranov)
07:42 PM Bug #7312: test_str_crypt(TestM17NComb) fails
Note that this test (test/ruby/test_m17n_comb.rb) also fails with
ruby 1.9.3p327 with rawhide glibc.
mtasaka (Mamoru TASAKA)
07:41 PM Bug #7312: test_str_crypt(TestM17NComb) fails
Test case:
#define _XOPEN_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
int main(void){
const char *key = "";
const char *salt = "\xa1\xa1";
char *ret = crypt(key, salt);
int err...
mtasaka (Mamoru TASAKA)
07:35 PM Bug #7310: URI::FTP API inconsistency
duerst (Martin Dürst) wrote:
> Most probably not! What's much more important is that the "U" in URI stands for "uniform". URI schemes have a lot of common syntax. http: and ftp: are a good example. For the common syntax, RFC 1738 is alm...
knu (Akinori MUSHA)
06:50 PM Bug #7310: URI::FTP API inconsistency
duerst (Martin Dürst) wrote:
> knu (Akinori MUSHA) wrote:
> ...
Ah, yes. what you say is correct.
> "obsolete" is strange here. ftp: and file: are still only defined in RFC 1738 (but see below).
It is strange but it is true.
RFC...
naruse (Yui NARUSE)
04:33 PM Bug #7310: URI::FTP API inconsistency
knu (Akinori MUSHA) wrote:
> naruse (Yui NARUSE) wrote:
> ...
"obsolete" is strange here. ftp: and file: are still only defined in RFC 1738 (but see below).
> So, my understanding is that developers who deal with FTP scheme
> ...
M...
duerst (Martin Dürst)
07:19 PM Feature #6721: Object#yield_self
After commenting on #6284, i have a new proposition for this method's name: `Object#^`. Also, i suggest to allow it to take a block, a proc, a lambda, or a symbol. I think this will not conflict with existing uses of `#^`, however the ... alexeymuranov (Alexey Muranov)
05:23 PM Feature #6752: Replacing ill-formed subsequencce
I have thought about this a bit. Yui's patch to string treats this as a problem separat from transcoding. I think it is preferable to use the transcoding logic to implement this. The advantage is that exactly the same options and fallbac... duerst (Martin Dürst)
05:00 PM Bug #5608 (Closed): make -j 16 sometimes fail
nobu (Nobuyoshi Nakada)
04:52 PM Feature #6199: Organize gc.c a bit
> I'm not sure that 3. improves a performance, because it's using binary search each one slot.
Well, `free_unused_heaps` runs on each GC and does linear scan, and `free_unused_heap` runs only on heap's freeing.
Heap freeing occurs r...
funny_falcon (Yura Sokolov)
03:55 PM Feature #6199: Organize gc.c a bit
Hi,
I'm sorry for late reply. I've just reviewed these.
I'm not sure that 3. improves a performance, because it's using binary search each one slot.
I don't like 2.
I will accept 1.
Thank you!
authorNari (Narihiro Nakamura)
04:17 PM Feature #7321 (Assigned): Newton.#nsolve の第 2 引数が複数の役割を持つ
Newton.#nsolve の第 2 引数 x は以下の 2 つの役割を持つようです。
* 探索を開始する点
* 解を代入
newton.rb のコメントにも同じ内容が記述してあるのでわかるといえばわかるのですが、できればそれぞれ分けた方がわかりやすいのではないかと思いました。Newton.#nsolve の戻り値として返すか、引数を追加するのはどうでしょう。
sho-h (Sho Hashimoto)
03:04 PM Revision c274c951 (git): * 2012-11-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:04 PM Revision 8a9097e8 (git): * gc.c: move immutable fields from struct heaps_slot and struct
sorted_heaps_slot into struct heaps_header.
Based on a patch from Sokolov Yura [Feature #6199][ruby-core:43592]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
01:15 PM Bug #7298 (Closed): Behavior of Enumerator.new different between 1.9.3 and 2.0.0
I reverted Ayumin's commit, although I had understood that he would do it himself...? marcandre (Marc-Andre Lafortune)
07:11 AM Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0
=begin
ping?
20 hours have past and failure is still there:
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121109T163100Z.log.html.gz#test-all
http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/275/console
...
luislavena (Luis Lavena)
12:17 PM Bug #7289: test-unit.gemspec should not be installed into StdLib
Thanks for your report!
I've fixed it.
kou (Kouhei Sutou)
12:15 PM Bug #7289 (Closed): test-unit.gemspec should not be installed into StdLib
This issue was solved with changeset r37608.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* tool/rbinstall.rb: Don't install *.gemspec under lib/.
[ruby-c...
kou (Kouhei Sutou)
10:34 AM Revision 59050cba (git): typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:29 AM Revision e864787c (git): * complex.c: modified doc.
* ratioanl.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
09:21 AM Revision b04aa4d2 (git): * ext/date/date_parse.c: edited about era.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
07:58 AM Bug #7201: Setting default_external affects STDIN encoding but default_internal does not
Can someone please explain how the inconsistency with how the rest of IO instances would behave with transcoding is not a bug?
Thanks,
Brian
brixen (Brian Shirai)
07:58 AM Feature #7314: Convert Proc to Lambda doesn't work in MRI
I would like a standard way to turn a Proc into a lambda even if it cannot be achieved through `lambda(&proc)`. I don't know if it will affect the outcome, but jRuby correctly returns a lambda from `lambda(&proc)` in 1.9 mode.
schneems (Richard Schneeman)
07:43 AM Bug #7300: Hash#[] の挙動が 1.9.3 と異なっている
redis-rb という ruby から redis を扱うライブラリにも同じコードがありました。
https://github.com/redis/redis-rb/blob/master/lib/redis.rb#L182
redis-rb では `[nil, ["redis_version", "2.6.4"], ...]` というような配列を `Hash[]` に渡して初期化しようとして落ちています。
配列が `nil` だけの時の `[nil, ...
hsbt (Hiroshi SHIBATA)
04:03 AM Revision 52c50bf5 (git): Revert of 37541 "* test/ruby/test_enumerator.rb: Add test to shed light upon the bug"
[#7298]
This reverts commit 0ab21f9572d5d5f76b908aaf3381cde32a64c4c8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
03:15 AM Revision e91c04e2 (git): * tool/rbinstall.rb: Don't install *.gemspec under lib/.
[ruby-core:48966] [Bug #7289]
Reported by Vit Ondruch. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
02:59 AM Bug #7319 (Closed): CSV docs
Simple document, for the only method in CSV that was not documented. vbatts (Vincent Batts)
01:56 AM Bug #7306: BigDecimal does not properly marshal to JSON and back
Shouldn't it reinitialize a Bigdecimal object, with value "Infinity"? vbatts (Vincent Batts)
01:14 AM Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
> 回避策のrevertと名前変更は一緒にやったほうがいいと思うのでngotoさんがコミットしてもらったほうがいいかと思います。名前は rb_atomic.h で異論ありません。(ほかのでもOK、そこにこだわりはない)
r37603 にていったん r37491 をリバートした後、r37604 にてコミットしました。
ファイル名は、旧atomic.h内でマクロ RUBY_ATOMIC_H を使っているのを見て、何となく、rb_atomic.h ではなく ruby_...
ngoto (Naohisa Goto)
01:05 AM Bug #7287 (Closed): please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
This issue was solved with changeset r37604.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ruby_atomic.h: renamed from atomic.h to avoid header file na...
ngoto (Naohisa Goto)
12:53 AM Feature #5613: Signal.termsigname メソッドの追加
> パッチを拝見しました。
> ものすごーく trivial な点で恐縮なのですが
> char* signame;
> は
> char *signame;
> (アスタリスクの位置を変数名の直前に)のほうが周辺の変数宣言と揃っていて良いかと思います。

あれえ。なんでここだけずれちゃったんだろう。直します。すいません
kosaki (Motohiro KOSAKI)
12:14 AM Bug #7318 (Third Party's Issue): activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213: [BUG] Segmentation fault
I'm currently deploying with capistrano my rails app on a server.
Rails 3.2.8
RVM 1.16.17
Gem 1.8.24
Bundler 1.2.1
pg gem 0.14.1
The bug occured after a cap deploy:setup command :
* 2012-11-09 15:45:41 executing `deploy:...
Bluebird-communication (Douglas Magnenat)

11/09/2012

11:45 PM Bug #7300: Hash#[] の挙動が 1.9.3 と異なっている
全面的に無視するのはなんとなく気がすすまないんですが、`nil`だけ警告にするというのはどうでしょうか。 nobu (Nobuyoshi Nakada)
10:56 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
> see several lines at the end of enc/utf_8.c.
Thanks for the links, I'll read them to get a better understanding of this, I'm sorry I can't read the other two tickets associated with this as that would probably be enlightening too. I...
kennygrant (Kenny Grant)
09:53 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
2012/11/9 kennygrant (Kenny Grant) <[email protected]>:
> Thanks for the comments on this issue. I'm not clear on what the UTF8-MAC encoding represents, are there docs on this Ruby behaviour and the problems involved somewhere?

s...
naruse (Yui NARUSE)
07:30 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
Thanks for the comments on this issue. I'm not clear on what the UTF8-MAC encoding represents, are there docs on this Ruby behaviour and the problems involved somewhere?
At present Dir.glob has inconsistent behaviour even working wit...
kennygrant (Kenny Grant)
05:59 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
2012/11/3 meta (mathew murphy) <[email protected]>:
> 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 U...
naruse (Yui NARUSE)
05:59 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
> What I would expect to happen is for Ruby file system methods to convert back to composed form on reading in file names again, so that matches on a strings or regexp defined as UTF-8 would work correctly. As it is these fail, and the ... naruse (Yui NARUSE)
09:09 PM Feature #3809: allow multiple set_trace_func() calls
Isn't this taken care of by the new TracePoint API? trans (Thomas Sawyer)
08:59 PM Bug #7312: test_str_crypt(TestM17NComb) fails
=begin
The unit test still fails:
test_str_crypt(TestM17NComb):
Errno::EINVAL: Invalid argument - crypt
/builddir/build/BUILD/ruby-2.0.0-r37589/test/ruby/test_m17n_comb.rb:728:in `crypt'
/builddir/build/BUILD/ruby-2.0.0-...
vo.x (Vit Ondruch)
08:10 PM Bug #7312: test_str_crypt(TestM17NComb) fails
=begin
This is reduced test case:
def test_str_crypt
str = ""
salt = e("\xa1\xa1")
if a(salt).length < 2
assert_raise(ArgumentError) { str.crypt(salt) }
end
t = str.crypt(salt)
assert_equal(...
vo.x (Vit Ondruch)
01:26 PM Bug #7312 (Feedback): test_str_crypt(TestM17NComb) fails
vo.x (Vit Ondruch) wrote:
> I observe the test error on Fedora Rawhide. Could it be because of some "too new" external library?
As I wrote in the commit, it seems because of glibc's crypt(3)'s change.
(the fundamental reason is ruby...
naruse (Yui NARUSE)
01:06 PM Bug #7312 (Closed): test_str_crypt(TestM17NComb) fails
This issue was solved with changeset r37572.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_crypt): crypt(3) may return NULL.
Latest glib...
naruse (Yui NARUSE)
02:16 AM Bug #7312: test_str_crypt(TestM17NComb) fails
I observe the test error on Fedora Rawhide. Could it be because of some "too new" external library? vo.x (Vit Ondruch)
01:16 AM Bug #7312: test_str_crypt(TestM17NComb) fails
I cannot reproduce. Anyone?
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
12:41 AM Bug #7312 (Closed): test_str_crypt(TestM17NComb) fails
=begin
test_str_crypt(TestM17NComb):
ArgumentError: NULL pointer given
/builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/test_m17n_comb.rb:728:in `crypt'
/builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/test_m17n_comb.rb...
vo.x (Vit Ondruch)
08:52 PM Feature #3685 (Rejected): Struct does not define #to_ary, needed for implicit-splat.
Struct objects are not arrays. to_ary should be defined for objectw that conform every Array methods.
Matz.
matz (Yukihiro Matsumoto)
08:23 PM Feature #6284: Add composition for procs
I'm with Joshua, I think `#<-` reads a lot better. rohitarondekar (Rohit Arondekar)
08:10 PM Feature #6284: Add composition for procs
I think "`<-`" reads better but I'm ok with '`*`' as well. rosenfeld (Rodrigo Rosenfeld Rosas)
06:56 PM Feature #6284: Add composition for procs
Might I humbly suggest `#<-` :
```ruby
to_camel = :capitalize.to_proc
add_header = ->val {"Title: " + val}
format_as_title = add_header <- to_camel <- :strip
```
Seems to have a nice symmetry with `#->`
jballanc (Joshua Ballanco)
07:37 PM Bug #7308: Infinite recursion on circular 'using'
I've attached a patch that does a simple DFS to make sure no circular using relationship is created. Anonymous
07:00 PM Bug #2154: filesystem encoding of UNIX
usa (Usaku NAKAMURA) wrote:
> In message "[ruby-dev:46375] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX"
> ...
現状では default_external を SJIS にしてファイル開くときに external encoding を EUC-JP に設定とかですかねぇ。
> > 2) ロケールはUTF-8だけ...
naruse (Yui NARUSE)
06:33 PM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
After some investigation, I found WeakRef finalize code appears wrong.
When finalize, object references were not removed from weakmap hash properly.
I attached a patch. I tested it with ruby 2.0.0dev (2012-11-09 trunk 37558) [i686-li...
h.shirosaki (Hiroshi Shirosaki)
05:01 PM Bug #7201 (Rejected): Setting default_external affects STDIN encoding but default_internal does not
This is not a bug in 1.9.3 and 2.0.0 while I feel this behavior is not so good.
I want to change this but it will be big change, therefore I keep compatibility in near future.
naruse (Yui NARUSE)
04:50 PM Revision 28a3dae8 (git): * file.c (append_fspath): no need to do encoding trick here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:13 PM Bug #7306 (Rejected): BigDecimal does not properly marshal to JSON and back
JSON can't express infinity.
Confirm inf.to_json is "Infinity", it should be unexpected result.
naruse (Yui NARUSE)
04:09 PM Bug #7310: URI::FTP API inconsistency
naruse (Yui NARUSE) wrote:
> knu (Akinori MUSHA) wrote:
> ...
As far as I know, (part of) RFC 1738 was just "updated" by RFC
2396. It seems that it was actually obsoleted by RFC 4248 and
4266, neither of which however is about FTP.
...
knu (Akinori MUSHA)
03:40 PM Bug #7310: URI::FTP API inconsistency
knu (Akinori MUSHA) wrote:
> Please read the RFCs, especially RFC 1738 and see how the path
> ...
RFC 1738 is obsoleted by RFC 2396 and no RFCs define FTP URI scheme now.
A latest FTP URI scheme draft defines ftp-path, but there is ...
naruse (Yui NARUSE)
04:09 PM Bug #7305: BigDecimal documentation
vbatts: I've added your patch for JSON as a pull request, as suggested by naruse
https://github.com/flori/json/pull/150
Thank you
zzak (zzak _)
04:03 PM Bug #7305 (Closed): BigDecimal documentation
This issue was solved with changeset r37580.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/bigdecimal/bigdecimal.c:
Documentation for BigDecimal
...
zzak (zzak _)
04:08 PM Feature #6638 (Closed): Array as queue
This issue was solved with changeset r37581.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
array.c: steal shared array's container when ARY_SHARED_NUM == 1
...
nobu (Nobuyoshi Nakada)
04:05 PM Revision 05a05cc6 (git): * ruby_atomic.h: renamed from atomic.h to avoid header file name conflict
on Solaris 10. [ruby-dev:46414] [Bug #7287]
* gc.c, signal.c, vm_core.h, common.mk: reflect the rename from atomic.h
to ruby_atomic.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
04:00 PM Revision c4e1ecef (git): * atomic.h: Revert r37491 which is a temporary workaroud.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ngoto (Naohisa Goto)
03:42 PM Revision e4d1a8a1 (git): * tool/merger.rb: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:38 PM Revision 5e45af46 (git): merge revision(s) 37585,37587,37591,37592,37597,37599:
* random.c (rb_memhash): use siphash.
* siphash.c (sip_init_state): use union to suppress warnings by gcc
4.7.
* siphash.h: include inttypes.h only when HAVE_INTTYPES_H is defined.
* siphash.h: check ...
U.Nakamura
03:34 PM Revision 125ca30c (git): * siphash.h: check configure macros before include newer headers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:20 PM Revision 36ca3781 (git): * 2012-11-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:19 PM Revision f20ea787 (git): * siphash.h: include inttypes.h only when HAVE_INTTYPES_H is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:11 PM Revision 7c9a4b2f (git): * file.c (append_fspath): revert a part of r37562.
* file.c (rb_file_expand_path_internal): ditto.
* file.c (rb_file_expand_path_internal): ignore the encoding of the
given path name and use filesystem encoding, except when the result
is 8bit range and the filesystem encoding is US-...
U.Nakamura
02:44 PM Revision e3adacf0 (git): * ChangeLog: remove redundant entries for r37581-r37584.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:33 PM Revision 62f74246 (git): erb.rb: safe concurrent use
* lib/erb.rb (ERB#run, ERB#result): eval under isolated bindings for
safe concurrent use. [ruby-core:47638] [Bug #7046]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:23 PM Bug #7085: Subversion → GitHub gateway stops.
+1

(2012/11/09 12:14), Evan Phoenix wrote:
> It's working!
>
> The mirror is back up, being sync'd every 5 minutes now.
>
> Sorry again for the delay.
>
> For those curious: The mirror is running on it's own VM and...
ko1 (Koichi Sasada)
01:53 PM Bug #7085: Subversion → GitHub gateway stops.
Sweet!

Also please close this ticket once you are sure.

On 11/08/2012 07:14 PM, Evan Phoenix wrote:
> It's working!
>
> The mirror is back up, being sync'd every 5 minutes now.
>
> Sorry again for the delay.
>
...
shyouhei (Shyouhei Urabe)
01:23 PM Bug #7085: Subversion → GitHub gateway stops.
Thank you Evan!

On Thu, Nov 8, 2012 at 10:14 PM, Evan Phoenix <[email protected]> wrote:
> It's working!
>
> The mirror is back up, being sync'd every 5 minutes now.
>
> Sorry again for the delay.
>
> For those curious: The...
zzak (zzak _)
01:20 PM Bug #7085: Subversion → GitHub gateway stops.
http://i.imgur.com/HqMc5.jpg jonforums (Jon Forums)
12:23 PM Bug #7085: Subversion → GitHub gateway stops.
It's working!

The mirror is back up, being sync'd every 5 minutes now.

Sorry again for the delay.

For those curious: The mirror is running on it's own VM and for security reasons is running not inside a cron task but ins...
evanphx (Evan Phoenix)
10:23 AM Bug #7085: Subversion → GitHub gateway stops.
Ya, added. Please try!

On 11/08/2012 03:24 PM, Evan Phoenix wrote:
> So sorry for the continual delay. I'm setting this up right now but it appears that I (evanphx on github) don't have access to push to ruby/ruby. When I am adde...
shyouhei (Shyouhei Urabe)
08:29 AM Bug #7085: Subversion → GitHub gateway stops.
So sorry for the continual delay. I'm setting this up right now but it appears that I (evanphx on github) don't have access to push to ruby/ruby. When I am added, I can update the repo immediately.

--
Evan Phoenix // [email protected]...
evanphx (Evan Phoenix)
02:21 PM Feature #7252: version number of 2.0 release
mame (Yusuke Endoh) wrote:
> あれ、そういう結論が出てたんでしたっけ。すみません、把握できてませんでした。参照があれば教えてください。
> ...
[ruby-dev:44610] で Yusuke Endoh ってひとが提案して、[ruby-dev:44674] で matz が承認してます。
> > > - バージョン番号: rubyのバージョン番号(パッチの番号を除く)と同じ
> ...
インストールパスは ABI バージ...
naruse (Yui NARUSE)
12:35 PM Feature #7252: version number of 2.0 release
あれ、そういう結論が出てたんでしたっけ。すみません、把握できてませんでした。参照があれば教えてください。
方針には賛成です。Vit にも伝えた方がいいですね。
> > - バージョン番号: rubyのバージョン番号(パッチの番号を除く)と同じ
> ...
こっちはいまいちよくわかってないんですが、Ruby 2.0.1 なのにインストールされるパスが 2.0.0 になるのは無用な混乱を招く、とかいう話なんですが、そこは大丈夫?
--
Yusuke E...
mame (Yusuke Endoh)
02:05 PM Revision 2ce1fbeb (git): random.c: BYTE_ORDER
* random.c (BYTE_ORDER): define using configured WORDS_BIGENDIAN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:02 PM Revision 1d2ddae1 (git): siphash.c: union sip_init_state
* siphash.c (sip_init_state): use union to suppress warnings by gcc
4.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:02 PM Revision 496d7cc8 (git): siphash.c: union sip_init_state
* siphash.c (sip_init_state): use union to suppress warnings by gcc
4.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:02 PM Revision bbcfac95 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:53 PM Bug #7307: gcc -ansi vs. alloca (undefined reference to `alloca')
shyouhei (Shyouhei Urabe) wrote:
> knu (Akinori MUSHA) wrote:
> ...
なるほど。せっかく今はコンパイルできているので、具体的に困るまではいいか。
なお、そういう用途では-pedanticも付けるのが定番だと思いますが、実効性のほどは分かりません。
knu (Akinori MUSHA)
12:34 PM Bug #7307 (Closed): gcc -ansi vs. alloca (undefined reference to `alloca')
This issue was solved with changeset r37571.
Akinori, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Fix build when gcc is used and the platform's libc lacks alloc...
knu (Akinori MUSHA)
01:40 AM Bug #7307: gcc -ansi vs. alloca (undefined reference to `alloca')
knu (Akinori MUSHA) wrote:
> -ansi を外すというのはできればそうしたいですね。
> ...
そうです。もとの動機に関しては下記をご参照ください。
http://qa.atmarkit.co.jp/q/2159
shyouhei (Shyouhei Urabe)
12:42 PM Feature #6993 (Assigned): Class#allocate の仕様変更(Cレベル)
ささださんなかださん、
[ruby-core:49119] で Roger Pack が「ID_ALLOCATOR がなくなったせいで拡張ライブラリ (ruby-prof) がビルドできなくなった」と報告してます。
#define ID_ALLOCATOR 0 を追加するだけで直ります? それとも他に (拡張ライブラリから見える) 挙動に変更があります?
返事してあげてください。
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
11:20 AM Revision a91e3149 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:19 AM Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0
Hello,
I'm bumping the priority on this since it broke the build:
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121109T003800Z.log.html.gz#test-all
http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/271/conso...
luislavena (Luis Lavena)
11:06 AM Feature #5613: Signal.termsigname メソッドの追加
パッチを拝見しました。
ものすごーく trivial な点で恐縮なのですが
char* signame;

char *signame;
(アスタリスクの位置を変数名の直前に)のほうが周辺の変数宣言と揃っていて良いかと思います。
nagachika (Tomoyuki Chikanaga)
01:19 AM Feature #5613: Signal.termsigname メソッドの追加
以下のようなパッチで作ってみました
+ * call-seq:
+ * Signal.signame(signo) -> string
+ *
+ * convert signal number to signal name
+ *
+ * Signal.trap("INT") { |signo| puts Signal.signame(signo) }
+ * Process.kill("INT", 0)
+ *...
kosaki (Motohiro KOSAKI)
11:04 AM Revision efeee7af (git): * array.c (rb_ary_splice): fix r37583 doesn't condier the case when
beg > array length.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:11 AM Revision 5bde05f9 (git): Use C90 comment style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:43 AM Bug #7242: Bignum mathematical accuracy regression in r31695
Wrote by Yusuke Endoh:
> BTW: I think that he should have a commit bit.
I think so too.
He can confirm the calculation algorithms for large Bignum than me, I think.
mrkn (Kenta Murata)
07:38 AM Bug #7242 (Closed): Bignum mathematical accuracy regression in r31695
This issue was solved with changeset r37567.
Matthew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (bigmul0): enable big_mul_toom3.
[ruby-core:48552...
mrkn (Kenta Murata)
07:16 AM Bug #7242: Bignum mathematical accuracy regression in r31695
Thank you for your contribution, Matthew and Heesob.
I will confirm your patch and apply it asap.
mrkn (Kenta Murata)
05:41 AM Bug #7242 (Open): Bignum mathematical accuracy regression in r31695
reopen because the bug of bigmul1_toom3 hasn't fixed yet. mrkn (Kenta Murata)
05:38 AM Bug #7242 (Closed): Bignum mathematical accuracy regression in r31695
This issue was solved with changeset r37565.
Matthew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (bigmul0): disable big_mul_toom3_temporalily.
[ru...
mrkn (Kenta Murata)
07:16 AM Revision 350d4bcd (git): merge revision(s) 36332:
* test/csv/test_features.rb: add require for Tempfile.
* test/csv/test_serialization.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:12 AM Revision 525cb664 (git): siphash
* random.c (rb_memhash): use siphash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:08 AM Revision fdbd3716 (git): array.c: speedup Array#unshift by using space in shared array
* array.c: speedup Array#unshift by using space in shared array.
[Feature #6638]
- when array owns its shared array (ARY_SHARED_NUM == 1), and there
is enough space then try unshift values directly into shared
array.
- when...
nobu (Nobuyoshi Nakada)
07:08 AM Revision aaa9cb1a (git): array.c: use shared array in rb_ary_slice
* array.c (rb_ary_splice): use shared array in rb_ary_slice.
[Feature #6638]
- use ary_ensure_room_for_push when rb_ary_slice used to add at the
end of array, cause rb_ary_concat use rb_ary_slice.
git-svn-id: svn+ssh://ci.ruby-l...
nobu (Nobuyoshi Nakada)
07:08 AM Revision b11975df (git): array.c: make array really suitable for queue
* array.c (ary_ensure_room_for_push): make array really suitable for
queue. [Feature #6638]
when array is shared (which happens after Array#shift), and
ARY_SHARED_NUM == 1 (which is very often when array used as queue),
then mak...
nobu (Nobuyoshi Nakada)
07:08 AM Revision 06de286c (git): array.c: steal shared array's container when ARY_SHARED_NUM == 1
* array.c (rb_ary_modify): steal shared array's container when
ARY_SHARED_NUM == 1. [Feature #6638]
- Do not allocate new memory in rb_ary_modify when ARY_SHARED_NUM == 1
and length almost same.
- Store ARY_CAPA instead of RAR...
nobu (Nobuyoshi Nakada)
07:03 AM Revision 50c85971 (git): * ext/bigdecimal/bigdecimal.c:
Documentation for BigDecimal
Based on a patch from Vincent Batts
[ruby-core:49047] [Bug #7305]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
06:57 AM Revision f030a91d (git): * parse.y (warn_balanced): use bit-wise operation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:29 AM Revision 427a95ec (git): merge revision(s) 35591: [Backport #7317]
test: why believe source directories are writable always?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
06:28 AM Revision ab714c82 (git): Add back my original example of Shellwords#shellescape.
* lib/shellwords.rb (Shellwords#shellescape): Add back my original
real world example with some enhancement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
06:25 AM Revision eccb9554 (git): Fix an example of Shellwords#shellescape.
* lib/shellwords.rb (Shellwords#shellescape): Undo part of the
previous rdoc change. This new example using a string-only
array was not in line with the description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37576 b2dd03c8-...
Akinori MUSHA
04:49 AM Revision ba09c0a3 (git): merge revision(s) 36246:
* test/win32ole/test_win32ole.rb (test_s_codepage_changed):
FileSystemObject only supports ANSI or UTF-16LE encoding.
Patch by bosko (Bosko Ivanisevic) [ruby-trunk - Bug #6650]
git-svn-id: svn+ssh://ci.ruby-lang.org...
U.Nakamura
04:25 AM Revision 01434751 (git): merge revision(s) 36533: [Backport #7316]
* tool/ytab.sed: fix for Bison 2.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:16 AM Revision 995e4281 (git): merge revision(s) 37567: [Backport #7315]
* bignum.c (bigmul0): enable big_mul_toom3.
[ruby-core:48552] [Bug #7242]
* bignum.c (bigmul1_toom3): fix incorrect calculation.
the patch is made by Heesob Park.
[ruby-core:48552] [Bug #7242]
...
U.Nakamura
04:06 AM Revision dfb44fee (git): * string.c (rb_str_crypt): crypt(3) may return NULL.
Latest glibc (2.16?) crypt(3) actually returns NULL. [Bug #7312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:34 AM Revision 1c0323ad (git): Fix build when gcc is used and the platform's libc lacks alloca().
* include/ruby/ruby.h (alloca), eval_intern.h (alloca), gc.c
(alloca): Make alloca() globally available by moving the
ultimate ifdef's to ruby/ruby.h. Gcc hides its builtin alloca()
when compiling with -ansi, and linking thus fail...
Akinori MUSHA
02:32 AM Bug #6037: #freeze bug
Adding a note in case someone new to ruby ever wonders why it got rejected.
>> array = ['a', 'b'].freeze
=> ["a", "b"]
>> puts array.map { |o| o.object_id }
70282007609720
70282007609700
=> nil
>> array[0].gs...
ddebernardy (Denis de Bernardy)
02:21 AM Revision 122b6dbc (git): merge revision(s) 37565: [Backport #7315]
* bignum.c (bigmul0): disable big_mul_toom3_temporalily.
[ruby-core:48552] [Bug #7242]
* test/ruby/test_bignum.rb (test_mul_large_numbers):
add a test for bigmul1_toom3 suggested in [Bug #7242].
git-svn-id:...
U.Nakamura
02:03 AM Feature #7314: Convert Proc to Lambda doesn't work in MRI
Moved this to feature tracker. I think you are feeling this like a hack because, you are in fact doing something hacky (return from a block).
Anyway I'm not against that kind of feature, though I'm not sure if that can be achieved by...
shyouhei (Shyouhei Urabe)
01:30 AM Feature #7314 (Assigned): Convert Proc to Lambda doesn't work in MRI
I have code where I need to convert a proc to a lambda (i need to be able to return out of the block). I would expect that passing a proc into a lambda to return a lambda. When I run this code on MRI i do not get the result I would expec... schneems (Richard Schneeman)
01:53 AM Feature #7299: Ruby should not completely ignore blocks.
ko1 (Koichi Sasada) wrote:
> If compiled method does not contain
> ...
There is also `Proc.new`...
def foo
Proc.new.call
end
foo{ p 42 } # => prints 42
Both eval and Proc.new are strange cornercases though...
marcandre (Marc-Andre Lafortune)
01:31 AM Bug #7009: Crash in method_missing
This issue works on trunk.
% ./ruby-trunk ../test.rb
../test.rb:3: stack level too deep (SystemStackError)
Recently nobu changed stack overflow detection logic, I suspect it also fixes this issue.
Nobu, if yes, can you please tel...
kosaki (Motohiro KOSAKI)
01:16 AM Bug #7313 (Closed): test_initialize(TestEnumerator) fails
Duplicate of #7298, see [ruby-core:49077] marcandre (Marc-Andre Lafortune)
01:14 AM Bug #7313 (Assigned): test_initialize(TestEnumerator) fails
Marc-Andre, do you know anything about this?
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
12:43 AM Bug #7313 (Closed): test_initialize(TestEnumerator) fails
=begin
test_initialize(TestEnumerator):
TypeError: can't convert Array into Integer
/builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/test_enumerator.rb:72:in `initialize'
/builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby...
vo.x (Vit Ondruch)
12:30 AM Revision 8ebd713b (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:28 AM Revision de794aef (git): * io.c (IO#new):
Fix indentation from r37444
[ruby-core:48052] [Bug #7179]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)

11/08/2012

11:58 PM Bug #7307: gcc -ansi vs. alloca (undefined reference to `alloca')
なお、現状ではビルドできないプラットフォームがあるので、 -ansi をどうするかというのとは別に、
早めに入れて救済を優先したいなと思っています。
knu (Akinori MUSHA)
11:54 PM Bug #7307: gcc -ansi vs. alloca (undefined reference to `alloca')
その通り、 gc.c にあったものを ruby/ruby.h に移動しただけです。
当該部分の内容はコメントを含めほぼ autoconf の吐くものと同一ですが、 configure スクリプト冒頭にもある通り、
生成された configure スクリプトはGPLの例外で、利用(改変、コピー、配布)にあたって制限はないはずです。
cf. http://www.gnu.org/licenses/autoconf-exception.html
-ansi を外す...
knu (Akinori MUSHA)
10:02 PM Bug #7307: gcc -ansi vs. alloca (undefined reference to `alloca')
ちゃんと読めてませんが、 autoconf の AC_FUNC_ALLOCA のコードをそのままカット&ペーストで持ってきたという意味ならライセンス非互換なのでよくないのではないでしょうか。
gc.c のやつをruby.h に引っ越しただけという話ならすいません。
#そもそも -ansi を外してしまうという案を押したい。-ansi はピュアANSI Cという意味だけど、rubyはANSI外の様々なPOSIX関数を
# 使いまくってるので、どうにも本来の使い道...
kosaki (Motohiro KOSAKI)
03:32 PM Bug #7307: gcc -ansi vs. alloca (undefined reference to `alloca')
Sorry, I could have sworn that I chose ruby-dev as Preferred language but after a form error that I didn't fill in ruby -v the field got somehow reset to the default value (ruby-core) and I resubmitted the form without noticing it... knu (Akinori MUSHA)
03:14 PM Bug #7307: gcc -ansi vs. alloca (undefined reference to `alloca')
バリデーションに捕まったのにアップロードファイルを再添付忘れました。 knu (Akinori MUSHA)
03:12 PM Bug #7307 (Closed): gcc -ansi vs. alloca (undefined reference to `alloca')
Ruby 2.0.0からは CFLAGS に -ansi が(サポートがあれば)付くように
なりましたが、これにより、 gcc の builtin alloca に依存しており
libc に alloca(3) を持たない環境、具体的にはOpenBSD(およびおそら
くNetBSDの mips, powerpc, powerpc64, sparc, sparc64 等)で次のよう
なリンクエラーが発生します。
linking miniruby
addr2...
knu (Akinori MUSHA)
11:39 PM Bug #7267 (Assigned): Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
Martin-sensei, should we do anything for this issue?
If not, could you close the ticket?
Thanks,
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
11:26 PM Bug #7306 (Assigned): BigDecimal does not properly marshal to JSON and back
I'm not sure what you expect.
Are you expecting that any object supports dumping and loading JSON notation? I don't think that it is virtually impossible.
Or, are you saying that JSON should not define Object#to_json? It makes sens...
mame (Yusuke Endoh)
01:54 AM Bug #7306 (Rejected): BigDecimal does not properly marshal to JSON and back
$ ruby -v -S irb -r bigdecimal -r json
ruby 2.0.0dev (2012-11-06 trunk 37483) [x86_64-linux]
/opt/ruby/2.0.0-git4e73323a6/lib/ruby/2.0.0/irb/ext/save-history.rb:29: warning: method redefined; discarding old save_history=
/opt/ruby/2.0...
vbatts (Vincent Batts)
11:03 PM Bug #7311 (Closed): DRb test suite fails when hostname cannot be reached
=begin
I have set following hostname:
$ hostname
dhcp-25-70
However, it cannot be reached:
$ ping `hostname`
PING dhcp-25-70 (10.34.25.70) 56(84) bytes of data.
From dhcp-25-1 (10.34.25.1) icmp_seq=1 Destination Host Un...
vo.x (Vit Ondruch)
10:57 PM Bug #7308 (Assigned): Infinite recursion on circular 'using'
mame (Yusuke Endoh)
07:15 PM Bug #7308 (Closed): Infinite recursion on circular 'using'
This code causes infinite recursion:
module X; using X; end
Note that any circular 'using' will cause infinite recursion, not just a module using itself:
module A; end
module B; using A; end
module A; using B; ...
Anonymous
10:40 PM Feature #6173 (Closed): re.cのrb_memsearch()におけるmemchr()の利用
This issue was solved with changeset r37564.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* re.c (rb_memsearch): performance improvement by using memchr(...
Anonymous
10:38 PM Revision bb250b00 (git): * bignum.c (bigmul0): enable big_mul_toom3.
[ruby-core:48552] [Bug #7242]
* bignum.c (bigmul1_toom3): fix incorrect calculation.
the patch is made by Heesob Park.
[ruby-core:48552] [Bug #7242]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37567 b2dd03c8-39d4-4d8f-98ff-82...
Kenta Murata
10:37 PM Bug #7242: Bignum mathematical accuracy regression in r31695
Awesome, thank you! Mrkn, could you review phasis68's patch?
BTW: I think that he should have a commit bit.
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
09:25 PM Bug #7242: Bignum mathematical accuracy regression in r31695
I confirmed this patch also solves Bug 6974. phasis68 (Heesob Park)
01:52 PM Bug #7242: Bignum mathematical accuracy regression in r31695
This patch appears to fix the issue for me. Could we try it on Bug 6974 to confirm the legitimacy of it? mhall (Matthew Hall)
08:49 PM Bug #7310 (Rejected): URI::FTP API inconsistency

Please read the RFCs, especially RFC 1738 and see how the path
part in FTP URI is defined.
tl;dr - URI('ftp://host/etc/motd').path == "etc/motd" and
URI('ftp://host/%2Fetc/motd').path == "/etc/motd"
To retrieve a file a...
knu (Akinori MUSHA)
08:18 PM Bug #7310: URI::FTP API inconsistency
In other words URI::HTTP returning/expecting absolute path, while URI::FTP returning/expecting relative path. t3hk0d3 (Igor Yamolov)
08:13 PM Bug #7310 (Rejected): URI::FTP API inconsistency
1.9.3p194 :012 > test = URI.parse("http://test/")
=> #<URI::HTTP:0x0000000142c100 URL:http://test/>
1.9.3p194 :013 > test.path
=> "/"
1.9.3p194 :014 > test = URI.parse("ftp://test/")
=> #<URI::FTP:0x00000001441488 URL:ftp://tes...
t3hk0d3 (Igor Yamolov)
08:38 PM Revision 9071bbb8 (git): * 2012-11-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:38 PM Revision 22767ffd (git): * bignum.c (bigmul0): disable big_mul_toom3_temporalily.
[ruby-core:48552] [Bug #7242]
* test/ruby/test_bignum.rb (test_mul_large_numbers):
add a test for bigmul1_toom3 suggested in [Bug #7242].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
07:20 PM Feature #7309 (Rejected): HEREDOC end of line or similar
example: writing a dsl that expresses some facts
increase "coding" experience one level until 'next summer'
This can right now be done in different ways
* make the whole thing a string and parse it
* increase.experience('...
eTM (Juergen Mangler)
06:27 PM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
I cannot reproduce above error. However, Bug #4168 and #5350 seem not solved.
I got NoMethodError by the following script. WeakRef object has reference to different object from originally associated.
~~~
% cat test_weakref.rb
~~~
...
h.shirosaki (Hiroshi Shirosaki)
12:44 AM Bug #7304 (Assigned): Random test failures around test_autoclose_true_closed_by_finalizer
luislavena (Luis Lavena)
12:43 AM Bug #7304 (Closed): Random test failures around test_autoclose_true_closed_by_finalizer
=begin
Hello,
Over the past few days I've seen on and off failures on RubyInstaller CI related to (({test_autoclose_true_closed_by_finalizer})):
http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/265/console
1) Error:
t...
luislavena (Luis Lavena)
05:29 PM Bug #7172 (Open): [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
Oh, sorry, I've mistaken. usa (Usaku NAKAMURA)
02:35 PM Bug #7200: Setting external encoding with BOM|
shyouhei (Shyouhei Urabe) wrote:
> So yui says this issue is illustrative because it was reported by Brian. What a ...
> ...
Don't do FUD.
Brian said they are inconsistent even if mode_enc looks like encoding.
I showed the reason ...
naruse (Yui NARUSE)
12:51 PM Bug #7200: Setting external encoding with BOM|
Brian (or others),
[written in part to help Shouhei a bit]
Do you have an actual use case where you need something like
f.set_encoding "bom|utf-16be", "euc-jp"
If yes, can you explain?
The current behavior in in part influe...
duerst (Martin Dürst)
12:28 PM Bug #7200: Setting external encoding with BOM|
So yui says this issue is illustrative because it was reported by Brian. What a ...
I feel very sorry, Brian. I can do nothing anymore.
shyouhei (Shyouhei Urabe)
12:21 PM Bug #7200: Setting external encoding with BOM|
naruse (Yui NARUSE) wrote:
> shyouhei (Shyouhei Urabe) wrote:
> ...
How dare you.
shyouhei (Shyouhei Urabe)
11:17 AM Bug #7200: Setting external encoding with BOM|
shyouhei (Shyouhei Urabe) wrote:
> どうも伝わってないぽいので日本語で書きますけど、貴方報告者の問題を解決する気ないでしょ。
> ...
Brian だから現実の問題ではないと認識しています。
naruse (Yui NARUSE)
05:11 AM Bug #7200: Setting external encoding with BOM|
どうも伝わってないぽいので日本語で書きますけど、貴方報告者の問題を解決する気ないでしょ。
報告者の問題は何だったかを読みかえしていただけますか。それで、なぜこれが問題ではないのかを解説していただけますか。
shyouhei (Shyouhei Urabe)
04:58 AM Bug #7200 (Assigned): Setting external encoding with BOM|
naruse (Yui NARUSE) wrote:
> I meant it is why.
> ...
That's OK.
But #set_encoding is confusing. Or inconsistent at least. Because it sets either encoding or mode depending on its arguments. Should we separate that method into tw...
shyouhei (Shyouhei Urabe)
03:40 AM Bug #7200 (Rejected): Setting external encoding with BOM|
I meant it is why.
A mode_enc and an encoding are different thing in syntax, implementation and meaning.
BOM|UTF-* is not the name of an encoding, but it is a part of mode specifier.
naruse (Yui NARUSE)
02:55 AM Bug #7200 (Assigned): Setting external encoding with BOM|
Yui that's _how_ it works, not _why_ it should be rejected.
If you want to reject this, write why.
shyouhei (Shyouhei Urabe)
01:40 PM Revision 9f9ebe4e (git): * re.c (rb_memsearch): performance improvement by using memchr().
[ruby-dev:45397] [Feature #6173]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
11:40 AM Bug #7298 (Assigned): Behavior of Enumerator.new different between 1.9.3 and 2.0.0
Hi Mark,
The given block has no mean.
It is just same as above example. I wanted to show that this issue is not closed yet by testcode.
I agreed what you said.
When Enumerator.new called with args and blok, the block is ignored...
ayumin (Ayumu AIZAWA)
03:48 AM Bug #7298 (Feedback): Behavior of Enumerator.new different between 1.9.3 and 2.0.0
Sorry, I am missing your point. There was no meaning to the form `Enumerator.new( obj ) { block }`; the block was completely ignored and there should have been a warning (like there is for Array.new, #index, #count, ...)
What is the m...
marcandre (Marc-Andre Lafortune)
12:52 AM Bug #7298 (Open): Behavior of Enumerator.new different between 1.9.3 and 2.0.0
Hi Mark,
You fixed rubyspec... just skipped. I think this is not fair.
Same example still reproduce same problem.
As mame said it should be fixed until preview2.
I added more example in test/ruby/test_enumerator.rb to shed light ...
ayumin (Ayumu AIZAWA)
10:18 AM Bug #1720 (Closed): [NaN] == [NaN] が true になる
mrkn (Kenta Murata)
10:04 AM Revision 6ce8c339 (git): * lib/net/protocol.rb (Net::InternetMessageIO#each_crlf_line):
treat \r as newline as mame pointed. [ruby-dev:46425] [Bug #7278]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:51 AM Feature #7252: version number of 2.0 release
ayumin (Ayumu AIZAWA) wrote:
> [ruby-dev:44604] でも議論されていましたが、ABI互換性はTEENYバージョンの変更
> ...
あいざわさんの仰るとおり、既に結論が出ていると思います。
付け加えるなら、毎回ABIバージョンを変えると言っても、不必要なABI互換性の破壊はない方がいいよね、くらい。
naruse (Yui NARUSE)
08:58 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Hi Eregon,
Oops, I'm sorry. Perhaps I'm still overlooking anything else. Can you please share me your config.h and core file and build revision number?
I'm willing to look core file myself.
kosaki (Motohiro KOSAKI)
08:53 AM Feature #7299: Ruby should not completely ignore blocks.
On 11/07/2012 03:23 PM, SASADA Koichi wrote:
> This approach introduce incompatibility because we can call block in `eval'.

So you are proposing to deprecate eval? :p
shyouhei (Shyouhei Urabe)
08:29 AM Feature #7299: Ruby should not completely ignore blocks.
(2012/11/08 5:48), matz (Yukihiro Matsumoto) wrote:
> Under the current language spec, absence of '& argument' may or may not mean the method would take a block.

I agree that such checking is very useful.

# example code
...
ko1 (Koichi Sasada)
05:48 AM Feature #7299: Ruby should not completely ignore blocks.
I am positive as long as there's rational way to declare methods as 'non-block taking'.
Last time I tried, I couldn't think any good idea to do so (without adding new API).
New API (alternative version of rb_define_method, I suppose) i...
matz (Yukihiro Matsumoto)
12:10 AM Feature #7299: Ruby should not completely ignore blocks.
matz (Yukihiro Matsumoto) wrote:
> So you think of changing introducing new functions. I see.
> ...
Of course, but first I wanted to validate you were positive with the idea of warning for unused block
tenderlove wrote:
> This hap...
marcandre (Marc-Andre Lafortune)
08:50 AM Revision 88566f08 (git): * file.c (append_fspath): filesystem encoding is prior to the encoding
of argument.
* file.c (rb_file_expand_path_internal, EXPAND_PATH_BUFFER): ignore
the encoding of the given path name, use filesystem encoding always
instead. [ruby-dev:39393] [Bug #2154]
* test/ruby/test_file_exhaustive.rb: remove...
U.Nakamura
08:48 AM Feature #7297: map_to alias for each_with_object
In the discussion, you guys came up with several new ideas, and they are welcome.
Submit those ideas as issues.
* each_with alias to each_with_object
* Enumerable#associate
Matz.
matz (Yukihiro Matsumoto)
06:04 AM Feature #7297: map_to alias for each_with_object
I like the "associate" name but I prefer the implementation to be like the hash_map described above. I have lots of situations where the element of the Enumerable is not the key of the resulting hash. Your suggestions sounds inefficient ... rosenfeld (Rodrigo Rosenfeld Rosas)
05:53 AM Feature #7297: map_to alias for each_with_object
> Associate is a simple verb with unsurprising results. It doesn't
introduce ambiguous "map" naming. You associate an enumerable of keys with
yielded values.
> ...
> Apologies for hijacking this rejected ticket with a different ...
nathan.f77 (Nathan Broadbent)
05:34 AM Feature #7297: map_to alias for each_with_object
Some background:
#4151 proposes an Enumerable#categorize API, but it's complex and hard to understand its behavior at a glance.
#7292 proposes an Enumerable#to_h == Hash[...] API, but I don't think of association/pairing as explicit ...
bitsweat (Jeremy Daer)
05:23 AM Feature #7297: map_to alias for each_with_object
> So consider Enumerable#associate which builds a mapping by *associating*
keys with values

I like Enumerable#associate. It would cover many of the cases where
each_with_object({}) is currently used.

However, I think '[[1,...
nathan.f77 (Nathan Broadbent)
05:22 AM Feature #7297: map_to alias for each_with_object
Hi,
bitsweat (Jeremy Kemper) wrote:
> The common thread here is that people want a hash conversion in an enumerable chain, where it feels fluent and natural, rather than wrapping the result with Hash[] which makes the code read backw...
marcandre (Marc-Andre Lafortune)
03:48 AM Feature #7297: map_to alias for each_with_object
John, I have a bit of usage like that. Consider that `collection.map { |element| [key, value] }.associate` handles that cleanly.
In my code survey, nearly all my uses of Hash[] and #inject are covered by #associate - associating an co...
bitsweat (Jeremy Daer)
03:29 AM Feature #7297: map_to alias for each_with_object
Ugh, sorry for the spam. I didn't realize "editing" a comment actually posts a new one. john_firebaugh (John Firebaugh)
03:26 AM Feature #7297: map_to alias for each_with_object
john_firebaugh (John Firebaugh) wrote:
> john_firebaugh (John Firebaugh) wrote:
> ...
john_firebaugh (John Firebaugh)
03:25 AM Feature #7297: map_to alias for each_with_object
john_firebaugh (John Firebaugh) wrote:
> I reviewed my own use of Hash[], and in the majority of cases, I'm transforming both the key and value. So I would prefer a more flexible definition:
> ...
john_firebaugh (John Firebaugh)
03:25 AM Feature #7297: map_to alias for each_with_object
I reviewed my own use of Hash[], and in the majority of cases, I'm transforming both the key and value. So I would prefer a more flexible definition:
module Enumerable
# Associates keys with values and returns a Hash.
#
# If ...
john_firebaugh (John Firebaugh)
03:09 AM Feature #7297: map_to alias for each_with_object
The common thread here is that people want a hash conversion in an enumerable chain, where it feels fluent and natural, rather than wrapping the result with Hash[] which makes the code read backward. #each_with_object is wonderful, but v... bitsweat (Jeremy Daer)
12:32 AM Feature #7297: map_to alias for each_with_object
Hi Thomas,
I agree that _object is a redundant suffix and that map_with is probably a better description than each_with or each_with_object.
But it makes sense to me that each_with_object should yield(item, object) because of the name ...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:09 AM Feature #7297: map_to alias for each_with_object
=begin
But the crux of the problem is simply that #each_with_object has a name that it is too long, which greatly deters usage. I know I am loathe to use it even when it would be useful for this simple reason. And that has also has a lo...
trans (Thomas Sawyer)
08:34 AM Revision d8665830 (git): merge revision(s) 37527: [Backport #7293]
* 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/branches/ruby_1_9_3@37561 b2dd03c8-39d4-4d8f-98ff-8...
U.Nakamura
07:45 AM Revision 6398df5b (git): merge revision(s) 36520:
test_dir_m17n.rb: composite character
* test/ruby/test_dir_m17n.rb (test_filename_utf8_raw_windows_1252_name):
get rid of composite character for troublesome Mac OS X file system.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
U.Nakamura
07:21 AM Revision 04ce1290 (git): merge revision(s) 36516
* test/ruby/test_dir_m17n.rb: remove a garbage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
06:56 AM Revision edb68694 (git): * test/cgi/test_cgi_core.rb: Add test for CGI#header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Takeyuki FUJIOKA
06:45 AM Bug #7300: Hash#[] の挙動が 1.9.3 と異なっている
遠藤さん、了解です。
2.0.0 互換報告は手元の Rails アプリケーションでチェックした結果なので、ほとんどが実運用に影響のある問題です。
今後はそのことを詳しく書くことにします。
hsbt (Hiroshi SHIBATA)
06:32 AM Feature #7292: Enumerable#to_h
+1 to this.
I didn't like it at first because `#to_h` means coercion to me, and it doesn't make sense to coerce an Enumerable to a Hash. However, `Array#to_h` does seem like a good fit. Coerce this array of associated key/value pairs ...
bitsweat (Jeremy Daer)
03:58 AM Feature #7292: Enumerable#to_h
> Actually I'd prefer to have both methods Enumerable#to_h and Hash#hash_map ( http://bugs.ruby-lang.org/issues/6669 )
I'm a strong supporter for different `hash_map/associate/categorize`, but let's not discuss these here please, they...
marcandre (Marc-Andre Lafortune)
03:01 AM Feature #7292: Enumerable#to_h
Hash.[] is one of most disastrous ruby methods, IMHO. Since we don't have hash_map it's common to write smth like
hsh = Hash[ hsh.map{|k,v| [k.to_sym, v.to_f]} ]
In some more complicated cases it makes any programmer, who looks at code...
prijutme4ty (Ilya Vorontsov)
06:24 AM Revision f2e09c46 (git): merge revision(s) 36515,36521:
* test/ruby/test_dir_m17n.rb: sorry, typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:52 AM Revision 4f4cab58 (git): merge revision(s) 36641: [Backport #7295]
* test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.locale
to pass some assertion. Thanks to Hiroshi Shirosaki.
[ruby-core:46873][Bug #6814]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37...
U.Nakamura
05:49 AM Revision bb74a0d0 (git): merge revision(s) 36306: [Backport #7296]
* test/win32ole/test_win32ole.rb (test_s_codepage_changed):
FileSystemObject only supports ANSI or UTF-16LE encoding.
Patch by h.shirosaki (Hiroshi Shirosaki) [ruby-trunk - Bug #6650]
git-svn-id: svn+ssh://ci.ruby-l...
U.Nakamura
05:43 AM Revision 73c6469a (git): merge revision(s) 36509,36514: [Backport #7294]
* test/ruby/test_dir_m17n.rb (create_and_check_raw_file_name): add new
helper method to ease encoding testing. Patch by Oleg Sukhodolsky.
[ruby-core:46589][Bug #6765]
* test/ruby/test_dir_m17n.rb (test_filena...
U.Nakamura
05:39 AM Revision 58396030 (git): merge revision(s) 36815,36816,36818,37414,37426,37427: [Backport #7217]
Thu Nov 8 14:16:53 2012 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (MakeMakefile#timestamp_file): use .-. instead of !, a
special character of NMAKE and BSD make. [Bug #7265]
Thu Nov 8 14:16:53 2012 Nob...
U.Nakamura
05:14 AM Revision b5a6ad3f (git): merge revision(s) 37296: [Backport #7205]
* configure.in (visibility_option): visibility attribute is not
available before GCC 4, so do not use -fvisibility option in that
case. [ruby-core:48147] [Bug #7205]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bran...
U.Nakamura
05:12 AM Revision b91f5c75 (git): merge revision(s) 37270: [Backport #7185]
* vm.c (rb_vm_jump_tag_but_local_jump): pass through thrown objects.
[ruby-dev:46234] [Bug #7185]
* vm_eval.c (rb_eval_cmd): if state is non-zero, val should be nil and
rb_vm_jump_tag_but_local_jump() just ju...
U.Nakamura
05:09 AM Revision 583d9ede (git): merge revision(s) 37406: [Backport #7176]
* 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-...
U.Nakamura
05:05 AM Revision c58402cd (git): merge revision(s) 37322: [Backport #7143]
* win32/win32.c (has_redirection): should use shell (cmd.exe) when
the commandline containts '&'.
reported by Roger Pack at [ruby-core:47912] [Bug #7143], and
patched by Heesob Park at [ruby-core:47931].
g...
U.Nakamura
04:55 AM Bug #7305: BigDecimal documentation
> Also, should #initialize_copy not be a singleton method? It's a private instance method, but nothing uses it.
#initialize_copy is used by dup/clone. It's always a private instance method.
marcandre (Marc-Andre Lafortune)
01:53 AM Bug #7305 (Closed): BigDecimal documentation
adding the last bits of documentation, with a few examples.
Also, should #initialize_copy not be a singleton method? It's a private instance method, but nothing uses it.
vbatts (Vincent Batts)
04:52 AM Revision f822c523 (git): Fix a couple of grammos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
04:47 AM Bug #7302 (Closed): r37497 changes rb_enumeratorize without NEWS
naruse (Yui NARUSE) wrote:
> Therefore people used it as if it is public, and we must treat it as public while they are still unofficial.
Thank you for the explanation.
> ...
Count me in the "some" :-)
Fixed. Thanks for checkin...
marcandre (Marc-Andre Lafortune)
03:50 AM Bug #7302: r37497 changes rb_enumeratorize without NEWS
marcandre (Marc-Andre Lafortune) wrote:
> Oh, please excuse my ignorance. I'll revert `rb_enumeratorize` to what it was and create `rb_enumeratorize_with_size` instead, as you suggest.
> ...
intern.h was meant to internal CAPI as you t...
naruse (Yui NARUSE)
03:09 AM Revision 0a741075 (git): * configure.in (--with-opt-dir): Avoid nesting of double quotes
inside backquotes, since some traditional shells like PD KSH
(which OpenBSD's /bin/sh bases on) fails to parse them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
12:44 AM Bug #7301 (Assigned): URI::FTP.new2()の引数typecodeを省略するとNoMethodErrorが発生します。
報告ありがとうございます。
生まれてから 10 年以上このままだったっぽいですね。このメソッド本当に必要なのか?
とりあえず最低限と思われるパッチを入れておきます。
diff --git a/lib/uri/ftp.rb b/lib/uri/ftp.rb
index 971684a..6cb9782 100644
--- a/lib/uri/ftp.rb
+++ b/lib/uri/ftp.rb
@@ -54,7 +54,7 @@ module URI...
mame (Yusuke Endoh)
12:35 AM Bug #5200 (Rejected): Ruby Crash Segmentation fault
Sorry, I'm closing this ticket.
We cannot investigate this issue, and I believe that this ticket can make no progress.
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
12:34 AM Revision 6ea34efa (git): * numeric.c: Add description of that the results of the comparing
operations of two NaNs are undefined.
[#1720] [ruby-dev:38725] [ruby-core:36966]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata

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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
mame (Yusuke Endoh)
07:59 PM Feature #6643: io.seek(off, :end)
2012年10月31日 22:23 Glass_saga (Masaki Matsushita) <[email protected]>:
>
> 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) <[email protected]>:
>
> 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) <[email protected]>:
>
> 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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
mame (Yusuke Endoh)
11:02 PM Bug #7085 (Assigned): Subversion → GitHub gateway stops.
Evan Phoenix, ping?
--
Yusuke Endoh <[email protected]>
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 <[email protected]>
mame (Yusuke Endoh)
10:57 PM Bug #4923: [ext/openssl] test_ssl.rb: test_client_auth fails
Emboss and NaHi, ping?
--
Yusuke Endoh <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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, <[email protected]> wrote:
> File.expand_pathのencodingが変わったのは、中田さんの修正による変更のように思い...
usa (Usaku NAKAMURA)
09:53 PM Bug #2154: filesystem encoding of UNIX
2012/11/5 U.Nakamura <[email protected]>:
> ただUNIX系については特に意図せず変更されていると思うので、現
> 時点では挙動を戻すのが妥当なラインかと思っているのですが...
> なおこの変更は例のWindows用のFile.expand_path高速化の副作用で
> あるというのが私の観測なので、それが事実かどうか(そして事実だ
> としたらどこを直せばいいのか)をちょっと考えてみてほしいです...
h.shirosaki (Hiroshi Shirosaki)
05:53 PM Bug #2154: filesystem encoding of UNIX
2012/11/5 U.Nakamura <[email protected]>:
> 実は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, <[email protected]> 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 <[email protected]>
mame (Yusuke Endoh)
09:58 PM Bug #7200 (Assigned): Setting external encoding with BOM|
Naruse-san, could you handle this?
--
Yusuke Endoh <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
mame (Yusuke Endoh)
09:37 PM Bug #7100 (Assigned): WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
akr さん、どう思われますか?
--
Yusuke Endoh <[email protected]>
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 <[email protected]>
mame (Yusuke Endoh)
09:14 PM Bug #7066 (Closed): test_segv_test(TestRubyOptions) が F になる
岸本さん、いつもありがとうございます。
これは多分直ったってことで大丈夫ですかね。
もしまた観測されたら reopen なりなんなりしてください。
--
Yusuke Endoh <[email protected]>
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...
[email protected] (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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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)
<[email protected]> 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 <[email protected]> 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 <[email protected]>
* 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 <[email protected]>
* 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
 

Also available in: Atom