Project

General

Profile

Activity

From 01/28/2013 to 02/03/2013

02/03/2013

10:33 PM Feature #7639: More freedom for location of comments
Indeed, method chains do seem to continue beyond empty lines. The following two work:
```ruby
[1, 2, 3].
map{|x| x * 2}
```
```ruby
[1, 2, 3].
#
map{|x| x * 2}
```
But the following does not, (which I claim is strange, gi...
sawa (Tsuyoshi Sawada)
10:10 PM Feature #7639 (Feedback): More freedom for location of comments
Comments are equivalent to white spaces syntactically now, so do you expect that a method chain will continue beyond empty lines?
It seems strange to me.
nobu (Nobuyoshi Nakada)
02:29 PM Feature #7639: More freedom for location of comments
I would like to add another argument for such feature. It is common that you put each step of a chain in a new line. During debugging, it frequently happens that you want to comment out particular lines within a chain. You have no proble... sawa (Tsuyoshi Sawada)
10:32 PM Bug #7737: problem with generated rbconfig.rb for Haiku
paul0 (Paulo Geyer) wrote:
> fixed that, changed to $(srcdir)/complex.o the line where tells where the object to be linked is in the ext/mathn/complex/Makefile
$(srcdir)/complex.o?
I have no idea why the object file is prefixed with...
nobu (Nobuyoshi Nakada)
06:11 AM Bug #7737: problem with generated rbconfig.rb for Haiku
paul0 (Paulo Geyer) wrote:
> fixed that, changed to $(srcdir)/complex.o the line where tells where the object to be linked is in the ext/mathn/complex/Makefile
> ...
fixed other things, and finished compiling
this patch haven't solved...
paul0 (Paulo Geyer)
03:15 AM Bug #7737: problem with generated rbconfig.rb for Haiku
fixed that, changed to $(srcdir)/complex.o the line where tells where the object to be linked is in the ext/mathn/complex/Makefile
had to do that with ext/mathn/rational/Makefile too
paul0 (Paulo Geyer)
02:53 AM Bug #7737: problem with generated rbconfig.rb for Haiku
nobu (Nobuyoshi Nakada) wrote:
> Seems RPATHFLAG unnecessary for extconf.rb.
> ...
tried again with the latest patch, and updated my local code with the remote repository, now it can't find "complex.o"
here is the make output
lin...
paul0 (Paulo Geyer)
09:53 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
2013年2月3日 18:35 SASADA Koichi <ko1@atdot.net>:
>  RC2 っていつ頃出します?

連絡してなくてすみません。

rubygems.org の事件に関連して Eric Hodel が何かしら rubygems に
対処が必要かを検討したいと言っていて、その具体的なプランを問い
合わせているところです。(今日中に返事よこせと言った)

明日には何かしらのアナウンスを出したいと思います。
...
mame (Yusuke Endoh)
06:53 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
(2013/02/03 18:14), ktsj (Kazuki Tsujimoto) wrote:
> binding呼び出しによって環境がヒープに移されますが、
> IFUNC上のepがそれに追随できていないのが原因です。

 あーあーきこえなーい.

 じゃなくて,ええと,IFUNC 回りはてきとーですよね.どうしようかな.

 RC2 っていつ頃出します?

--
// SASADA Koichi at atdot...
ko1 (Koichi Sasada)
06:14 PM Bug #7774 (Closed): IFUNC上のbinding呼び出しでSEGV
=begin
辻本です。
以下のコードでSEGVします。
tp = TracePoint.new(:raise) do |tp|
tp.binding
end
tp.enable

@obj = Object.new
class << @obj
include Enumerable
def each
yield 1
end
end

@obj.zip({}) {}
バックト...
ktsj (Kazuki Tsujimoto)
07:21 PM Revision 6d32920e (git): * lib/English.rb: Add English module for RDoc to parse, then
remove_const to avoid confusion. Include full list of aliases and
their associated global variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:05 PM Bug #7522: Non-core "Type()" Kernel methods return new objects
No apology necessary. Thanks for the help! jballanc (Joshua Ballanco)
06:01 PM Bug #7762: io-console version should be bumped
nobu (Nobuyoshi Nakada) wrote:
> I had uploaded io-console gem generated from the trunk.
> ...
Thank you. That solved my concerns.
vo.x (Vit Ondruch)
04:54 PM Bug #7762 (Closed): io-console version should be bumped
This issue was solved with changeset r39031.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io-console.gemspec: bump
* ext/io/console/io-console.gemspec: bum...
nobu (Nobuyoshi Nakada)
11:40 AM Bug #7762 (Feedback): io-console version should be bumped
I had uploaded io-console gem generated from the trunk.
How do they differ?
nobu (Nobuyoshi Nakada)
05:41 PM Bug #7773 (Closed): Calling send("attribute=", value) returns nil instead of value
When calling an attribute writer created using either attr_accessor or attr_writer via send nil is returned from the send call instead of the new value.
I've attached a test case that is failing on current head (51794) and 2.0.0-rc1. ...
gaffneyc (Chris Gaffney)
05:40 PM Revision 63bedf5d (git): * 2013-02-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:40 PM Revision 110a545d (git): * lib/yaml.rb (YAML::EngineManager): Documentation for #yamler and
#yamler= for using the removed Syck gem as the YAML::ENGINE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:24 PM Feature #7748: Contextual send
Ah, so this has been thought of before. I agree it should not replace behaviour of private #send (although, how much sweeter the syntax if it were called #private_send ?). But as an additional method, it would be useful.
Or was there so...
trans (Thomas Sawyer)
01:34 PM Feature #7748: Contextual send
#send had been implemented in that manner once, but reverted and #public_send was separated instead. nobu (Nobuyoshi Nakada)
04:28 PM Bug #7772: Consider bumping stack size in ruby_qsort
Sorry, I should have had a look at the patch. It makes indeed sense to apply this patch. duerst (Martin Dürst)
04:26 PM Bug #7772: Consider bumping stack size in ruby_qsort
It's very well known that Quicksort may create stack overflows. But it's also very well known how to deal with them: Check which of the remaining divisions is longer, and user recursion for the sorter part, and tail recursion simulated w... duerst (Martin Dürst)
04:07 PM Bug #7772: Consider bumping stack size in ruby_qsort
Patch to bump size to 64 Conrad.Irwin (Conrad Irwin)
04:06 PM Bug #7772 (Closed): Consider bumping stack size in ruby_qsort
At the moment the maximum size of the stack is 32. The comment implies this should be enough for arrays with up to 2**32 elements, but it's possible to create larger arrays on some big systems.
I was not able to trigger a bug with: ([...
Conrad.Irwin (Conrad Irwin)
10:30 AM Bug #7753 (Closed): Module#attr_reader documentation uses an undefined variable
Thank you Narsimham Chelluri, this issue was resolved by r38976. zzak (zzak _)
10:26 AM Bug #7770 (Closed): rand(range) is not document
This issue was solved with changeset r39025.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* random.c: Document range argument for Kernel#rand.
[ruby-...
zzak (zzak _)
09:59 AM Bug #7709 (Closed): constants on Float aren't documented
This issue was solved with changeset r39024.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* numeric.c: Document Float constants [ruby-core:51484] [Bug #7709]
zzak (zzak _)
08:22 AM Revision 80455c0d (git): * ext/io/console/io-console.gemspec: fix date.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:54 AM Revision b3d12956 (git): io-console.gemspec: bump
* ext/io/console/io-console.gemspec: bump. [Bug #7762]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:54 AM Revision b381a662 (git): test_io_console.rb: descriptive assertions
* test/io/console/test_io_console.rb (test_stringio_getch): use more
descriptive assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:54 AM Revision f050b223 (git): console.c: fix unit of min
* ext/io/console/console.c (rawmode_opt): min is minimum characters,
not tenths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:51 AM Revision 47dc049f (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:48 AM Revision 8c821761 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:14 AM Revision cac38cd0 (git): * doc/security.rdoc: add first cut at a Ruby security document
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Charlie Somerville
01:25 AM Revision ec720303 (git): * random.c: Document range argument for Kernel#rand.
[ruby-core:51794] [Bug #7770]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
12:59 AM Revision a954def1 (git): * numeric.c: Document Float constants [ruby-core:51484] [Bug #7709]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:38 AM Revision 9ed4d1ab (git): profiler.rb: block calls
* lib/profiler.rb (PROFILE_CALL_PROC, PROFILE_RETURN_PROC): add b_call
and b_return to profile block calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:37 AM Revision 0d7a1971 (git): * 2013-02-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:37 AM Revision f87614d7 (git): profiler.rb: split PROFILE_PROC
* lib/profiler.rb (PROFILE_CALL_PROC, PROFILE_RETURN_PROC): split
PROFILE_PROC for call and return events.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/02/2013

07:23 PM Bug #7771 (Rejected): method 'gets' crashed
Anonymous
07:23 PM Bug #7771: method 'gets' crashed
=begin
This is by design, (({gets})) will read from (({ARGV})) by default. If you want to read from the standard input even if there is a command line argument, use:
$stdin.gets
=end
Anonymous
07:17 PM Bug #7771 (Rejected): method 'gets' crashed
method 'gets' crashed when pass arguments like "ruby test.rb hello"
example
#file test.rb only one method
gets
#end
=========
type "ruby test.rb" and enter will work well
but "ruby test.rb hello" will crash
In my machine(ubun...
jjyr (Jinyang Jiang)
02:09 PM Bug #7656 (Feedback): Handful of documentations
Hello Vincent,
I've committed your patch for lib/debug. as r39019, I was reviewing your patch for lib/pp.rb and noticed the example for PPMethods::check_inspect_key doesn't work in trunk.
::check_inspect_key(obj.object_id) returns ...
zzak (zzak _)
01:13 PM Bug #7081 (Closed): GServer orphaned threads lead to resource exhaustion
This issue was solved with changeset r39016.
stephen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/gserver.rb (GServer#start): fix a timing issue. patch f...
mame (Yusuke Endoh)
01:12 PM Bug #6756 (Open): FileUtils.rm_rf がアクセス権のない空ディレクトリを削除しない
まあ一応反対が出たのでコミットしません。
内容的には小崎さんに全面賛成で、「あの環境でできないから」とか言ってたら
File/FileUtils 関係はほとんど何も出来なくなるんじゃないかと思いますが、
まあ今から議論するのは 2.0.0 には遅いので next minor にします。
あと自分で判断できる内容じゃない気がするので担当ははずれておきます。
対応が遅くなってすみません。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:57 PM Bug #7373 (Closed): FileUtils#chmod verbose gives error when mode is string
Applied at r39011.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:54 PM Bug #7246 (Closed): FileUtils.cp_r does not preserve attributes of directories
This issue was solved with changeset r39015.
Jan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/fileutils.rb (copy_entry, wrap_traverse): preserve attribute...
mame (Yusuke Endoh)
12:18 PM Bug #7301 (Closed): URI::FTP.new2()の引数typecodeを省略するとNoMethodErrorが発生します。
This issue was solved with changeset r39013.
Yoshifumi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/uri/ftp.rb (URI::FTP.new2): remove the rdoc because it...
mame (Yusuke Endoh)
12:04 PM Bug #7522 (Assigned): Non-core "Type()" Kernel methods return new objects
Sorry but let me postpone this to the next minor.
I'm afraid if the existing code depends on the traditional behavior.
It should have been included in rc1, which is my fault. Sorry, blame me.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:47 AM Bug #7406 (Closed): English.rb says that $_ is thread-local, but it is frame-local
This issue was solved with changeset r39010.
Charles, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/English.rb: Remove some confusing words from rdoc. [Bug...
mame (Yusuke Endoh)
07:46 AM Bug #5747 (Closed): Proc#curry doesn't always detect too many arguments
This issue was solved with changeset r39008.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c (proc_curry): Fix arity check [Bug #5747]
* test/...
marcandre (Marc-Andre Lafortune)
07:46 AM Bug #7765 (Closed): Proc#arity bug with optional argument
This issue was solved with changeset r39007.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c: Add {*}_min_max_arity and refactor.
[Bug #7765]...
marcandre (Marc-Andre Lafortune)
05:32 AM Revision f5b8e90a (git): * lib/minitest/mock.rb, lib/minitest/hell.rb: nodoc top-level module
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:04 AM Revision 32e754c8 (git): * lib/debug.rb: Documentation for DEBUGGER__ class methods based on
patch by Vincent Batts [ruby-core:51253]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:49 AM Bug #7766 (Closed): Marshal.dump corrupts Hash data when serializing
vo.x (Vit Ondruch)
04:32 AM Bug #7766: Marshal.dump corrupts Hash data when serializing
It only corrupted the output, although a few mins ago I realized I was on the preview and there was an RC1 out.
I just tested RC1 and the problem seems to have been fixed.
Do excuse me and please ignore this issue.
zapotek (Tasos Laskos)
04:37 AM Revision e91fb5eb (git): * lib/net/smtp.rb: Fix rdoc title for Net::SMTP
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:32 AM Revision 94839d4a (git): * lib/net/pop.rb: Fix rdoc title for Net::POP3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:13 AM Revision 1d23123c (git): * lib/gserver.rb (GServer#start): fix a timing issue. patch from
Charles Nutter. [Bug #7081]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:54 AM Revision 7dc77be2 (git): * lib/fileutils.rb (copy_entry, wrap_traverse): preserve attributes of
directories on FileUtils.cp_r. The fix was proposed by Jan
Wedekind. [Bug #7246]
* test/fileutils/test_fileutils.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:31 AM Revision 87d3c2d6 (git): * lib/uri/ftp.rb (URI::FTP.new2): nodoc method from r39013 [Bug #7301]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:18 AM Revision a60a562c (git): * lib/uri/ftp.rb (URI::FTP.new2): remove the rdoc because it is not
well tested yet. [Bug #7301]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:09 AM Revision 8b54e050 (git): * ChangeLog: Forgot to add a reference to the ChangeLog of the
previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:07 AM Revision 4077b9b8 (git): * lib/fileutils.rb: chmod/chmod_R with a string mode (e.g., "+x")
caused error in verbose mode.
* test/fileutils/test_fileutils.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
02:47 AM Revision 2ae0c4c4 (git): * lib/English.rb: Remove some confusing words from rdoc. [Bug #7406]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
01:38 AM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
r39004 (#7768) で uniq は修正されたようですね。 mrkn (Kenta Murata)
01:35 AM Bug #7768: Inherited Array class missing
#7625 is related to this issue. mrkn (Kenta Murata)
01:21 AM Revision d127e92b (git): * NEWS: add keyword arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)

02/01/2013

11:57 PM Bug #7750: GC中にオブジェクトが割り当てられる
OSはWindows8で、CPUは、Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz 3.30GHzです。5分程度でスクリプト自体は死にます。再度手元で、10回程度実行してみたところ前述したメッセージが出ませんでした。すいません。
konishi_takurou (瀧澤 悠介)
11:52 PM Bug #7770 (Closed): rand(range) is not document
Random#rand(range) is written in RDoc of random_rand, but rand(range) is not written in RDoc of rb_f_rand. znz (Kazuhiro NISHIYAMA)
11:05 PM Bug #7768 (Closed): Inherited Array class missing
This issue was solved with changeset r39004.
Roman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (rb_ary_dup): make returned array the same class as th...
Anonymous
09:56 PM Bug #7768: Inherited Array class missing
=begin
Looks like a regression introduced in r26987
=end
Anonymous
09:43 PM Bug #7768 (Closed): Inherited Array class missing
Hello. I apologize if I missed something.
I found strange behavior in ruby 1.9:
```ruby
class Custom < Array; end
Custom.new(0){|i| i + 1}.uniq.class # => Array
Custom.new(2){|i| i + 1}.uniq.class # => Custom
```
while in 1...
england (Roman Ivanilov)
10:46 PM Revision f810d180 (git): * proc.c (proc_curry): Fix arity check [Bug #5747]
* test/ruby/test_proc.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
10:46 PM Revision 83610815 (git): * proc.c: Add {*}_min_max_arity and refactor.
[Bug #7765]
* test/ruby/test_proc.rb: Fix wrong test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
09:59 PM Feature #7767: Tempfileで自動的にファイルを削除する
2013/2/1 kyanagi (Kouhei Yanagita) <redmine@ruby-lang.org>:
>
> しかし、Tempfile.openにブロックを渡すと自動的にcloseするところまではやってくれるのに、
> 削除をわざわざ明示的に書かないといけないというのは少し残念な気もします。
>
> Tempfile.openの類推で、ブロックを抜けると自動的にclose!してくれるメソッドがあると、
> 削除に気を使わなくて...
akr (Akira Tanaka)
09:27 PM Feature #7767 (Closed): Tempfileで自動的にファイルを削除する
ソースコードのコメント(tempfile.rbのGood practicesの項)にも書かれている通り、
Tempfileは使用後、明示的に削除することが推奨されています。
しかし、Tempfile.openにブロックを渡すと自動的にcloseするところまではやってくれるのに、
削除をわざわざ明示的に書かないといけないというのは少し残念な気もします。
Tempfile.openの類推で、ブロックを抜けると自動的にclose!してくれるメソッドがあると、
...
kyanagi (Kouhei Yanagita)
09:07 PM Bug #7766: Marshal.dump corrupts Hash data when serializing
=begin
Does it only corrupt the output, or does it break the actual Hash object passed to it?
=end
Anonymous
12:57 PM Bug #7766 (Closed): Marshal.dump corrupts Hash data when serializing
=begin
Marshal.dump seems to corrupt a Hash object during serialization.
The problem is that this does not happen when the affected Hash is serialized by itself but only (as far as I could see) when it's part of a larger object.
Wor...
zapotek (Tasos Laskos)
08:29 PM Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
On 2013/01/31 18:07, coffeejunk (Maximilian Haack) wrote:
>
> Issue #7752 has been updated by coffeejunk (Maximilian Haack).
>
>
> The only problem I see is that ruby is lying to the user.

There is 0% lying if one claims ...
duerst (Martin Dürst)
03:17 PM Bug #7752 (Rejected): Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
On current policy, strings which always include only US-ASCII characters are US-ASCII.
If there is a practical issue, I may change the policy in the future.
Note that US-ASCII string is faster than UTF-8 on getting length or index ac...
naruse (Yui NARUSE)
03:46 PM Revision 4b4d889f (git): * 2013-02-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:46 PM Revision ba5ff937 (git): * marshal.c: add security considerations to marshal overview, refer to
overview from Marshal.load documentation [#7759]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
03:19 PM Feature #7763 (Assigned): add Win32::Registry#values
usa (Usaku NAKAMURA)
02:31 AM Feature #7763 (Closed): add Win32::Registry#values
hello.
In today's Win32::Registry objects, we have
#num_keys, #keys, #num_values
(and no #values method, but there is an #each_value method and #each_key method).
So this is a feature request for it to be added. I suppose it ...
rogerdpack (Roger Pack)
02:47 PM Feature #6626: Readline.delete_text
feature requestだと思うのでnext minorにしておきます。
shugo (Shugo Maeda)
02:44 PM Bug #6332 (Feedback): Error compiling readline due username_completion_function being undeclared (GCC 4.6)
luislavena (Luis Lavena) wrote:
> Attempting to compile trunk (r35415) against GCC 4.6 (4.6.3, OSX 10.6, MacPorts provided) generates the following failure:
Could you attach ext/readline/{mkmf.log,extconf.h}?
shugo (Shugo Maeda)
02:37 PM Bug #7397 (Closed): Fix detection of RL_PROMPT_*_IGNORE macros
This issue was solved with changeset r39002.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/readline/extconf.rb, ext/readline/readline.c: check
RL...
shugo (Shugo Maeda)
02:05 PM Revision 86aa98fe (git): * array.c (rb_ary_dup): make returned array the same class as the original
array [Bug #7768] [ruby-core:51792]
* test/ruby/test_array.rb (class TestArray): add test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
07:35 AM Revision 3fe93956 (git): marshal.c: prohibit_ivar
* marshal.c (r_object0): prohibit setting instance variables of
exising class/module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:38 AM Bug #7765 (Closed): Proc#arity bug with optional argument
We have:
Proc.new{|a, b, c, d, e|}.arity # => 5
Matz decided [ruby-core:46515] we also have:
Proc.new{|a, b, c, d, e=0|}.arity # => 4
It looks like we currently have:
Proc.new{|a, b=0, c, d, e|}.arity # => 1, s...
marcandre (Marc-Andre Lafortune)
05:37 AM Revision 46ea3f65 (git): * ext/readline/extconf.rb, ext/readline/readline.c: check
RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE directly in
readline.c. Patch by Zachary Scott. [Bug #7397] [ruby-core:49561]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:50 AM Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
So running:
rvm install ruby-head --debug --movable
Executes:
autoreconf
./configure --disable-install-doc --prefix=/home/mpapis/.rvm/rubies/ruby-head --enable-shared --enable-load-relative --sysconfdir=/etc --with-...
mpapis (Michal Papis)
12:47 AM Revision 8df20dd7 (git): * 2013-02-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:47 AM Revision c58d8c30 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)

01/31/2013

10:57 PM Feature #5481: Gemifying Ruby standard library
BTW there should be process in place which ensures, that the libraries are properly versioned, i.e. if something is changed, it cannot have the same version as already released library (see #7761 and #7762). vo.x (Vit Ondruch)
10:52 PM Bug #7762 (Closed): io-console version should be bumped
The io-console shipped with Ruby 2.0 claims it is version 0.3, although it is definitely different code from io-console 0.3 available on rubygems.org. bigdecimal version should be bumped prior release of Ruby 2.0.0 to prevent confusion. vo.x (Vit Ondruch)
10:08 PM Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
US-ASCII is a strict subset of UTF-8, so I don't think there's necessarily any lying involved. jballanc (Joshua Ballanco)
06:07 PM Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
The only problem I see is that ruby is lying to the user. It is not severe since, as you said, there are no non-ascii characters in the resulting string, but I think ruby should respect the set encoding. coffeejunk (Maximilian Haack)
09:55 PM Bug #7759 (Closed): Marshal.load is not documented to be dangerous
This issue was solved with changeset r38999.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
marshal.c: warn against using Marshal.load on untrusted data
...
Anonymous
11:23 AM Bug #7759: Marshal.load is not documented to be dangerous
(2013/01/31 8:59), charliesome (Charlie Somerville) wrote:
> Unfortunately, many developers use it inappropriately and unmarshal user input. This can lead to a wide range of vulnerabilities, including remote code execution.

Could...
ko1 (Koichi Sasada)
11:15 AM Bug #7759: Marshal.load is not documented to be dangerous
> I've thought it's a common sense, isn't it?
You would imagine so, however I have seen a lot of code that does unmarshal untrusted data.
I will send an example to security@ruby-lang.org. Please note that I do not consider this a v...
Anonymous
11:07 AM Bug #7759: Marshal.load is not documented to be dangerous
charliesome (Charlie Somerville) wrote:
> Unfortunately, many developers use it inappropriately and unmarshal user input. This can lead to a wide range of vulnerabilities, including remote code execution.
Can't you elaborate it, prob...
nobu (Nobuyoshi Nakada)
09:53 AM Bug #7759: Marshal.load is not documented to be dangerous
> Marshal.load is incredibly powerful, and also incredibly dangerous.
>
> Unfortunately, many developers use it inappropriately and unmarshal user input. This can lead to a wide range of vulnerabilities, including remote code execut...
kosaki (Motohiro KOSAKI)
08:59 AM Bug #7759 (Closed): Marshal.load is not documented to be dangerous
=begin
Marshal.load is incredibly powerful, and also incredibly dangerous.
Unfortunately, many developers use it inappropriately and unmarshal user input. This can lead to a wide range of vulnerabilities, including remote code execut...
Anonymous
04:58 PM Bug #7722: [rubyspec] failure in core/marshal/dump_spec.rb
I am not that confident that I understand all the detail, but I vote for drop include_all flags.
Matz.
matz (Yukihiro Matsumoto)
03:59 PM Bug #7760 (Closed): "-\n2000-01-02 03:04:05".to_yaml raise ArgumentError
1.9.3's psych raises ArgumentError.
2.0.0's psych doesn't.
% ruby -v -r yaml -e '"-\n2000-01-02 03:04:05".to_yaml'
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
/Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9...
znz (Kazuhiro NISHIYAMA)
12:55 PM Revision f8823475 (git): marshal.c: warn against using Marshal.load on untrusted data
* marshal.c (marshal_load): Add documentation warning against using
Marshal.load on untrusted data [Bug #7759] [ruby-core:51765]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
12:12 PM Bug #7758: Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
I confirmed this bug occurs on Windows 7 with ruby 1.9.3p374 and 2.0 trunk.
I tested with MinGW32 gcc compiled version(mingw32) and MSVC++ compiled version(mswin32).
When the windows console font is a console with raster font, this...
phasis68 (Heesob Park)
06:18 AM Bug #7758 (Feedback): Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
Can you tell us more about the specific version of Windows that you're using?
Nowhere in your output says which version of Windows is.
Have you tried this against Ruby 2.0 too?
luislavena (Luis Lavena)
05:22 AM Bug #7758 (Closed): Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
=begin
I have a script that contains the unicode BOX_DRAWINGS_LIGHT_VERTICAL_AND_RIGHT character (http://www.fileformat.info/info/unicode/char/251c/index.htm). When the console code page is set to 65001 (utf-8), both ruby 1.9.3 p125 and...
joshc (Josh C)
07:33 AM Revision 20af032e (git): parse.y: no assigned but unused warnings in eval
* parse.y (local_push_gen): no assigned but unused variable warnings
in eval as well as -e. [Feature #7730] [ruby-core:51580]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:08 AM Revision b10e6b69 (git): * test/ruby/test_signal.rb (test_trap_puts): Fix typo. "sync"
should be "STDOUT.sync".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:38 AM Revision e56c7878 (git): * string.c (rb_str_aset_m): Documentation for String#[]= fix
Raises an IndexError if Regexp match is out of range.
Github fixes #243 Patch by Dmtiriy Budnik
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:59 AM Revision 625119a3 (git): * 2013-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:59 AM Revision 4ccfb274 (git): * ext/socket/raddrinfo.c (rsock_unix_sockaddr_len): return
sizeof(sa_familiy_t) if path is empty. see "Autobind Feature" in
unix(7) for details.
* ext/socket/lib/socket.rb (unix_socket_abstract_name?): treat an
empty path as an abstract name.
* test/socket/test_unix.rb: related test.
git...
shugo (Shugo Maeda)
01:23 AM Bug #7757 (Closed): String#start_with? and end_with? should accept Regexp
Dupe, see #3388, sorry.
Need a ram upgrade.
marcandre (Marc-Andre Lafortune)
01:22 AM Bug #7757 (Closed): String#start_with? and end_with? should accept Regexp
As suggested by Ilya in #5536, the following should work:
"hello".start_with? /h/ # => true, not a TypeError
marcandre (Marc-Andre Lafortune)
01:19 AM Bug #5536: String#start_with? and end_with? ignore arguments convertible to a String [PATCH]
prijutme4ty (Ilya Vorontsov) wrote:
> =begin
> ...
See #3388 for this feature (this issue is closed).
It is the approach I initially took, but building and compiling a Regexp is expensive, and so it should be cached or another way be ...
Eregon (Benoit Daloze)
12:30 AM Bug #5536: String#start_with? and end_with? ignore arguments convertible to a String [PATCH]
=begin
Can you please explain, why not just make (({"str".start_with(/s/)})) behave as (({"str".match(/^s/)})) ?
=end
prijutme4ty (Ilya Vorontsov)

01/30/2013

06:41 PM Bug #7703 (Feedback): Segfault in 1.9.3-p362, possibly threads related
p374 will help you. usa (Usaku NAKAMURA)
06:39 PM Bug #7689: Crash @enumerator.so with ruby 1.9.3/thin/RoR 3.2.11
Use p374 instead of p362.
It's the version for you, I guess.
usa (Usaku NAKAMURA)
06:38 PM Bug #7689 (Feedback): Crash @enumerator.so with ruby 1.9.3/thin/RoR 3.2.11
usa (Usaku NAKAMURA)
06:09 PM Bug #7750: GC中にオブジェクトが割り当てられる
とりあえず、現時点ではRubyのどのバージョンでも再現できていません。
が、非常に時間のかかるスクリプトのようですので、そもそも落ちるところまで我慢できずに実行を打ち切ってしまっているため、という感もあります。
参考までに、どのような環境(CPU)でどれくらいの時間でこの現象が起きるのか、教えていただけますか?
usa (Usaku NAKAMURA)
05:08 PM Bug #7276 (Closed): TestFile#test_utime failure
This issue was solved with changeset r38992.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
win32.h: revert r37337
* include/ruby/win32.h (fstat): revert r37...
nobu (Nobuyoshi Nakada)
04:59 PM Bug #7276: TestFile#test_utime failure
I don't remember the reason well, probably some mingw failed to link the dll or extension libraries.
But I can't find which failed, so revert it.
nobu (Nobuyoshi Nakada)
03:04 PM Bug #7725 (Closed): bsearch should return enumerator when called without a block
Fixed with r38984. marcandre (Marc-Andre Lafortune)
03:02 PM Bug #7726 (Closed): bsearch should handle block result in a consistent way
Fixed with r38986. marcandre (Marc-Andre Lafortune)
02:48 PM Bug #7728 (Closed): Range#bsearch on other Numerics?
Resolved with r38985. marcandre (Marc-Andre Lafortune)
01:29 PM Feature #7751: How to encapsulate File.delete and File.rename into one 'transaction'?
> What a great function! I've confirm it is true.
>
> irb(main):001:0> File.write('src', '000')
> => 3
> irb(main):002:0> File.write('dest', '1111')
> => 4
> irb(main):003:0> File.rename('src', 'dest')
> => 0
> irb(main)...
kosaki (Motohiro KOSAKI)
10:03 AM Feature #7751: How to encapsulate File.delete and File.rename into one 'transaction'?
What a great function! I've confirm it is true.
irb(main):001:0> File.write('src', '000')
=> 3
irb(main):002:0> File.write('dest', '1111')
=> 4
irb(main):003:0> File.rename('src', 'dest')
=> 0
irb(main):004:0> File.read('dest')
...
mghomn (Justin Peal)
01:22 PM Feature #7730 (Closed): Top level variables aren't checked for assigned but unused behavior
This issue was solved with changeset r38982.
Andrew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
parse.y: warn assigned but unused in toplevel
* parse.y (local...
nobu (Nobuyoshi Nakada)
01:18 PM Bug #7678 (Closed): $_ and $~ are shared across Fibers halfway
This issue was solved with changeset r38981.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
cont.c: fiber local svar
* cont.c (cont_restore_thread): sv...
nobu (Nobuyoshi Nakada)
12:01 PM Revision 1ff38a5b (git): * ext/socket/basicsocket.c (bsock_getsockname): ignore truncated
part of socket address.
(bsock_getpeername): ditto.
(bsock_local_address): ditto.
(bsock_remote_address): ditto.
* ext/socket/unixsocket.c (unix_path): ditto.
(unix_addr): ditto.
(unix_peeraddr): ditto.
* ext/socket/init.c (c...
akr (Akira Tanaka)
09:53 AM Feature #7525: How to avoid memory leak when something gets wrong and throw exception when using win32api?
Thank you for the resource release schema! mghomn (Justin Peal)
08:53 AM Bug #7756: clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
=begin
This patch works:
Index: vm_core.h
===================================================================
--- vm_core.h (revision 38980)
+++ vm_core.h (working copy)
@@ -116,7 +116,7 @@
#endif /* __GNUC__ >= 3...
drbrain (Eric Hodel)
05:32 AM Bug #7756: clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
Hm, maybe we need another workaround.
Does __attribute__ (unused) works on your compiler?
likes
#ifdef __GNUC__
#define UNINITIALIZED_VAR(x) x __attribute__ (unused) = x
#else
....
kosaki (Motohiro KOSAKI)
05:05 AM Bug #7756 (Closed): clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
=begin
In clang 3.2, the UNINITIALIZED_VAR macro does not prevent the compiler from producing a warning.
Apple clang 3.2:
$ clang -v
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-dar...
drbrain (Eric Hodel)
08:08 AM Revision 111b8614 (git): win32.h: revert r37337
* include/ruby/win32.h (fstat): revert r37337, which uses _fstati64()
instead of fstati64() on mingw32. [Bug #7276]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:01 AM Bug #7539 (Closed): Misleading error message "can't convert nil into string"
This issue was solved with changeset r38979.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c: Improve error for failed implicit conversions [Bug #...
marcandre (Marc-Andre Lafortune)
07:00 AM Bug #7724 (Closed): 6 bugs with Range#bsearch over floats
This issue was solved with changeset r38978.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* range.c: Fix Range#bsearch for floats [Bug #7724]
marcandre (Marc-Andre Lafortune)
06:30 AM Bug #7474 (Rejected): I am getting undefined symbol: rb_enable_interrupt when running event machine
No response. I'll close this then.
kosaki (Motohiro KOSAKI)
06:30 AM Revision e16b8482 (git): * ext/socket/unixsocket.c (rsock_init_unixsock): use rb_inspect()
because rb_sys_fail_str() fails if its argument contains NUL.
* test/socket/test_unix.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
06:21 AM Revision 5efb130d (git): vm_dump.c: important message first
* vm_dump.c (rb_vm_bugreport): show the most important message, Crash
Report log information, first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:20 AM Revision e449d06f (git): ChangeLog, range.c: adjust indent and style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:07 AM Revision 69adf990 (git): * array.c (rb_ary_bsearch): Fix r38986 (typo) [Bug #7726]
* range.c (range_bsearch): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
06:01 AM Revision a7938af1 (git): * array.c (rb_ary_bsearch): Fix r38986 (missing whitespace)
* range.c (range_bsearch): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
06:00 AM Revision 20c0fb69 (git): * array.c (rb_ary_bsearch): Raise TypeError on bad return from block
* range.c (range_bsearch): ditto
* test/ruby/test_array.rb (class): Test for above
* test/ruby/test_range.rb (class): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:46 AM Revision 00d6bb51 (git): * range.c: Restrict bsearch to integers [#7728]
* test/ruby/test_range.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:11 AM Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
This behavior matches Time#to_s, see #5226
Since there are no non-US-ASCII characters in the result of to_s on Rational, Float, Fixnum or Bignum there should be no problem with the US-ASCII encoding. Can you demonstrate one?
drbrain (Eric Hodel)
01:14 AM Bug #7752 (Rejected): Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
=begin
When converting an instance of Rational/Float/Fixnum/Bignum to a string with the (({.to_s})) method, the resulting string has the encoding US-ASCII. This happens for 1.9.3 as well as 2.0.0rc1.
(({> __ENCODING__}))
(({ => #<En...
coffeejunk (Maximilian Haack)
05:11 AM Revision 39048aca (git): * array.c (rb_ary_bsearch): Return enumerator if no block [#7725]
* range.c (range_bsearch): ditto
* test/ruby/test_array.rb: Test for above
* test/ruby/test_range.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:53 AM Revision ddea0c82 (git): * lib/matrix.rb: Take conjugate for inner product
[rubyspec:5a01ad5719f2] [ruby-dev:46101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:48 AM Bug #7755: JSON::Generate#configure's argument conversion
There's some more unreachable code in ext/json/parser/parser.rl:629 marcandre (Marc-Andre Lafortune)
04:33 AM Bug #7755 (Closed): JSON::Generate#configure's argument conversion
I notice a tiny bug in ext/json/generator/generator.c:514
tmp = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h");
if (NIL_P(tmp)) {
rb_raise(r...
marcandre (Marc-Andre Lafortune)
04:22 AM Revision 71eddb1d (git): parse.y: warn assigned but unused in toplevel
* parse.y (local_push_gen): warn assigned but unused variables also in
toplevel, except for -e option. [Feature #7730] [ruby-core:51580]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:17 AM Revision 29707c1d (git): cont.c: fiber local svar
* cont.c (cont_restore_thread): svar should be separate per fibers.
[ruby-core:51331] [Bug #7678]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:44 AM Bug #7753 (Closed): Module#attr_reader documentation uses an undefined variable
Current text is:
-- Cut here --
attr_writer(symbol, ...) → nil
Creates an accessor method to allow assignment to the attribute aSymbol.id2name.
-- Cut here --
Note that the signature refers to symbol but the body refers to aSymb...
nchelluri (Narsimham Chelluri)
03:23 AM Bug #7699: rubyspec failed: BigDecimal#divmod Can be reversed with * and +
(2013/01/27 15:04), mrkn (Kenta Murata) wrote:
> I cannot reproduce it with ruby 2.0.0dev (2013-01-27 trunk 38957) [x86_64-darwin12.2.0] built by clang.

On my environment (*1), I got this failure sometimes (1 or 2 on 10 times
t...
ko1 (Koichi Sasada)

01/29/2013

10:15 PM Revision 3df94d7b (git): * re.c (reg_operand): Simplify and reuse error handling [Bug #7539]
* test/ruby/test_regexp.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
10:00 PM Revision c34e9f23 (git): * object.c: Improve error for failed implicit conversions [Bug #7539]
* error.c: Adapt rdoc
* test/ruby/test_object.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
10:00 PM Revision 115a51f8 (git): * range.c: Fix Range#bsearch for floats [Bug #7724]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
06:58 PM Revision 996ff132 (git): * 2013-01-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:58 PM Revision bca54434 (git): * object.c: Fix rdoc typo, patch by Narsimham Chelluri [#7753].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:25 PM Bug #7635 (Closed): debug_inspector API segfaults when opened from inside an eval frame
This issue was solved with changeset r38970.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_backtrace.c: fix issue of rb_debug_inspector_open().
Th...
ko1 (Koichi Sasada)
04:11 PM Bug #7172 (Feedback): [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
How do you run the configure script and which element in RbConfig has prefix expanded? nobu (Nobuyoshi Nakada)
02:53 PM Bug #7678: $_ and $~ are shared across Fibers halfway
(2013/01/29 14:19), nobu (Nobuyoshi Nakada) wrote:
> I think this is one of undefined behaviors, so it would cause no compatibility issue.
> We can fix it once we decide which is more desirable, shared between fibers or separate per...
ko1 (Koichi Sasada)
02:19 PM Bug #7678: $_ and $~ are shared across Fibers halfway
I think this is one of undefined behaviors, so it would cause no compatibility issue.
We can fix it once we decide which is more desirable, shared between fibers or separate per fibers.
nobu (Nobuyoshi Nakada)
01:45 PM Bug #7276: TestFile#test_utime failure
Reverting r37337 works on Windows 8.
I think the only drawback to rb_w32_fstati64 is a little performance loss.
phasis68 (Heesob Park)
01:21 PM Bug #7276: TestFile#test_utime failure
Nobu-san: why was r37337 required and `rb_w32_fstati64` no longer correct?
Heesob: good read. After reverting r37337 as per Hiroshi's comment, I get 0 fails on trunk@38966 (Win7 32bit + mingw-w64 4.7.2) because `fstat` -> `rb_w32_fsta...
jonforums (Jon Forums)
01:09 PM Feature #7751 (Rejected): How to encapsulate File.delete and File.rename into one 'transaction'?
kosaki (Motohiro KOSAKI)
12:23 PM Feature #7751: How to encapsulate File.delete and File.rename into one 'transaction'?
File.rename can overwrite the destination file, so your File.delete is not necessary


On Tuesday, 29 January 2013 at 1:15 PM, mghomn (Justin Peal) wrote:

>
> Issue #7751 has been reported by mghomn (Justin Peal).
>
...
Anonymous
11:15 AM Feature #7751 (Rejected): How to encapsulate File.delete and File.rename into one 'transaction'?
Following program has a line: File.delete(sql_file) and File.rename(tmp_file, sql_file)
It is not a 'transaction' which is I need. Has Ruby a feature to encapsulate File.delete and File.rename into one 'transaction'?
======
class Stri...
mghomn (Justin Peal)
12:41 PM Revision 64dbc10b (git): * lib/net/http/generic_request.rb (encode_multipart_form_data): remove
tempfile explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:32 AM Revision d5b7fc43 (git): * array.c: Improve documentation about
comparison by hash for concerned methods. [ruby-core:51266]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
09:30 AM Revision 18a8812e (git): debug: trivial fixes
* ext/-test-/debug/init.c (Init_debug): use normal module.
* ext/-test-/debug/inspector.c (callback): debug_inspector interfaces
now use long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:58 AM Revision e3f88ac4 (git): test_settracefunc.rb: fix tests
* test/ruby/test_settracefunc.rb (assert_security_error_safe4): fix
tests to set $SAFE separatedly
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:28 AM Revision 68fa2e8c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:25 AM Revision 18e01f63 (git): * vm_backtrace.c: fix issue of rb_debug_inspector_open().
The order of making binding should be stack (frame) top to bottom.
[Bug #7635]
And also fix issue of collecting klass. Collecting klass is same
as TracePoint#defined_class.
(previous version, it returns T_ICLASS (internal objects...
ko1 (Koichi Sasada)
07:51 AM Revision 499ca89e (git): vm_trace.c: TracePoint safe level check
* vm_trace.c (rb_tracepoint_enable, rb_tracepoint_disable): check safe
level as well as set_trace_func.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:50 AM Revision e26c2bc2 (git): vm_trace.c: trace_func safe level check
* vm_trace.c (set_trace_func, thread_{add,set}_trace_func_m): check
safe level as well as 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:49 AM Revision b0c4ac77 (git): proc.c: original arity
* proc.c (rb_mod_method_arity): return original arity of the method if
aliased because of visibility change, like as Method#arity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:06 AM Revision 2d55537d (git): * test/ruby/test_marshal.rb: remove temporally files early.
* test/ruby/test_process.rb: ditto.
* test/psych/test_exception.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:58 AM Revision 1d15bbda (git): ChangeLog: remove duplicated entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:32 AM Revision ae047835 (git): * 2013-01-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:32 AM Revision a1ed445b (git): * ext/socket/socket.c (sock_s_pack_sockaddr_un): calculate the
correct address length of an abstract socket.
* test/socket/test_unix.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)

01/28/2013

11:45 PM Bug #7750 (Rejected): GC中にオブジェクトが割り当てられる
下記が吐き出されたメッセージです。
0062.rb:2: [BUG] object allocation during garbage collection phase
ruby 1.9.3p374 (2013-01-15) [i386-mingw32]
-- Control frame information -----------------------------------------------
c:0005 p:---- s:0012 b:0...
konishi_takurou (瀧澤 悠介)
11:24 PM Bug #7276: TestFile#test_utime failure
This daylight savings time bug is described at
http://www.codeproject.com/Articles/1144/Beating-the-Daylight-Savings-Time-bug-and-getting
and
http://support.microsoft.com/kb/158588/en-us
The workaround is using the Windows API call...
phasis68 (Heesob Park)
05:31 PM Bug #7737: problem with generated rbconfig.rb for Haiku
Seems RPATHFLAG unnecessary for extconf.rb.
Attaching newer patch.
nobu (Nobuyoshi Nakada)
05:16 PM Bug #7279 (Feedback): Zlib load error on HP-UX
=begin
Could you try this patch?
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index c9e738a..fe6f771 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -317,9 +317,9 @@ def link_command(ldflags, opt="", libpath=$DEFLIBPATH|$LIBPATH)
...
nobu (Nobuyoshi Nakada)
04:11 PM Feature #7748 (Assigned): Contextual send
=begin
If I write a method that uses #send vs. #public_send, I am making an assumption about how that method is invoked. For example, take the simplest form of such a method:
class String
def send_out(op, *a, &b)
send(o...
trans (Thomas Sawyer)
03:54 PM Bug #7743 (Rejected): protected なメソッドを respond_to? で評価した時の結果が 1.9 と異なる
了解しました。
よくよく考えてみましたが、変更後の挙動の方が正しいと思いますのでクローズします。
影響のあったライブラリの方を直すことにします。
ご回答ありがとうございます。
hsbt (Hiroshi SHIBATA)
08:46 AM Bug #7743 (Assigned): protected なメソッドを respond_to? で評価した時の結果が 1.9 と異なる
hsbt (Hiroshi SHIBATA) wrote:
> 以下のようなコードを 1.9.3 と 2.0.0 で実行した時の結果が異なるようです。
(snip)
> ...
r34582で導入された意図的な変更だと思います。
[ruby-dev:40461]のスレッドで議論されたものです。
呼び出し元のコンテキストにおけるレシーバのクラスをチェックして、そのprotectedメソッド
を呼べるクラスであればtrueを返すのが理想ではないかと思いますが...
shugo (Shugo Maeda)
11:55 AM Bug #7482 (Closed): test_system_redirect_win(TestSystem) failure on Windows 8
nobu (Nobuyoshi Nakada)
12:32 AM Bug #7482 (Assigned): test_system_redirect_win(TestSystem) failure on Windows 8
luislavena (Luis Lavena)
10:58 AM Bug #4502 (Closed): strange Module.new behaviour
nobu (Nobuyoshi Nakada)
10:58 AM Bug #5350 (Closed): WeakRef で謎の NoMethodError
Please file new ticket for documentation. nobu (Nobuyoshi Nakada)
09:02 AM Revision 616f2c43 (git): vm_backtrace.c: use long
* vm_backtrace.c (rb_debug_inspector_frame_{class,binding,iseq}_get):
use long as index as well as RARRAY_LEN().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:51 AM Revision 43ce5ce1 (git): envutil.rb: no core dump
* test/ruby/envutil.rb (assert_separately): imply no core dump.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:18 AM Feature #7747: Expanded API for Binding semantics
It should also be possible to implement feature request #6710 with this API. The "isolated" binding mentioned in that request could be implemented as:
```ruby
def isolated_eval(src)
isolated = Binding.new #=> No source binding cre...
jballanc (Joshua Ballanco)
08:08 AM Feature #7747 (Open): Expanded API for Binding semantics
=begin
Currently, the only way to create a new instance of Binding is to get a copy of the current scope's binding, or ask some other object for its binding. In either case, the binding object returned always has semantics identical to ...
jballanc (Joshua Ballanco)
08:11 AM Feature #7702: Remove Proc#binding
I should note that this will obviously require much thought and some more research. First big question: how much would break if Proc#binding was removed? How severely, for example, would debugging be effected?
Also, an alternative to ...
jballanc (Joshua Ballanco)
03:34 AM Revision ea632a6d (git): * 2013-01-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:34 AM Revision 8477d313 (git): * ext/fcntl/fcntl.c: update document. use "file descriptor" instead
of "file handle" because it is not used other Ruby documents and
it is confusing with Windows file handle.
correct F_DUPFD behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:19 AM Feature #7745 (Assigned): lib/observer.rb: Observers are compared by identity
=begin
From ((<github issue 239|URL:https://github.com/ruby/ruby/pull/239>)):
((*Please consider changing @observer_peers to compare_by_identity. This fixes surprising effects when Strings or Arrays are used as observers.*))
I've ...
zzak (zzak _)
02:13 AM Bug #7744 (Closed): Fix signed integer overflows Github #242
=begin
From ((<github issue 242|URL:https://github.com/ruby/ruby/pull/242>)):
((*Signed integer overflow is undefined behavior in C. Many compilers assume no signed integer overflows and even optimize away overflow checks. The -fno-s...
zzak (zzak _)
 

Also available in: Atom