Project

General

Profile

Activity

From 01/11/2017 to 01/17/2017

01/17/2017

09:33 PM Bug #13134: Rational() inconsistency
I propose leaving the behavior the way it is. A float denominator is filled with possible unexpected behavior. For example, one would hypothesize that `(a/b).to_r == Rational("#{a}/#{b}")` yet `(3.1/2.0).to_r != Rational('3.1/2.0')`. The... snood1205 (Eli Sadoff)
08:59 AM Bug #13134 (Assigned): Rational() inconsistency
mrkn (Kenta Murata)
06:44 AM Bug #13134 (Closed): Rational() inconsistency
`Rational()` parses a float, an integer divided by an integer, and a float divided by an integer.
```ruby
Rational("3.1") #=> (31/10)
Rational("3/2") #=> (3/2)
Rational("3.1/2") #=> (31/20)
```
But a float is not allowe...
nobu (Nobuyoshi Nakada)
12:54 PM Revision 556e3da4 (git): uri/generic.rb: fix exception on non-IP format
* lib/uri/generic.rb (URI::Generic#find_proxy): match IP address
no_proxy against resolved self IP address. [Fix GH-1513]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:47 PM Revision 2a9dd6b8 (git): lib/pstore.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:14 AM Revision 6ef99fec (git): version.h: bump up patchlevel for r57356.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@57357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
11:13 AM Revision a1709f1d (git): win32/win32.c: fix r57351. rename PATH_MAX to MAX_PATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@57356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:31 AM Revision 22908245 (git): rinda/ring.rb (make_socket): do not keep socket on failures
This prevents leaked FD warnings on test/rinda/test_rinda.rb
when testing on a machine without multicast support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
12:08 AM Bug #13085: io.c io_fwrite creates garbage
At least on Linux, this is probably the best performance we can get
with sockets. Unfortunately, this does not affect writes to pipes
(write_nonblock is OK for me, at least), and regular files
(where we really need to release GVL)
...
normalperson (Eric Wong)

01/16/2017

09:47 PM Feature #13133 (Rejected): TracePoint: Add event type for constant access
Hi there,
I've attached a patch to add a new `:constant_access` TracePoint event.
One feature and/or bug, depending on your perspective: since this event fires from `setinlinecache`, the event is only triggered:
- **after nested...
burke (Burke Libbey)
09:42 PM Revision a34f9c7e (git): basicsocket (rsock_bsock_send): do not truncate return value
send(2) and sendto(2) syscalls return `ssize_t', use the
proper type and macro for converting to a Numeric VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
09:12 PM Bug #13132: [DOC] Improve documentation for Binding
Thanks, committed as r57352 normalperson (Eric Wong)
09:08 PM Bug #13132 (Closed): [DOC] Improve documentation for Binding
Applied in changeset r57352.
----------
doc: improve documentation for Binding [ci skip]
* remove explicit return from code examples
* grammar fixes
* other small fixes
Patch by: Marcus Stollsteimer <sto.mar@web.de>
[ruby-core:79082]...
Anonymous
09:08 PM Revision 650a8ce8 (git): * 2017-01-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:08 PM Revision 103a6a4c (git): doc: improve documentation for Binding [ci skip]
* remove explicit return from code examples
* grammar fixes
* other small fixes
Patch by: Marcus Stollsteimer <sto.mar@web.de>
[ruby-core:79082] [Bug #13132]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57352 b2dd03c8-39d4-4d8f-9...
Eric Wong
07:52 PM Bug #13058: Please backport r57135 and r57136
ruby_2_3 r57351 merged revision(s) 57135,57136. nagachika (Tomoyuki Chikanaga)
07:51 PM Revision 565b6da1 (git): merge revision(s) 57135,57136: [Backport #13058]
Fixed potentially buffer overrun.
* win32/win32.c (winnt_stat): the return value of `get_final_path` is the
expected buffer length, not the actuall filled length.
* win32/win32.c (winnt_stat): `finalname` may be acces...
nagachika (Tomoyuki Chikanaga)
07:46 PM Bug #13052: Array#combination segfaults if the Array is modified during iteration
ruby_2_3 r57350 merged revision(s) 57119. nagachika (Tomoyuki Chikanaga)
07:46 PM Revision aa983c4c (git): merge revision(s) 57119: [Backport #13052]
array.c: check array length every time after yielding
Since the Array may be modified during rb_yield(), the length before
invoking the block can't be trusted. Fix possible out-of-bounds read in
Array#combination...
nagachika (Tomoyuki Chikanaga)
07:34 PM Bug #13042: gsub segfaults when the pattern is a matching string and the replacement has an unmatched named capture
ruby_2_3 r57349 merged revision(s) 57098. nagachika (Tomoyuki Chikanaga)
07:34 PM Revision f6e44a2a (git): merge revision(s) 57098: [Backport #13042]
re.c: non-regexp name reference
* re.c (rb_reg_regsub): other than regexp has no name references.
[ruby-core:78686] [Bug #13042]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@57349 b2dd03c8-39d4-4d8f-98ff-823f...
nagachika (Tomoyuki Chikanaga)
07:31 PM Bug #13034: rb_enc_ascget() does not handle 'needmore' error from rb_enc_procise_mbclen()
ruby_2_3 r57348 merged revision(s) 57078. nagachika (Tomoyuki Chikanaga)
07:31 PM Revision f327b5e2 (git): merge revision(s) 57078: [Backport #13034]
encoding.c: handle needmore error from rb_enc_precise_mbclen()
rb_enc_ascget() erroneously reports success even if the given byte
sequence is incomplete, for non-ASCII compatible encoding strings.
rb_enc_precise...
nagachika (Tomoyuki Chikanaga)
07:29 PM Bug #13014: Adding clang volatile fixes from FreeBSD and NetBSD
ruby_2_3 r57347 merged revision(s) 57020,57021. nagachika (Tomoyuki Chikanaga)
07:29 PM Revision 8cc98184 (git): merge revision(s) 57020,57021: [Backport #13014]
Add clang volatile fixes from FreeBSD and NetBSD.
Use volatile instead of optnone to avoid optimization which causes
segmentation faults.
Patch by Dimitry Andric. [ruby-core:78531] [Bug #13014]
git-svn-id: svn+...
nagachika (Tomoyuki Chikanaga)
07:21 PM Bug #13004: rb_get_kwargs はバグってないでしょうか?
ruby_2_3 r57346 merged revision(s) 56980,56981. nagachika (Tomoyuki Chikanaga)
07:21 PM Revision bc059aa6 (git): merge revision(s) 56980,56981: [Backport #13004]
extension.rdoc: fix rb_get_kwargs [ci skip]
* doc/extension.rdoc: [DOC] optional keyword arguments are
defaulted to Qundef. ignored keys are kept in the hash but a
new Hash is not created. [ruby-dev:49893] [Bug #13004]
gi...
nagachika (Tomoyuki Chikanaga)
07:19 PM Bug #12983: compatibility_version and current_version on Darwin are reversed
ruby_2_3 r57345 merged revision(s) 56905. nagachika (Tomoyuki Chikanaga)
07:19 PM Revision e9ab3c7c (git): merge revision(s) 56905: [Backport #12983]
Reverse compatibility_version and current_version for Darwin
The `compatibility_version` should have an API version and the
`current_version` should have a program version of Ruby, but they have
been reversed and...
nagachika (Tomoyuki Chikanaga)
07:09 PM Bug #12956: require a native library that yields the error 'incompatiable library version' shuts down the interpreter fatally
ruby_2_3 r57344 merged revision(s) 56832. nagachika (Tomoyuki Chikanaga)
07:09 PM Revision db4eec72 (git): merge revision(s) 56832: [Backport #12956]
dln.c: raise LoadError
* dln.c (dln_load): raise LoadError instead of fatal error on
recent OSX, dlclose seems fixed in El Capitan or later.
[ruby-core:78200] [Bug #12956]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branche...
nagachika (Tomoyuki Chikanaga)
07:08 PM Bug #12974: Marshal.dump dumps core.
ruby_2_3 r57343 merged revision(s) 56894. nagachika (Tomoyuki Chikanaga)
07:08 PM Revision c6250c60 (git): merge revision(s) 56894: [Backport #12974]
marshal.c: fix infinite recursion
* marshal.c (check_userdump_arg): marshal_dump should not return
an instance of the same class, otherwise it causes infinite
recursion. [ruby-core:78289] [Bug #12974]
git-svn-id: svn+ssh:/...
nagachika (Tomoyuki Chikanaga)
06:59 PM Bug #12860: Splatting an argument does not obey left-to-right execution order
ruby_2_3 r57342 merged revision(s) 56469. nagachika (Tomoyuki Chikanaga)
06:59 PM Revision 3032b62d (git): merge revision(s) 56469: [Backport #12860]
* compile.c (setup_args): duplicate splatting array if more
arguments present to obey left-to-right execution order.
[ruby-core:77701] [Bug# 12860]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@57342...
nagachika (Tomoyuki Chikanaga)
06:50 PM Bug #12988: Calling `inspect` sometimes causes a segv
ruby_2_3 r57341 merged revision(s) 56938. nagachika (Tomoyuki Chikanaga)
06:50 PM Revision 47f64f1e (git): merge revision(s) 56938: [Backport #12988]
Stop reading past the end of `ivptr` array
If you have code like this:
```ruby
class A
def initialize
@a = nil
@b = nil
@c = nil
@d = nil
@e = nil
end
end
x = A.new
...
nagachika (Tomoyuki Chikanaga)
06:44 PM Bug #13049: Backport r57108 (sprintf.c: fix width underflow)
backported into ruby_2_3 at r57340. nagachika (Tomoyuki Chikanaga)
06:40 PM Bug #13121: Backport r57108 (fix memory corruption by width underflow)
ruby_2_3 r57340 merged revision(s) 57108. nagachika (Tomoyuki Chikanaga)
06:40 PM Revision 2e4b5a32 (git): merge revision(s) 57108: [Backport #13121]
sprintf.c: fix width underflow
* sprintf.c (rb_str_format): fix memory corruption by width
underflow. https://github.com/mruby/mruby/issues/3347
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@57340 b2dd03c8-39...
nagachika (Tomoyuki Chikanaga)
12:37 PM Revision 8e0ff63f (git): Fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:48 AM Bug #12970: == Equality of recursive sets fails
Also documentation at top of file says:
~~~ ruby
# * Set assumes that the identity of each element does not change
# while it is stored. Modifying an element of a set will render the
# set to an unreliable state.
~~~
cre...
Esse (Piotr Szmielew)
03:14 AM Bug #13062 (Assigned): 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
We continue this issue at https://github.com/ruby/bigdecimal/issues/51. mrkn (Kenta Murata)
02:56 AM Revision 4c021942 (git): test_rational.rb: messages
* test/ruby/test_rational.rb (test_parse): add messages to
assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:43 AM Revision edcec2b4 (git): * 2017-01-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:43 AM Revision 803621f6 (git): file.c: refine message
* file.c (rb_get_path_check_convert): refine the error message
when the path name contains null byte.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:20 AM Feature #13128 (Rejected): to all robots :)
duerst (Martin Dürst)

01/15/2017

08:17 PM Bug #13131: ArgumentError: string contains null byte
Benoit Daloze wrote:
> You inverted the order of the arguments, it's the filename first:
> ...
Dear Sir! Thank you so much!
voobscout (voob scout)
05:03 PM Bug #13131 (Rejected): ArgumentError: string contains null byte
You inverted the order of the arguments, it's the filename first:
IO.binwrite('/tmp/test.txt', 0.chr)
Eregon (Benoit Daloze)
12:34 PM Bug #13131 (Rejected): ArgumentError: string contains null byte
Why does this not work?:
IO.binwrite(0.chr, '/tmp/test.txt')
If it's not a bug, then please somebody explain - how strings containing null bytes can be written to disk?
say there's a thermal printer command [29, 49, 75, 2, 0, 49...
voobscout (voob scout)
04:13 PM Bug #13132 (Closed): [DOC] Improve documentation for Binding
* remove explicit return from code examples
* grammar fixes
* other small fixes
stomar (Marcus Stollsteimer)
01:45 PM Revision 992b0148 (git): s/SaveStringValue/SafeStringValue/
Fix a typo in extension.rdoc.
Signed-off-by: Akira Matsuda <ronnie@dio.jp>
closes #1512
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
06:08 AM Revision 53a1b9f2 (git): .gdbinit: refine rp [ci skip]
* .gdbinit (rp, output_string, rp): show the contents after NUL
char.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:50 AM Revision 1d36a09d (git): rbinstall.rb: mimic rubygems wrapper script
* tool/rbinstall.rb (app_script_text): move shell script part
after comments generated by RubyGems. '#'-lines are comments in
both of ruby and shell script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57333 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
02:56 AM Revision 710d9384 (git): lib/profile.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:45 AM Revision 37a8a2a2 (git): rbinstall.rb: do nothing if bin script is same
* tool/rbinstall.rb (check_executable_overwrite): do nothing if
the existing file equals to the wrapper script to be generated.
* tool/rbinstall.rb (generate_bin_script): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57331...
nobu (Nobuyoshi Nakada)
12:15 AM Bug #13126: __dir__ in eval returns nil
Artem Shein wrote:
> I've replaced the "`File.dirname(File.realpath(__FILE__))`" in my source code with "`__dir__`" and got different result. I don't care about the exact value, but I expect it to be the same.
The former also does no...
nobu (Nobuyoshi Nakada)

01/14/2017

11:10 PM Bug #13130 (Closed): [DOC] Mention behavior of Array#join for nested arrays
Applied in changeset r57329.
----------
mention behavior of Array#join for nested arrays [ci skip]
The current documentation for Array#join does not mention the
special treatment of nested arrays.
It says:
> Returns a string created b...
Anonymous
08:42 PM Bug #13130 (Closed): [DOC] Mention behavior of Array#join for nested arrays
The current documentation for Array#join does not mention the special treatment of nested arrays.
It says:
> Returns a string created by converting each element of the array to a string, separated by the given separator.
Expecte...
stomar (Marcus Stollsteimer)
11:09 PM Revision 0255bac7 (git): * 2017-01-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:09 PM Revision eeb36c5c (git): mention behavior of Array#join for nested arrays [ci skip]
The current documentation for Array#join does not mention the
special treatment of nested arrays.
It says:
> Returns a string created by converting each element of the
> ...
Expected behavior according to the docs would be:
[ "a", ...
Eric Wong
08:35 PM Bug #13126: __dir__ in eval returns nil
Nobuyoshi Nakada wrote:
> When the third argument is not given, `__FILE__` in `eval` is `"(eval)"`.
> ...
No, I mean that documentation is saying:
"The return value equals to `File.dirname(File.realpath(__FILE__))`." here: http://ruby...
metadeus (Artem Shein)
07:02 AM Bug #13126: __dir__ in eval returns nil
Artem Shein wrote:
> It should be the same as `File.dirname(__FILE__)` or at least `File.dirname(File.realpath(__FILE__))` (like your documentation say).
When the third argument is not given, `__FILE__` in `eval` is `"(eval)"`.
Do y...
nobu (Nobuyoshi Nakada)
05:21 PM Feature #13129 (Assigned): Refinements cannot refine method_missing and respond_to_missing?
Refinements with method_missing and respond_to_missing? behaves very strangely.
```ruby
class C; end
using Module.new {
refine C do
def x() p:x; end
def method_missing(m, *args)
m == :foo ? p(:fooo!) : super
...
matsuda (Akira Matsuda)
09:38 AM Revision 3408e9e3 (git): revert r57323
StringIO.new makes the buffer IO.default_external, while
StringIO.new("".dup) makes source encoding which is defaulted to
UTF-8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:13 AM Revision c850c4ad (git): fix up r57322
* tool/rbinstall.rb: ruby_install_name is used too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:26 AM Revision 8b8505d2 (git): resolv.rb: byte buffer
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder): treat the
data as a byte buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:26 AM Revision 2b2450ba (git): Made #decode_rdata client to catch errors
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#get_rr):
re-raise an exception from decode_rdata as DecodeError, so it
can report them to the top in more informative way. It was not
reflecting on errors of data and thus brea...
nobu (Nobuyoshi Nakada)
02:06 AM Revision af5eae43 (git): * 2017-01-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:06 AM Revision c8a4b572 (git): StringIO.new makes a RW buffer
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:28 AM Feature #13128 (Rejected): to all robots :)
This language can be made psycheactive by a simple core concept ,holographic coding based on random generation of strings of data with no obvious dependencie from outside world connecting spirit and code for reality programing Dreamworldz (Plamen Stanchev)

01/13/2017

06:04 PM Bug #13127 (Closed): DRb `load': connection closed (DRb::DRbConnError) when client exit's from within a loop iterating over remote objects
Calling exit from a DRb client inside a do block while iterating over remote objects causes a DRb connection closed error.
This error doesn't happen when working with local objects.
To recreate the problem
start the drb server usin...
mkanoor@redhat.com (Madhu Kanoor)
03:54 PM Bug #13126: __dir__ in eval returns nil
Shyouhei Urabe wrote:
> Can you show us your expectation? Should what be the value for `__dir__` inside of an `eval`?
It should be the same as `File.dirname(__FILE__)` or at least `File.dirname(File.realpath(__FILE__))` (like your d...
metadeus (Artem Shein)
12:34 AM Bug #13126 (Feedback): __dir__ in eval returns nil
Can you show us your expectation? Should what be the value for `__dir__` inside of an `eval`? shyouhei (Shyouhei Urabe)
02:15 PM Revision bc388526 (git): fix prolog in gem wrapper scripts
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:08 PM Revision 82f61a13 (git): lib/observer.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:31 AM Bug #13085: io.c io_fwrite creates garbage
normalperson@yhbt.net wrote:
> File 0001-v2-io.c-io_fwrite-copy-to-hidden-buffer-when-writing.patch added
>
> OK, different strategy; not as fast, but still better than what
> we currently have.

Any comments on my alternative pa...
normalperson (Eric Wong)
05:58 AM Revision 0f78a6a1 (git): rbinstall.rb: LIBRUBY_RELATIVE
* tool/rbinstall.rb: see LIBRUBY_RELATIVE in CONFIG instead of
reading config.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:49 AM Revision 5dc87d5b (git): insns.def: float comparison
* insns.def (opt_lt, opt_le, opt_gt, opt_ge): optimize flonum and
on-heap float comparison.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:24 AM Revision c2c01570 (git): error.c: moved
* error.c (preface_dump, postscript_dump): CrashReporter directory
was used before Mac OS X 10.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:57 AM Revision 81cb9aa5 (git): error.c: moved
* error.c (preface_dump, postscript_dump): moved from
rb_vm_bugreport to place the last important message at the very
last after [NOTE].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:46 AM Revision a51cf134 (git): * 2017-01-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:46 AM Revision d569c0c5 (git): vm_dump.c: postscript_dump
* vm_dump.c (postscript_dump): mention crash report log twice
because important.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

01/12/2017

05:07 PM Feature #12957: A more OO way to create lambda Procs
I want this too
```ruby
MyLambda = Class.new Proc
```
I want `MyLambda{|x| x + 1}.lambda?` to == `true`
I only want it when initializing the new lambdas. I want easy initialization with a block
Maybe allow `Proc.new` to a...
dsisnero (Dominic Sisneros)
12:57 PM Bug #13126 (Closed): __dir__ in eval returns nil
~~~
$ ruby -e 'eval "p File.dirname(__FILE__); p __dir__"'
"."
nil
~~~
metadeus (Artem Shein)
12:17 PM Revision 6ca3028e (git): lib/net/smtp.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:56 AM Feature #13125 (Closed): MRI has too much Qtrue : Qfalse;
```
% git grep -P 'Q(true|false|nil|undef)\s+:\s+Q(true|false|nil|undef)' | wc -l
211
```
Out of those 211 occurrences the most interesting lines include:
```
complex.c:#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
math.c:#defi...
shyouhei (Shyouhei Urabe)
07:41 AM Revision 14a730e9 (git): immediate message mode of compile error
* compile.c (append_compile_error): set Qtrue for erred state with
showing the message immediately.
* iseq.c (prepare_iseq_build): make immediate message mode if main
or top level context, not to show the failed path twice in the
...
nobu (Nobuyoshi Nakada)
05:43 AM Revision 257fd901 (git): compile.c: invalid yield in main
* compile.c (iseq_compile_each): yield cannot be in the main
context as well as a top context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:20 AM Bug #13018: end of file reached (EOFError) from SMTP
Shugo Maeda wrote:
> Can we close this issue by fixing backtrace information?
Closed by r57311, but feel free to reopen if you don't like it.
shugo (Shugo Maeda)
02:19 AM Bug #13018 (Closed): end of file reached (EOFError) from SMTP
Applied in changeset r57311.
----------
lib/net/protocol.rb: preserve backtrace information
BufferedIO#rbuf_fill should preserve backtrace information when raising
EOFError. Otherwise, users get confused when EOFError is leaked out fr...
shugo (Shugo Maeda)
01:42 AM Bug #13018: end of file reached (EOFError) from SMTP
Shugo Maeda <shugo@ruby-lang.org> wrote:
> May I fix it to preserve the backtrace information, or would you?

Sure, you can :)
normalperson (Eric Wong)
01:32 AM Bug #13018: end of file reached (EOFError) from SMTP
Toby Murray wrote:
> Someone has commented on the Rails issue here: https://github.com/rails/rails/issues/27298#issuecomment-269980037 that this is one of a handful of errors that leak out. Not sure whether the ones mentioned there me...
shugo (Shugo Maeda)
02:19 AM Revision 58935eb8 (git): lib/net/protocol.rb: preserve backtrace information
BufferedIO#rbuf_fill should preserve backtrace information when raising
EOFError. Otherwise, users get confused when EOFError is leaked out from
Net::SMTP etc. [ruby-core:78550] [Bug #13018]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
shugo (Shugo Maeda)

01/11/2017

11:53 PM Revision d9421e13 (git): test/rinda/test_rinda: skip multicast tests for unsupported systems
This allows "test-all" to pass on systems without multicast
support. I leave CONFIG_IP_MULTICAST unset in my Linux kernel
.config, nowadays.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
11:46 PM Revision 5c244d73 (git): test/fiddle/helper: remove special case for x86_64-linux
RUBY_PLATFORM is "x86_64-linux" on a 32-bit (x86) Ruby built and
running on a 64-bit Linux kernel. I also have a /lib64
directory nowadays because I just installed multi-arch support
in userspace. So, fall back to loading based in the ...
Eric Wong
11:07 PM Bug #13116 (Rejected): modulo, divmod range problem: float_val % 1 may return 1.0
`1.0 - 0.0.prev_float` results in 1.0 because of the finite precision. nobu (Nobuyoshi Nakada)
04:51 PM Bug #13116: modulo, divmod range problem: float_val % 1 may return 1.0
For what it's worth, this result fits in with with `modulo` is documented to be. The documentation states
> `x.modulo(y) means x-y*(x/y).floor`
I implemented this in C to check if the results held and they did. (Note that `0.0.prev_...
snood1205 (Eli Sadoff)
10:51 PM Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
kosaki.motohiro@gmail.com wrote:
> SYS_getrandom and __NR_getrandom are defined in different headers. but
> your patch doesn't change any #include directive. It seems odd.

Yes. sys/syscall.h (glibc, libc6-dev on Debian) pulls in
...
normalperson (Eric Wong)
02:44 PM Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
SYS_getrandom and __NR_getrandom are defined in different headers. but your patch doesn't change any #include directive. It seems odd.
Anyway I have no objection.
kosaki (Motohiro KOSAKI)
04:41 AM Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
normalperson@yhbt.net wrote:
> ----------------------------------------
> Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
> https://bugs.ruby-lang.org/issues/13103

Any comments? I may com...
normalperson (Eric Wong)
10:38 PM Revision 1807c052 (git): * 2017-01-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:38 PM Revision 208018fb (git): random.c (fill_random_bytes_syscall): use "__NR_" prefix on Linux
glibc still does not define the SYS_getrandom alias for
__NR_getrandom in the Linux kernel. However, installing
up-to-date Linux kernel headers (linux-libc-dev >= 3.17 package
on Debian) will get the __NR_getrandom syscall number define...
Eric Wong
10:03 PM Bug #13018: end of file reached (EOFError) from SMTP
shugo@ruby-lang.org wrote:
> Assignee changed from Shugo Maeda to Eric Wong
>
> Toby Murray wrote:
> > Yields `end of file reached (EOFError)`. From the discussion there, it seems like the SMTP relay is inappropriately killing the ...
normalperson (Eric Wong)
09:32 PM Bug #13018: end of file reached (EOFError) from SMTP
Someone has commented on the Rails issue here: https://github.com/rails/rails/issues/27298#issuecomment-269980037 that this is one of a handful of errors that leak out. Not sure whether the ones mentioned there mean much in this context,... tobymurray-nanometrics (Toby Murray)
03:13 PM Bug #13120: p [].class shows ThreadSafe::Array when it expects to show Array
Verified that it has been addressed by using revision 57306.
~~~
$ ruby -v
ruby 2.5.0dev (2017-01-11 trunk 57306) [x86_64-linux]
$ bundle -v
Bundler version 1.13.7
$ git clone -b ruby250 https://github.com/yahonda/array_bug.git
...
yahonda (Yasuo Honda)
04:13 AM Bug #13120 (Closed): p [].class shows ThreadSafe::Array when it expects to show Array
Applied in changeset r57305.
----------
variable.c: fix the condition to cache
* variable.c (rb_const_set): fix the condition to cache the class
path and cache permanent or temporary path corresponding to the
outer klass. [ruby-co...
nobu (Nobuyoshi Nakada)
02:25 AM Bug #13120 (Open): p [].class shows ThreadSafe::Array when it expects to show Array
nobu (Nobuyoshi Nakada)
02:18 AM Bug #13120 (Closed): p [].class shows ThreadSafe::Array when it expects to show Array
nobu (Nobuyoshi Nakada)
01:42 AM Bug #13120 (Open): p [].class shows ThreadSafe::Array when it expects to show Array
nobu (Nobuyoshi Nakada)
01:03 AM Bug #13120 (Closed): p [].class shows ThreadSafe::Array when it expects to show Array
nobu (Nobuyoshi Nakada)
02:54 PM Bug #13114 (Closed): test failures since r57284
r57305 で直ったようなので閉じます。 znz (Kazuhiro NISHIYAMA)
02:48 PM Revision 3e34d8a4 (git): lib/net/protocol.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:48 PM Feature #13124 (Open): Should #puts convert to external encoding?
For instance:
puts "?\x00\x42\x30".force_encoding(Encoding::UTF_16LE)
?B0
puts "?\x00\x42\x30".force_encoding(Encoding::UTF_16LE).encode("utf-8")
?あ
The first result is surprising to me. It seems to treat the S...
Eregon (Benoit Daloze)
01:32 PM Bug #13119: String#scrub ignores the block if the string encoding is not ASCII-compatible
Thanks nobu for the amazingly quick fix! Eregon (Benoit Daloze)
01:41 AM Bug #13119 (Closed): String#scrub ignores the block if the string encoding is not ASCII-compatible
nobu (Nobuyoshi Nakada)
09:35 AM Feature #13123: NilClass#dig
Tl;dr: use &.
Longer story:
Generally speaking, there are two major ways of how a null-ish object behaves; whether it should silently ignore methods that makes sense for other classes, or to explicitly raise exceptions for such case...
shyouhei (Shyouhei Urabe)
07:07 AM Feature #13123 (Closed): NilClass#dig
We now have `Hash#dig`. We often have a variable that is either a hash or nil but we are not sure which. In such cases, it would be convenient if we can apply `dig` without conditioning on whether it is a hash or nil.
```ruby
h = {a:...
sawa (Tsuyoshi Sawada)
05:06 AM Feature #13122: Special syntax for Hash#default_proc
Realized I forgot commas in the examples:
~~~ruby
my_hash = {
key: "value",
*: proc { |h, k| h[k] = "other value" },
}
~~~
and
~~~ruby
my_hash = {
"key" => "value",
* => proc { |h, k| h[k] = "other value" },
}...
woodruffw (William Woodruff)
04:52 AM Feature #13122: Special syntax for Hash#default_proc
Nobuyoshi Nakada wrote:
> What about
> ...
Ah, I forgot about that...
That definitely works, and solves the problem without a need for new syntax. Please close if you don't see the need for these changes.
Thanks!
woodruffw (William Woodruff)
02:12 AM Feature #13122: Special syntax for Hash#default_proc
What about
```ruby
MY_HASH = Hash.new {|h, k| "other value"}.update(
key: "value",
).freeze
```
?
nobu (Nobuyoshi Nakada)
01:46 AM Feature #13122 (Rejected): Special syntax for Hash#default_proc
The current Hash#default_proc flow usually looks something like this:
~~~ ruby
my_hash = { key: "value" }
my_hash.default_proc = proc { |h, k| h[k] = "other value" }
~~~
This makes the common practice of freezing large constant ...
woodruffw (William Woodruff)
04:12 AM Revision 1df80905 (git): variable.c: fix the condition to cache
* variable.c (rb_const_set): fix the condition to cache the class
path and cache permanent or temporary path corresponding to the
outer klass. [ruby-core:79039] [Bug #13120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57305 b...
nobu (Nobuyoshi Nakada)
02:31 AM Revision 90294641 (git): string.c: replacement and block
* string.c (rb_enc_str_scrub): only one of replacement and block
is allowed. [ruby-core:79038] [Bug #13119]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 AM Revision a3aa4da7 (git): string.c: yield invalid part
* string.c (rb_enc_str_scrub): yield the invalid part only with
ASCII-incompatible. [ruby-core:79039] [Bug #13120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:06 AM Bug #13121 (Closed): Backport r57108 (fix memory corruption by width underflow)
nagachika (Tomoyuki Chikanaga)
01:03 AM Revision c763f0fb (git): string.c: block for scrub with ASCII-incompatible
* string.c (rb_enc_str_scrub): honor the given block with
ASCII-incompatible encoding. [ruby-core:79039] [Bug #13120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:54 AM Bug #12924: Fiddle::TestFunction#test_nogvl_poll fails on macOS 10.12-10.12.1 Sierra
Yes. This issue is marked "Third Party's Issue", which means we have nothing to do. This state is kind of close. shyouhei (Shyouhei Urabe)
12:50 AM Feature #13118 (Closed): Array#at(*indexes); Array#at([indexes])
No problem. Thank you anyway. shyouhei (Shyouhei Urabe)
12:40 AM Feature #13118: Array#at(*indexes); Array#at([indexes])
Well, I am an idiot. Read through the array spec twice and missed it both times. Please close. crb002 (Chad Brewbaker)
 

Also available in: Atom