Project

General

Profile

Activity

From 12/29/2012 to 01/04/2013

01/04/2013

11:48 PM Feature #7654: Add optional code block to IO::readlines
(There is also Array#map!) Eregon (Benoit Daloze)
11:45 PM Feature #7654: Add optional code block to IO::readlines
But of course the main memory usage here are likely String instances, so you could update them in place if possible:
File.foreach('test.rb').map { |line| line.upcase!; line }
# or
lines = File.readlines('test.rb')
lines....
Eregon (Benoit Daloze)
11:37 PM Feature #7654: Add optional code block to IO::readlines
Why not
File.foreach('test.rb').map { |line| line.upcase }
?
It does not create an intermediary Array.
If you need to do other operations lazily (without an intermediate result), you could use #lazy:
File.foreach('test...
Eregon (Benoit Daloze)
10:27 PM Feature #7654: Add optional code block to IO::readlines
Just to be clear: code block will allow to write the first code snippet as follows:
data = File.readlines('/home/shock_one/test.rb'){ |line| line.upcase }
shock_one (Володимир Шацький)
10:15 PM Feature #7654 (Assigned): Add optional code block to IO::readlines
Of course, we always can write something like
File.readlines('/home/shock_one/test.rb').map{ |line| line.upcase }
but this way we create unneeded intermediate array which can be pretty big.
There is also a method IO::foreach, but it d...
shock_one (Володимир Шацький)
11:39 PM Revision 1da85070 (git): * doc/syntax/methods.rdoc: Added return values and scope sections,
slightly modified from the original patch. Fixes #227 from github by
Dave Brown.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:23 PM Revision 753f68cf (git): * io.c (rb_cloexec_fcntl_dupfd): improve #ifdef condition.
* io.c (rb_maygvl_fd_fix_cloexec): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
10:58 PM Revision da9fe1c4 (git): * lib/rubygems/commands/cleanup_command.rb: Clean all possible gems
using multiple passes. Fixes RubyGems bug #422. Refactored for
maintainability.
* test/rubygems/test_gem_commands_cleanup_command.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38698 b2dd03c8-39d4-4d8f-98ff-...
drbrain (Eric Hodel)
09:26 PM Bug #7638: trunk で rails の activesupport のテストが失敗してしまう
nagachika さん、丁寧な解説ありがとうございます。
#7564 の流れをみると `respond_to_missing?` を使って `method_missing` に反応すべきでないものは除外した方が良いということなので、その方向で考えてみます。
hsbt (Hiroshi SHIBATA)
08:05 PM Revision 1b82e077 (git): * 2013-01-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:05 PM Revision 03f7f9ea (git): * gc.c (vm_xrealloc): add a few comment why we avoid realloc(ptr,0).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
04:53 PM Feature #7549: A Ruby Design Process
Hello Brian,

On 2013/01/01 6:33, brixen (Brian Ford) wrote:
>
> Issue #7549 has been updated by brixen (Brian Ford).
>
>
> I've written another post addressing many of the misunderstandings about my proposal expressed in ...
duerst (Martin Dürst)
03:59 PM Feature #7549: A Ruby Design Process
On 2013/01/01 6:33, brixen (Brian Ford) wrote:
>
> Issue #7549 has been updated by brixen (Brian Ford).
>
>
> I've written another post addressing many of the misunderstandings about my proposal expressed in this thread:
>
...
duerst (Martin Dürst)
04:32 PM Bug #7618 (Closed): TestGemDoctor failures
This issue was solved with changeset r38691.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rubygems/doctor.rb: Process directories in order in case...
drbrain (Eric Hodel)
03:35 PM Feature #7652: Add FreeMiNT support to Ruby
Is -fPIC added to CCDLFLAGS, while it isn't supported?
If so, it means RUBY_APPEND_OPTION isn't working properly.
Could you show the corresponding part of config.log file?
nobu (Nobuyoshi Nakada)
03:16 PM Bug #6392 (Closed): rdoc -E option does not work
This issue was solved with changeset r38690.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #...
drbrain (Eric Hodel)
02:51 PM Revision db58af60 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:02 PM Bug #7564: r38175 introduces incompatibility
Anonymous wrote:
> Before this changeset, `method_missing` *did*deal with all method
> ...
No, previously `respond_to?` was called so `method_missing` did *not* get called.
> That's why this is not backwards compatible.
It depend...
nobu (Nobuyoshi Nakada)
11:19 AM Revision 275a9dcb (git): * Makefile.in (RBCONFIG): Moved from common.mk in order to use the
variable in Makefile.in.
* win32/Makefie.sub (RBCONFIG): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:47 AM Revision f9d7df33 (git): * common.mk (run, parse): Use BTESTRUBY instead of MINIRUBY to handle
cross-compiling cases, e.g. NativeClient.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
09:04 AM Revision ea9301bd (git): * common.mk (yes-btest): btest depends on also $(arch)-fake.rb and
rbconfig.rb on building for NativeClient.
* Makefile.in (fake): Avoid generating $(arch)-fake.rb unless cross
compiling.
* configure.in (CROSS_COMPILING): New substitution.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38692 b2d...
yugui (Yuki Sonoda)
07:31 AM Revision 2d08d23e (git): * lib/rubygems/doctor.rb: Process directories in order in case the
filesystem doesn't. [ruby-trunk - Bug #7618]
Process specifications before other directories in case of bugs.
* test/rubygems/test_gem_doctor.rb: Test for above.
* lib/rubygems.rb: Updated version.
* test/rubygems/test_require.rb...
drbrain (Eric Hodel)
07:30 AM Bug #6393 (Closed): rdoc does not parse multibyte files
Thank you for the patch, I have checked it and it is good. drbrain (Eric Hodel)
06:16 AM Revision f3b24b5b (git): * lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #===. RDoc
bug #164
* test/rdoc/test_rdoc_cross_reference.rb: Test for above.
* lib/rdoc/parser/changelog.rb: Fixed parsing of dates. RDoc bug #165
* test/rdoc/test_rdoc_parser_changelog.rb: Test for above.
* lib/rdoc/parser.rb: Fixed parsin...
drbrain (Eric Hodel)
02:52 AM Revision 5a7c4d2a (git): * lib/forwardable.rb: Fix rdoc parameters for ::def_single_delegator.
Patch by Vladimir Andrijevik [Github Fixes #230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:49 AM Revision 6856d86d (git): typo in ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:55 AM Bug #7653 (Closed): Array.pack ignores Big Endian modifier
Running on Linux, it seems that L> modifier is ignored:
irb(main):024:0> [2**16].pack('L<')
=> "\000\000\001\000"
irb(main):025:0> [2**16].pack('L>')
=> "\000\000\001\000"
Expected result:
irb(main):024:0> [2**16].pack('L<')
...
rudolone (rudi pettazzi)

01/03/2013

07:51 PM Feature #7652 (Feedback): Add FreeMiNT support to Ruby
=begin
Just a minor patch to the configure script.
diff -u configure.in.old configure.in
--- configure.in.old 2012-12-19 21:53:05.000000000 +0000
+++ configure.in 2012-12-19 21:53:33.000000000 +0000
@@ -2001,7 +2...
alanh (Alan Hourihane)
06:35 PM Feature #7639: More freedom for location of comments
I think I disagree. The fact that comments before lines starting with a dot are currently disallowed may be an artefact of how it was implemented (or it may have been intended from the start). But in the end, I think it is a feature. Usu... duerst (Martin Dürst)
05:01 PM Bug #7650 (Closed): net/http always added port number in host header.
#6482 の変更から、URI インスタンスを Net::HTTP のリクエストに渡した時に host ヘッダにホスト名とポート番号がつくようになりましたが、いくつかのサービスはポート番号付きのリクエストは動かないようです。(例: amazon の ecs api)
w3c に従うと、ポート番号を付けても動くべきと思いますが、今現在 amazon のような大きなサービスでも動かない状況なので、添付しているパッチのように 2.0 ではポート番号は付けないようして頂け...
hsbt (Hiroshi SHIBATA)
03:42 PM Revision aa1b87a5 (git): revert r38686 -- duplicate ChangeLog entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yugui (Yuki Sonoda)
03:40 PM Revision 05483e02 (git): Fix failures on btest for NativeClient.
* bootstraptest/runner.rb (nacl?): New method to distinguish NaCl
corss build.
* bootstraptest/test_io.rb: Skip unsupported operations.
* bootstraptest/test_literal.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38686 ...
yugui (Yuki Sonoda)
03:39 PM Revision 089c0dcc (git): * 2013-01-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:39 PM Revision 6efba755 (git): Fix failures on btest for NativeClient.
* bootstraptest/runner.rb (nacl?): New method to distinguish NaCl
corss build.
* bootstraptest/test_io.rb: Skip unsupported operations.
* bootstraptest/test_literal.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38684 ...
yugui (Yuki Sonoda)
03:39 PM Revision 0626021e (git): * io.c (rb_cloexec_fcntl_dupfd): Fix failures in
bootstrap_test/test_io.rb. NativeClient does not support F_DUPFD
but supports dup2(2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:13 PM Bug #7636 (Closed): Problems in the documnt of psych
This issue was solved with changeset r38680.
Ippei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/psych/lib/psych.rb (Psych.load): Return value of
Psych::...
zzak (zzak _)
02:48 PM Bug #7645 (Assigned): BigDecimal#== slow when compared to true/false
mrkn (Kenta Murata)
12:10 PM Bug #5759: flatten calls to_ary on everything
=begin
So it does call (({#respond_to?})) after all? Yet, I thought (({#respond_to_missing?})) was invented so people would not have to override (({#respond_to?})). What's my misunderstanding? Surely we are not now expected to define bo...
trans (Thomas Sawyer)
10:35 AM Bug #7648 (Rejected): GServer does not close cleanly from signal interrupt context
SUMMARY:
When a signal interrupt is trapped, we can no longer call #close on GServer without it throwing a ThreadError.
STEPS TO REPEAT:
1) Run the following code:
require 'gserver'
server = GServer.new 8080
serv...
jleo3 (Joe Leo)
08:48 AM Revision 1fe680e8 (git): * lib/rexml/element.rb (REXML::Elements#add): Remove too much
"elements" in document. Sorry...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
08:44 AM Revision ece67a0a (git): * lib/rexml/element.rb (REXML::Elements#each): Add missing
"elements" in document. [ruby-talk:402713]
Reported by Wesley Rishel. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
07:25 AM Bug #7564 (Open): r38175 introduces incompatibility
No, really. This is a bug that needs more eyeballs.
A `respond_to?` with just a super should be equivalent to no code at all.
Can we get Matz and Mame to weigh in?
zenspider (Ryan Davis)
06:32 AM Bug #7647 (Closed): Ruby 1.9.3 doesn't build on m68k due to alignment of structs
I'd built Ruby 1.8 without any problems, but 1.9.3 shows up an issue with Ruby due to alignment checking.
When executing Init_var_tables(), we execute....
CONST_ID(autoload, "__autoload__");
We end up, in rb_intern3() and use th...
alanh (Alan Hourihane)
06:13 AM Revision 3e028faf (git): * ext/psych/lib/psych.rb (Psych.load): Return value of
Psych::SyntaxError.message should be same as example.
Patch by Ippei Obayashi [ruby-core:51193] [Bug #7636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:59 AM Revision e25d55ae (git): * lib/forwardable.rb (SingleForwardable): Fix example in overview
Patch by Vladimir Andrijevik [Github Fixes #231]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:46 AM Revision c4653fb3 (git): * 2013-01-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:46 AM Revision 6837b808 (git): * configure.in (OBJCOPY): Fixes build error for NativeClient.
Avoid disabling OBJCOPY for NativeClient.
* thread_pthread.c (rb_reserved_fd_p): USE_SLEEPY_TIMER_THREAD is
always defined. Fixes compilation error for NativeClient.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38677 b2dd03c8-3...
yugui (Yuki Sonoda)
05:42 AM Bug #7566: Escape (\u{}) forms in Regexp literals
brixen (Brian Ford) wrote:
> But as my example shows, if the bytes were in a literal String used to create the Regexp, they are already converted. And everything works just fine.
No it doesn't. There are no literal strings in your e...
phluid61 (Matthew Kerwin)
03:37 AM Bug #7566: Escape (\u{}) forms in Regexp literals
But as my example shows, if the bytes were in a literal String used to create the Regexp, they are already converted. And everything works just fine.
What's the rationale for not converting \u{}? Just because it is *an* escape sequenc...
brixen (Brian Shirai)
02:07 AM Bug #7646 (Assigned): String#each_lineでinvalid byte sequence
これはどうみても regressionじゃないかな。
2.0.0タグつけます。
kosaki (Motohiro KOSAKI)
01:42 AM Bug #7646 (Closed): String#each_lineでinvalid byte sequence
=begin
String#each_lineでセパレータを指定したときにASCII以外の文字でinvalid byte sequenceが発生します。
$ ruby -ve '"\n\u0100".each_line("\n") {|l| p l }'
ruby 2.0.0dev (2013-01-02 trunk 38676) [i686-linux]
"\n"
-e:1:in `each_line': invalid byte sequenc...
yoshidam (Yoshida Masato)

01/02/2013

09:47 PM Bug #7643: call to super in define_method in refine results in stack level too deep
Ok, also working for me here with r38676. Should have checked the new versions before, sorry. Have a nice day! beatrichartz (Beat Richartz)
10:29 AM Bug #7643 (Feedback): call to super in define_method in refine results in stack level too deep
Hi,
beatrichartz (Beat Richartz) wrote:
> When define_method is used within the refine block argument, calls to super will result in a stack level too deep. Definitions with def can call super without problems.
r38126 is too old. ...
shugo (Shugo Maeda)
06:43 PM Bug #7645: BigDecimal#== slow when compared to true/false
Thank you for pitching in with more explanation and a patch so quickly! Much appreciated. :) mathie (Graeme Mathieson)
05:23 AM Bug #7645: BigDecimal#== slow when compared to true/false
Hello,
This is a nice bug report!
So, BigDecimalCmp() calls rb_num_coerce_cmp() then do_coerce(), which tries to call #coerce on `true`, which generates a NoMethodError, which is rescued by rb_rescue() in do_coerce().
The coerce...
Eregon (Benoit Daloze)
04:45 AM Bug #7645: BigDecimal#== slow when compared to true/false
I've added some notes on the ticket on the Rails tracker - short story shorter, this particular case happens (AFAIK) because rb_num_coerce_cmp ends up looking for a coerce method on TrueClass.
Further insight from somebody who actuall...
al2o3cr (Matt Jones)
12:49 AM Bug #7645 (Closed): BigDecimal#== slow when compared to true/false
I was doing a spot of profiling on a Ruby on Rails application with perftools.rb and spotted that one particular chunk of code was spending a lot (nearly 60% in some tests) of its time in `BigDecimal#==`. It turns out that, when writing ... mathie (Graeme Mathieson)

01/01/2013

11:03 PM Feature #7644 (Assigned): In refinements, change "using" keyword to a less generic word.
The upcoming feature of refinements is bringing two new keyords: "refine Something" and "using Something". While I am definitely late to come up with this, I realized that due to natural linguistic reasons, keyword "using" should be repl... Anonymous
09:06 PM Revision 73bd4c3f (git): typo in r38675 ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:10 PM Revision 762aa293 (git): * ext/zlib/zlib.c (Zlib::GzipFile): Fix typo by zed_0xff
[Fixes Github #229]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:28 PM Revision 663613a9 (git): * hash.c (rb_hash_update): Revert documentation from r38672
See: https://github.com/ruby/ruby/pull/228#issuecomment-11791013
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:17 PM Revision 98b1b387 (git): * 2013-01-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:17 PM Revision 1290747c (git): * hash.c (rb_hash_update): Documentation for Hash#merge and shallow
copies Patch by Yorick Peterse [Fixes Github #228]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:42 PM Revision 10c8aa81 (git): * bootstraptest/test_thread.rb: get rid of confusing ruby-mode.el
indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:42 PM Revision 4136f8ce (git): * bootstraptest/test_thread.rb: get rid of "invalid nest" error in
ruby-mode.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:35 PM Revision 5c7027d2 (git): test_tmpdir.rb: remove tmpdir
* test/test_tmpdir.rb (TestTmpdir#test_no_homedir): remove created
tmpdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:31 AM Bug #7619 (Closed): 遅延評価された無限長の Range に map を適用して force しようとすると SEGV
nobu (Nobuyoshi Nakada)
09:24 AM Revision 56554d12 (git): * 2013-01-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:24 AM Revision 78ac68e8 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:33 AM Feature #7549: A Ruby Design Process
I've written another post addressing many of the misunderstandings about my proposal expressed in this thread:
http://brixen.io/2012/12/30/a-ruby-design-process-talking-points
We are starting work on the Consensus application here:...
brixen (Brian Shirai)
02:49 AM Bug #7643 (Rejected): call to super in define_method in refine results in stack level too deep
=begin
When (({define_method})) is used within the refine block argument, calls to super will result in a stack level too deep. Definitions with def can call super without problems.
module A
refine Fixnum do
%i(+ -).eac...
beatrichartz (Beat Richartz)
02:08 AM Bug #7642 (Rejected): IRB indentation is gone
This is indentation of irb in 1.9.3-p362:
http://screencloud.net/v/srk8
It is ok, but no out-dent on 'end'. This could be fixed.
Now compare with irb in trunk:
http://screencloud.net/v/5uVd
Indentation is completely missing.
zzak (zzak _)

12/31/2012

03:22 PM Bug #7619: 遅延評価された無限長の Range に map を適用して force しようとすると SEGV
ruby 2.0.0dev (2012-12-31 trunk 38665) [x86_64-darwin12.2.0] で試してみたところ,再現しませんでした.お騒がせしました.
一応,2.0.0-preview2 でバグ再現時のクラッシュレポートも添付いたします.
Linda_pp (Ryuichi Hayashida)
12:40 PM Bug #7619 (Feedback): 遅延評価された無限長の Range に map を適用して force しようとすると SEGV
手元では再現できませんでした。できれば最新バージョンで試してみてください。
また、~/Library/Logs/DiagnosticReportsにcrash reportファイルができているはずなので、それも添付してください。
nobu (Nobuyoshi Nakada)
02:01 PM Bug #7371: Fix undefined overflow checking in bigdecimal
To see how it works, try to compile the following (simplified) code with gcc 4.8. The entire function will be optimized away with "gcc -O2" (just grep "bar" in the resulting assembly code); gcc 4.7 or earlier doesn't do that.
#define...
xi (Xi Wang)
01:04 PM Feature #7434 (Assigned): Allow caller_locations and backtrace_locations to receive negative params
I have committed a test for range argument in r38664, please check it. zzak (zzak _)
10:46 AM Bug #5759: flatten calls to_ary on everything
> class Baz; def respond_to?(s, x) super unless s == :to_ary end end
=> nil
> ...
=> [#<Baz:0x007f8d3115c7d0>]
bitsweat (Jeremy Daer)
05:15 AM Bug #5759: flatten calls to_ary on everything
=begin
Isn't the the problem that it doesn't bother to check (({#respond_to?})) at all?
class Baz
def method_missing(s)
s
end
def respond_to_missing?(s, x)
return false if s == :to_ary
true
...
trans (Thomas Sawyer)
06:09 AM Revision 7e62b6cc (git): * vm_backtrace.c: Add documentation for Kernel#caller_locations,
Kernel#caller, and Thread::Backtrace::Location
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:03 AM Revision 534d99ec (git): * 2012-12-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:03 AM Revision e4be7f97 (git): * test/ruby/test_backtrace.rb: Add test for r37957 [Feature #7434]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
02:29 AM Feature #7639 (Closed): More freedom for location of comments
When we chain methods with the period at the end of each line, we can put comments in between the lines:
```ruby
[1, 2, 3].
# First, we do blah blah
method1.
# Second, we do blah blah
method2.
=begin
Third, the following line...
sawa (Tsuyoshi Sawada)
12:57 AM Bug #7638 (Assigned): trunk で rails の activesupport のテストが失敗してしまう
柴田さん、いつもご報告ありがとうございます。
わたしの理解では r38175 は `rb_obj_respond_to()` と `rb_funcall2()` で「`respond_to?(mid, true)` でメソッドが呼べるかチェックしてから呼ぶ」という処理を `rb_check_funcall()` という1つの関数でまとめるようにしたというものだと思います。以下のようにすると確かに `marshal_dump` や `_dump` が呼ばれてその結果...
nagachika (Tomoyuki Chikanaga)

12/30/2012

11:33 PM Bug #7610 (Closed): Incompatible with percent literal regexp between 1.9.3 and 2.0.0
This issue was solved with changeset r38663.
Kenichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
parse.y: escaped closing parenthsis
* parse.y (simple_re_meta...
nobu (Nobuyoshi Nakada)
11:03 PM Bug #4490 (Rejected): struct timespec declared without defining HAVE_STRUCT_TIMESPEC, clashes with pthreads.
mingw is not a pthread platform. nobu (Nobuyoshi Nakada)
10:57 PM Bug #7531 (Closed): Issues in installing ruby 1.9.3 on AIX 7.1
nobu (Nobuyoshi Nakada)
10:45 PM Bug #5759 (Rejected): flatten calls to_ary on everything
When you define method_missing, you have to also define respond_to_missing? properly. nobu (Nobuyoshi Nakada)
03:00 PM Bug #7638 (Closed): trunk で rails の activesupport のテストが失敗してしまう
Ruby のバグとは言い切れませんが、ある時期から activesupport のテストが落ちるようになってしまいました。
Ruby と Rails のどちらを直すべきか判断できないので、何か教えて頂けると助かります。
落ちてしまうテストは
https://github.com/rails/rails/blob/master/activesupport/test/core_ext/marshal_test.rb
です。テストの実行方法は以下の通り...
hsbt (Hiroshi SHIBATA)
02:33 PM Revision 77df5bb1 (git): parse.y: escaped closing parenthsis
* parse.y (simple_re_meta): escaped closing parenthsis has different
meaning. [Bug #7610] [ruby-core:51088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:01 PM Revision a6c637f0 (git): vm_method.c: idRespond_to_missing
* vm_method.c (respond_to_missing): use idRespond_to_missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:57 PM Revision afa4770a (git): Makefile.in: ignore CDPATH
* Makefile.in (CDPATH): ignore and force to chdir from cwd.
http://stackoverflow.com/questions/12885548/unable-to-build-ruby-1-9-3-on-lion
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:06 AM Bug #7630 (Closed): Proc/block doesn't take keyword arguments
This issue was solved with changeset r38657.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_insnhelper.c: set keyword hash on Proc/block calls.
[rub...
ktsj (Kazuki Tsujimoto)
03:11 AM Revision c56eee05 (git): * configure.in: use 4 argument form of AC_CHECK_HEADERS to force
autoconf to use compiler's result
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
02:24 AM Bug #7636: Problems in the documnt of psych
I'll have to check this upstream, psych is maintained on github (https://github.com/tenderlove/psych), but documentation patches here are fine. zzak (zzak _)
02:06 AM Revision 64e36b0e (git): * 2012-12-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:06 AM Revision 2a4e4d86 (git): * test/ruby/test_keyword.rb: add a test for passing hash
as a last argument. [ruby-dev:46712] [Bug #7529]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
02:06 AM Revision 371c07f2 (git): * vm_insnhelper.c: set keyword hash on Proc/block calls.
[ruby-core:51172] [Bug #7630]
* test/ruby/test_keyword.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)

12/29/2012

11:38 PM Bug #7636 (Closed): Problems in the documnt of psych
I found some mistakes in the comment of psych library.
The following is the comment of Psych.load:
# Example:
#
# Psych.load("--- a") # => 'a'
# Psych.load("---\n - a\n - b") # => ['a', 'b']
#
# b...
ohai (Ippei Obayashi)
10:52 PM Bug #7635 (Closed): debug_inspector API segfaults when opened from inside an eval frame
=begin
(({rb_debug_inspector_open})) segfaults when it is called from inside an eval frame.
Using this C extension:
#include "ruby/ruby.h"

static VALUE
cb()
{
return Qnil;
}

static VALUE
debug_...
Anonymous
10:23 PM Bug #7632: IRB autocompletion bug
けいじゅ@いしつかです.

In [ruby-dev:46814] the message: "[ruby-dev:46814] Re: backport93から
の移動 [Re: [ruby-core:51175] [Backport93 - Backport #7632] IRB
autocompletion bug]", on Dec/29 21:51(JST) "Shota Fukumori (sora_h)"
writes:

>...
keiju (Keiju Ishitsuka)
09:59 PM Bug #7632 (Closed): IRB autocompletion bug
This issue was solved with changeset r38656.
Bogdan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/irb/completion.rb: treat rightly comletion for symbol on ...
keiju (Keiju Ishitsuka)
09:56 PM Bug #7632 (Assigned): IRB autocompletion bug
keiju (Keiju Ishitsuka)
09:41 PM Bug #7632: IRB autocompletion bug
[ruby-dev:46813] を見て移動します。 sorah (Sorah Fukumori)
04:12 AM Bug #7632: IRB autocompletion bug
I was able to reproduce it with a previous patch level version of 1.9.3 as well as p362
https://gist.github.com/4400982
zzak (zzak _)
03:35 AM Bug #7632: IRB autocompletion bug
Can you reproduce without wirble? drbrain (Eric Hodel)
10:14 PM Bug #7623: Messages while RDoc generation
Thank you for looking at my report.
My point is on the messages:
lib/mkmf.rb:1117:29: Couldn't find STRING_OR_FAILED_FORMAT. Assuming it's a module
lib/irb/inspector.rb:36:36: Couldn't find INSPECTORS. Assuming it's a module
Encl...
tomoakin (Tomoaki Nishiyama)
05:07 AM Bug #7623 (Closed): Messages while RDoc generation
duplicate of #7550 zzak (zzak _)
10:03 PM Bug #3351 (Open): stack overflow on super
shugo (Shugo Maeda)
10:01 PM Bug #2402: super in instance_eval
まつもとさん、この件どうしましょうか?
個人的にはinstance_evalの中でsuperを呼ぶのはかなり特殊なケースだと思うので、
TypeErrorでよいように思いますが。
shugo (Shugo Maeda)
09:58 PM Bug #7630 (Assigned): Proc/block doesn't take keyword arguments
It seems accessing out of the stack, so I think this bug is critical.
Please fix it with a test.
nobu (Nobuyoshi Nakada)
01:35 PM Bug #7564: r38175 introduces incompatibility
I still think this is a bug, as shown by needing a `respond_to?` that does nothing more than call super:
~~~ruby
class Sexp < Array
def inspect
"s(#{map(&:inspect).join ', '})"
end
def respond_to? meth
super
e...
zenspider (Ryan Davis)
12:59 PM Revision b0767cf8 (git): * lib/irb/completion.rb: treat rightly comletion for symbol on irb
[Bug #7632].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
keiju (Keiju Ishitsuka)
12:54 PM Revision cdabc58f (git): * ext/curses/curses.c (window_cury, window_curx, window_maxy,
window_maxx, window_begy, window_begx): use RB_UNUSED_VAR()
to suppress unused-but-set-variable warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:22 PM Revision be7bf5aa (git): adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:22 PM Revision e878df74 (git): use RB_TYPE_P
* enumerator.c (enumerator_initialize), eval.c (rb_using_refinement),
(add_activated_refinement), numeric.c (num_interval_step_size),
parse.y (arg, match_op_gen, cond0), range.c (range_bsearch),
vm_insnhelper.c (vm_get_iclass): use...
nobu (Nobuyoshi Nakada)
12:21 PM Revision eb56c108 (git): compile.c: no semicolon
* compile.c (ADD_TRACE): putting a semicolon at the last of a macro
let do/while make no sense.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:46 AM Bug #4502: strange Module.new behaviour
With latest version, A.X occurs NameError instead of returning B::X. nobu (Nobuyoshi Nakada)
11:37 AM Bug #5283 (Closed): クラスオブジェクトの clone に関する質問
This issue was solved with changeset r38648.
satoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
object.c: singleton class clone
* object.c (rb_obj_clone): at...
nobu (Nobuyoshi Nakada)
07:44 AM Revision fd636ef9 (git): * iseq.c (RubyVM::InstructionSequence): rdoc formatting
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:29 AM Revision 1ddf1833 (git): * iseq.c (RubyVM::InstructionSequence): Add rdoc for new iseq features
added from r38085, this includes ::of, #path, #absolute_path,
#label, #base_label, #first_lineno, and #inspect
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:09 AM Revision 4706171d (git): * iseq.c (rb_iseq_line_trace_all, rb_iseq_line_trace_specify): Add
rdoc for experimental C level api of iseq, from r38076
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:37 AM Revision ad6f06ae (git): object.c: singleton class clone
* object.c (rb_obj_clone): attach clone to its singleton class during
cloning singleton class so that singleton_method_added will be called
on it. based on the patch by shiba (satoshi shiba)[Bug #5283] in
[ruby-dev:44477]. [Bug #...
nobu (Nobuyoshi Nakada)
01:13 AM Revision 11803022 (git): * test/ruby/test_class.rb (test_cannot_reinitialize_class_with_initialize_copy),
(test_invalid_superclass): get rid of confusing ruby-mode.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:10 AM Revision df158322 (git): * 2012-12-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:10 AM Revision 2eb92b14 (git): configure.in: AC_CHECK_HEADERS
* configure.in (crt_externs.h): use standard macro AC_CHECK_HEADERS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom