Project

General

Profile

Activity

From 04/02/2017 to 04/08/2017

04/08/2017

11:41 PM Feature #12589: VM performance improvement proposal
[email protected] wrote:
> https://github.com/vnmakarov/ruby/compare/rtl_mjit_branch_base...rtl_mjit_branch

I've only taken a light look at it; but I think RTL seems
interesting promise. I needed the following patch to remove
"...
normalperson (Eric Wong)
08:02 PM Feature #13395: Add a method to check for not nil
I think that these discussions come up with some frequency; if I recall correctly,
Tsuyoshi Sawada was proposing something that I agreed with in principle. But I
did point out that the english language appears to have it easier with po...
shevegen (Robert A. Heiler)
07:29 AM Revision 4ab8d89d (git): Show logs after PR merger
* .travis.yml (before_script): show logs of merged pull requests
to rubyspec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:29 AM Revision 2c0b9e87 (git): Split commands
* .travis.yml (before_script): split commands to prepare variables
for pull request URLs to rubyspec, to stop when each commands
failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:07 AM Bug #13409: UDPSocket#send breaks when using sockaddr
On 2017/04/07 15:44, Eric Wong wrote:
> It looks like your system does not have full IPv6 support.
What version is your kernel?
nobu (Nobuyoshi Nakada)
03:27 AM Bug #13409: UDPSocket#send breaks when using sockaddr
`rsock_bsock_send` calls `sendto(2)` if the third argument is present and not nil.
Fixed the message now.
nobu (Nobuyoshi Nakada)
03:25 AM Revision 51eaaa89 (git): basicsocket.c: proper system call name
* ext/socket/basicsocket.c (rsock_bsock_send): show proper system
call name in the exception message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:37 AM Revision 2deefdcd (git): ext/win32ole/win32ole_variant.c (ole_val2variant_err): use FIXNUM_P, RB_TYPE_P
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e suke (Masaki Suketa)

04/07/2017

04:08 PM Revision c539db3e (git): * 2017-04-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:08 PM Revision 7fdb410b (git): .travis.yml: split long command [ci skip]
* .travis.yml (before_script): split long command to merge pull
requests to rubyspec from github.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:59 PM Bug #13141: Spurious Net::FTPReplyError
shugo (Shugo Maeda) wrote:
> 226 is returned as a reply of PASV, but it's not RFC compilant and
> ...
I agree that this appears to be a bad server. Thanks for the suggestion to catch the error and retry. (Not sure why I didn't think of...
Phrogz (Gavin Kistner)
08:36 AM Bug #13141: Spurious Net::FTPReplyError
Phrogz (Gavin Kistner) wrote:
> ~~~
> ...
226 is returned as a reply of PASV, but it's not RFC compilant and
seems a server issue.
Retrying on Net::FTPReplyError may work, but I'm not sure.
shugo (Shugo Maeda)
03:25 PM Bug #13410 (Feedback): [BUG] Segmentation fault at file read
2.3.1 is outdated.
Does it happen with 2.3.4 or 2.4.1?
nobu (Nobuyoshi Nakada)
02:14 PM Bug #13410 (Closed): [BUG] Segmentation fault at file read
The following line has triggered this issue:
~~~ ruby
Dir['/proc/[0-9]*/cmdline'].map do |x|
File.read(x)[/^qemu-system-x86_64.*(vm-\d+)/,1] # Line 41
end
~~~
[email protected] (Tim Foerster)
02:00 PM Revision 10024b0e (git): .travis.yml: multiple rubyspec PRs [ci skip]
* .travis.yml (before_script): merge multiple pull requests
rubyspec to from github. pull request numbers are given by
RUBYSPEC_PULL_REQUEST, as a comma or space separated list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@582...
nobu (Nobuyoshi Nakada)
01:26 PM Revision 08e74bfa (git): use dedicated assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:26 PM Revision fb979b45 (git): Use \A and \z to match whole string
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:56 PM Revision 873d62b1 (git): Classify extlibs tool
* tool/extlibs.rb (ExtLibs): classify the tool to make it able to reuse it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:50 AM Revision a0035eb6 (git): insert assertions for THROW_DATA_* macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:41 AM Revision 7519688e (git): introduce imemo_type_p(v, imemo_type)
* internal.h: introduce imemo_type_p() which checks the given value is
T_IMEMO and imemo_type() == given imemo_type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:26 AM Bug #13409: UDPSocket#send breaks when using sockaddr
On linux I get the following output for the 2nd example:
~~~
Server waiting for packet...
Sending data to #<Addrinfo: [::1]:6778 UDP (localhost)>
-:25:in `send': Address family not supported by protocol - send(2) (Errno::EAFNOSUPPO...
ioquatix (Samuel Williams)
06:08 AM Bug #13409: UDPSocket#send breaks when using sockaddr
[email protected] wrote:
> Here is one that fails with EINVAL:

Thanks for the example. This failure appears OS-specific,
no problems under Linux.
normalperson (Eric Wong)
05:48 AM Bug #13409 (Rejected): UDPSocket#send breaks when using sockaddr
Here is the working example.
~~~ruby
#!/usr/bin/env ruby
require 'socket'
port = 6778
server = UDPSocket.new.tap{|socket| socket.bind("localhost", port)}
client = UDPSocket.new
data = "Matz is nice so we are nice."
t1...
ioquatix (Samuel Williams)
05:49 AM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
@nobu here is the issue https://bugs.ruby-lang.org/issues/13409 for the specific problem mentioned above.
But, if possible, I'd like send_nonblock too :)
ioquatix (Samuel Williams)
02:44 AM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
Please file a new issue. nobu (Nobuyoshi Nakada)
02:17 AM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
Okay.
Here is the working example.
~~~
#!/usr/bin/env ruby
require 'socket'
port = 6778
server = UDPSocket.new.tap{|socket| socket.bind("localhost", port)}
client = UDPSocket.new
data = "Matz is nice so we are nice."
...
ioquatix (Samuel Williams)
01:51 AM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
[email protected] wrote:
> Firstly, `sendmsg` doesn't work for UDP sockets, I get `EINVAL` on Darwin OS.

Can you show us a sample code of what you're trying?

I wonder if it's something that works on Linux but not Darwin
o...
normalperson (Eric Wong)
01:37 AM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
Okay, so I found the issue.
Firstly, `sendmsg` doesn't work for UDP sockets, I get `EINVAL` on Darwin OS.
Secondly, `UDPSocket` overrides `#send` but only in a specific case:
~~~
static VALUE
udp_send(int argc, VALUE *argv, VA...
ioquatix (Samuel Williams)
12:36 AM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
[email protected] wrote:
> I've been playing around with sendmsg_nonblock, but I can't
> see how to make a wrapper around it with the equivalent API to
> send. It seems like it should be possible, but it always
> requires anc...
normalperson (Eric Wong)
12:23 AM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
I've been playing around with sendmsg_nonblock, but I can't see how to make a wrapper around it with the equivalent API to send. It seems like it should be possible, but it always requires ancillary data, can't provide nil? ioquatix (Samuel Williams)
12:03 AM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
Thanks for the quick reply and interesting information.
I think I'd like to see send_nonblock, but I'm not sure if it's implementation is different than sendmsg_nonblock. If it's not different, an alias may be sufficient.
ioquatix (Samuel Williams)
04:31 AM Bug #13405 (Open): IO#close raises "stream closed"
Let me reopen. shyouhei (Shyouhei Urabe)
04:00 AM Revision 5c79f6db (git): fix condition of assert_not_respond_to
* test/lib/test/unit/assertions.rb (assert_not_respond_to): fix
condition to assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:56 AM Revision 495b2a24 (git): assert_not_respond_to private method
* test/lib/test/unit/assertions.rb (assert_not_respond_to): allow
private flag as well as assert_respond_to.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:56 AM Revision 95b5e6d9 (git): * 2017-04-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:56 AM Revision 0cd8d971 (git): assert_respond_to non-private method
* test/lib/test/unit/assertions.rb (assert_respond_to): do not
call super class assert_respond_to when false priv is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/06/2017

08:32 PM Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
[email protected] wrote:
> Bug #13407: We have recv_nonblock but not send_nonblock... can we add it?
> https://bugs.ruby-lang.org/issues/13407

> We have recv_nonblock, read_nonblock, write_nonblock but not BasicSocket#send_n...
normalperson (Eric Wong)
12:26 PM Bug #13407 (Rejected): We have recv_nonblock but not send_nonblock... can we add it?
We have recv_nonblock, read_nonblock, write_nonblock but not BasicSocket#send_nonblock. Is this a mistake? ioquatix (Samuel Williams)
02:40 PM Bug #13408 (Closed): Backport r57359: fix non-IP format `no_proxy`
Please backport r57359 nobu (Nobuyoshi Nakada)
07:30 AM Bug #13405: IO#close raises "stream closed"
matthewd (Matthew Draper) wrote:
> IO#close is supposed to ignore an IOError indicating the stream is already closed.
Sorry, I misread here: `io_close` ignores the exception, but `rb_io_close_m` does not. It seems strange that `IO.pi...
matthewd (Matthew Draper)
03:24 AM Bug #13405: IO#close raises "stream closed"
nobu (Nobuyoshi Nakada) wrote:
> "closed stream" and "stream closed" are different.
I then strongly feel that the exception messages are too cryptic. At least "stream closed"'s message shall include that the exception is something t...
shyouhei (Shyouhei Urabe)
02:21 AM Bug #13405 (Rejected): IO#close raises "stream closed"
"closed stream" and "stream closed" are different.
The former is raised when trying an operation on an IO which has been closed already.
The latter is raised when the IO is closed in an operation by another thread.
nobu (Nobuyoshi Nakada)
01:02 AM Bug #13405: IO#close raises "stream closed"
matthewd (Matthew Draper) wrote:
> IO#close is supposed to ignore an IOError indicating the stream is already closed.
Is it? I can't find a reason behind this (OK, I know the source code is TRYING to behave that way, but not sure if...
shyouhei (Shyouhei Urabe)
06:55 AM Bug #13406 (Rejected): URI.parse
Previously we were using
```
ruby '2.1.9'
rails '4.1.1'
uri = URI.parse("http://" + 'abc.com') # Here, domain name abc.com is provided using single quotation.
```
This was throwing exception as domain name is invalid as it co...
shahkrunalm (Krunal Shah)
04:42 AM Revision 2e84bbd4 (git): internal.h: parenthesize macro argument
* internal.h (THROW_DATA_P): parenthesize the argument which is
casted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:27 AM Bug #13239 (Closed): Bug with "special exceptions" when they are thrown in context of a rescue clause.
matthewd (Matthew Draper) wrote:
> Should this be closed for backporting?
OK, closing.
shyouhei (Shyouhei Urabe)
03:21 AM Feature #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname
Is it difficult to implement our Socket.gethostbyname on top of getaddrinfo(3) ? I see no need to use gethostbyname(3) directly to provide the feature. If that is possible, I think we don't need to deprecate. shyouhei (Shyouhei Urabe)
02:56 AM Bug #13369 (Closed): TracePoint gives incorrect `return_value` after rescuing error when using `return`
Applied in changeset trunk|r58262.
----------
fix TracePoint#return_value with non-local exits
* vm.c: get return_value from imemo_throw_data object (THROW_DATA_VAL()).
imemo_throw_data (TAG_BREAK) contains returned value.
However,...
ko1 (Koichi Sasada)
02:56 AM Revision e2fc01ef (git): fix TracePoint#return_value with non-local exits
* vm.c: get return_value from imemo_throw_data object (THROW_DATA_VAL()).
imemo_throw_data (TAG_BREAK) contains returned value.
However, imemo_throw_data (TAG_BREAK) can skip several frames so that
we need to use it only once (at m...
ko1 (Koichi Sasada)
02:35 AM Bug #13401 (Third Party's Issue): OpenSSL::SSL::SSLSocket :hostname= accessor removed
(Third Party's Issue since new bugs should go to https://github.com/ruby/openssl)
The accessor still exists, as you see, only if the OpenSSL library with which ext/openssl was compiled supports SNI. This has not changed. Setting the s...
rhenium (Kazuki Yamaguchi)
02:33 AM Revision e4262e99 (git): Freeze RbConfig::SIZEOF and RbConfig::LIMITS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:10 AM Revision 489776e2 (git): Rename RbConfig::Limits as RbConfig::LIMITS
* template/limits.c.tmpl (Init_limits): rename RbConfig::Limits as
RbConfig::LIMITS, constants other than class or module are all
uppercase with underscores by convention.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58260 b2dd...
nobu (Nobuyoshi Nakada)
01:47 AM Revision eaaff62e (git): Update library entry for stringio and fiddle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:14 AM Revision 03be4674 (git): * 2017-04-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:14 AM Revision b6b4af0e (git): NEWS: mention Array#append and Array#prepend
[Feature #12746] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)

04/05/2017

08:00 PM Bug #13141: Spurious Net::FTPReplyError
With `debug_mode` on, I see this in my logs:
~~~
D, [2017-04-05T12:55:33.047600 #5076] DEBUG -- : ...downloading archived developerdownloads_26549.esw3cdc_S.201703190000-0300-33.gz
D, [2017-04-05T12:55:34.066636 #5076] DEBUG -- : .....
Phrogz (Gavin Kistner)
07:35 PM Bug #13405 (Closed): IO#close raises "stream closed"

IO#close is supposed to ignore an IOError indicating the stream is already closed.
Since #10153, however, it can raise the `ruby_error_closed_stream` special exception, because that exception's message is ["stream closed"](https://g...
matthewd (Matthew Draper)
06:26 PM Bug #13239: Bug with "special exceptions" when they are thrown in context of a rescue clause.
Should this be closed for backporting? matthewd (Matthew Draper)
04:18 PM Bug #13404 (Rejected): Hash#any? yields arguments to lambdas with proc semantics
```
l = ->(a, b) { true }
# Raises; Uses Enumerable#all?
{1 => 2}.all?(&l)
# Does not raise; Uses specialized Hash#any?
{1 => 2}.any?(&l)
```
The `Enumerable` behavior was changed (correctly) in #12705, but the `Hash#any?` i...
nelhage (Nelson Elhage)
03:43 PM Feature #13133: TracePoint: Add event type for constant access
All good points, thank you. I definitely agree that the implementation is not good. Feel free to close this. I'll see if I can find a better way to accomplish my goals here some other time. burke (Burke Libbey)
07:10 AM Feature #13133: TracePoint: Add event type for constant access
> Enforcing package boundaries is a problem we've been discussing a lot lately at Shopify.
I understand the issue. But your patch and your design needs more consideration.
* Your patch provide a hook only on const cache miss, but t...
ko1 (Koichi Sasada)
01:16 PM Revision 6d77e287 (git): Import psych-3.0.0.beta1 from ruby/psych.
* Removed deprecated code.
* Removed code related syck gem.
* Fixed typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
11:08 AM Feature #13403 (Assigned): Gemify fiddle
fiddle gem is already registered on rubygems.org.
http://rubygems.org/gems/fiddle/versions
I requested to transfer its ownership to fiddle gem owner.
Therefore, I yanked all of a registered gems and shipped current implementation...
hsbt (Hiroshi SHIBATA)
11:04 AM Feature #13403 (Closed): Gemify fiddle
Applied in changeset trunk|r58255.
----------
Added initial gemspec for ruby/fiddle.
[Feature #13403][ruby-core:80577]
hsbt (Hiroshi SHIBATA)
10:35 AM Feature #13403 (Closed): Gemify fiddle
This issue is tracking for gem release of Fiddle module. hsbt (Hiroshi SHIBATA)
11:04 AM Revision 4389ba64 (git): Added initial gemspec for ruby/fiddle.
[Feature #13403][ruby-core:80577]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
08:52 AM Bug #13402 (Closed): [PATCH] fix --with-gmp (broken by r57490)
Applied in changeset trunk|r58254.
----------
fix --with-gmp (broken by r57490)
Looking at the generated shell script (also the autoconf manual), it
seems AC_SEARCH_LIBS() m4 macro does not define HAVE_LIBsomething C
preprocessor macro...
shyouhei (Shyouhei Urabe)
03:29 AM Bug #13402: [PATCH] fix --with-gmp (broken by r57490)
Indeed.
Please commit it.
nobu (Nobuyoshi Nakada)
01:00 AM Bug #13402 (Assigned): [PATCH] fix --with-gmp (broken by r57490)
shyouhei (Shyouhei Urabe)
12:58 AM Bug #13402 (Closed): [PATCH] fix --with-gmp (broken by r57490)
```
From 1ff8c57aee9d777d114a0f961139510ee93dc9c5 Mon Sep 17 00:00:00 2001
From: "Urabe, Shyouhei" <[email protected]>
Date: Wed, 5 Apr 2017 09:56:09 +0900
Subject: [PATCH] fix --with-gmp (broken by r57490)
Looking at the gen...
shyouhei (Shyouhei Urabe)
08:52 AM Revision 77c26ee6 (git): fix --with-gmp (broken by r57490)
Looking at the generated shell script (also the autoconf manual), it
seems AC_SEARCH_LIBS() m4 macro does not define HAVE_LIBsomething C
preprocessor macros, unlike AC_CHECK_LIB() which does define them.
This previous change effectively ...
shyouhei (Shyouhei Urabe)
08:34 AM Revision 42c13d38 (git): compile.c: remove side effects by debug macros
* compile.c (debugp_param): do not evaluate arguments of debug
macros, unless the debug mode is enabled. these macros should
not have side effects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58253 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)
07:20 AM Bug #13399: IPAddr accepts invalid address mask
I've just applied the patch locally. It works as expected.
Thank you.
rtib (Tibor Repasi)
07:07 AM Revision 0be01189 (git): configure.in: HAVE_MALLOC_CONF
* configure.in: define HAVE_MALLOC_CONF when using jemalloc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:31 AM Feature #13362: [PATCH] socket: avoid fcntl for read/write_nonblock on Linux
[email protected] wrote:
> Feature #13362: [PATCH] socket: avoid fcntl for read/write_nonblock on Linux
> https://bugs.ruby-lang.org/issues/13362

Any comment?

Also, this patch avoids the race condition where another thread
...
normalperson (Eric Wong)
03:44 AM Misc #13072: Current state of date standard library
stomar (Marcus Stollsteimer) wrote:
> > date library will be separeted from Ruby repository (stdlib) to date.gem
> ...
Separating repository does not directly mean unbundling.
For instance we recently separated our openssl library t...
shyouhei (Shyouhei Urabe)
02:54 AM Bug #13401 (Assigned): OpenSSL::SSL::SSLSocket :hostname= accessor removed
nobu (Nobuyoshi Nakada)
01:36 AM Revision 18f4cf13 (git): default.mspec: job server
* spec/default.mspec: override MSpecScript#cores by the tokens
from the parent make job server.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:49 AM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
jzakiya (Jabari Zakiya) wrote:
> FYI
> ...
Yes. https://bugs.ruby-lang.org/issues/8796
> Have they been considered/tested in Ruby?
You can try compiling ruby by configure --with-gmp.
> ...
This proposed function is something n...
shyouhei (Shyouhei Urabe)
12:12 AM Revision 733f6496 (git): parse.y: ID for logop
* parse.y (logop): use ID instead of token values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/04/2017

11:49 PM Bug #13401 (Third Party's Issue): OpenSSL::SSL::SSLSocket :hostname= accessor removed
Hello. I've found a small issue, but it is important for security.
Some websites will force you to use SNI. For example "httpbin.org".
~~~ text
openssl s_client -connect httpbin.org:443
~~~
> tlsv1 alert internal error
~~~ te...
puchuu (Andrew Aladjev)
11:42 PM Revision e550fa94 (git): * 2017-04-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:42 PM Revision 6b43aa5f (git): parse.y: use idGE for tGEQ
* parse.y (arg): use ID directly for '>=' operator, without
TOKEN2ID macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:41 PM Feature #13395: Add a method to check for not nil
> ```ruby
> ...
```ruby
unless object.nil?
# Do something
end
```
darix (Marcus Rückert)
05:57 PM Feature #13395: Add a method to check for not nil
What about as a condition for if statements? For example:
Case 1
~~~ ruby
if !object.nil?
# Do something
end
~~~
Case 2
~~~ ruby
if object
# Do something
end
~~~
Case 3
~~~ ruby
if object.not_nil?
# Do s...
ogarci5 (Oliver Garcia)
10:55 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
FYI
Looking at the GNU Multiple Precision Arithmetic Library I see it has functions for
arbitrary size integer squareroot and nth-roots.
Doesn't Ruby already use this library?
Have they been considered/tested in Ruby? Are they be...
jzakiya (Jabari Zakiya)
06:08 PM Feature #13396: Net::HTTP has no write timeout
[email protected] wrote:
> Issue #13396 has been updated by byroot (Jean Boussier).
>
>
> I submitted a pull request to solve this issue: https://github.com/ruby/ruby/pull/1575

Thanks, I think having a write timeout for N...
normalperson (Eric Wong)
09:44 AM Feature #13396: Net::HTTP has no write timeout
I submitted a pull request to solve this issue: https://github.com/ruby/ruby/pull/1575 byroot (Jean Boussier)
03:04 PM Bug #13400 (Rejected): mcontext struct has differently-named members in OS X 10.4
Ruby supports macOS which are still maintained by Apple. naruse (Yui NARUSE)
01:39 PM Bug #13400: mcontext struct has differently-named members in OS X 10.4
OS X 10.4 has been outdated long ago.
I'm not positive to keep supporting such old OSs.
nobu (Nobuyoshi Nakada)
11:52 AM Bug #13400 (Rejected): mcontext struct has differently-named members in OS X 10.4
The `mcontext` struct, used by Ruby in `signal.c` and `vm_dump.c`, has a different structure in OS X 10.4 than it does in later versions.
In OS X 10.5 and later, its members' names all start with a double underscore (`__`); in 10.4, t...
mistydemeo (Misty De Meo)
02:19 PM Revision e3178136 (git): parse.y: share with ripper
* parse.y (rb_parser_trace_lex_state, rb_parser_show_bitstack):
share with ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:13 PM Revision 3672fc84 (git): parse.y: flush debug buffer
* parse.y (rb_parser_trace_lex_state, rb_parser_show_bitstack):
flush debug buffer before traces of lex_state and bitstack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:32 PM Bug #13399 (Assigned): IPAddr accepts invalid address mask
After fixing it, I found that `drb/acl` depends on this behavior.
```diff
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb
index 6f70ebf773..4f87738be1 100644
--- a/lib/ipaddr.rb
+++ b/lib/ipaddr.rb
@@ -422,6 +422,10 @@
rai...
nobu (Nobuyoshi Nakada)
09:31 AM Bug #13399 (Closed): IPAddr accepts invalid address mask
API Class `IPAddr` can be initialised with e.g. '1.2.3.4/255.255.255.1', which is an invalid mask for an IPv4 address, however, `IPAddr.new` won't throw `ArgumentError`, nor `ip.ipv4?` will return `false`.
```ruby
$ cat iptest.rb
re...
rtib (Tibor Repasi)
12:54 PM Revision 70ae0d2a (git): Refactored using Method#owner.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:37 AM Feature #12695: File.expand_path should resolve ~/ using /etc/passwd when HOME is not set
This is a new feature of 2.4. nobu (Nobuyoshi Nakada)
10:56 AM Bug #11430 (Feedback): Redefining a lazy-loaded variable in child context within RSpec spec causes crash
nobu (Nobuyoshi Nakada)
09:22 AM Bug #13375 (Feedback): msfconsole up to date not work with ruby installer rvm version 2.3.3 2.4.0 2.4.1 correctly ruby kali rolling
Thank you for a detailed report. From your report it seems to me that the problematic part starts from machine address [0x7f1b837bd71c], which is inside of pg_ext.so.
```
7f1b837b5000-7f1b837de000 r-xp 00000000 08:01 21496842 /home/...
shyouhei (Shyouhei Urabe)
01:43 AM Misc #13329 (Closed): Creating a German ruby mailinglist on ruby-lang.org?
I created German mailing list and added initial moderators to it list provided by Quintus.
hsbt (Hiroshi SHIBATA)

04/03/2017

10:58 PM Bug #13398 (Closed): segfault: Thread.new(foo, &:bar)
Already fixed bug, try 2.4.1. nobu (Nobuyoshi Nakada)
08:54 PM Bug #13398 (Rejected): segfault: Thread.new(foo, &:bar)
This works:
~~~
⤑ ruby -ve "p Thread.new('abc'){|s| s.reverse}.value" ~/C/opal
ruby 2.4.0p0 (2016-12-24 r...
elia (Elia Schito)
08:10 PM Bug #13397: #object_id should not be signed
Ok, you want to prevent Bignums, but what is the suggested solution here? Do some pack("l").unpack("L") to get the expected value? Or you can provide object_hexid [ [1] ]. Or provide some %p equivalent formatter?
Because I am afraid t...
vo.x (Vit Ondruch)
02:24 PM Bug #13397: #object_id should not be signed
It's not to make `object_id`s Bignum as possible. nobu (Nobuyoshi Nakada)
01:00 PM Bug #13397 (Closed): #object_id should not be signed
It is surprising that #object_id returns signed value. Let me explain show two examples. Working with 32b Ruby (ruby 2.4.0p0 (2016-12-24 revision 57164) [i386-linux]) to make this issue more apparent.
~~~
$ ruby << \EOR
GC.disable
...
vo.x (Vit Ondruch)
07:23 PM Revision 5f22cfcc (git): improve docs for #truncate, #floor, and #ceil methods
* numeric.c: [DOC] improve and harmonize documentation
for {Float,Integer,Numeric}#{truncate,floor,ceil}.
* rational.c: [DOC] ditto for Rational#{truncate,floor,ceil}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58244 b2dd03c8-3...
stomar (Marcus Stollsteimer)
07:19 PM Revision d9e1cfe2 (git): * 2017-04-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:19 PM Revision c76aac30 (git): improve docs for #round methods
* numeric.c: [DOC] improve and harmonize documentation
for {Float,Integer,Numeric}#round.
* rational.c: [DOC] ditto for Rational#round.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
stomar (Marcus Stollsteimer)
05:52 PM Feature #9999: Type Annotations (Static Type Checking)
RDL is interesting, I wonder what the runtime overhead is like?
Another source of inspiration could be Facebook's Flow (https://flow.org/en/docs/getting-started/) for JS. In that case it's build-time type checking, mostly inferred, wi...
burlesona (Andrew Burleson)
02:28 PM Feature #13395: Add a method to check for not nil
Thank you for the correction. nobu (Nobuyoshi Nakada)
02:19 PM Feature #13395: Add a method to check for not nil
nobu (Nobuyoshi Nakada) wrote:
> Hanmac (Hans Mackowiak) wrote:
> ...
are you sure? i am currently on ruby 2.3.3 Windows
~~~ ruby
[1, "bc", nil].count #=> 3
[1, "bc", nil].count(&:itself) #=> 2
~~~
Hanmac (Hans Mackowiak)
12:45 PM Feature #13395: Add a method to check for not nil
Hanmac (Hans Mackowiak) wrote:
> ~~~ ruby
> ...
IIRC, it equals to simple `array.count`.
nobu (Nobuyoshi Nakada)
07:52 AM Feature #13395: Add a method to check for not nil
~~~ ruby
array.count(&:itself)
~~~
does work for something **similar** like that.
its not 100% what you might want, because it does ignore `false` too
Hanmac (Hans Mackowiak)
01:54 AM Feature #13395: Add a method to check for not nil
Any ideas about the name? duerst (Martin Dürst)
01:25 AM Feature #13395: Add a method to check for not nil
Many methods that take a block come in positive-negative pairs, unlike `count`. I am not sure how frequent the use case is, but if it is, I rather claim that there should be a negative version of `count`. sawa (Tsuyoshi Sawada)
12:44 PM Bug #13277: Ruby 2.4.0 gem server 2.6.8
Verified as fixed in [oneclick / rubyinstaller #21](https://github.com/oneclick/rubyinstaller2/issues/21#issuecomment-291074326). Please close. MSP-Greg (Greg L)
12:30 PM Revision b16f9112 (git): Fix arguments order of IO#pwrite
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:32 AM Feature #13396 (Closed): Net::HTTP has no write timeout
When sending a large request to an unresponsive server, `Net::HTTP` can hang pretty much forever.
```ruby
# server.rb
require 'socket'
server = TCPServer.new('localhost', 2345)
loop do
socket = server.accept
end
```
``...
byroot (Jean Boussier)
02:31 AM Feature #12695: File.expand_path should resolve ~/ using /etc/passwd when HOME is not set
Does anyone know if this also fixes the Dir.home value? Currently (in 2.3) that doesn't work when HOME is unset either.
pabs@chianamo ~ $ unset HOME
pabs@chianamo /home/pabs $ ruby -e 'print Dir.home'
-e:1:in `home': cou...
pabs (Paul Wise)
12:10 AM Feature #4532 (Closed): [PATCH] add IO#pread and IO#pwrite methods
Applied in changeset trunk|r58240.
----------
Add IO#pread and IO#pwrite methods
These methods are useful for safe/concurrent file I/O in
multi-thread/process environments and also fairly standard
nowadays especially in systems support...
nobu (Nobuyoshi Nakada)
12:10 AM Revision 8109114b (git): Add IO#pread and IO#pwrite methods
These methods are useful for safe/concurrent file I/O in
multi-thread/process environments and also fairly standard
nowadays especially in systems supporting pthreads.
Based on patches by Avseyev <[email protected]> at
[ruby-core...
nobu (Nobuyoshi Nakada)

04/02/2017

08:22 PM Feature #13355: [PATCH] compile.c: optimize literal String range in case/when dispatch
Eric Wong <[email protected]> wrote:
> * s/iseq_add_mark_object_compile_time/iseq_add_mark_object/
> since the range lifetime is tied to the overall iseq lifetime.

Brrr.. I was wrong the second time :x

iseq_add_mark_object...
normalperson (Eric Wong)
08:16 PM Revision 78ad438f (git): * 2017-04-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:16 PM Revision 6f73c387 (git): compile.c: avoid duplicate mark entry for string literal Range
iseq_add_mark_object is called in iseq_set_sequence later on,
so we only need to call iseq_add_mark_object_compile_time
in iseq_peephole_optimize. Without this change, there would've
been a duplicate entry in the long-lived iseq mark_ar...
Eric Wong
10:00 AM Feature #12063: KeyError#receiver and KeyError#name
I think "name" is more consistent with other exceptions, such as NameError#name and NoMethodError#name (by inheritance). Eregon (Benoit Daloze)
06:23 AM Feature #12063: KeyError#receiver and KeyError#name
Which method name is best?
"**name**" referenced from "**Name**Error".
But I think, "**key**" is also good. Because this is "**Key**Error" method.
The patch on github is using "**key**".
Thanks.
ksss (Yuki Kurihara)
04:53 AM Misc #13329: Creating a German ruby mailinglist on ruby-lang.org?
I had no time to create this list last week. Please wait a few days.
(NOTE; I'm NOT a full time open source developer. )
hsbt (Hiroshi SHIBATA)
03:05 AM Revision ec8e4c6a (git): update configure by prereq [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:14 AM Revision cf6ec79b (git): thread.c: comments on M:N threading [ci skip]
I may experiment with M:N threading in coming months. Often I
find myself yearning for the old 1.8 days when spawning threads
was really cheap for network operations. But I also like to use
native blocking recv_io and accept calls for ...
Eric Wong
 

Also available in: Atom