Project

General

Profile

Activity

From 10/21/2015 to 10/27/2015

10/27/2015

11:00 PM Feature #11627 (Assigned): make `nonzero` an alias of `nonzero?`
for historic reasons `nonzero?` returns self or nil. (according to https://bugs.ruby-lang.org/issues/9123)
I like the expectation that `method?` returns true and false.
That `nonzero?` returns only truthy/falsy values would be fine,...
Anonymous
10:21 PM Bug #11626: fprintf in c extension keep adding memory usage
guchen.yang@fugawi.com wrote:
> `fprintf` will keep adding memory usage without releasing it.
>
> I was doing it in rails console, not sure if it makes any different. The code like this:
>
> ~~~c
> VALUE leak (VALUE self,...
normalperson (Eric Wong)
09:43 PM Bug #11626 (Rejected): fprintf in c extension keep adding memory usage
`fprintf` will keep adding memory usage without releasing it.
I was doing it in rails console, not sure if it makes any different. The code like this:
~~~c
VALUE leak (VALUE self, VALUE in) {
char *str = StringValuePtr(in);
...
ygc (GC Yang)
09:41 PM Feature #11625: Unlock GVL for SHA1 calculations
Hi Eric,
Thanks for the feedback. I've updated the patch will your suggestions. Thank you!
sha1.h exports SHA1_Transform, so I was worried about touching that one.
tenderlovemaking (Aaron Patterson)
09:18 PM Feature #11625: Unlock GVL for SHA1 calculations
tenderlove@ruby-lang.org wrote:
> --- a/ext/digest/digest.c
> +++ b/ext/digest/digest.c
> @@ -624,6 +624,7 @@ rb_digest_base_update(VALUE self, VALUE str)
> TypedData_Get_Struct(self, void, &digest_type, pctx);
>
> Str...
normalperson (Eric Wong)
07:34 PM Feature #11625 (Open): Unlock GVL for SHA1 calculations
I'm trying to calculate many sha1 checksums, but the current sha1 implementation doesn't unlock the GVL, so I can't do it in parallel. I've attached a patch that unlocks the GVL when calculating sha1sums so that I can do them in paralle... tenderlovemaking (Aaron Patterson)
09:00 PM Revision e5747f3e (git): * lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:51 PM Revision 3c59a221 (git): suppress warnings: assigned but unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:47 PM Revision a7e391d2 (git): solaris doesn't take http for handle_options
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:47 PM Revision 2d53edd9 (git): dumping core may take too much time for CI
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:18 PM Revision 75a9a6ee (git): * 2015-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:18 PM Revision 9f951393 (git): ENV['MAKE'] is prior than ENV['make']
some CI uses ENV['MAKE'] to specify gmake
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:28 PM Bug #11603: Count trace_running for internal event
Commenting here just to confirm that this change fixes the SEGVs that [this patch](https://github.com/deivid-rodriguez/byebug/pull/160) introduces in byebug's test suite. deivid (David Rodríguez)
04:26 PM Feature #11624 (Rejected): ERB deserves its own commenting token
## Problem
- ERB is a DSL but commenting out code is not the easy workflow feature in ERB that it is in other languages.
- ERB elements were cleverly designed to look like a special kind of html element so it makes programmers unhapp...
Adamantish (Adam Misrahi)
03:33 PM Bug #11623 (Closed): BUG] Segmentation fault at 0x00000000000000 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
Ruby crashed right after I interrupted the rspec process. arnlen (Arnaud Lenglet)
03:23 PM Bug #11492: TracePoint API report extra return for defined method
Backported into `ruby_2_2` branch at r52308. nagachika (Tomoyuki Chikanaga)
03:23 PM Revision 0518d299 (git): merge revision(s) 51713: [Backport #11492]
* vm.c (hook_before_rewind): prevent kicking :return event while
finishing vm_exec func because invoke_block_from_c() kick a :return
event for bmethods.
[Bug #11492]
* test/ruby/test_settracefunc.rb...
nagachika (Tomoyuki Chikanaga)
02:51 PM Bug #11591: ruby won't build on OS X 10.5 — libunwind.h not available
Backported into `ruby_2_2` branch at r52307. nagachika (Tomoyuki Chikanaga)
02:50 PM Revision 6834de6b (git): merge revision(s) 52124: [Backport #11591]
* configure.in: check for libunwind.h, which is not available in
very old OS X SDK. [ruby-core:71080] [Bug #11591]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:36 PM Revision 303abc5a (git): test_marshal.rb: test_no_internal_ids
* test/ruby/test_marshal.rb (test_no_internal_ids): test for
r52304, no internal IDs should be exposed by Marshal.dump.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:34 PM Bug #11543: Run Rinda/DRb tests on localhost
Backported into `ruby_2_2` branch at r52305. nagachika (Tomoyuki Chikanaga)
02:34 PM Revision edb7a6e2 (git): merge revision(s) 51916: [Backport #11543]
* test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
patch by voxik.
* test/rinda/test_rinda.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52305 b2dd03c8-39d4-4d8f-98ff-82...
nagachika (Tomoyuki Chikanaga)
02:31 PM Feature #11537: Introduce "Safe navigation operator"
I don't think `u && .profile && .thumbnails && .large` is acceptable for some reasons:
* it's longer
* unclear
than proposed `.?`. Instead, `&.` or `.&` can be alternatives. But my concern for the idea is `&&` does handle false ...
matz (Yukihiro Matsumoto)
12:45 PM Feature #11537: Introduce "Safe navigation operator"
Rodrigo Rosenfeld Rosas wrote:
> Everyday learning a new hidden feature from Ruby ;)
Me too. Ruby has infinite possibilities.
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
12:31 PM Feature #11537: Introduce "Safe navigation operator"
Thanks for pointing me that. Everyday learning a new hidden feature from Ruby ;) rosenfeld (Rodrigo Rosenfeld Rosas)
12:24 PM Feature #11537: Introduce "Safe navigation operator"
"?." is a valid code. Try: `p ?. + "foo"`
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
12:07 PM Feature #11537: Introduce "Safe navigation operator"
I believe you are referring to implementation details and in this case I can't really opinionate, but with regards to syntax, since "?." is not a valid code, it should be interpreted as "?.+" and "foo" would be parsed as its argument.
...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:01 PM Feature #11537: Introduce "Safe navigation operator"
Rodrigo Rosenfeld Rosas wrote:
> ~~~
> ...
Consider a method `+`.
`str.?+"foo"` causes no conflict, but `str ?.+"foo"` will be parsed as `str(?. + "foo")`.
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
11:47 AM Feature #11537: Introduce "Safe navigation operator"
On the other hand, the problem with using "u?.profile" is that "u?" is a valid method, but if Ruby required an space for using the new operator, we could get it working very similarly to Groovy and CoffeeScript:
~~~
u ?.profile ?.thu...
rosenfeld (Rodrigo Rosenfeld Rosas)
09:13 AM Feature #11537: Introduce "Safe navigation operator"
Thomas Sawyer wrote:
> In this way is more an extension of the ternary operator -- the initial dot on the method signals the difference. This should also allow:
> ...
Although I agree that .? is not that intuitive to read, the extended...
DerKobe (Philip Claren)
02:14 PM Revision 6964c063 (git): id.def: anonymous IDs
* defs/id.def: enable anonymous IDs not to expose internal IDs for
frozen-string-literal-debug by Marshal.dump.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:01 PM Revision 6c2afd62 (git): add ticket number [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:01 PM Revision 9088990f (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:00 PM Revision 1054fd6a (git): fix filename [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:17 AM Bug #11621: Date.- and Date.+ methods inconsistencies
Right, that is clear now for me.
Thanks for explaining.
I don't know how to close the bug, so whomever has access, please close
andreionut (Andrei Balcanasu)
02:45 AM Bug #11621: Date.- and Date.+ methods inconsistencies
If you were use `-w` option, you were warned.
~~~
$ ruby -wc -e 'Date.today -7' -e 'now = Date.today' -e 'p now -7'
-e:1: warning: ambiguous first argument; put parentheses or a space even after `-' operator
-e:3: warning: `-' afte...
nobu (Nobuyoshi Nakada)
12:51 AM Bug #11621 (Rejected): Date.- and Date.+ methods inconsistencies
Andrei Balcanasu wrote:
> Good point, but this still does not explain why in some cases ` -7` works:
> ...
If `x` is a reference to a local variable, `x -y` is interpreted as `x - y`.
Otherwise, `x -y` is interpreted as `x(-y)`.
...
shugo (Shugo Maeda)
08:58 AM Feature #11607: [PATCH] fiddle: release GVL for ffi_call
Yes, user must check if the function is MT-safe. Probably fine
for most library functions...

Maybe releasing GVL can be optional, but I would rather avoid
exposing implementation detail or new APIs...
normalperson (Eric Wong)
08:43 AM Feature #11607: [PATCH] fiddle: release GVL for ffi_call
Calling function is really always MT-safe?
The user of fiddle must check whether the function is MT-safe and maintain fine grained lock if it's not MT-safe?
naruse (Yui NARUSE)
08:06 AM Revision 2ce7328d (git): id.def: internal IDs
* defs/id.def: move internal IDs for frozen-string-literal-debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Revision caada48e (git): error.c: suppress warnings
* error.c (rb_error_frozen_object): use rb_attr_get instead of
rb_ivar_get to get rid of warnings for string objects created
when frozen-string-literal-debug is disabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52299 b2dd0...
nobu (Nobuyoshi Nakada)
07:34 AM Revision 3f682c2c (git): Add binmode for Tempfile to prevent EOF (0x1A)
http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20151023T062322Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:30 AM Bug #10686: Memory leaking from torture test of symbol GC
Applied at r52140. nagachika (Tomoyuki Chikanaga)
07:18 AM Bug #11622 (Closed): Logger weekly rotation should rename old logs as "Saturday"
Applied in changeset r52297.
----------
logger.rb: end of week should be Saturday
* lib/logger.rb (Logger::Period#previous_period_end): as weekly
rotation shifts the log file on Sundays, the end date of the
previous period should b...
nobu (Nobuyoshi Nakada)
03:43 AM Bug #11622 (Closed): Logger weekly rotation should rename old logs as "Saturday"
logger.rbで weekly rotation を指定したとき、日曜日での書き込みでログファイルが切り替えられますが、古いログファイル名に着く日付が前週の金曜日のものになっていますが、土曜日のものになるべきではないでしょうか。
以下のコードを実行すると、一回目の書き込み(`"2015-12-19 12:34:56 UTC hello-1"`)は log.20151218 に入っていて、最後に書き込まれた時刻よりも古いファイル名になっています。
~~~rub...
nobu (Nobuyoshi Nakada)
07:18 AM Revision 6df21cb4 (git): logger.rb: end of week should be Saturday
* lib/logger.rb (Logger::Period#previous_period_end): as weekly
rotation shifts the log file on Sundays, the end date of the
previous period should be Saturdays. fix r45072.
[ruby-dev:49314] [Bug #11622]
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
07:13 AM Revision 17e5dff2 (git): * vm_dump.c (rb_print_backtrace): our addr2line doesn't work on sparc.
http://rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20151027T043311Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:21 AM Bug #11544 (Rejected): ArgumentError: Enumerable#to_set(klass, *args, &block) if specify *args.
This is not a bug. Extra arguments are reserved for Set's subclasses. knu (Akinori MUSHA)
03:47 AM Bug #11544 (Assigned): ArgumentError: Enumerable#to_set(klass, *args, &block) if specify *args.
nagachika (Tomoyuki Chikanaga)
03:49 AM Revision ec4ba1b7 (git): proc.c: remove rb_block_clear_env_self
* proc.c (rb_block_clear_env_self): removed as deprecated at
r52129.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:07 AM Bug #11572 (Closed): Urnary operator causing references to unreachable objects in 2.1.x ?
naruse (Yui NARUSE)
03:05 AM Bug #11572: Urnary operator causing references to unreachable objects in 2.1.x ?
r45576 usa (Usaku NAKAMURA)
02:34 AM Bug #11572: Urnary operator causing references to unreachable objects in 2.1.x ?

I can confirm that this happens in the latest 2.1.x tag and that applying 2f3b28c682fe3010ed3b8803199616c12b52512d was able to fix this issue.
halogenandtoast (Matthew Mongeau)
03:01 AM Bug #11620 (Closed): Logger throws "ArgumentError: argument out of range" with weekly rotation when switch to standard time (DST) and last day of the week is 1st of next month
Applied in changeset r52293.
----------
logger.rb: fix weekly rotation
* lib/logger.rb (Logger::Period#next_rotate_time): get rid of
adding to mday not to exceed the days of the month.
[ruby-core:71185] [Bug #11620]
nobu (Nobuyoshi Nakada)
03:01 AM Revision 6b78bfcf (git): * 2015-10-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 AM Revision e8c00b70 (git): logger.rb: fix weekly rotation
* lib/logger.rb (Logger::Period#next_rotate_time): get rid of
adding to mday not to exceed the days of the month.
[ruby-core:71185] [Bug #11620]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52293 b2dd03c8-39d4-4d8f-98ff-823fe69...
nobu (Nobuyoshi Nakada)
02:59 AM Bug #11542 (Feedback): Zlib::DataError: incorrect data check
Hello, Lingaraj.
It seems that the response contains invalid byte-stream or the content encoding was wrongly detected or so.
For more investigation, please show us the sample code to reproduce this error.
nagachika (Tomoyuki Chikanaga)

10/26/2015

09:27 PM Feature #11607: [PATCH] fiddle: release GVL for ffi_call
Nevermind. I did misinterpret your code. I'm ok either.
kosaki (Motohiro KOSAKI)
08:18 PM Feature #11607: [PATCH] fiddle: release GVL for ffi_call
KOSAKI Motohiro <kosaki.motohiro@gmail.com> wrote:
> On Tue, Oct 20, 2015 at 6:28 PM, <normalperson@yhbt.net> wrote:
> > Issue #11607 has been updated by Eric Wong.
> >
> > File fiddle-release-GVL-for-ffi_call-v2.patch added
> >
...
normalperson (Eric Wong)
08:28 AM Feature #11607: [PATCH] fiddle: release GVL for ffi_call
On Tue, Oct 20, 2015 at 6:28 PM, <normalperson@yhbt.net> wrote:
> Issue #11607 has been updated by Eric Wong.
>
> File fiddle-release-GVL-for-ffi_call-v2.patch added
>
> v2 fixes a warning I did not notice before, interdiff:
> ~~...
kosaki (Motohiro KOSAKI)
05:59 PM Bug #11621: Date.- and Date.+ methods inconsistencies
Those examples are not ambiguous. `Date.today -7` *is* ambiguous because `Date.today` takes an optional argument specifying, essentially, which calendar to use‒one of `ITALY`, `ENGLAND`, `JULIAN`, or `GREGORIAN`, if you're using the meth... 0x0dea (D.E. Akers)
05:41 PM Bug #11621: Date.- and Date.+ methods inconsistencies
Good point, but this still does not explain why in some cases ` -7` works:
```ruby
now = Date.today
=> #<Date: 2015-10-26 ((2457322j,0s,0n),+0s,2299161j)>
now -7
=> #<Date: 2015-10-19 ((2457315j,0s,0n),+0s,2299161j)>
Date.new(2...
andreionut (Andrei Balcanasu)
04:21 PM Bug #11621: Date.- and Date.+ methods inconsistencies
This has nothing to do with `Date` in particular; observe:
```ruby
def foo n = nil
n || 48
end
p foo-6 # => 42
p foo -6 # => -6
p foo - 6 # => 42
```
This is simply a consequence of parentheses for method invocation b...
0x0dea (D.E. Akers)
03:59 PM Bug #11621 (Rejected): Date.- and Date.+ methods inconsistencies
I noticed today some inconsistencies when using `-` and `+` methods of the `Date` class, that makes the whitespace relevant:
~~~
irb(main):001:0> require 'date'
=> true
irb(main):002:0> Date.today - 7
=> #<Date: 2015-10-19 ((24573...
andreionut (Andrei Balcanasu)
03:41 PM Bug #11620: Logger throws "ArgumentError: argument out of range" with weekly rotation when switch to standard time (DST) and last day of the week is 1st of next month
Local timezone is CET (Europe/Germany/Berlin) emrox (Stefan Bauckmeier)
12:58 PM Bug #11620 (Feedback): Logger throws "ArgumentError: argument out of range" with weekly rotation when switch to standard time (DST) and last day of the week is 1st of next month
What timezone are you using? nobu (Nobuyoshi Nakada)
11:49 AM Bug #11620 (Closed): Logger throws "ArgumentError: argument out of range" with weekly rotation when switch to standard time (DST) and last day of the week is 1st of next month
We discovered a bug within the Ruby Logger. Having 'weekly' as Argument for shift_age in this year (2015) when returned from summer time to standard time (DST).
Creating a new Logger results in throwing a "ArgumentError: argument out of...
emrox (Stefan Bauckmeier)
02:51 PM Revision 6160e4b9 (git): logger.rb: exact matching
* lib/logger.rb ({next,previous}_rotate_time): dispatch by exact
matching shift_age instead of regexp matching.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:51 PM Revision aeb88f01 (git): logger.rb: freeze constants
* lib/logger.rb: freeze constant strings and array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:58 PM Feature #11537: Introduce "Safe navigation operator"
Yehuda Katz wrote:
> As shorthand for:
> ...
Actually, it would be a shorthand for something like:
~~~
u && (tmp1 = u.profile) && (tmp2 = tmp1.thumbnails) && tmp2.large
~~~
But I still prefer the syntax implemented in trunk as ...
rosenfeld (Rodrigo Rosenfeld Rosas)
01:28 PM Feature #11537: Introduce "Safe navigation operator"
What does sole `.profile` do?
If it requires `&&` just before it, a space should not be between them.
nobu (Nobuyoshi Nakada)
12:25 PM Feature #11537: Introduce "Safe navigation operator"
Yukihiro Matsumoto wrote:
> I like the idea. My remaining concern is ".?" is too similar to "?." which is chosen by other languages.
> ...
I agree with this concern. I also agree with the idea of trying to make it more like a tradition...
wycats (Yehuda Katz)
05:10 AM Feature #11537: Introduce "Safe navigation operator"
Yukihiro Matsumoto wrote:
> I like the idea. My remaining concern is ".?" is too similar to "?." which is chosen by other languages.
> ...
Maybe there is a better syntax by requiring a space:

u ? .profile ? .thumbnails ? .larg...
trans (Thomas Sawyer)
01:43 PM Revision 0a74709e (git): Add string argument test cases
* test/ruby/test_module.rb (test_method_defined): Add test cases
for `public/protected/private _method_defined?`
These methods accept string as argument, so add string argument
cases. [Fix GH-1067]
git-svn-id: svn+ssh://ci.ruby-l...
nobu (Nobuyoshi Nakada)
01:43 PM Revision 4a6dff84 (git): Replace tab with 8 spaces [Fix GH-1068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:23 PM Revision 05bf12f7 (git): Grammatical fixes [ci skip]
* lib/racc/rdoc/grammar.en.rdoc: Grammatical errors fixed.
[Fix GH-1070]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:10 PM Misc #11548 (Closed): FileUtils#remove_tailing_slash is a poor method name
hsbt (Hiroshi SHIBATA)
09:38 AM Revision 9b425061 (git): * vm_method.c(rb_method_entry_make):
[DOC] [ci skip] Remove a needless space from comment
[Fixes GH-1069] Patch by @yui-knk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
08:47 AM Revision 727f2971 (git): clear https_proxy
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:30 AM Revision d7908f9a (git): * lib/fileutils.rb: rename tailing to trailing.
[Misc #11548]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
08:11 AM Revision 506e50b4 (git): parse.y: fix ripper
* parse.y (call_op, call_op2): fix values on ripper. [Feature #11537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:05 AM Revision 59093eb3 (git): fix commit miss [ci skip]
* ChangeLog: remove duplicated entry, caused by a conflict.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:55 AM Revision 603b000d (git): parse.y: call_op2
* parse.y (call_op2): separate from call_op and also allow "::",
while dot_or_colon should not allow ".?". [Feature #11537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/25/2015

04:08 PM Revision 42a0bf55 (git): * 2015-10-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:07 PM Revision f2d679c7 (git): * thread_pthread.c: fix compile erros when
USE_SLEEPY_TIMER_THREAD is disabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Rei Odaira
02:34 PM Bug #11619 (Closed): IO documentation typo
Applied in changeset r52279.
----------
io.c: fix typo [ci skip]
* io.c (io_readpartial): fix typo, "later" to "latter".
[ruby-core:71181] [Bug #11619]
nobu (Nobuyoshi Nakada)
06:27 AM Bug #11619 (Closed): IO documentation typo
IO documentation has the phrase "The later means that readpartial...".
typo: later -> latter
jeremywohl (Jeremy Wohl)
02:34 PM Revision 67c4c4a0 (git): io.c: fix typo [ci skip]
* io.c (io_readpartial): fix typo, "later" to "latter".
[ruby-core:71181] [Bug #11619]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:54 AM Revision 55e68f0e (git): test_io.rb: assert_separately
* test/ruby/test_io.rb (test_dup_many, test_set_lineno): use
assert_separately for more descriptive messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:47 AM Revision 7d95b96e (git): fix conditions to setrlimit
* test/ruby/test_io.rb (test_dup_many): limit FD only if possible.
* test/ruby/test_process.rb (assert_fail_too_long_path): fix the
condition for platform specific feature
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52277 b2dd0...
nobu (Nobuyoshi Nakada)
01:12 AM Revision 1a98528c (git): symbol.c: dotq in ripper
* symbol.c (op_tbl): add DOTQ for ripper. [Feature #11537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:43 AM Revision 898fd2ed (git): use rb_check_arity [ci skip]
* ext: use rb_check_arity and rb_error_arity to raise
ArgumentError. [Feature #9025]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:39 AM Revision 94bdb010 (git): update document [ci skip]
* error.c (ArgumentError): [DOC] update document following
[Feature #9025]
* proc.c (proc_call, proc_curry): [DOC] ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/24/2015

06:21 PM Revision b78b66a9 (git): use rlimit_nproc other than Windows
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:36 PM Revision a5301722 (git): * 2015-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:36 PM Revision 7ef4dccc (git): 0.1 second is not enough for FreeBSD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:51 PM Feature #11599: Dump entries of hash in ObjectSpace
What is the status of the patch? Is this ok? something to fix? yosiat (Yosi Attias)
03:17 PM Bug #11618: Safe call syntax with aref or aset is
I am not going to add safe navigation for aref and aset.
Maybe you can use `a.?[](x)` (method call of an operator).
Matz.
matz (Yukihiro Matsumoto)
07:21 AM Bug #11618 (Rejected): Safe call syntax with aref or aset is
This test pass
```ruby
# ruby -v: ruby 2.3.0dev (2015-10-24 trunk 52128) [x86_64-darwin14]
# test/ruby/test_call.rb
def test_safe_call_aref_aset
s = Struct.new(:x, :y)
o = s.new({a: 10})
assert_equal(10, o.x.?s...
yui-knk (Kaneko Yuichiro)
01:51 PM Revision 5d5315ad (git): * configure.in: fixed build failure of Haiku.
[fix GH-984] Patch by @kallisti5
* ext/socket/getaddrinfo.c: ditto.
* ext/socket/getnameinfo.c: ditto.
* ext/socket/rubysocket.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:16 PM Revision 96ff94c9 (git): relax error message format
* test/fileutils/test_fileutils.rb (test_uptodate): relax error
message format. [Feature #9025], [ruby-core:71178] [Bug #11617]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:14 PM Bug #9760 (Open): mkmf does not allow for linking against custom libraries when a system library is present
Reverted r45640 at r52267. Hmm... sorah (Sorah Fukumori)
12:11 PM Bug #9760 (Closed): mkmf does not allow for linking against custom libraries when a system library is present
Applied in changeset r52267.
----------
* lib/mkmf.rb: Revert r45640 because it may lead to link
with different libruby. [Bug #9760]
sorah (Sorah Fukumori)
12:11 PM Revision 623403fa (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:10 PM Revision d9bf31cc (git): * lib/mkmf.rb: Revert r45640 because it may lead to link
with different libruby. [Bug #9760]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
07:35 AM Revision 136b5b75 (git): vm_method.c: remove common code
* vm_method.c (rb_undef): remove code almost common to proc.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:42 AM Bug #11617 (Closed): Fix tests for Feature 9025
Applied in changeset r52265.
----------
relax error message format
* bootstraptest/test_method.rb: relax error message format.
* test/ruby/test_arity.rb (err_mess): ditto.
[Feature #9025], [ruby-core:71178] [Bug #11617]
nobu (Nobuyoshi Nakada)
03:49 AM Bug #11617 (Closed): Fix tests for Feature 9025
I tried to fix the tests for this, too, but I didn't find them anywhere, sorry. Or just tell me where they are, so that I can fix them duerst (Martin Dürst)
06:42 AM Revision e0ed0012 (git): relax error message format
* bootstraptest/test_method.rb: relax error message format.
* test/ruby/test_arity.rb (err_mess): ditto.
[Feature #9025], [ruby-core:71178] [Bug #11617]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52265 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
03:48 AM Feature #9025 (Closed): Clarify the error message when calling a method with the wrong number of arguments
Applied in changeset r52264.
----------
vm_insnhelper.c: improved error message for "wrong number
of arguments", distinguishing given and expected argument
numbers clearly. [Feature #9025]
duerst (Martin Dürst)
03:47 AM Revision 927e18b3 (git): vm_insnhelper.c: improved error message for "wrong number
of arguments", distinguishing given and expected argument
numbers clearly. [Feature #9025]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
03:01 AM Revision 05b18ac1 (git): * vm_insnhelper.c: remove the typedef redeclaration of
vm_call_handler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)

10/23/2015

11:54 PM Revision 880f7151 (git): common.mk: remove extra slash
* common.mk (incs): remove extra slash before
vm_call_iseq_optimized.inc. as nmake vpath syntax includes a
separator, don't append it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:37 PM Revision a8b56b9e (git): common.mk: vm_call_iseq_optimized.inc
* common.mk (incs): generate vm_call_iseq_optimized.inc too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:41 PM Revision 11ec42e3 (git): parse.y: canonical name
* parse.y (parser_magic_comment): intern canonical name.
InstructionSequence.compile_options are case-sensitive while
pragma names are case-insensitive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52260 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)
10:29 PM Bug #11616 (Closed): Forwardable fails to adjust backtrace when Forwardable is not reachable from the target class
Applied in changeset r52259.
----------
forwardable.rb: full qualify names
* lib/forwardable.rb (def_instance_delegator, def_single_delegator):
match backtraces against ::Forwardable in case the target class
is a subclass of BasicO...
nobu (Nobuyoshi Nakada)
10:29 PM Bug #11616: Forwardable fails to adjust backtrace when Forwardable is not reachable from the target class
I think that backtrace cleanup should be removed as well as delegate.rb, [Bug #11461]. nobu (Nobuyoshi Nakada)
09:17 PM Bug #11616 (Closed): Forwardable fails to adjust backtrace when Forwardable is not reachable from the target class
as follows:
```
$ cat t.rb
require "forwardable"
class Foo < BasicObject
extend ::Forwardable
def_delegator :bar, :baz
end
Foo.new.baz
$ ruby t.rb
/Users/guest/.rbenv/versions/trunk/lib/ruby/2.3.0/forwardable.rb:1...
wanabe (_ wanabe)
10:29 PM Revision 4e1ee809 (git): forwardable.rb: full qualify names
* lib/forwardable.rb (def_instance_delegator, def_single_delegator):
match backtraces against ::Forwardable in case the target class
is a subclass of BasicObject and does not include Kernel.
[ruby-core:71176] [Bug #11616]
git-svn-...
nobu (Nobuyoshi Nakada)
07:13 PM Revision 92d5da52 (git): * iseq.c (make_compile_option_value): include frozen_string_literal*
in a made option value.
* vm_opts.h: forgot to add OPT_FROZEN_STRING_LITERAL_DEBUG
at last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:02 PM Revision 54716fe7 (git): * ruby.c: introduce --enable-frozen-string-literal-debug option.
If this option is enabled, the modify error will be:
can't modify frozen String (RuntimeError) =>
can't modify frozen String, created at test.rb:3 (RuntimeError)
* iseq.h: add compile option frozen_string_literal_debug.
* compi...
ko1 (Koichi Sasada)
05:53 PM Revision 31f21aed (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:53 PM Revision 593cf11a (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:53 PM Revision f9697c56 (git): * vm_insnhelper.c: introduce new call handler for simple ISeqs.
vm_call_iseq_setup_normal_0start() is simple, however it has
some loops/conditions depends on ISeq::param.size and
ISeq::local_size (in vm_push_frame(), inlined into this function).
There are many simple methods which has a few pa...
ko1 (Koichi Sasada)
05:00 PM Revision 1e060032 (git): * vm_core.h: define vm_call_handler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
04:57 PM Revision 9e1b06e1 (git): * vm_core.h, vm_insnhelper.h: move definition of VMDEBUG
from vm_insnhelper.h to vm_core.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
04:53 PM Revision 1b5dce5a (git): * NEWS: [DOC] In the new safe call syntax, arguments are evaluated
only if a call is made.
* doc/syntax/calling_methods.rdoc: Fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
03:41 PM Bug #11615 (Closed): Forwardable fails to adjust backtrace when Exception is defined in the target class
Applied in changeset r52249.
----------
* lib/forwardable (def_instance_delegator, def_single_delegator):
rescue ::Exception instead of Exception in case Exception is
defined under the target class.
[ruby-core:71175] [Ruby trunk -...
shugo (Shugo Maeda)
03:36 PM Bug #11615 (Closed): Forwardable fails to adjust backtrace when Exception is defined in the target class
Forwardable fails to adjust backtrace when Exception is defined in the target class as follows:
```
$ cat t.rb
require "forwardable"
class Foo
extend Forwardable
def_delegator :bar, :baz
class Exception
end
end
...
shugo (Shugo Maeda)
03:41 PM Revision 4daa1cf7 (git): * 2015-10-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:41 PM Revision 8c8e17d4 (git): * lib/forwardable (def_instance_delegator, def_single_delegator):
rescue ::Exception instead of Exception in case Exception is
defined under the target class.
[ruby-core:71175] [Ruby trunk - Bug #11615]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:27 PM Revision f8a83d85 (git): error.c: use fake string
* error.c (name_err_mesg_to_str): use fake string as rb_str_format
does not require T_STRING to be cannonical VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:10 PM Revision 5bf61f45 (git): error.c: separate class names
* error.c (name_err_mesg_to_str): separate class names from the
receiver description.
* vm_eval.c (make_no_method_exception, raise_method_missing): add
format specifiers for class names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
nobu (Nobuyoshi Nakada)
10:12 AM Bug #11596 (Closed): Getting [BUG] rb_vm_get_cref: unreachable
sorry i missed #1 comment written by wanabe-san.
if it can be reproduced yet, please reopen this ticket.
ko1 (Koichi Sasada)
09:36 AM Bug #7758: Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
Has this patch been applied?
Because I'm getting pretty much the same crash on 32bit 2.1.7p400 running on Win7 64x and I can reproduce.
arcandros (Vassilis Rizopoulos)
09:10 AM Revision e3b07883 (git): * .gitignore: ignored environmantal wrapper files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
08:55 AM Revision 00d8b1a8 (git): * lib/irb.rb: Ignored assignment of STDOUT.sync = true
when irb.rb loaded. It's affected to IDE such as Jetbrain.
[fix GH-864] Patch by @os97673
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
07:35 AM Bug #11513 (Closed): IPAddr should reject invalid formats
Applied in changeset r52244.
----------
* lib/ipaddr.rb, test/test_ipaddr.rb: Reject invalid address contained
EOL string. Patch by @kachick [fix GH-942][Bug #11513]
hsbt (Hiroshi SHIBATA)
07:35 AM Revision 2cd1f852 (git): * lib/ipaddr.rb, test/test_ipaddr.rb: Reject invalid address contained
EOL string. Patch by @kachick [fix GH-942][Bug #11513]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
07:07 AM Revision 2697fb49 (git): ChangeLog: adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:03 AM Revision 5fdee2f8 (git): * file.c: fix indent style. [fix GH-977]
* test/ruby/test_string.rb: indent. [fix GH-975]
[ci skip] These patches are contributed from @yui-knk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:46 AM Revision 26cd2da7 (git): * string.c: Added method signature to include hash. It's inconsistency
with `gsub` method signature.
[ci skip][fix GH-1023] Patch by @danielevans
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:29 AM Revision e0ea5e90 (git): * lib/net/imap.rb: remove an empty comment line and -*-.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
06:23 AM Revision 3eabc555 (git): * lib/net/ftp.rb (gettextfile, getbinaryfile): use the safe
navigation operator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:51 AM Revision 1d3c0763 (git): test_call.rb: add tests
* test_call.rb (test_safe_call): Add test cases for safe
navigation operator assignment. [Fix GH-1064]
Validate:
* can assign an attribute which is `nil`
* can "or assign" an attribute which is `nil`
git-svn-id: svn+ssh://ci.ru...
nobu (Nobuyoshi Nakada)
03:58 AM Feature #11537: Introduce "Safe navigation operator"
Thanks for the thoughtful replies guys! That definitely helps clarify the `.?` operator
Matthew Kerwin wrote:
> On 23/10/2015 2:46 AM, <merch-redmine@jeremyevans.net> wrote:
> ...
treznick (Tom Reznick)
02:58 AM Revision ae8f8fdd (git): compile.c: optimize method chain
* compile.c (iseq_peephole_optimize): optimize lengthy safe
navigation method chain. [Feature #11537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:09 AM Revision 4f9ded5c (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:09 AM Revision d07ce082 (git): * lib/matrix/eigenvalue_decomposition.rb (tridiagonalize): fix
indentation to avoid a warning when the command line option -w of
ruby is specified.
* lib/matrix/eigenvalue_decomposition.rb (hessenberg_to_real_schur):
change the name of a block parameter to avoid a warning when the
command lin...
shugo (Shugo Maeda)
01:49 AM Revision 0b7d4737 (git): safe navigation attrset
* compile.c (iseq_compile_each): support safe navigation of simple
attribute assignment. [Feature #11537]
* parse.y (mlhs_node, lhs, attrset_gen): ditto. keep mid
non-attrset as the sign of safe navigation.
git-svn-id: svn+ssh://c...
nobu (Nobuyoshi Nakada)
01:47 AM Revision 7e730322 (git): compile.c: just insert
* compile.c (compile_massign_lhs): just insert topn insn instead
of popping and adding. [Feature #11537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/22/2015

11:48 PM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
On 23 October 2015 at 07:51, <duerst@it.aoyama.ac.jp> wrote:

> Issue #9025 has been updated by Martin Dürst.
>
> Matthew Kerwin wrote:
> > duerst (Martin Dürst) wrote:
>
> > > Ruby is all about making it easier for the programme...
phluid61 (Matthew Kerwin)
09:51 PM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
Matthew Kerwin wrote:
> duerst (Martin Dürst) wrote:
> ...
It might have been clearer for me to write "Even the smallest reduction in the amount of debugging is worth it when it can be achieved by tweaking the error message."
Anyw...
duerst (Martin Dürst)
09:11 AM Feature #9025: Clarify the error message when calling a method with the wrong number of arguments
"(expected: 1, provided: 0)" is excellent. This is a big usability issue. Python's message is similar, and includes the function name:
`TypeError: fun() takes exactly 1 argument (0 given)`
> I agree that someone not familiar with m...
robb (Robb Shecter)
11:42 PM Revision 418fa65d (git): NEWS: add a space
* NEWS: fix wording, "Active Support" has a space in between the
words, not ActiveSupport.
https://github.com/ruby/ruby/commit/a356fe1#commitcomment-13936198
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52232 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
10:25 PM Revision d4fd2fb0 (git): test/io/wait/test_io_wait.rb (test_wait_eof): test return value
I wrote some code which relies on this nowadays, but Ruby <=2.2
and earlier behaved differently...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
09:28 PM Feature #11537: Introduce "Safe navigation operator"
On 23/10/2015 2:46 AM, <merch-redmine@jeremyevans.net> wrote:
>
> Issue #11537 has been updated by Jeremy Evans.
>
>
> Tom Reznick wrote:
> > Hi,
> >
> > I think we may have found some unexpected behavior with the `.?`
operator...
phluid61 (Matthew Kerwin)
04:45 PM Feature #11537: Introduce "Safe navigation operator"
Tom Reznick wrote:
> Hi,
> ...
I think it's completely expected that `nil.?kind_of?(NilClass)` returns `nil` and not `true`. The whole point of `.?` is to return `nil` without calling the method if the receiver is `nil`. I'm not sure...
jeremyevans0 (Jeremy Evans)
04:34 PM Feature #11537: Introduce "Safe navigation operator"
I know this is already decided and the commit is out there, but since you are adding new syntax and a new feature to the language, I suggest you reconsider https://bugs.ruby-lang.org/issues/9076
With that change, instead of adding spe...
asterite (Ary Borenszweig)
04:29 PM Feature #11537: Introduce "Safe navigation operator"
Hi,
I think we may have found some unexpected behavior with the `.?` operator.
If I call the following:
s = Struct.new(:x)
o = s.new()
o.x #=> nil
o.x.nil? #=> true
o.x.?nil? #=> nil
o.x.kind_of?(Nil...
treznick (Tom Reznick)
06:30 AM Feature #11537 (Closed): Introduce "Safe navigation operator"
Applied in changeset r52214.
----------
Safe navigation operator
* compile.c (iseq_peephole_optimize): peephole optimization for
branchnil jumps.
* compile.c (iseq_compile_each): generate save navigation operator
code.
* insns.def ...
nobu (Nobuyoshi Nakada)
08:54 PM Feature #11614 (Closed): [RFC] use id_table for constant tables
ref: [ruby-core:71142] [ruby-core:71151]
I'm not sure if using rb_class_name in object.c is enough to prevent
breaking all existing code. Until this is sufficiently reviewed,
I have no plans to commit this patch at the moment.
v...
normalperson (Eric Wong)
08:36 PM Revision d737d576 (git): NEWS: fix typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
05:55 PM Feature #11181: Add a line directive to Ruby
The pull request is now at https://github.com/ruby/ruby/pull/911 gam3 (Allen Morris)
04:55 PM Bug #11613 (Closed): test_aspawn_too_long_path creates too many processes
Applied in changeset r52229.
----------
Add rlimit_nproc to avoid to create many process [Bug #11613]
naruse (Yui NARUSE)
04:52 PM Bug #11613 (Closed): test_aspawn_too_long_path creates too many processes
At least on FreeBSD, spawn("echo|echo|echo|echo|echo|echo|echo| ...20000 times") success and create 20000 zombie processes.
To prevent this you can add rlimit_nproc: 1 because it tests sh itself, don't test spawned echos.
```diff
di...
naruse (Yui NARUSE)
04:54 PM Revision 7b90b137 (git): Add rlimit_nproc to avoid to create many process [Bug #11613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:54 PM Bug #11369 (Closed): Check length of selected NPN protocol
Applied in changeset r52227.
----------
* ext/openssl/ossl_ssl.c (ssl_npn_select_cb): explicitly raise error
in ext/openssl instead of OpenSSL itself because LibreSSL
silently truncate the selected protocol name by casting the lengt...
naruse (Yui NARUSE)
04:54 PM Revision b5f2b5e1 (git): ALPN also uses the same logic [Bug #11369]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:54 PM Revision d7d779b5 (git): * ext/openssl/ossl_ssl.c (ssl_npn_select_cb): explicitly raise error
in ext/openssl instead of OpenSSL itself because LibreSSL
silently truncate the selected protocol name by casting the length
from int to unsigned char. [Bug #11369]
Patch by Jeremy Evans <merch-redmine@jeremyevans.net>
git-svn-id:...
naruse (Yui NARUSE)
03:51 PM Revision e4d925bf (git): * lib/un.rb (help): change the name of a block parameter to avoid
a warning when the command line option -w of ruby is specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
03:22 PM Revision bcc07ef4 (git): fix backslash [ci skip]
* string.c (rb_str_tr): [DOC] Escape backslash in String#tr
documentation. [Fix GH-1063]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:19 PM Revision 77a952d1 (git): adjust spaces [ci skip]
* array.c (rb_ary_collect): [DOC] Fix space of code example of
Array#map. [Fix GH-1062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:00 PM Revision 439c3e23 (git): * 2015-10-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision b471c9d3 (git): limit the number of FDs in a process for stress test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:56 PM Revision 29a1905c (git): common.mk: showflags only once
* common.mk (showflags): do not show flags from recursive make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:31 PM Bug #11604 (Rejected): Ruby's interpreting hash symbol keys as parts of Ruby syntax
Yes, it's your bug. nobu (Nobuyoshi Nakada)
01:19 PM Bug #11604: Ruby's interpreting hash symbol keys as parts of Ruby syntax
That is true but IMHO it should still be considered as a bug. maciej.mensfeld (Maciej Mensfeld)
11:43 AM Bug #11604 (Feedback): Ruby's interpreting hash symbol keys as parts of Ruby syntax
Maciej Mensfeld wrote:
> Cannot initialize hashes with some Ruby reserved keywords like: while, until, if, unless, do. Can with other like class, end, elsif, super. Don't really get why
These syntax errors are not caused by key names...
shugo (Shugo Maeda)
02:02 PM Revision be8a9db5 (git): colorize
* tool/generic_erb.rb: use VT100 sequence if tput does not work.
* tool/ifchange: ditto and add --color option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:53 PM Bug #11611 (Closed): uncommon.mk:853: recipe for target '.revision.time' failed
Applied in changeset r52219.
----------
ifchange: ignore error
* tool/ifchange: do not exit by -e even if tput failed.
[ruby-core:71143] [Bug #11611]
nobu (Nobuyoshi Nakada)
10:05 AM Bug #11611 (Open): uncommon.mk:853: recipe for target '.revision.time' failed
Reopened, because I still get an error, as follows:
~~~
$ make up; make install-nodoc
Updating '.':
At revision 52218.
make[1]: Entering directory '/cygdrive/c/Data/ruby-public'
uncommon.mk:853: recipe for target '.revision.time'...
duerst (Martin Dürst)
08:56 AM Bug #11611 (Closed): uncommon.mk:853: recipe for target '.revision.time' failed
Applied in changeset r52215.
----------
generic_erb.rb: ignore error
* tool/generic_erb.rb: ignore error that tput is not found.
[ruby-core:71143] [Bug #11611]
nobu (Nobuyoshi Nakada)
06:45 AM Bug #11611 (Closed): uncommon.mk:853: recipe for target '.revision.time' failed
When trying to compile Ruby trunk with
`make up; make install-nodoc`
I get the following errors:
~~~
$ make up; make install-nodoc
Updating '.':
At revision 52214.
make[1]: Entering directory '/cygdrive/c/Data/ruby-public'
unco...
duerst (Martin Dürst)
01:53 PM Revision 35957b76 (git): ifchange: ignore error
* tool/ifchange: do not exit by -e even if tput failed.
[ruby-core:71143] [Bug #11611]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:12 PM Feature #10181: New method File.openat()
Technorama Ltd. wrote:
> The proposed Dir api must provide a way to open both files and directories in order to be useful.
> ...
I prefer the following style:
d1 = Dir.open("d1") #=> a Dir
d2 = Dir.openat(d1, "subdir") #=> ...
shugo (Shugo Maeda)
10:53 AM Bug #10031: Net::IMAP idle can still block a thread forever.
I've added a new argument `timeout` for Net::IMAP#idle to solve this problem.
For example, the following code checks the connection for each 60 seconds.
loop do
imap.idle(60) do |res|
...
end
end
shugo (Shugo Maeda)
09:32 AM Bug #10031 (Closed): Net::IMAP idle can still block a thread forever.
Applied in changeset r52216.
----------
* lib/net/imap (idle): add a new argument timeout for keep-alive.
[ruby-core:63693] [Bug #10031]
shugo (Shugo Maeda)
09:58 AM Feature #11498 (Closed): Kernel#loop: return the "result" value of StopIteration
Applied in changeset r52218.
----------
Kernel#loop returns the result value of a finished iterator
* vm_eval.c (rb_f_loop): When a loop is stopped by a StopIteration
exception, return what the enumerator has returned instead of
ni...
knu (Akinori MUSHA)
09:58 AM Revision f4c48717 (git): Kernel#loop returns the result value of a finished iterator
* vm_eval.c (rb_f_loop): When a loop is stopped by a StopIteration
exception, return what the enumerator has returned instead of
nil. [ruby-core:71133] [Feature #11498]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52218 b2dd03c...
Akinori MUSHA
09:32 AM Revision 53d6e605 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:32 AM Revision 68fc350a (git): * lib/net/imap (idle): add a new argument timeout for keep-alive.
[ruby-core:63693] [Bug #10031]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
09:12 AM Misc #11295: Request for comments about error messages
See also "Clarify the error message when calling a method with the wrong number of arguments", https://bugs.ruby-lang.org/issues/9025 robb (Robb Shecter)
08:48 AM Misc #11295: Request for comments about error messages
Koichi Sasada wrote:
>
> ...
Again, thanks for posting this.
I believe that some small changes can make Ruby error messages more helpful. E.g., I've just begun working on a Pull Request to change the rb_eArgError messages from e.g...
robb (Robb Shecter)
08:42 AM Misc #11295: Request for comments about error messages
Thanks for starting this discussion!
> And some requests.
> ...
+1 for this. It's how Python displays backtraces. That's a good precedent to follow. I find that senior devs (like myself) and brand new developers (like my students) of...
robb (Robb Shecter)
08:56 AM Revision 30b839a0 (git): generic_erb.rb: ignore error
* tool/generic_erb.rb: ignore error that tput is not found.
[ruby-core:71143] [Bug #11611]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:54 AM Feature #11612 (Closed): The default mode of Net::FTP should be passive
The default mode of Net::FTP is active for historical reasons, but it should be changed to passive
because active data connections might be blocked by a local firewall.
Passive data connections might also be blocked by a firewall, but ...
shugo (Shugo Maeda)
06:30 AM Revision a356fe1c (git): Safe navigation operator
* compile.c (iseq_peephole_optimize): peephole optimization for
branchnil jumps.
* compile.c (iseq_compile_each): generate save navigation operator
code.
* insns.def (branchnil): new opcode to pop the tos and branch if
it is nil.
*...
nobu (Nobuyoshi Nakada)
06:25 AM Revision 5a599dde (git): generic_erb.rb: highlight
* tool/generic_erb.rb: highlight result messages too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:16 AM Bug #11609 (Closed): Dir.glob brace expansion possible edge case
Applied in changeset r52212.
----------
dir.c: glob brace expansion [Fix GH-1061]
* dir.c (ruby_brace_expand): glob brace expansion edge case fix.
When there are closing braces '}' before a open brace '{' it
must be ignored and con...
nobu (Nobuyoshi Nakada)
12:56 AM Bug #11609 (Closed): Dir.glob brace expansion possible edge case
I found an edge case of Dir.glob that don't work as i was expecting, and as my shell works.
It may happens on every version. I discovered it after spelunking through: ruby_brace_expand function on dir.c (https://github.com/ruby/ruby...
guilhermereiscampos (Guilherme Reis Campos)
04:16 AM Revision ff3288fe (git): dir.c: glob brace expansion [Fix GH-1061]
* dir.c (ruby_brace_expand): glob brace expansion edge case fix.
When there are closing braces '}' before a open brace '{' it
must be ignored and considered as literal.
[ruby-core:71138] [Bug #11609]
git-svn-id: svn+ssh://ci.ruby-...
nobu (Nobuyoshi Nakada)
04:14 AM Bug #11610 (Closed): Segfault when assigning to ARGV
Applied in changeset r52211.
----------
io.c: check ARGV element type
* io.c (argf_next_argv): check ARGV element type, and try
conversion if necessary. [ruby-core:71140] [Bug #11610]
nobu (Nobuyoshi Nakada)
01:17 AM Bug #11610 (Closed): Segfault when assigning to ARGV
This causes a segfault:
~~~
seq 3 | ruby -ne 'ARGV[$.]=$_'
~~~
These similar ones don't:
~~~
seq 3 | ruby -e 'ARGV[0] = "abc"'
seq 3 | ruby -ne 'BEGIN{a=[]}; a[$.]=$_'
~~~
Here is the output:
~~~
-e:1: [BUG] Segmenta...
josh.cheek (Josh Cheek)
04:13 AM Revision 66e41cbe (git): io.c: check ARGV element type
* io.c (argf_next_argv): check ARGV element type, and try
conversion if necessary. [ruby-core:71140] [Bug #11610]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:21 AM Revision 23419d85 (git): * 2015-10-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:21 AM Revision 19110fe1 (git): * test/net/ftp/test_ftp.rb: add tests for getbinaryfile and
gettextfile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)

10/21/2015

11:33 PM Feature #11537: Introduce "Safe navigation operator"
Marc-Andre Lafortune wrote:
> Just to be clear, this will check only for `nil`, right?
I think so, and my implementation too.
nobu (Nobuyoshi Nakada)
07:29 PM Feature #11537: Introduce "Safe navigation operator"
Great!
Just to be clear, this will check only for `nil`, right?
nil.?foo # => nil
false.?foo # => NoMethodError
marcandre (Marc-Andre Lafortune)
10:20 AM Feature #11537: Introduce "Safe navigation operator"
Great news! Thanks! Is this going to be released on next minor or on Ruby 3 only? rosenfeld (Rodrigo Rosenfeld Rosas)
08:05 AM Feature #11537: Introduce "Safe navigation operator"
Oh, I made mistake. We will introduce `.?` (typo fixed already). matz (Yukihiro Matsumoto)
07:45 AM Feature #11537: Introduce "Safe navigation operator"
In several languages (Groovy Swift etc.), use `?.` but we cannot use it in Ruby, because `foo?` is a valid method name.
Thus `.?` is a reasonable alternative for Ruby, I think.
Accepted.
Matz.
matz (Yukihiro Matsumoto)
08:38 PM Feature #11415: autoload with a Proc
matz@ruby-lang.org wrote:
> > I hate autoload. autoload is one of things I regret. I'm not positive about enhancing something I hate.
> -- matz in https://speakerdeck.com/skade/the-dark-side-of-matz-1

Would you like autoload if Rub...
normalperson (Eric Wong)
12:53 PM Feature #11415: autoload with a Proc
> I hate autoload. autoload is one of things I regret. I'm not positive about enhancing something I hate.
-- matz in https://speakerdeck.com/skade/the-dark-side-of-matz-1
How about using `const_missing`?
Matz.
matz (Yukihiro Matsumoto)
12:48 PM Feature #11498: Kernel#loop: return the "result" value of StopIteration
I like the idea. If anything bad happens by the patch, I'd love to accept this.
Matz.
matz (Yukihiro Matsumoto)
09:34 AM Feature #8976 (Closed): file-scope freeze_string directive
Applied in changeset r52208.
----------
parse.y: magic comment w/o indicators
* parse.y (parser_magic_comment): allow a sole magic comment without
indicators, neither other non-space comments. [Feature #8976]
nobu (Nobuyoshi Nakada)
02:57 AM Feature #8976 (Assigned): file-scope freeze_string directive
Benoit Daloze wrote:
> Yusuke Endoh wrote:
> ...
+1
This issue should be discussed at the developers meeting today, and Matz should desicde whether `-*-` should be required.
shugo (Shugo Maeda)
09:34 AM Revision a76fdea9 (git): parse.y: magic comment w/o indicators
* parse.y (parser_magic_comment): allow a sole magic comment without
indicators, neither other non-space comments. [Feature #8976]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:06 AM Feature #11034 (Closed): Nil Conditional
We will introduce `.?` #11537 which address this proposal.
Matz.
matz (Yukihiro Matsumoto)
07:16 AM Revision 5fe69193 (git): Makefile.in: tty at reconfig
* aclocal.m4 (_COLORIZE_RESULT_PREPARE): force tty for reconfig.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:36 AM Revision 21494036 (git): * 2015-10-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:35 AM Revision de2d4510 (git): extconf.rb: strict_warnflags
* ext/date/extconf.rb: add strict warning flags same as ruby
itself for C99 option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom