Project

General

Profile

Activity

From 10/16/2013 to 10/22/2013

10/22/2013

11:55 PM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
Sorry for late.
----
Summary: I believe we need more experience before including this library as standard.
(1) Try gem first
Basically, libraries written in Ruby can be provided by a gem easilly.
We can prove the usefulness ...
ko1 (Koichi Sasada)
09:23 PM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
Still waiting to read ko1's objection. I am prepared to commit a monitor-based delegator if we go forward. headius (Charles Nutter)
09:54 PM Misc #9006: build and host binary rubies
=begin
This is what I wanted to discuss, right now the whole process is controlled in rvm, so the builds are done and uploaded(scp) by me and the issues are initially handled at rvm bug tracker, I forward them here when needed.
There...
mpapis (Michal Papis)
03:20 PM Misc #9006: build and host binary rubies
Hi, Michal
I'm ok for your suggestion. but I have two questions.
1. How to upload/sync rvm package files?
2. How to escalate package issue?
hsbt (Hiroshi SHIBATA)
09:20 PM Feature #8909: Expand "f" frozen suffix to literal arrays and hashes
FWIW, I added #9043 that proposes an #f method added to String that would be a shortcut for #freeze. That might make this optimization harder, since we don't necessarily want to add #f at a global level. headius (Charles Nutter)
09:19 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
I have added #9042 and #9043 for removing the "f" suffix and adding the #f method, respectively.
I'm starting to lean toward making #f be the only magic form, so nobody can complain that we're adding incompatible syntax ("f" suffix) o...
headius (Charles Nutter)
09:16 PM Feature #9043 (Assigned): Add String#f method as shortcut for #freeze
We have String#b to create a binary-encoded String, and we have the "f" suffix (going away, hopefully) and the "literal".freeze optimization (#8992). I think it would be reasonable to add String#f as a shorter method for producing a froz... headius (Charles Nutter)
09:14 PM Feature #9042 (Closed): Remove "f" suffix in favor of VM optimization of "literal".freeze
The "f" suffix has been added to Ruby trunk to allow creating pre-frozen literal strings. However, #8992 provides a way the VM could simply optimize #freeze called on a literal string in the same way. If #8992 is accepted, the backward-i... headius (Charles Nutter)
07:47 PM Bug #9040: Readline duplicate file descriptors but doesn't close them
normalperson (Eric Wong) wrote:
>
> ...
I see. I updated the patch.
akr (Akira Tanaka)
06:59 AM Bug #9040: Readline duplicate file descriptors but doesn't close them
"akr (Akira Tanaka)" <akr@fsij.org> wrote:
>
> Issue #9040 has been updated by akr (Akira Tanaka).
>
> File readline-release-gvl-3.patch added

Does poll work reliably with tty FD on non-Linux systems?

Perhaps better ...
normalperson (Eric Wong)
06:05 PM Bug #9002: Use simpler example for File#expand_path
Thanks Benoit :) cha1tanya (Prathamesh Sonpatki)
04:59 PM Bug #9002 (Closed): Use simpler example for File#expand_path
This issue was solved with changeset r43386.
Prathamesh, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* file.c (File#expand_path): [DOC] improve documentation of...
Eregon (Benoit Daloze)
04:42 PM Bug #9002: Use simpler example for File#expand_path
This is better.
There is a typo "exapnd_path" and I would avoid references to your specific machine and Rails but use something more neutral. I will commit your patch with a couple changes.
Dir.pwd is also subject to change, so a stati...
Eregon (Benoit Daloze)
03:59 PM Bug #8006 (Closed): Dir.glob behaves differently on 1.9.3 and 2.0
This issue was solved with changeset r43385.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
dir.c: DOTMATCH to current directory
* dir.c (glob_helper): do...
nobu (Nobuyoshi Nakada)
03:46 PM Revision 9229a0f3 (git): * 2013-10-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:46 PM Revision a7e66877 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:59 PM Revision ec6f0778 (git): * vm_core.h (enum): avoid syntax error.
* method.h: ditto.
* internal.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
12:39 PM Bug #9041: Please add alias "starts_with?" to class String
@naruse: Thanks for responding and explaining. Yet, 3rd person forms
#starts_with?, #ends_with?, #exists? etc. seem to be preferred in other
computer langugages.
@shevegen: As you probably know, ActiveSupport provides those aliases:...
Anonymous
10:54 AM Revision 3d85d6ed (git): * gc.c (Init_heap): move logics from heap_pages_init() and remove
heap_pages_init().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:28 AM Revision d6fe84b6 (git): * gc.c: allow multiple heaps.
Now, objects are managed by page. And a set of pages is called heap.
This commit supports multiple heaps in the object space.
* Functions heap_* and rb_heap_t manages heap data structure.
* Functions heap_page_* and struct heap_pag...
ko1 (Koichi Sasada)
09:29 AM Revision 4292fd77 (git): * lib/pp.rb (object_address_group): Use Kernel#to_s to obtain the class
name and object address.
This fix a problem caused by %p in C generates variable length
address.
Reported by ko1 via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:59 AM Revision 5b91ab1f (git): * file.c (File#expand_path): [DOC] improve documentation of File#expand_path.
Based on patch by Prathamesh Sonpatki. [ruby-core:57734] [Bug #9002]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
06:59 AM Revision f57c988e (git): dir.c: DOTMATCH to current directory
* dir.c (glob_helper): don't skip current directories if FNM_DOTMATCH
is given. [ruby-core:53108] [Bug #8006]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:58 AM Revision 4ae79ade (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:24 AM Revision f5b15f0e (git): * vm_trace.c: exterminate Zombies.
There is a bug that T_ZOMBIE objects are not collected.
Because there is a pass to miss finalizer postponed job
with multi-threading. This patch solve this issue.
* vm_trace.c (rb_postponed_job_register_one): set
RUBY_VM_SET_POSTPO...
ko1 (Koichi Sasada)
03:45 AM Bug #9035: [proposal] new RUBY_GC_HEAP_GROWTH_MAX_OBJ tuning parameter
I would prefer (b) above. Exposing a bytesize based limit is just going to confuse users, who will expect the variable to limit their overall RSS. Since the limit only affects the ruby heap, the impact on overall RSS is quite minimal. Fo... tmm1 (Aman Karmani)
03:11 AM Revision 3636f8c0 (git): configure.in: check CFLAGS and LDFLAGS
* configure.in: check if the given CFLAGS and LDFLAGS are working, and
bail out early if not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:03 AM Revision 2addc8cd (git): internal.h: fix typo
* internal.h (rb_syserr_fail_path): fix typo on platforms where
function name string predefined identifier is not supported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/21/2013

11:57 PM Bug #9038 (Closed): instance_eval throws RuntimeError for bad syntax (regression from 2.0.0)
This issue was solved with changeset r43376.
André, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
encoding.c: preserve outer `errinfo`
* encoding.c (`lo...
nobu (Nobuyoshi Nakada)
03:22 PM Bug #9038 (Closed): instance_eval throws RuntimeError for bad syntax (regression from 2.0.0)
In Ruby 2.1.0dev (2013-10-20 trunk 43373), `instance_eval` throws a `RuntimeError` when it should throw a `SyntaxError`, but only the first time it is called. If you use an IRB session to call `instance_eval` a second time with the exact... indirect (André Arko)
11:51 PM Bug #9040: Readline duplicate file descriptors but doesn't close them
I think it's better to not trust the value of rl_instream and rl_outstream
because they can be modified by other libraries.
I updated my readline patch submitted to [Bug #8749].
akr (Akira Tanaka)
09:36 PM Bug #9040 (Closed): Readline duplicate file descriptors but doesn't close them
This depends on the max open files limit, happens quicker the lower the limit.
irb crashes just by holding down return. Uses two file descriptors per prompt.
input=': Too many open files - dup (Errno::EMFILE)
or if you don't want...
eweb (Eamonn Webster)
11:22 PM Bug #9041 (Rejected): Please add alias "starts_with?" to class String
shevegen (markus heiler) wrote:
> I forgot to add - I was told that the reason for this is that we should use the 2nd person, as in:
> ...
Yes, File.exists? should be removed for consistency.
But the removing breaks compatibility, and...
naruse (Yui NARUSE)
11:17 PM Bug #9041: Please add alias "starts_with?" to class String
I forgot to add - I was told that the reason for this is that we should use the 2nd person, as in:
"Word, do you start with character a?"
This is fine for me, however had in that case, either File.exist? or File.exists? should be r...
shevegen (Robert A. Heiler)
11:15 PM Bug #9041 (Rejected): Please add alias "starts_with?" to class String
Hi.
We can do these:
FileUtils.touch 'test' # => ["test"]
File.exist? 'test' # => true
File.exists? 'test' # => true
'test'.start_with? 't' # => true
However, we can not use .starts_with?
'test'.starts_with? 't' NoM...
shevegen (Robert A. Heiler)
10:45 PM Bug #8886: TracePoint API inconsistence when raise used
So, any opinions on this @ko1?
I'm handling this edge case in byebug manually so it's not a big deal but it'd be nice to get this fixed in ruby, either adapting the TracePoint API to ruby's behavior or changing how ruby behaves.
Th...
deivid (David Rodríguez)
05:06 PM Revision 22a96138 (git): dir.c: warn Dir.exists?
* dir.c (rb_dir_exists_p): warn deprecated name. [Bug #9041]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:09 PM Bug #9039 (Closed): [PATCH] socket: avoid unnecessary ppoll/select on Linux (part 3)
It is safe on Linux to attempt using a socket without waiting on it in
all cases. For some syscalls (e.g. accept/accept4), blocking on the
syscall instead of relying on select/poll allows the kernel to use
"wake-one" behavior and avo...
normalperson (Eric Wong)
03:34 PM Revision 1ca90bea (git): * file.c (rb_file_exists_p): maybe FileTest.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:07 PM Revision 68b85e9d (git): * 2013-10-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision 058d55ad (git): file.c: warn File.exists?
* file.c (rb_file_exists_p): warn deprecated name. [Bug #9041]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:57 PM Revision 274e50c1 (git): encoding.c: preserve outer errinfo
* encoding.c (load_encoding): should preserve outer errinfo, so that
expected exception may not be lost. [ruby-core:57949] [Bug #9038]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:53 PM Revision 3f939a44 (git): * 2013-10-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:53 PM Revision ac6268db (git): assertions.rb: fix omitted message
* lib/test/unit/assertions.rb (assert_raise_with_message): remove
omitted message by splatting nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/20/2013

06:53 PM Feature #9023: Array#tail
List (and Array) is a snake : everything but head is tail :)


2013/10/18 Fuad Saud <fuadksd@gmail.com>

> I can understand maybe tail is not the best name to describe this concept,
> nor any of the other options. But it is ...
funny_falcon (Yura Sokolov)
06:12 PM Bug #9011 (Closed): rb_fstring unsafe to use in general case
nobu (Nobuyoshi Nakada)
03:51 PM Feature #9037 (Closed): Memoization of "anonymous constants"
=begin
I was thinking about the frozen literal argument in https://bugs.ruby-lang.org/issues/8992. I believe that the original intent for that proposal was to avoid reevaluation of specially marked string literals. I think that that ide...
sawa (Tsuyoshi Sawada)
03:41 PM Bug #9036 (Closed): [PATCH] io.c: make IO#reopen("pathname") atomic for non-stdio
This issue was solved with changeset r43373.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io.c: make IO#reopen("pathname") atomic
* io.c (rb_io_reopen): c...
nobu (Nobuyoshi Nakada)
01:29 PM Bug #9036: [PATCH] io.c: make IO#reopen("pathname") atomic for non-stdio
"normalperson (Eric Wong)" <normalperson@yhbt.net> wrote:
> Without this patch, I need to maintain separate code paths for
> atomically reopening (e.g. log rotation) std{in,out,err} vs
> other files in a multithreaded application....
normalperson (Eric Wong)
01:16 PM Bug #9036 (Closed): [PATCH] io.c: make IO#reopen("pathname") atomic for non-stdio
Since rb_sysopen releases the GVL, calling close(fptr->fd) would
leave a window where accessing the file from another thread can hit
IOError on a closed stream
Instead, create a new, temporary FD via rb_sysopen and call
rb_cloexec_...
normalperson (Eric Wong)
10:53 AM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
> I and John Stulz agreed we need Linux kernel

s/need Linux kernel/need to fix Linux kernel/, of course.
kosaki (Motohiro KOSAKI)
07:08 AM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
Thank you for sorting this out! vo.x (Vit Ondruch)
06:41 AM Revision de004e3a (git): io.c: make IO#reopen("pathname") atomic
* io.c (rb_io_reopen): create a new, temporary FD via rb_sysopen and
call rb_cloexec_dup2 on it to atomically replace the file fptr->fd
points to. This leaves no possible window where fptr->fd is invalid
to userspace (even for any...
nobu (Nobuyoshi Nakada)
06:29 AM Revision c6b9f291 (git): internal.h: rb_syserr_fail_path
* error.c (rb_syserr_fail_path_in): new function split from
rb_sys_fail_path_in to raise SystemCallError without errno.
* internal.h (rb_syserr_fail_path): like rb_sys_fail_path but without
errno.
git-svn-id: svn+ssh://ci.ruby-lang....
nobu (Nobuyoshi Nakada)
06:12 AM Revision 52231de9 (git): internal.h: remove stale declaration
* internal.h (rb_w32_init_file): no longer defined since r43362.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:58 AM Revision 291aead0 (git): ruby.h: suppress warnings
* include/ruby/ruby.h (rb_obj_wb_unprotect, rb_obj_written),
(rb_obj_write): suppress unused-parameter warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:33 AM Revision 3f15d35f (git): * lib/rubygems: Update RubyGems to master 0886307. This commit
improves documentation and should bring ruby above 75% documented on
rubyci.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:31 AM Revision 8552f7aa (git): * lib/rubygems: Update to RubyGems master 3de7e0f. Changes:
Only attempt to build extensions for newly-installed gems. This
prevents compilation attempts at gem activation time for gems that
already have extensions built.
Fix crash in the dependency resolver for dependencies that cannot b...
drbrain (Eric Hodel)

10/19/2013

10:00 PM Bug #9002: Use simpler example for File#expand_path
Updated based on suggestions of @zzak and @Eregon. Please take a look cha1tanya (Prathamesh Sonpatki)
08:49 PM Bug #9002: Use simpler example for File#expand_path
cha1tanya (Prathamesh Sonpatki) wrote:
> Can we give both examples? I think the original example is a bit hard to understand due to two "..". In the first example we can show normal use and in second example, as you pointed out, how to ...
Eregon (Benoit Daloze)
08:24 PM Revision 347e748b (git): variable.c: real class name
* variable.c (rb_class2name): should return real class name, not
singleton class or iclass.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:21 PM Revision ddbee25a (git): * 2013-10-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:21 PM Revision 3a90444c (git): * variable.c (rb_class2name): call rb_tmp_class_path() directly to avoid extra rb_str_dup() from rb_class_name().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tmm1 (Aman Karmani)
01:25 PM Feature #5630 (Rejected): Missing custom transfer modes in Net::FTP
I close this issue because there's no feedback for a long time. shugo (Shugo Maeda)
01:24 PM Feature #7145 (Rejected): Add string-based range support to IMAP library
I close this issue because there's no feedback for a long time. shugo (Shugo Maeda)
12:00 PM Revision 16b44500 (git): encdb.h.tmpl: remove stale macros
* template/encdb.h.tmpl: remove stale ENCIDX macros which never been
used, ENCINDEX enums is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:59 AM Revision cb4b55d3 (git): win32/file.c: code page table
* win32/file.c (code_page): use simple array instead of st_table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:55 AM Revision eeb3156e (git): encoding.c: defer code page table
* encoding.c (rb_locale_encindex): defer initialization of win32 code
page table until encoding db loaded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:00 AM Bug #9008 (Rejected): TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
I and John Stulz agreed we need Linux kernel and now my patch is queued for linux 3.13.
It mean Linux 3.13 and later return EINVAL instead 524.
Closed then.
kosaki (Motohiro KOSAKI)
04:27 AM Bug #9032 (Third Party's Issue): Time.round reverts the DST status of the time
It's not Time class object, but ActiveSupport::TimeWithZone.
It seems handling local time and time zone separately, so it is impossible to resolve the timezone from local time only, because 02:30:00 will come twice at 2013-10-27, CEST a...
nobu (Nobuyoshi Nakada)

10/18/2013

11:50 PM Revision 6bf78ee6 (git): gc.c: fix arity
* gc.c (Init_GC): fix arity of key? method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:33 PM Revision 14c08fdb (git): * gc.c: fix rb_objspace_t.
* make "struct heap" and move most of variables
in rb_objspace_t::heap.
* rename rb_objspace_t::heap::sorted to
rb_objspace_t::heap_sorted_pages
and make a macro heap_sorted_pages.
* rename rb_objspace_t::heap::range to...
ko1 (Koichi Sasada)
10:14 PM Revision 18b7112e (git): * lib/rubygems: Update to RubyGems master 42543b6. Changes:
Fix `gem update` for gems with multiple platforms.
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:56 PM Revision aa7a74e4 (git): * 2013-10-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:56 PM Revision 08aa6d59 (git): * lib/rubygems: Update to RubyGems master 0a3814b. Changes:
Fixed extension directory in Gem::Specification#require_paths.
Allow installation of gems when $HOME is nonexistent or unwritable.
Use proper API in InstallCommand.
Improve support for path option in gem dependency files.
Rem...
drbrain (Eric Hodel)
02:23 PM Revision 9f9b4767 (git): ruby_atomic.h: suppress a warning
* ruby_atomic.h (ATOMIC_SIZE_SUB): add cast to suppress a warning by VC++.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:57 PM Bug #8982: NoMethodError#message produces surprising output when #inspect is defined on an anonymous class
nobu (Nobuyoshi Nakada) wrote:
> '#' at the beginning is assumed the string is same as Object#inspect, otherwise its class name is appended since the string may not represent the class.
> ...
Looks like defensive programming to me.
alexeymuranov (Alexey Muranov)
12:13 AM Bug #8982: NoMethodError#message produces surprising output when #inspect is defined on an anonymous class
myronmarston (Myron Marston) wrote:
> * It matters whether or not the first character in my `inspect` is a `#`. If it's not, ruby appends the class's `#inspect` output to it.
'#' at the beginning is assumed the string is same as Obj...
nobu (Nobuyoshi Nakada)
12:10 PM Bug #9035 (Closed): [proposal] new RUBY_GC_HEAP_GROWTH_MAX_OBJ tuning parameter
=begin
= Background
Currently, whenever the Ruby GC runs out of object slots the heap is grown by 1.8x (((%GC_HEAP_GROWTH_FACTOR%))).
This works well for small programs, but given a large application it will cause rapid increase in ...
tmm1 (Aman Karmani)
12:08 PM Bug #9031 (Closed): test_gem{,_stub}_specification.rb fails
The bug has been fixed by r43346. shugo (Shugo Maeda)
11:47 AM Bug #9034 (Closed): Ruby
when I run rspec in a rails application. I got
=> rspec
......
Finished in 14.88 seconds
6 examples, 0 failures
Randomized with seed 31062
/Users/gewang/.rvm/gems/ruby-2.0.0-p195/bin/rspec: [BUG] Segmentation fault
ruby 2....
loveky (Wang Michael)
08:03 AM Revision 0712483f (git): resolv.rb: workaround for recent Rubygems
* lib/resolv.rb (Resolv::Hosts): get rid of load error in require
which causes recent Rubygems to build all extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:06 AM Revision ffcf1df1 (git): * gc.c (wmap_inspect_i): fix inspect format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:04 AM Revision 24b97da7 (git): * gc.c (wmap_inspect_i): fix callback argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:59 AM Revision 936b96e9 (git): gc.c: ObjectSpace::WeakMap inspection and iteration methods
* gc.c (wmap_inspect, wmap_each, wmap_each_key, wmap_each_value),
(wmap_keys, wmap_values): add inspection and iteration methods to
ObjectSpace::WeakMap for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43352 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
06:59 AM Revision e12799fd (git): gc.c: ObjectSpace::WeakMap#key?
* gc.c (wmap_each_i): add ObjectSpace::WeakMap#key? method.
* lib/weakref.rb (WeakRef#weakref_alive): use above method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:33 AM Revision b443d83a (git): * gc.c: change terminology of heap.
Change "slot" to "page". "Slot" is a space of RVALUE.
1. "Heap" consists of a set of "heap_page"s (pages).
2. Each "heap_page" has "heap_page_body".
3. "heap_page_body" has RVALUE (a.k.a. "slot") spaces.
4. "sorted" is a sorted a...
ko1 (Koichi Sasada)
04:51 AM Bug #8182: XMLRPC request fails with "Wrong size. Was 31564, should be 1501"
I'm runing into this same problem on Ruby 2.0 p247.
RuntimeError: Wrong size. Was 157, should be 134
/usr/local/stow/ruby-2.0.0-p247/lib/ruby/2.0.0/xmlrpc/client.rb:506:in `do_rpc'
/usr/local/stow/ruby-2.0.0-p247/lib/ruby/2.0.0/xmlrpc/...
joevandyk (Joe Van Dyk)
03:55 AM Revision 54b9ec2d (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:57 AM Revision 0751fd43 (git): Commit miss for r43347
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
12:41 AM Revision 05ca2fab (git): * lib/rubygems: Update to RubyGems master cee6788. Changes:
Fix test failure on vc10-x64 Server on rubyci.org due to attempting
to File.chmod where it is not supported.
Continuing work on improved gem dependencies file (Gemfile) support.
* test: ditto.
git-svn-id: svn+ssh://ci.ruby-lang....
drbrain (Eric Hodel)

10/17/2013

10:41 PM Bug #9032: Time.round reverts the DST status of the time
I am sorry, I should have mentioned that I am using rails console. It could be rails ActiveSupport::TimeZone issue as well, but the round method is in ruby Time, so not entirely sure about that. In the following snippet, I am (a) setting... mayanks (Mayank Sharma)
10:21 PM Bug #9032 (Feedback): Time.round reverts the DST status of the time
=begin
I can't reproduce it.
What's your timezone?
$ TZ=Europe/Paris ~/ruby/2.0.0-p0/bin/ruby -v -rtime -e 't1 = Time.new(2013, 10, 27, 2, 30, 0); t2 = t1.round(3); [t1, t2].each {|t|p [t, t.dst?, t.zone]}'
ruby 2.0.0p0 (2013-02-24 re...
nobu (Nobuyoshi Nakada)
09:04 PM Bug #9032 (Third Party's Issue): Time.round reverts the DST status of the time
=begin
If the time is in non-DST and round method is applied, then the resulting time goes back to DST time. This happens only during the 1 hour when time goes back. Following example should explain the situation better.
2.0.0-p0 :0...
mayanks (Mayank Sharma)
09:34 PM Feature #9023: Array#tail
+1 for #tail. I do not know why it seemed not a good name to Matz, but in case he reads this,
I experienced that the notion that "everything but head is tail" is easy to learn and remember.
PS: My second and third favorite is #cdr an...
Anonymous
09:03 PM Revision 4fa08bba (git): * lib/rubygems: Update to RubyGems master f738c67. Changes:
Fixed test bug for ruby with ENABLE_SHARED = no
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
06:09 PM Bug #9031 (Closed): test_gem{,_stub}_specification.rb fails
=begin
test_gem_specification.rb and test_gem_stub_specification.rb fail as follows:
$ make test-all TESTS="test/rubygems/test_gem_specification.rb test/rubygems/test_gem_stub_specification.rb"
...
1) Failure:
TestGemSpe...
shugo (Shugo Maeda)
05:34 PM Revision 57b26f83 (git): merge revision(s) 43334: [Backport #9030]
* vm_insnhelper.c (vm_call_method): set ci->me to 0 when the
original method of a refined method is undef to avoid SEGV.
* vm_method.c (rb_method_entry_without_refinements): return 0 when
the original method ...
nagachika (Tomoyuki Chikanaga)
05:09 PM Revision 4c9a4c33 (git): merge revision(s) 43328: [Backport #9033]
* win32/file.c (rb_file_expand_path_internal): fix memory leaks at
a non-absolute home exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:57 PM Feature #8985 (Closed): xwillfree - promise to free memory
This issue was solved with changeset r43330.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c, internal.h: add new internal memory mangement functions.
...
ko1 (Koichi Sasada)
03:59 PM Revision ef761f08 (git): * 2013-10-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:59 PM Revision 4c5bfb9f (git): * lib/tsort.rb (TSort.tsort): Extracted from TSort#tsort.
(TSort.tsort_each): Extracted from TSort#tsort_each.
(TSort.strongly_connected_components): Extracted from
TSort#strongly_connected_components.
(TSort.each_strongly_connected_component): Extracted from
TSort#each_strongly_connect...
akr (Akira Tanaka)
02:54 PM Bug #9029 (Closed): doc of ARGF.gets
rdoc of ARGF.gets says ARGF.gets return string only, but it may return nil.
doc of rb_f_gets:
* call-seq:
* gets(sep=$/) -> string or nil
* gets(limit) -> string or nil
* gets(sep,limit) -> string or nil
...
znz (Kazuhiro NISHIYAMA)
01:44 PM Revision b0c19be2 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:55 PM Revision 6909b824 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:49 PM Revision d51f0dde (git): bug_reporter.c: suppress warnings
* ext/-test-/bug_reporter/bug_reporter.c (sample_bug_reporter): cast
via uintptr_t to suppress warning cast between pointer and different
size integer by gcc 4.8.
* ext/-test-/bug_reporter/bug_reporter.c (register_sample_bug_reporte...
nobu (Nobuyoshi Nakada)
10:51 AM Revision 29736fab (git): envutil.rb: use **opt
* test/ruby/envutil.rb: use **opt to call invoke_ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:51 AM Revision 96399a0c (git): envutil.rb: improve assert_no_memory_leak
* test/ruby/envutil.rb (assert_no_memory_leak): allow envirionment
variables keyword options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:51 AM Revision ee4da732 (git): * gc.c (CALC_EXACT_MALLOC_SIZE_CHECK_OLD_SIZE): introduced.
This macro enable checker compare with allocated memory and
declared old_size of sized_xfree and sized_xrealloc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:49 AM Revision cf010682 (git): * string.c (STR_HEAP_SIZE): includes TERM_LEN(str).
* string.c (rb_str_memsize): use STR_HEAP_SIZE().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:31 AM Bug #9028 (Closed): Make SSLSocket Support Encodings
I was working on a bug in the xmpp4r project that caused REXML exceptions when receiving UTF-8 Strings.
https://github.com/xmpp4r/xmpp4r/issues/13
The issue ended up being that SSLSocket#readline didn't always return strings with the...
whitehat101 (Jeremy Ebler)
08:44 AM Revision f8e0e164 (git): * vm_insnhelper.c (vm_call_method): set ci->me to 0 when the
original method of a refined method is undef to avoid SEGV.
* vm_method.c (rb_method_entry_without_refinements): return 0 when
the original method of a refined method is undef to avoid SEGV.
* test/ruby/test_refinement.rb: related te...
shugo (Shugo Maeda)
08:41 AM Revision 76b06555 (git): * gc.c, internal.h: rename ruby_xsizefree/realloc to
rb_sized_free/realloc.
* array.c: catch up these changes.
* string.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:35 AM Revision 3de7ec0a (git): * array.c, string.c: use ruby_xsizedfree() and ruby_xsizedrealloc().
* internal.h (SIZED_REALLOC_N): define a macro as REALLOC_N().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:11 AM Revision d66c5768 (git): win32.c: check by module handles
* win32/win32.c (console_emulator_p): check by comparison between
module handle of WriteConsoleW and kernel32.dll.
* configure.in, win32/Makefile.sub, win32/setup.mak: no longer need
psapi.lib.
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)
07:57 AM Revision 8ac4f421 (git): * gc.c, internal.h: add new internal memory mangement functions.
* void *ruby_xsizedrealloc(void *ptr, size_t new_size, size_t old_size)
* void ruby_xsizedfree(void *x, size_t size)
These functions acccept additional size parameter to calculate more
accurate malloc_increase parameter which control...
ko1 (Koichi Sasada)
05:40 AM Revision 380e40af (git): configure.in: fix for non-GNU-make
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:21 AM Revision 36862468 (git): file.c: fix memory leak
* win32/file.c (rb_file_expand_path_internal): fix memory leaks at
a non-absolute home exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:07 AM Revision 3f282807 (git): * ext/objspace/object_tracing.c (newobj_i): fix memory leak.
There is possibility to remain info due to missing FREEOBJ event.
FREEOBJ events are skipped while suppress_tracing state, for example,
during trace events are invoking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43327 b2dd...
ko1 (Koichi Sasada)
03:32 AM Revision ed623119 (git): * lib/tsort.rb (TSort.each_strongly_connected_component_from):
Extracted from TSort#each_strongly_connected_component_from.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:57 AM Revision 20937603 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:56 AM Revision 23932b91 (git): configure.in: fix FIRSTMAKEFILE config
* configure.in (FIRSTMAKEFILE): AC_CONFIG_FILES needs the file
arguments separating by a colon literally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:08 AM Revision a3579845 (git): * lib/rubygems: Update to RubyGems master 941c21a. Changes:
Restored method bundler wants to remove for compatibility.
Improvements to Gemfile compatibility.
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:05 AM Bug #9026: [PATCH] Add ObjectSpace.heap_dump to objspace.so
Based on feedback from ko1-san, I have modified the ruby signatures as follows:
* call-seq:
* ObjectSpace.dump(obj[, output: :string]) # => "{...}"
* ObjectSpace.dump(obj, output: :file) # => "/tmp/rubyobj000000"
* Ob...
tmm1 (Aman Karmani)
01:48 AM Bug #9021 (Closed): [Doc] typos in rdoc of Digest module
See ruby-core:57903 zzak (zzak _)
01:38 AM Revision 6944271c (git): bug_reporter.c: suppress warnings
* ext/-test-/bug_reporter/bug_reporter.c (register_sample_bug_reporter):
cast to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:10 AM Revision dee91b53 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

10/16/2013

11:36 PM Revision b62bfa2a (git): Makefile.sub: fix typo
* win32/Makefile.sub (HAVE_PSAPI_H): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:12 PM Revision 50b0f0eb (git): Makefile.sub: default HAVE_PSAPI_H to 0
* win32/Makefile.sub (HAVE_PSAPI_H): default to 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:09 PM Revision 3304eb20 (git): * ext/objspace/object_tracing.c (newobj_i): add workaround.
some bugs hits this check.
* ext/objspace/object_tracing.c (object_allocations_reporter_i): cast as pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:37 PM Revision a1d96c9f (git): * lib/rubygems: Update to RubyGems master 2abce58. Changes:
Fixed documentation generation when sdoc and json are installed as
gems.
Added some missing documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:12 PM Revision 86c24c44 (git): * ext/curses/curses.c: [DOC] Cleaned up formatting consistency of rdoc
comments for Curses, including period spacing and column width.
This patch also fixed some typos. Thanks to @postmodern for the patch!
[Fixes GH-420] https://github.com/ruby/ruby/pull/420
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
zzak (zzak _)
10:01 PM Revision ccc78add (git): * ext/date/date_core.c: [DOC] plural grammar fixed by @scott113341
Contributed via documenting-ruby.org: documenting-ruby/ruby#16
https://github.com/documenting-ruby/ruby/pull/16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
08:54 PM Revision 64afa78e (git): * ext/io/nonblock/nonblock.c: [DOC] Document io/nonblock by reprah
[Fixes GH-418] https://github.com/ruby/ruby/pull/418 based on the
original discussion from documenting-ruby/ruby#18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
08:41 PM Revision 82d06c5a (git): * gc.c (objspace_each_objects): do not skip empty RVALUEs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:39 PM Bug #9021: [Doc] typos in rdoc of Digest module
Please close and review #9027 instead. stomar (Marcus Stollsteimer)
12:27 AM Bug #9021 (Assigned): [Doc] typos in rdoc of Digest module
Thank you! I will try to review and commit this soon. zzak (zzak _)
08:35 PM Bug #9027 (Closed): [Doc] improve rdoc of Digest module
Some improvements in mainly the module documentation:
* provide more examples
* provide a working example for the "bubble babble" encoding
* fix dead link
* fix some typos
(Right now the "bubble babble" thing is completely uncle...
stomar (Marcus Stollsteimer)
08:32 PM Revision f9718bf7 (git): * error.c (rb_bug_reporter_add): return simply 0 if failed.
Please check return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:21 PM Revision 7726089e (git): * 2013-10-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:21 PM Revision 17e1c723 (git): * ext/objspace/object_tracing.c: add new method
ObjectSpace.trace_object_allocations_debug_start for GC debugging.
If you encounter the BUG "... is T_NONE" (and so on) on your
application, please try this method at the beggining of your app.
git-svn-id: svn+ssh://ci.ruby-lang.o...
ko1 (Koichi Sasada)
05:30 PM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
Just for the record, this is discussed on Fedora's ARM list as well: https://lists.fedoraproject.org/pipermail/arm/2013-October/006965.html vo.x (Vit Ondruch)
10:53 AM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
On Tue, Oct 15, 2013 at 6:48 PM, Tanaka Akira <akr@fsij.org> wrote:
> 2013/10/16 kosaki (Motohiro KOSAKI) <kosaki.motohiro@gmail.com>:
>> Issue #9008 has been updated by kosaki (Motohiro KOSAKI).
>
>> Current glibc has following...
kosaki (Motohiro KOSAKI)
07:53 AM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
2013/10/16 kosaki (Motohiro KOSAKI) <kosaki.motohiro@gmail.com>:
> Issue #9008 has been updated by kosaki (Motohiro KOSAKI).

> Current glibc has following definition.
>
> /usr/include/bits/errno.h
> ------------------------...
akr (Akira Tanaka)
12:22 AM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
Oops. error.
Current glibc has following definition.
/usr/include/bits/errno.h
--------------------------
# define ENOTSUP EOPNOTSUPP
So, my previous mail is wrong. ENOTSUPP is equal to ENOTSUP now.
kosaki (Motohiro KOSAKI)
02:39 PM Revision d7144025 (git): ifchange.bat: --keep option
* win32/ifchange.bat: add --keep option as well as tool/ifchange.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:11 PM Revision 8565a1b5 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:07 PM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
duerst (Martin Dürst) wrote:
> phluid61 (Matthew Kerwin) wrote:
> ...
I think that statement accidentally reached a point of absurdity by using a very precise definition of "debugging" that I don't share.
My argument is that the pro...
phluid61 (Matthew Kerwin)
01:03 PM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
phluid61 (Matthew Kerwin) wrote:
> This is sort of a bike-shedding issue, and I'm always happy to throw paint at bike sheds!
> ...
That's a good way to put it, and very close to Nerian's
ArgumentError: wrong number of arguments (expec...
duerst (Martin Dürst)
12:12 PM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
Maybe. Sometimes, if you do chain a couple of methods, you may get confused. I'm not saying there's no way you can figure out what's happening in the current situation, I just feel like the method name belongs here, as it belongs in NoMe... fuadksd (Fuad Saud)
12:02 PM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
fuadksd (Fuad Saud) wrote:
> I like the "expected" wording. Also, wouldn't help a little to print the method name? May help to identify what's wrong faster.
The first line of the error's backtrace gives the filename and line number o...
phluid61 (Matthew Kerwin)
11:58 AM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
This is sort of a bike-shedding issue, and I'm always happy to throw paint at bike sheds!
In the past, in various languages and environments, I've tended to use:
"wrong number of arguments (given 1, expected 0)"
However, note that...
phluid61 (Matthew Kerwin)
11:53 AM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
I like the "expected" wording. Also, wouldn't help a little to print the method name? May help to identify what's wrong faster.

--
Fuad Saud
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

fuadksd (Fuad Saud)
11:34 AM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
"instead of" is even worse than "for". It is ambiguous: "1 argument was given instead of the expected 0" or "1 argument should be given instead of 0 that was given". "for" at least does not have that ambiguity. sawa (Tsuyoshi Sawada)
03:15 AM Feature #9025 (Closed): Clarify the error message when calling a method with the wrong number of arguments
Currently when calling a method with the wrong number of arguments we get a confusing error message:
ArgumentError: wrong number of arguments (1 for 0)
That means that the method was meant to accept 0 arguments, but 1 was provi...
Nerian (Gonzalo Rodríguez)
01:50 PM Revision a8c6a52a (git): win32/setup.mak: check psapi.h
* win32/setup.mak (check-psapi.h): check if psapi.h is available.
* win32/win32.c (CHECK_CONSOLE_EMULATOR): enable console emulator DLL
check only when psapi.h is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43307 b2d...
nobu (Nobuyoshi Nakada)
01:36 PM Revision 8ead7880 (git): * ext/io/nonblock/nonblock.c: use rb_cIO instead of VALUE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:01 AM Bug #9026 (Closed): [PATCH] Add ObjectSpace.heap_dump to objspace.so
https://github.com/ruby/ruby/pull/423 tmm1 (Aman Karmani)
09:15 AM Bug #8979 (Closed): gem のプロキシ認証情報に @ を含むとエラー
drbrain (Eric Hodel)
09:14 AM Bug #8979: gem のプロキシ認証情報に @ を含むとエラー
This bug was fixed by r43298 drbrain (Eric Hodel)
08:46 AM Revision f928c326 (git): * bootstraptest/runner.rb: check nil before calling `signal?'
for a process status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:44 AM Revision d2edd8b1 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:39 AM Revision 955a38da (git): * error.c, internal.h (rb_bug_reporter_add): add a new C-API.
rb_bug_reporter_add() allows to register a function which
is called at rb_bug() called.
* ext/-test-/bug_reporter/bug_reporter.c: add a test for this C-API.
* ext/-test-/bug_reporter/extconf.rb: ditto.
* test/-ext-/bug_reporter/test_bu...
ko1 (Koichi Sasada)
08:01 AM Feature #9020: Net::HTTPResponse predicate/query methods
I'm not aware of any libraries that implement this interface currently. If Net::HTTP implemented these methods and other libraries implemented them, then it would be possible to switch between libraries without changing those particular ... timcraft (Tim Craft)
06:14 AM Revision c6b599e1 (git): * NEWS: add a line into NEWS for last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:13 AM Revision ede68261 (git): * ext/objspace/objspace.c: add a new method `reachable_objects_from_root'.
ObjectSpace.reachable_objects_from_root returns all objects refered
from root (called "root objects").
This feature is for deep object analysis.
* test/objspace/test_objspace.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/...
ko1 (Koichi Sasada)
06:00 AM Revision e775a930 (git): * lib/rubygems: Update to RubyGems master b955554. Changes:
Fixed NameError for Gem::Ext due to re-entering file lookup in
RubyGems' overridden require. Bug by Koichi Sasada.
Fixed possible circular require warning in tests.
Used existing constant for `gem install -g` dependecy file list...
drbrain (Eric Hodel)
03:22 AM Feature #8959 (Assigned): Allow top level prepend
zzak (zzak _)
12:43 AM Revision 33d1f172 (git): * lib/rubygems: Update to RubyGems master 278d00d. Changes:
Fixes building extensions without a "clean" make rule
Adds gem dependency file autodetection to "gem install -g"
* test/rubygems: Tests for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43299 b2dd03c8-39d4-4d8f-98f...
drbrain (Eric Hodel)
12:24 AM Bug #9002 (Assigned): Use simpler example for File#expand_path
The original makes no sense to me, but I can see how it resolves ".." (... somehow).
I'm not even sure what the "/tmp/x" has to do with anything.
A patch to explain what's going on there would be nice, at least for my own sake :D
zzak (zzak _)
12:20 AM Bug #8812 (Assigned): RSS: document more constants
zzak (zzak _)
12:20 AM Bug #8821 (Assigned): Add documentation for Time#w3cdtf
zzak (zzak _)
12:20 AM Bug #8821: Add documentation for Time#w3cdtf
I will modify it when I get around to committing the patch (unless you submit one before then), thank you! zzak (zzak _)
12:19 AM Bug #8889 (Rejected): Nodoc large parts of RSS
See ruby-core:57399
Thank you for the patch! Please send more :)
zzak (zzak _)
12:14 AM Revision 28918eac (git): * lib/rubygems: Update to RubyGems master commit 2a74263. This fixes
several bugs in RubyGems 2.2.0.preview.1.
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:13 AM Bug #8944: Error in example code of DL::CFunc
Sorry for not getting to this sooner, thanks for your patience! zzak (zzak _)
12:13 AM Bug #8975: Confusing code sample for assert_send
Please see #8778 for reference.
To answer your question, lib/test (test/unit) is a legacy shim.
I don't think documenting minitest advantages will help, because minitest may not stay in the stdlib forever.
We could mention other...
zzak (zzak _)
12:10 AM Misc #8962 (Assigned): [DOC] add step to enable Generational GC merits in README.EXT*
Koichi, could you add some notes on this, maybe link to helpful RGenGC documentation.
I will bug you again at RubyConf :)
zzak (zzak _)
 

Also available in: Atom