Project

General

Profile

Activity

From 03/24/2017 to 03/30/2017

03/30/2017

08:38 PM Bug #13390 (Closed): MinGW build test-all SEGV, issue in test framework or error recovery?
Today, while building trunk (64 bit MinGW), I had a 'no output' SEGV during test-all.
I think I've had this before, but I don't recall how recently, 32 or 64, etc.
The problem is in the following test:
File ['test/ruby/test_keyw...
MSP-Greg (Greg L)
05:21 PM Feature #13379: [PATCH] safe IMAP connections
pdahorek@seznam.cz wrote:
> Yes, these APIs are very platform specific. I was just
> checking documentations and existing solutions. Maybe I'll use
> the Resolv api, but I need to check incompatibilities and also
> a performance imp...
normalperson (Eric Wong)
03:21 PM Feature #13379: [PATCH] safe IMAP connections
Yes, these APIs are very platform specific. I was just checking documentations and existing solutions. Maybe I'll use the Resolv api, but I need to check incompatibilities and also a performance impact. ahorek (Pavel Rosický)
02:53 AM Feature #13379: [PATCH] safe IMAP connections
ahorek (Pavel Rosický) wrote:
> Thanks for the review. I've fixed the second case.
Thanks. The additional patches look fine.
> ...
getaddrinfo_a() is glibc specific, so we need alternatives on other platforms such as FreeBSD.
Do...
shugo (Shugo Maeda)
03:20 PM Revision 2446c759 (git): * 2017-03-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:20 PM Revision 44fa00ee (git): localeinit.c: locale_charmap return value
* localeinit.c (locale_charmap): fix the return value to call conv
function instead of encoding index on platforms where locale
information is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58221 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
02:45 PM Bug #13319: GC issues seen with GCC7
Trunk works fine.
ruby-2.3.4 fails even when build with gcc-7 -O3.
octoploid (octoploid octoploid)
10:52 AM Feature #13388 (Assigned): gc.c: Add GC.get_parameters and .set_parameters
hsbt (Hiroshi SHIBATA)
09:39 AM Feature #13383: [PATCH] Module#source_location
shyouhei (Shyouhei Urabe) wrote:
> In modern Ruby, prior to actually requiring a library, its gemspec tends to be loaded. From what I understand, people require foo/version.rb from foo.gemspec, and this is the first time when namespace...
Eregon (Benoit Daloze)
09:26 AM Feature #13383: [PATCH] Module#source_location
In modern Ruby, prior to actually requiring a library, its gemspec tends to be loaded. From what I understand, people require foo/version.rb from foo.gemspec, and this is the first time when namespace foo is opened.
Is this info that...
shyouhei (Shyouhei Urabe)
04:34 AM Feature #13383: [PATCH] Module#source_location
Turning this into a feature ticket. sorah (Sorah Fukumori)
04:33 AM Feature #13383: [PATCH] Module#source_location
it would be happier if we can get all of source locations where a class opened? sorah (Sorah Fukumori)
09:32 AM Bug #12761 (Closed): Ruby 2.3.1 has a bug in `Module#alias` and `Module#alias_method`
Closing. Thank you for confirmation. shyouhei (Shyouhei Urabe)
07:25 AM Revision f88521bb (git): .travis.yml: make tests silent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:16 AM Revision d4581159 (git): .travis.yml: checkout ruby/spec PR
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:04 AM Revision 23e2aac8 (git): git-refresh: rewrite options
* tool/git-refresh: parse options without git-rev-parse, which is
old on travis.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:44 AM Revision c73db5c1 (git): tool/git-refresh
* tool/git-refresh: tool to clone or update git working directory.
* Makefile.in: use git-refresh.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:10 AM Feature #13382: [PATCH] Options for FTP PORT command
shugo (Shugo Maeda) wrote:
> FTPClient of Apache Commons seems to have setActivePortRange() and setActiveExternalIPAddress().
> ...
I found setReportActiveExternalIPAddress().
https://commons.apache.org/proper/commons-net/apidocs/or...
shugo (Shugo Maeda)
04:47 AM Feature #13382: [PATCH] Options for FTP PORT command
osa (Shunsuke OSA) wrote:
> > The default mode of Net::FTP is now passive, but do you really need the active mode?
> ...
Understood.
> > Do you know any FTP client implementation which provides similar options?
> ...
FTPClient of A...
shugo (Shugo Maeda)
04:41 AM Feature #12589: VM performance improvement proposal
Hi Matthew,

> https://developer.ibm.com/open/2017/03/01/ruby-omr-jit-compiler-whats-next/

I was reading your article, and I would like to say that what you
present there is just fantastic in my point of view.
Why fantastic? Beca...
subtileos (Daniel Ferreira)
03:12 AM Feature #12589: VM performance improvement proposal
Sorry, Matthew. I can not find your message on
https://bugs.ruby-lang.org/issues/12589. So I am sending this message
through email.

On 03/29/2017 04:36 PM, Matthew Gaudet wrote:
> Hi Vladimir,
>
> First and foremost, let me ...
vmakarov (Vladimir Makarov)
02:29 AM Feature #13173: Gemify webrick
Created https://github.com/ruby/webrick .
But https://rubygems.org/gems/webrick was reserved now. I will release/update webrick gem later.
hsbt (Hiroshi SHIBATA)

03/29/2017

08:44 PM Feature #13379: [PATCH] safe IMAP connections
Thanks for the review. I've fixed the second case.
The only blocker is getaddrinfo now. It's a lowlevel system api that always blocks. I'll take a look if I can rewrite the ruby api to use getaddrinfo_a or getaddrinfo_ex (no thread is...
ahorek (Pavel Rosický)
02:33 AM Feature #13379: [PATCH] safe IMAP connections
ahorek (Pavel Rosický) wrote:
> Hi,
> ...
Thanks for the patch, but it doesn't seem enough because:
1. The :connect_timeout option of Socket.tcp doesn't work when DNS lookups by getaddrinfo block.
A new thread by Timeout.timeout...
shugo (Shugo Maeda)
07:50 PM Feature #13389 (Closed): [PATCH] POP3 support timeout for TLS handshake
Already applied fix for SMTP and HTTP
https://bugs.ruby-lang.org/issues/12678
The same fix for IMAP is here
https://bugs.ruby-lang.org/issues/13379
MR
https://github.com/ruby/ruby/pull/1573
ahorek (Pavel Rosický)
07:12 PM Revision a8425965 (git): * 2017-03-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:12 PM Revision 46eed7b8 (git): methods.rdoc: small improvements
* doc/syntax/methods.rdoc: [DOC] small improvements: fix some typos,
grammar, punctuation, consistently use capitalized "Ruby".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
stomar (Marcus Stollsteimer)
06:46 PM Bug #13155: Segfault testing Pry
Will see as soon as 2.4.1 lands in Fedora. Will keep an eye on this. vo.x (Vit Ondruch)
06:23 AM Bug #13155 (Feedback): Segfault testing Pry
I couldn't reproduce with 2.4.1 and trunk. Maybe it got a fix after 2.4.0 release. sorah (Sorah Fukumori)
05:06 PM Feature #12589: VM performance improvement proposal
subtileos (Daniel Ferreira) wrote:
> Hi Vladimir,
> ...
You are welcomed.
> That README is priceless.
> ...
My approach to JIT is not traditional. I believe that implementing JIT in MRI should be more evolutional to be successf...
vmakarov (Vladimir Makarov)
04:32 AM Feature #12589: VM performance improvement proposal
Hi Vladimir,


On Tue, Mar 28, 2017 at 4:26 AM, <vmakarov@redhat.com> wrote:

> You can find the code on
> https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch. Please, read
> file README.md about the project first.
>

T...
subtileos (Daniel Ferreira)
04:12 AM Feature #12589: VM performance improvement proposal
> I think I've reached a state of the project to make its current
> code public. Most of the infrastructure for RTL insns and JIT has
> been implemented.

Hi Vladimir,

Thank you very much for this post.
That README is pricele...
subtileos (Daniel Ferreira)
04:35 PM Feature #13166: Feature Request: Byte Arrays for Ruby 3
Crystal allows you to create byte-arrays as below:
```
byte_array = [] of Int8
```
jzakiya (Jabari Zakiya)
04:21 PM Feature #13166: Feature Request: Byte Arrays for Ruby 3
This is a comparison of real code I have in a gem that is optimized for CRuby and JRuby.
JRuby allows you to use Java byte-arrays, which is both more memory efficient than the
CRuby version (I can create bigger arrays), but its much, m...
jzakiya (Jabari Zakiya)
03:00 PM Revision 0ad16855 (git): * hash.c (any_hash): fix CI failure on L32LLP64 architecture.
The patch was provided by usa. [ruby-core:80484] [Bug #13376]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:59 PM Bug #8894 (Closed): Fixnum#quo returns wrong result when given a float
marcandre (Marc-Andre Lafortune)
06:51 AM Bug #8894 (Feedback): Fixnum#quo returns wrong result when given a float
sorah (Sorah Fukumori)
06:06 AM Bug #8894: Fixnum#quo returns wrong result when given a float
This problem seems to be solved already since I tried this by ruby 2.2 and didn't have any problem.
So we can close this issue.
▼ Result by ruby 2.2
```
2.quo(2.0) # => 1.0
```
```
Rational(6) / 2.0 # => 3.0
```
samu0101 (tatsuro yasukawa)
02:59 PM Bug #13376: Symbol#hash is deterministic on 2.3
Thank you usa-san. I'll merge your patch soon.
I'd like to make v2_3_4 tag after confirming the result of CI on vc12-x64.
nagachika (Tomoyuki Chikanaga)
02:35 PM Bug #13376: Symbol#hash is deterministic on 2.3
I've fixed it.
nagachika-san, please apply this patch:
```diff
Index: hash.c
===================================================================
--- hash.c (revision 58210)
+++ hash.c (working copy)
@@ -168,7 +168,7 @@ any_hash(...
usa (Usaku NAKAMURA)
02:27 PM Bug #13376: Symbol#hash is deterministic on 2.3
nobu (Nobuyoshi Nakada) wrote:
> Accepting huge requests which could exhaust memory with too may symbols *at once* would be rarely possible in 2.3.
CVE-2011-4815 is about hash collisions, which indeed seems possible if a user can con...
Eregon (Benoit Daloze)
02:21 PM Bug #13376: Symbol#hash is deterministic on 2.3
Accepting huge requests which could exhaust memory with too may symbols *at once* would be rarely possible in 2.3. nobu (Nobuyoshi Nakada)
02:09 PM Bug #13376: Symbol#hash is deterministic on 2.3
should this receive a new CVE?
should this released be soon as 2.3.4?
darix (Marcus Rückert)
02:44 PM Feature #13382: [PATCH] Options for FTP PORT command
> The default mode of Net::FTP is now passive, but do you really need the active mode?
In the real world, sometimes we have to connect FTP servers without passive mode support. But modern server environment such as clouds like AWS EC2...
osa (Shunsuke OSA)
09:24 AM Feature #13382: [PATCH] Options for FTP PORT command
osa (Shunsuke OSA) wrote:
> # Real use cases
> ...
The default mode of Net::FTP is now passive, but do you really need the active mode?
Do you know any FTP client implementation which provides similar options?
Python's ftplib doesn...
shugo (Shugo Maeda)
08:36 AM Feature #13382 (Rejected): [PATCH] Options for FTP PORT command
# Abstract
Add options to Net::FTP to set data listening host and port.
# Background
Net::FTP sends local address and default port to remote FTP server.
In FTP active mode, remote server will connect to client to establish data...
osa (Shunsuke OSA)
02:16 PM Bug #13331 (Assigned): Inconsistent conversion of Float into Decimal
Continue this in https://github.com/ruby/bigdecimal/issues/70 mrkn (Kenta Murata)
01:50 PM Bug #13348: win32/README.win32 のアイコンがリンク切れ
takanabe (Takayuki Watanabe) wrote:
> こちらのリンク切れURLについてドキュメントの修正を送りたいのですが最新のURL候補等はございますか。
とりあえず Internet Archive に残っているのは確認しているのですが、
正式な移転先などがあればその方が良いかと思っているのですが、
誰か知らないでしょうか?
https://web-beta.archive.org/web/20161102044442/htt...
znz (Kazuhiro NISHIYAMA)
05:51 AM Bug #13348: win32/README.win32 のアイコンがリンク切れ
こちらのリンク切れURLについてドキュメントの修正を送りたいのですが最新のURL候補等はございますか。 takanabe (Takayuki Watanabe)
12:48 PM Bug #12684: Delegator#eql? missing
Seems fine. nobu (Nobuyoshi Nakada)
09:04 AM Bug #12684: Delegator#eql? missing
I fixed this issue and I added the specs.
Could you check it?
https://github.com/ruby/ruby/pull/1564
https://github.com/ruby/spec/pull/399
giginet (Kohki Miki)
11:49 AM Revision e294fbaf (git): Fix two typos
My typo checker :-) found the bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
11:34 AM Bug #13387 (Closed): [PATCH]Add parenthesis to fix compile warning to string.c
Applied in changeset trunk|r58211.
----------
string.c: Supress logical-op-parentheses warning
* string.c(rb_str_upcase_bang): Supress logical-op-parentheses warning
Patch by Fukuo Kadota <fukuo-kadota@cookpad.com>,
Closes [GH-1570...
sorah (Sorah Fukumori)
09:47 AM Bug #13387 (Closed): [PATCH]Add parenthesis to fix compile warning to string.c
When editing string.c and execute `make run`, below warnings showed.
```
$ make run
../ruby/string.c:6142:41: warning: '&&' within '||' [-Wlogical-op-parentheses]
...(flags&ONIGENC_CASE_ASCII_ONLY) && (enc==rb_utf8_encoding() || ...
litmon (Fukuo Kadota)
11:33 AM Revision 31a755e4 (git): string.c: Supress logical-op-parentheses warning
* string.c(rb_str_upcase_bang): Supress logical-op-parentheses warning
Patch by Fukuo Kadota <fukuo-kadota@cookpad.com>,
Closes [GH-1570] [Bug #13387].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58211 b2dd03c8-39d4-4d8f-98ff-...
sorah (Sorah Fukumori)
10:52 AM Bug #13367 (Assigned): Fix issue for MinGW / MSYS2 builds and testing
hsbt (Hiroshi SHIBATA)
10:11 AM Bug #13312: String#casecmp raises TypeError instead of returning nil
I agree this is not expecting behavior. then I made a patch for this.
Added test codes below.
```diff
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index 7dbf27e..3b72d25 100644
--- a/test/ruby/test_string.rb
+...
Anonymous
10:03 AM Feature #13388 (Rejected): gc.c: Add GC.get_parameters and .set_parameters
These methods are for inspecting and modifying MRI's GC parameters. It may be
useful for realtime parameter tuning with GC.stat, user requests and so on.
This work is done by Tomohiro Moro (@slightair) and me (@makimoto).
GH issue...
makimoto (Shimpei Makimoto)
10:02 AM Feature #12410 (Rejected): Process.uid= validation and casting
As follows, it looks because BSD id(1) handles the uid argument as 32bit integer.
(Note that GNU coreutils' id(1) doesn't allow negative argument)
```sh
% id -un -- -4294967296
root
```
Therefore this behavior is considered as un...
naruse (Yui NARUSE)
09:41 AM Feature #12410: Process.uid= validation and casting
Changing this ticket into a feature request because this request wants adding a new behavior into a existing method. sorah (Sorah Fukumori)
09:31 AM Feature #12410: Process.uid= validation and casting
Wrote a patch for this ticket: https://github.com/ruby/ruby/pull/1568
It validates the argument for `Process#.uid=` using getpwuid.
mirakui (Issei Naruta)
09:55 AM Bug #11638: [doc] misleading IO.write offset description
Yes. When we use appending mode without offset, the file is not truncated.
Truncating files are occurred in write mode only. So it seems that we should just add the behaviour in write mode rather than adding behaviour in append mode.
...
takanabe (Takayuki Watanabe)
09:54 AM Bug #13231: DateTime.strftime("%Z") does not return time zone abbreviation, returns hour and minute offset from UTC with colon
DateTime wrongly calls timezone offset as "timezone".
It is considered as a documentation issue at this time.
naruse (Yui NARUSE)
09:07 AM Bug #13231: DateTime.strftime("%Z") does not return time zone abbreviation, returns hour and minute offset from UTC with colon
I think it contains a deep problem.
```sh
$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
$ irb
irb(main):001:0> require 'date'
=> true
irb(main):002:0> Time.now.strftime('%Z')
=> "JST"
irb(main):003:0> ...
natan3 (尚美 日高)
09:52 AM Bug #13369: TracePoint gives incorrect `return_value` after rescuing error when using `return`
By some investigations, it turned out to be caused by the result value passed in `hook_before_rewind` method .
The return value would be as expected by the batch, but it would fail in some tests.
ayemos (Yuichiro Someya)
09:47 AM Bug #8916 (Closed): rb_sprintf への精度指定が正しく機能していない
Applied in changeset trunk|r58210.
----------
vsnprintf.c: prefix with precision
* vsnprintf.c (BSD_vfprintf): sign and hex-prefix should not be
counted in precision. [ruby-dev:47714] [Bug #8916]
nobu (Nobuyoshi Nakada)
09:47 AM Revision 7e1c65dc (git): vsnprintf.c: prefix with precision
* vsnprintf.c (BSD_vfprintf): sign and hex-prefix should not be
counted in precision. [ruby-dev:47714] [Bug #8916]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:47 AM Revision 85f3636e (git): test_minitest_unit.rb: assert_triggered
* test/minitest/test_minitest_unit.rb (assert_triggered): rename
to be hidden in backtraces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:31 AM Bug #13386 (Closed): Improve Process::CLOCK_* RDoc
Applied in changeset trunk|r58208.
----------
Add documents on Process::CLOCK_* constants
* process.c: Add documents on Process::CLOCK_* constants.
Patch by Sunao Komuro <sunao-komuro@cookpad.com>.
Closes [GH-1567] [Bug #13386]
sorah (Sorah Fukumori)
09:24 AM Bug #13386 (Closed): Improve Process::CLOCK_* RDoc
## Summary
`Process::CLOCK_*` has no RDoc comment.
https://docs.ruby-lang.org/en/trunk/Process.html
## Improvement
https://github.com/ruby/ruby/pull/1567 add `Process::CLOCK_*` description RDoc.
hogelog (Sunao Komuro)
09:31 AM Revision af4b7c8e (git): Add documents on Process::CLOCK_* constants
* process.c: Add documents on Process::CLOCK_* constants.
Patch by Sunao Komuro <sunao-komuro@cookpad.com>.
Closes [GH-1567] [Bug #13386]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
09:30 AM Bug #13101: Date#rfc2822 and Time#rfc2822 don't return the same format
RFC 2822 says the date part should be 1 or 2 digits.
So current behavior doesn't violate the specification but I think it is more natural to adjust format.
ref. http://www.ietf.org/rfc/rfc2822.txt
mozamimy (Moza USANE)
09:25 AM Bug #13101: Date#rfc2822 and Time#rfc2822 don't return the same format
I created a patch to solve this issue in https://github.com/ruby/ruby/pull/1566
I want committers to merge this patch if it's acceptable :)
mozamimy (Moza USANE)
09:24 AM Bug #13384 (Closed): [PATCH] Fix `make clean` errors
Applied in changeset trunk|r58207.
----------
Fix `make clean` errors
Patch by Kohei Suzuki <eagletmt@gmail.com>.
* common.mk(clean-rubyspec): Supress error messages when rubyspec files
don't exist. [GH-1563] [Bug #13384]
* Makefil...
sorah (Sorah Fukumori)
09:11 AM Bug #13384 (Closed): [PATCH] Fix `make clean` errors
https://github.com/ruby/ruby/pull/1563
- Fix error when running `make clean` just after `configure`
- Suppress error message when rubyspec files isn't present
## Before
```
% mkdir build1
% cd build1
% ../configure
% make c...
eagletmt (Kohei Suzuki)
09:24 AM Revision 22543551 (git): Fix `make clean` errors
Patch by Kohei Suzuki <eagletmt@gmail.com>.
* common.mk(clean-rubyspec): Supress error messages when rubyspec files
don't exist. [GH-1563] [Bug #13384]
* Makefile.in: Fix error when files don't exist. [GH-1563] [Bug #13384]
git-svn-...
sorah (Sorah Fukumori)
09:19 AM Feature #13383: [PATCH] Module#source_location
Modules/classes can be opened again.
Your patch seems returning the last location instead of the first, is it intentional?
As for the implementation, it's not nice to keep iseq.
It would be better to save them in (hidden) instance v...
nobu (Nobuyoshi Nakada)
08:51 AM Feature #13383 (Rejected): [PATCH] Module#source_location
# Abstract
It can inspect where the module or class is defined.
# Background
In debugging or development an application, I usually want to find out where the class definition of using library.
There is Method#source_location bu...
koba789 (Hidekazu Kobayashi)
09:17 AM Feature #13385 (Assigned): [PATCH] Make Resolv::DNS::Name validation similar to host and dig commands
# Abstract
Add validations similar to **host** and **dig** commands to `Resolv::DNS::Name.create`
# Background
`Resolv::DNS::Name.create(str)` does not make any domain name validation.
So it returns false positive results for queri...
pavel.mikhailyuk@gmail.com (Pavel Mikhailyuk)
09:13 AM Bug #12235: URI.encode issue with square brackets
similar issue: https://bugs.ruby-lang.org/issues/9806 litmon (Fukuo Kadota)
08:28 AM Bug #13003 (Closed): About not Random instance of random: keyword ardument of Array#shuffle!
This bug is already fixed, close. aamine (Minero Aoki)
08:13 AM Bug #13315: Single "%" at the end of `printf` format string appears in the result
Matz, is this intentional? sorah (Sorah Fukumori)
07:47 AM Bug #13315: Single "%" at the end of `printf` format string appears in the result
I believe this is not intentional, so created a pull-request on GitHub.
https://github.com/ruby/ruby/pull/1560
This change makes ruby raise error for `printf("%")` though C just shows warning because this change will drop displayed "...
morishin (Shintaro Morikawa)
07:45 AM Bug #12761: Ruby 2.3.1 has a bug in `Module#alias` and `Module#alias_method`
This is resolved version ruby-2.4.1. litmon (Fukuo Kadota)
07:33 AM Bug #11430: Redefining a lazy-loaded variable in child context within RSpec spec causes crash
I believe this is related to an incorrect use of RSpec's `let`, and has nothing to do with Ruby. (=> **not a bug** here?)
When you write `let(:my_hash) { my_hash.merge!(key_two: 'val_two') }`, you **override** `:my_hash` in that local...
dstosik (David Stosik)
07:13 AM Bug #13106: Timeout does not wait for more than 120 seconds
**I think this is not a bug.**
It looks like you are catching the `Timeout::Error` raised by `Net::HTTP.get_response`.
Here is a sample code to illustrate this:
~~~ ruby
require 'timeout'
require 'benchmark'
require 'net/http...
dstosik (David Stosik)
07:08 AM Bug #12176 (Closed): method equality of aliased methods breakage on 2.3
Confirmed fixed. cf #11964 shyouhei (Shyouhei Urabe)
06:32 AM Feature #13381: [PATCH] Expose rb_fstring and its family to C extensions
OK, I've read comments of #13077.
What do you think of renaming fstring to "deduped" string? "Deduped" strings are implicitly frozen.
- Rename `rb_fstring` to `rb_str_deduped`
- Rename `rb_fstring_new` to `rb_str_deduped_new`
- R...
eagletmt (Kohei Suzuki)
05:36 AM Feature #13381 (Feedback): [PATCH] Expose rb_fstring and its family to C extensions
I can understand use cases but we shouldn't expose the name "fstring".
ko1 (Koichi Sasada)
05:29 AM Feature #13381 (Closed): [PATCH] Expose rb_fstring and its family to C extensions
https://github.com/ruby/ruby/pull/1559
Currently, C extensions cannot use fstrings. I'd like to use
`rb_fstring_cstr` instead of `rb_str_new_cstr` for static strings in C
extensions to avoid excess allocation.
I think there's sev...
eagletmt (Kohei Suzuki)
05:54 AM Revision b6639a84 (git): parse.y: dot_or_colon
* parse.y (dot_or_colon): use the default action without type
casts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:33 AM Bug #13380 (Closed): [PATCH] Remove unused Init_frozen_strings declaration
Committed at r58205 sorah (Sorah Fukumori)
03:48 AM Bug #13380 (Closed): [PATCH] Remove unused Init_frozen_strings declaration
https://github.com/ruby/ruby/pull/1558
Init_frozen_strings definition is removed in r51511.
https://bugs.ruby-lang.org/issues/11423
eagletmt (Kohei Suzuki)
04:32 AM Revision 7dab0e07 (git): Remove unused Init_frozen_strings declaration
Init_frozen_strings definition is removed in r51511.
https://bugs.ruby-lang.org/issues/11423
Patch by Kohei Suzuki <eagletmt@gmail.com>
* internal.h: Remove declaration of unexist function
[Fix GH-1558]
git-svn-id: svn+ssh://ci.ruby...
sorah (Sorah Fukumori)
03:00 AM Revision 205ae267 (git): test_symbol.rb: switch to assert_not_equal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:37 AM Bug #13358 (Assigned): OpenStruct overriding allocate
OK, although I still think it is too artificial example, nobody would mind a little change of the `OpenStruct` performance. nobu (Nobuyoshi Nakada)
12:52 AM Bug #13377 (Feedback): Crash while running tests
2.1.0p0 is outdated, try 2.1.9.
2.1 will end the life soon, though.
nobu (Nobuyoshi Nakada)

03/28/2017

10:50 PM Feature #13379 (Closed): [PATCH] safe IMAP connections
Hi,
I found out that using the standard IMAP library isn't very safe. It can be forced to hang the whole application.
the problem is here
```
s = @sock.gets(CRLF)
```
-> the server accepted the connection but it didn't send any d...
ahorek (Pavel Rosický)
09:31 PM Bug #13376: Symbol#hash is deterministic on 2.3
Thank you Chris for your report. And thank you Eric creating a patch for ruby_2_3!
I backported r58200 with Eric's patch into ruby_2_3 branch at r58203.
nagachika (Tomoyuki Chikanaga)
06:02 PM Bug #13376: Symbol#hash is deterministic on 2.3
For information, https://github.com/ruby/spec/pull/393 is adding such tests in ruby/spec
for Object, Integer, Float, String, Symbol, Array and Hash.
That's how the bug was discovered.
Eregon (Benoit Daloze)
05:22 PM Bug #13376: Symbol#hash is deterministic on 2.3
I also committed r58200 to trunk to prevent us from hitting
this, again. We should ensure other classes don't suffer this
fate, too, will check other cases later (or if other people send
patches).

/me goes back to hibernation
normalperson (Eric Wong)
05:14 PM Bug #13376 (Closed): Symbol#hash is deterministic on 2.3
Applied in changeset trunk|r58200.
----------
test/ruby/test_symbol.rb: new test for nondeterminism
We need to ensure hashes for static symbols remain
non-deterministic to avoid DoS attacks. This is currently the
case since 2.4+, but...
Anonymous
05:00 PM Bug #13376: Symbol#hash is deterministic on 2.3
Here is a 2.3-only patch.
normalperson (Eric Wong)
04:36 PM Bug #13376: Symbol#hash is deterministic on 2.3
chris@chrisseaton.com wrote:
> Bug #13376: Symbol#hash is deterministic on 2.3
> https://bugs.ruby-lang.org/issues/13376

I think I broke this in:

commit 14470aa6dbf4d99bc8e0484e1334c2c6d5e68fc3 / r51582
("hash.c: improve intege...
normalperson (Eric Wong)
04:00 PM Bug #13376 (Closed): Symbol#hash is deterministic on 2.3
I believe the Symbol#hash should probably be non-deterministic, due to CVE-2011-4815. That seems to be the behaviour on 2.2 and 2.4, but not on 2.3. Was this a conscious decision at the time? Or is it a bug?
~~~
$ 2.2.6/bin/ruby -e '...
chrisseaton (Chris Seaton)
09:29 PM Revision 4634c34d (git): merge revision(s) 58200: [Backport #13376]
* hash.c (any_hash): fix Symbol#hash to be nondeterministic.
The patch was provided by Eric Wong. [ruby-core:80433] [Bug #13376]
test/ruby/test_symbol.rb: new test for nondeterminism
We need to ensure hashes f...
nagachika (Tomoyuki Chikanaga)
08:31 PM Feature #13378: Eliminate 4 of 8 syscalls when requiring file by absolute path
Ah, I was too hasty with the rebase from my 2.3.3 branch. I've attached a fixed patch. Note also that trunk has already eliminated the double-fstat, so this only reduces the number of syscalls when a feature is specified by absolute path... burke (Burke Libbey)
07:46 PM Feature #13378 (Assigned): Eliminate 4 of 8 syscalls when requiring file by absolute path
Don't open file twice when specified by absolute path.
When invoking `require '/a.rb'` (i.e. via an absolute path), ruby generates this sequence of syscalls:
open /a.rb
fstat64 /a.rb
close /a.rb
open /a.r...
burke (Burke Libbey)
07:37 PM Bug #13377 (Closed): Crash while running tests
Mac OSX El Capitan - 10.11.6
To resolve a security issue, I had to update nokogiri from 1.6.8 to 1.7.1, which also forced me to update Ruby from 2.0 to 2.1. I ran into minor issue with Nokogiri which I fixed.
When I ran tests, It ...
Anonymous
05:14 PM Revision 8234c571 (git): * 2017-03-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:14 PM Revision 149d43d4 (git): test/ruby/test_symbol.rb: new test for nondeterminism
We need to ensure hashes for static symbols remain
non-deterministic to avoid DoS attacks. This is currently the
case since 2.4+, but was not for the 2.3 series.
* test/ruby/test_symbol.rb (test_hash_nondeterministic): new test
[rub...
Eric Wong
04:55 PM Misc #13329: Creating a German ruby mailinglist on ruby-lang.org?
> I'm ok to create German mailing list on ruby-lang.org.
Great! Thank you very much!
> ...
I have just sent you a list of the current moderators of the German Ruby forum with email addresses. These people should receive configurat...
Quintus (Marvin Gülker)
12:33 AM Misc #13329 (Assigned): Creating a German ruby mailinglist on ruby-lang.org?
Hello, I'm one of administrators of ruby-lang.org.
I'm ok to create German mailing list on ruby-lang.org.
Can you give the address list for initial members?
Please send it to hsbt at ruby-lang.org
hsbt (Hiroshi SHIBATA)
04:46 PM Revision 3220ce6b (git): * version.h: bump to 2.2.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
01:47 PM Revision f19fac1d (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:47 PM Revision 3439cc85 (git): Update assertion message [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:21 AM Revision a20715c8 (git): ostruct.rb: refine visibility failure message
* lib/ostruct.rb (method_missing): raise an exception with proper
visibility message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:09 AM Feature #13261: Gemify sdbm
Created https://github.com/ruby/sdbm and https://rubygems.org/gems/sdbm. hsbt (Hiroshi SHIBATA)
09:01 AM Bug #13375: msfconsole up to date not work with ruby installer rvm version 2.3.3 2.4.0 2.4.1 correctly ruby kali rolling
./msfconsole /home/fakessh/.rvm/gems/ruby-2.4.1/gems/bit-struct-0.15.0/lib/bit-struct.rb:3: warning: constant ::Fixnum is deprecated
/home/fakessh/.rvm/gems/ruby-2.4.1/gems/activerecord-4.2.8/lib/active_record/connection_adapters/postgr...
lacrouteserge (serge lacroute)
08:58 AM Bug #13375 (Third Party's Issue): msfconsole up to date not work with ruby installer rvm version 2.3.3 2.4.0 2.4.1 correctly ruby kali rolling
./msfconsole /home/fakessh/.rvm/gems/ruby-2.4.1/gems/bit-struct-0.15.0/lib/bit-struct.rb:3: warning: constant ::Fixnum is deprecated
/home/fakessh/.rvm/gems/ruby-2.4.1/gems/activerecord-4.2.8/lib/active_record/connection_adapters/postgr...
lacrouteserge (serge lacroute)
08:47 AM Bug #13358: OpenStruct overriding allocate
nobu (Nobuyoshi Nakada) wrote:
> No merit.
Beyond the reasons above, is there no merit for such a small and localized patch?
I thought that was quite valued in MRI.
Eregon (Benoit Daloze)
08:40 AM Bug #13358: OpenStruct overriding allocate
nobu (Nobuyoshi Nakada) wrote:
> Eregon (Benoit Daloze) wrote:
> ...
No, `OpenStruct#respond_to?` does not:
```ruby
p Class.instance_method(:allocate).bind(OpenStruct).call.respond_to?(:foo) # or rb_obj_alloc() in C
```
Trunk:
...
Eregon (Benoit Daloze)
05:44 AM Bug #13358: OpenStruct overriding allocate
Eregon (Benoit Daloze) wrote:
> But my main issue with this fix is it only addresses a specific use-case and not the general issue:
> ...
I can't get your point.
`OpenStruct#respond_to?` works as others, and `OpenStruct#respond_to_mis...
nobu (Nobuyoshi Nakada)
08:31 AM Feature #13374 (Open): Fix one of performance regressions in method calling
Seems that LIKELY() introduces some penalties at branching.
### Ruby 2.4.1
~~~
$ ruby -v ~/tmp/bench.rb
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
user system total real
1.460000 0.01...
watson1978 (Shizuo Fujita)
06:40 AM Bug #13361: Can't build Ruby trunk with i386 arch on macOS 10.12
ruby_2_2 r58193 merged revision(s) 58084. usa (Usaku NAKAMURA)
06:40 AM Revision b2638c9f (git): merge revision(s) 58084: [Backport #13361]
configure.in: syscall is deprecated on macOS
* configure.in: syscall is no longer supported on macOS since
10.12. [ruby-core:80300] [Bug #13361]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58193 b2d...
U.Nakamura
05:58 AM Bug #13372 (Feedback): File class is not able to identify EOL for file text using CR character .
nobu (Nobuyoshi Nakada)
04:29 AM Bug #13372: File class is not able to identify EOL for file text using CR character .
Hello.
saul.rosales.b (Saul Rosales) wrote:
> Hello I am Ruby developer for qualcomm company we were creating a upload feature that is gathering text files for source code or configuraiton files from whatever platform they are writte...
shyouhei (Shyouhei Urabe)
04:07 AM Bug #13372 (Closed): File class is not able to identify EOL for file text using CR character .
Hello I am Ruby developer for qualcomm company we were creating a upload feature that is gathering text files for source code or configuraiton files from whatever platform they are written, as Windows, Mac OS all versions, Linux all vers... saul.rosales.b (Saul Rosales)
05:50 AM Bug #13371 (Rejected): Syntax Error with regex when parens are omitted
It's unable to tell that slash is a part of a regexp.
nobu (Nobuyoshi Nakada)
04:41 AM Bug #13371: Syntax Error with regex when parens are omitted
I don't have any first-hand knowledge, but my guess is that a / followed by a space is always interpreted as a division operator, because that's the most likely result that can be obtained without looking ahead more than one character. I... duerst (Martin Dürst)
02:06 AM Bug #13371: Syntax Error with regex when parens are omitted
ndn (Nikola Nenkov) wrote:
> Yes, but it was more of a question if it's a bug or not. Like should I use `%r//` when omitting parens as a principle? If yes - I would submit a PR in Rubocop and so on.
I can't say for sure from memory b...
shyouhei (Shyouhei Urabe)
04:21 AM Feature #12589: VM performance improvement proposal
vmakarov@redhat.com wrote:
> I think I've reached a state of the project to make its current
> code public. Most of the infrastructure for RTL insns and JIT has
> been implemented.

Thank you for the update! I was just rereadin...
normalperson (Eric Wong)
03:26 AM Feature #12589: VM performance improvement proposal
I think I've reached a state of the project to make its current
code public. Most of the infrastructure for RTL insns and JIT has
been implemented.
Although I did a lot of performance experiments to choose the
current approach...
vmakarov (Vladimir Makarov)
04:21 AM Bug #13373 (Closed): FileUtils methods for copy, move and remove directories is not providing a decent error trace for letting know if it was success or fail
Hello Guys
I found trying to create a simple logic for copying, renaming and removing big directories (form 1 to 4 GB size) on Ubuntu Linux, that the FileUtils Module, it is not able to provide a good error or exception mechanism, to ...
saul.rosales.b (Saul Rosales)
02:30 AM Revision 50d6291d (git): numeric.c: improves Integer#round rdoc [ci skip]
* numeric.c (int_round): [DOC] improves Integer#round documentation
as well as Float#round.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:15 AM Revision ad5be359 (git): * 2017-03-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:15 AM Revision e014c8c4 (git): numeric.c: improves Float#round rdoc [ci skip]
* numeric.c (flo_round): [DOC] improves Float#round documentation
to better highlight the half keyword. [Fix GH-1541]
Author: Evan Brodie <brodie.evan@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58190 b2dd03c8-39...
nobu (Nobuyoshi Nakada)

03/27/2017

10:31 PM Bug #13112: io/console io.winsize=[rows,cols] throws TypeError: no implicit conversion of false into Integer
ruby_2_3 r58189 merged revision(s) 57289. nagachika (Tomoyuki Chikanaga)
02:35 PM Bug #13112: io/console io.winsize=[rows,cols] throws TypeError: no implicit conversion of false into Integer
ruby_2_3 r58151 merged revision(s) 57280,57282. nagachika (Tomoyuki Chikanaga)
10:31 PM Revision 5264f6d8 (git): merge revision(s) 57289: [Backport #13112]
test_io_console.rb: fix of old CentOS5
* test/io/console/test_io_console.rb (test_winsize): on old CentOS5
window size seems unable to be set across a pty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3...
nagachika (Tomoyuki Chikanaga)
09:05 PM Bug #7097: Thread locals don't work inside Enumerator
I feel like the solution that was reached here is confusing. I feel like the correct outcome would have been
Thread#[] and Thread#[]= are what thread_variable_set and thread_variable_get do.
Fiber#[] and Fiber#[]= are what Thread#[]...
ioquatix (Samuel Williams)
07:03 PM Feature #13355: [PATCH] compile.c: optimize literal String range in case/when dispatch
normalperson@yhbt.net wrote:
> https://bugs.ruby-lang.org/issues/13355
>
> This is similar in spirit to opt_case_dispatch as the literal
> Range here is guaranteed to be immutable when used for
> checkmatch.

Along with the curr...
normalperson (Eric Wong)
06:12 PM Revision 945c600a (git): * regcomp.c (set_bm_skip): Need to check the end of the string.
this patch is from https://github.com/k-takata/Onigmo/commit/e5c0e6c36187898bb27960cd66d591f172558848. [Backport #12997]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
06:00 PM Bug #13361: Can't build Ruby trunk with i386 arch on macOS 10.12
ruby_2_3 r58187 merged revision(s) 58084. nagachika (Tomoyuki Chikanaga)
05:59 PM Revision e6e4d2e1 (git): merge revision(s) 58084: [Backport #13361]
configure.in: syscall is deprecated on macOS
* configure.in: syscall is no longer supported on macOS since
10.12. [ruby-core:80300] [Bug #13361]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58187 b2d...
nagachika (Tomoyuki Chikanaga)
05:45 PM Revision da9963b5 (git): bump teeny version to 2.3.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:38 PM Bug #13273: [DOC] Proc#call docs show "Document-method: []" directive
ruby_2_3 r58185 merged revision(s) 57765. nagachika (Tomoyuki Chikanaga)
05:38 PM Revision 2334147e (git): merge revision(s) 57765: [Backport #13273]
proc.c: documentation for Proc#{call,yield,[]}
* proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:
* change order of Document-method directives as workaround for an
RDoc rendering problem where ...
nagachika (Tomoyuki Chikanaga)
05:35 PM Bug #13132: [DOC] Improve documentation for Binding
ruby_2_3 r58184 merged revision(s) 57352. nagachika (Tomoyuki Chikanaga)
05:35 PM Revision e88d0b32 (git): merge revision(s) 57352: [Backport #13132]
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] ...
nagachika (Tomoyuki Chikanaga)
05:34 PM Bug #13292: Invalid encodings in UTF-32
ruby_2_3 r58183 merged revision(s) 57816,57817. nagachika (Tomoyuki Chikanaga)
05:34 PM Revision 909331e2 (git): merge revision(s) 57816,57817: [Backport #13292]
fix UTF-32 valid_encoding?
* enc/utf_32be.c (utf32be_mbc_enc_len): check arguments precisely.
[ruby-core:79966] [Bug #13292]
* enc/utf_32le.c (utf32le_mbc_enc_len): ditto.
* regenc.h (UNICODE_VALID_CO...
nagachika (Tomoyuki Chikanaga)
05:11 PM Bug #13267: ruby 2.4.0 i686-w64-mingw32 + boost compilation error
ruby_2_3 r58182 merged revision(s) 57762. nagachika (Tomoyuki Chikanaga)
05:11 PM Revision ff6e8710 (git): merge revision(s) 57762: [Backport #13267]
broken mingw
* configure.in: check whether frexp and modf are broken.
* include/ruby/win32.h (frexp, modf): ignore bad declarations when
compiling as C++. [ruby-core:79859] [Bug #13267]
git-svn-id: svn+ssh:/...
nagachika (Tomoyuki Chikanaga)
04:58 PM Bug #13254: Dir.exist? などで「ディスクがありません」ダイアログが表示される
ruby_2_3 r58181 merged revision(s) 57741. nagachika (Tomoyuki Chikanaga)
04:58 PM Revision 06103f2c (git): merge revision(s) 57741: [Backport #13254]
disable critical-error-handler
* win32/win32.c (rb_w32_sysinit): disable critical-error-handler
message box even on mswin, regardless of runtime DLL version.
[ruby-dev:49988] [Bug #13254]
git-svn-id: svn+ssh...
nagachika (Tomoyuki Chikanaga)
04:57 PM Bug #13214: FileUtils::mkdir_p creates additional (unrequested) directory on Cygwin
ruby_2_3 r58180 merged revision(s) 57640. nagachika (Tomoyuki Chikanaga)
04:57 PM Revision 0dc5e450 (git): merge revision(s) 57640: [Backport #13214]
fileutils.rb: do not make root
* lib/fileutils.rb (FileUtils#mkdir_p): no need to make root
directory which should be exist and cannot be made with mkdir
recent Cygwin can make a directory contains a colon.
...
nagachika (Tomoyuki Chikanaga)
04:56 PM Bug #13205: Backport r57589 (parallel.rb: fix intervention)
ruby_2_3 r58179 merged revision(s) 57589. nagachika (Tomoyuki Chikanaga)
04:56 PM Revision e3a295cd (git): merge revision(s) 57589: [Backport #13205]
parallel.rb: fix intervention
* test/lib/test/unit/parallel.rb (_report): send a response and a
newline atomically, to get rid of intervention with "p" which
runs in a separate thread.
git-svn-id: svn+ssh://...
nagachika (Tomoyuki Chikanaga)
04:55 PM Bug #13169: Fix OpenStruct#each_pair return value
ruby_2_3 r58178 merged revision(s) 57515. nagachika (Tomoyuki Chikanaga)
04:55 PM Revision 7f04247e (git): merge revision(s) 57515: [Backport #13169]
lib/ostruct.rb: Fix returned value of each_pair.
From a patch by Marcus Stollsteimer. [Fixes #13169]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:54 PM Bug #13158: UNIXServer#closed? returns false after UNIXServer#close called
ruby_2_3 r58177 merged revision(s) 57422. nagachika (Tomoyuki Chikanaga)
04:54 PM Revision 65639d44 (git): merge revision(s) 57422: [Backport #13158]
io.c: close before wait
* io.c (io_close_fptr): notify then close, and wait for other
threads before free fptr. [ruby-core:79262] [Bug #13158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58177 b2dd0...
nagachika (Tomoyuki Chikanaga)
04:41 PM Bug #13135: Regexp.last_match returns nil with s.rindex(//)
ruby_2_3 r58176 merged revision(s) 57374. nagachika (Tomoyuki Chikanaga)
04:41 PM Revision d8a1986a (git): merge revision(s) 57374: [Backport #13135]
string.c: rindex(//) should set $~.
This seems a bug introduced by r520 (1.4.0). [ruby-core:79110] [Bug #13135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:37 PM Bug #13119: String#scrub ignores the block if the string encoding is not ASCII-compatible
ruby_2_3 r58175 merged revision(s) 57302,57303,57304. nagachika (Tomoyuki Chikanaga)
04:37 PM Revision 39ee1e95 (git): merge revision(s) 57302,57303,57304: [Backport #13119]
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]
string.c: yield invalid part
* s...
nagachika (Tomoyuki Chikanaga)
04:28 PM Bug #13096: error using undef_method + refinements
ruby_2_3 r58174 merged revision(s) 57362. nagachika (Tomoyuki Chikanaga)
04:28 PM Revision f8e37f57 (git): merge revision(s) 57362: [Backport #13096]
vm_method.c: resolve refined method to undef
* vm_method.c (rb_undef): resolve the method entry which refines a
prepended method entry. [ruby-core:78944] [Bug #13096]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branc...
nagachika (Tomoyuki Chikanaga)
04:17 PM Bug #13089: r57227 の変更ではリークが起きるようです
ruby_2_3 r58173 merged revision(s) 57236. nagachika (Tomoyuki Chikanaga)
04:17 PM Revision 648ee72d (git): merge revision(s) 57236: [Backport #13089]
rational.c: memory leak in gcd
* rational.c (rb_gcd_gmp): fix memory leak. patched by KISHIMOTO,
Makoto <ksmakoto AT dd.iij4u.or.jp> in [ruby-dev:49934].
[Bug #13089]
git-svn-id: svn+ssh://ci.ruby-lang.org/...
nagachika (Tomoyuki Chikanaga)
04:15 PM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
ruby_2_3 r58172 merged revision(s) 57265,57266. nagachika (Tomoyuki Chikanaga)
04:15 PM Revision 7b509a5c (git): merge revision(s) 57265,57266: [Backport #13081]
win32/resolv.rb: ad hoc workaround
* ext/win32/lib/win32/resolv.rb (Win32::Resolv::SZ): an ad hoc
workaround for broken registry. SearchList and other registry
values must be REG_SZ, or Windows ignores anyth...
nagachika (Tomoyuki Chikanaga)
04:13 PM Bug #13075: String#unpack with block / String#unpack1 exposes uninitialized memory
ruby_2_3 r58171 merged revision(s) 57187,57234. nagachika (Tomoyuki Chikanaga)
04:13 PM Revision a7314a73 (git): merge revision(s) 57187,57234: [Backport #13075]
pack.c: avoid returning uninitialized String
Fix unpacking with 'b', 'B', 'h' and 'H' format. Do not return an
uninitialized String to Ruby before filling the content bytes.
Fixes r11175 ("pack.c (pack_unpack): e...
nagachika (Tomoyuki Chikanaga)
04:09 PM Bug #13012: irb fails to define a method with a reserved-word-ish keyword argument
ruby_2_3 r58170 merged revision(s) 57027. nagachika (Tomoyuki Chikanaga)
04:09 PM Revision 8f3cf2cc (git): merge revision(s) 57027: [Backport #13012]
ruby-lex.rb: fix for label
* lib/irb/ruby-lex.rb (identify_identifier): treat identifier just
followed by a colon as a lable. this is not a precise solution
but enough for the time being. [ruby-core:78526] ...
nagachika (Tomoyuki Chikanaga)
04:08 PM Bug #9294: Documentation for IO#read claims resulting string is always ASCII-8BIT encoding
ruby_2_3 r58169 merged revision(s) 58008. nagachika (Tomoyuki Chikanaga)
04:08 PM Revision 6920c438 (git): merge revision(s) 58008: [Backport #9294]
io.c: improve docs
* io.c: [DOC] improve and harmonize docs for IO#read and ARGF#read;
fix invalid example code for IO#read to make it syntax highlighted.
* io.c: [DOC] various improvements for docs of IO, ARG...
nagachika (Tomoyuki Chikanaga)
04:06 PM Bug #12975: Edit documentation for IO#print function
ruby_2_3 r58168 merged revision(s) 57780. nagachika (Tomoyuki Chikanaga)
04:06 PM Revision 022584fb (git): merge revision(s) 57780: [Backport #12975]
docs for IO#print
* io.c: [DOC] split documentation for IO#print into smaller paragraphs,
delete duplicate sentence, fix call-seq.
Based on a patch by Dario Daic. [ruby-core:78291] [Bug #12975]
git-svn-id: s...
nagachika (Tomoyuki Chikanaga)
04:05 PM Bug #13358: OpenStruct overriding allocate
nobu (Nobuyoshi Nakada) wrote:
> Eregon (Benoit Daloze) wrote:
> ...
Yes, nevertheless existing code uses it.
And if sby needed some special method like `#initialize_native`,
calling `#allocate` is the most natural way to do it in Ru...
Eregon (Benoit Daloze)
03:37 PM Bug #13358: OpenStruct overriding allocate
ruby_2_3 r58161 merged revision(s) 58077. nagachika (Tomoyuki Chikanaga)
04:05 PM Bug #12884: Using a HashWithIndifferentAccess with a default value in a function with a keyword parameter converts it to a Hash.
ruby_2_3 r58167 merged revision(s) 57360. nagachika (Tomoyuki Chikanaga)
04:05 PM Revision ba81af97 (git): merge revision(s) 57360: [Backport #12884]
class.c: non-keyword hash class
* class.c (rb_extract_keywords): keep the class of non-keyword
elements hash as the original. [ruby-core:77813] [Bug #12884]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2...
nagachika (Tomoyuki Chikanaga)
04:02 PM Bug #12855: Inconsistent keys identity in compare_by_identity Hash when using literals
ruby_2_3 r58166 merged revision(s) 57278,57279. nagachika (Tomoyuki Chikanaga)
04:02 PM Revision 0d399220 (git): merge revision(s) 57278,57279: [Backport #12855]
fix optimization for hash aset/aref with fstring
Patch by Eric Wong [ruby-core:78797].
I don't like the idea of making insns.def any bigger to support
a corner case, and "test_hash_aref_fstring_identity" shows
...
nagachika (Tomoyuki Chikanaga)
03:51 PM Revision 7cbc39be (git): merge revision(s) 58057: [Backport #13353]
stringio.c: RB_INTEGER_TYPE_P
* ext/stringio/stringio.c (RB_INTEGER_TYPE_P): fallback definition
for 2.3 or earlier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58165 b2dd03c8-39d4-4d8f-98ff-823fe69b...
nagachika (Tomoyuki Chikanaga)
03:49 PM Bug #12405: Queue doesn't work inside of trap
ruby_2_3 r58164 merged revision(s) 57492. nagachika (Tomoyuki Chikanaga)
03:49 PM Revision 715f997a (git): merge revision(s) 57492: [Backport #12405]
test_queue.rb: fix portability
* test/thread/test_queue.rb (test_queue_with_trap): fix
portability. use SIGINT instead of SIGUSR2 which is supported
on not all platforms.
git-svn-id: svn+ssh://ci.ruby-lang....
nagachika (Tomoyuki Chikanaga)
03:43 PM Bug #10944: Documentation of Array.new w.r.t. element index available to a block
ruby_2_3 r58163 merged revision(s) 58037. nagachika (Tomoyuki Chikanaga)
03:43 PM Revision 8dbfd4b8 (git): merge revision(s) 58037: [Backport #10944]
docs for creating arrays
* array.c: [DOC] add example for Array.new with block and index.
Reported by Don Cruickshank. [ruby-core:68442] [Bug #10944]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@5816...
nagachika (Tomoyuki Chikanaga)
03:38 PM Bug #13364: Please backport r56310
ruby_2_3 r58162 merged revision(s) 56310. nagachika (Tomoyuki Chikanaga)
03:38 PM Revision 64cf9f11 (git): merge revision(s) 56310: [Backport #13364]
* win32/win32.c (poll_child_status): rb_w32_wait_events_blocking() sets
errno internally, then should not set it here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:37 PM Revision e3defadb (git): merge revision(s) 58077: [Backport #13358]
ostruct.rb: fix OpenStruct.allocate
* lib/ostruct.rb (OpenStruct.allocate): initialize an instance
variable directly, without calling `intialize` method which may
be overridden in a subclass. [ruby-core:8029...
nagachika (Tomoyuki Chikanaga)
03:35 PM Bug #13353: Backport stringio fixes
ruby_2_3 r58160 merged revision(s) 58040,58041. nagachika (Tomoyuki Chikanaga)
03:35 PM Revision 5194682b (git): merge revision(s) 58040,58041: [Backport #13353]
stringio.c: check character code
* ext/stringio/stringio.c (strio_ungetc): check if the character
code is valid in the encoding. reported by Ahmad Sherif
(ahmadsherif) at https://hackerone.com/reports/209593...
nagachika (Tomoyuki Chikanaga)
03:18 PM Revision 18e641dc (git): merge revision(s) 57546: [Backport #13194]
rbinstall.rb: Gem::Installer lacks dir_mode option
* tool/rbinstall.rb (bundle-gems): Gem::Installer does not support
directory permission option, set umask to owner writable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
nagachika (Tomoyuki Chikanaga)
03:11 PM Bug #13238: string.c assertion fails after attempting to modify singleton class of a frozen string
ruby_2_3 r58157 merged revision(s) 56747,56754,56777.
nagachika (Tomoyuki Chikanaga)
03:11 PM Bug #12930: instance_eval, instance_exec raises TypeError on a frozen String
ruby_2_3 r58157 merged revision(s) 56747,56754,56777.
nagachika (Tomoyuki Chikanaga)
03:09 PM Bug #12923: Accessing singleton_class of fstring cause assertion failure
ruby_2_3 r58157 merged revision(s) 56747,56754,56777. nagachika (Tomoyuki Chikanaga)
03:08 PM Revision 1ba14687 (git): * 2017-03-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:08 PM Revision 018eeaf2 (git): merge revision(s) 56747,56754,56777: [Backport #12923] [Backport #12930] [Backport #13238]
class.c: no fstring singleton class
* class.c (singleton_class_of): prohibit fstrings from creating
singleton classes.
temporary measure for [ruby-dev:49867] [Bug #12923]
test_fstring.rb: fix exceptio...
nagachika (Tomoyuki Chikanaga)
02:57 PM Bug #13276 (Closed): Dir.glob returns empty array when OS has no more file handles (expected exception)
Applied in changeset trunk|r58156.
----------
dir.c: err at glob failure
* dir.c (glob_helper): raise a SystemCallError exception when
opendir() failed, except for ENOENT, ENOTDIR, and EACCES. this
behavior predates 1.0; the comme...
nobu (Nobuyoshi Nakada)
02:57 PM Revision 47563655 (git): dir.c: err at glob failure
* dir.c (glob_helper): raise a SystemCallError exception when
opendir() failed, except for ENOENT, ENOTDIR, and EACCES. this
behavior predates 1.0; the comments in glob.c claimed that
glob() returned -1 on error but actualy the po...
nobu (Nobuyoshi Nakada)
02:49 PM Bug #13202: Enumerable#slice_before does not take both argument and block at the same time, as it ought to.
ruby_2_3 r58155 merged revision(s) 57584. nagachika (Tomoyuki Chikanaga)
02:49 PM Revision 783286fe (git): merge revision(s) 57584: [Backport #13202]
[DOC] Update an obsolete example for slice_before.
The argument for Enumerable#slice_before is is removed at Ruby 2.3.
Reported by Shyouhei Urabe. [Bug #13202]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ru...
nagachika (Tomoyuki Chikanaga)
02:47 PM Bug #13198: Tempfile#size is nil when nothing is written, expected 0
ruby_2_3 r58154 merged revision(s) 57972. nagachika (Tomoyuki Chikanaga)
02:47 PM Revision 57d0c36a (git): merge revision(s) 57972: [Backport #13198]
Fix bug of Tempfile#size if nothing is written [Bug #13198]
* lib/tempfile.rb (Tempfile#size): Fix its behavior when nothing
is written. Tempfile#size should return 0 in this case.
The patch is from nobu <nob...
nagachika (Tomoyuki Chikanaga)
02:46 PM Bug #13148: [DOC] Small doc fix for Hash#dig and Struct#dig
ruby_2_3 r58153 merged revision(s) 53667,57735. nagachika (Tomoyuki Chikanaga)
02:46 PM Revision 316f37b1 (git): merge revision(s) 53667,57735: [Backport #13148]
hash.c: exception examples
* hash.c (rb_hash_dig): [DOC] add examples of exceptions.
Fix doc for Hash#dig and Struct#dig
* hash.c (rb_hash_dig): [DOC] correct argument name
in method description; fix f...
nagachika (Tomoyuki Chikanaga)
02:37 PM Bug #13194: LIBRUBY_ALIASESのアクセス権が所有者のみになっている
ruby_2_3 r58152 merged revision(s) 57543. nagachika (Tomoyuki Chikanaga)
02:37 PM Revision 8231f5f7 (git): merge revision(s) 57543: [Backport #13194]
rbinstall.rb: default umask
* tool/rbinstall.rb: revert r49841 and default umask to just
prohibit all from writing. symlink(2) has no argument to set
permissions but is affected by umask.
[ruby-dev...
nagachika (Tomoyuki Chikanaga)
02:35 PM Revision e0cb040a (git): merge revision(s) 57280,57282: [Backport #13112]
console.c: OOB access
* ext/io/console/console.c (console_set_winsize): fix
out-of-bounds access. [ruby-core:79004] [Bug #13112]
console.c: unpaired size
* ext/io/console/console.c (console_set_winsiz...
nagachika (Tomoyuki Chikanaga)
01:51 PM Bug #13370 (Rejected): instance_exec occurs "no receiver given (ArgumentError)"
It was a bug in 2.4.0. nobu (Nobuyoshi Nakada)
07:12 AM Bug #13370 (Rejected): instance_exec occurs "no receiver given (ArgumentError)"
ArgumentError occurs in 2.4.1 on below code. It's the same in trunk.
```ruby
class Foo
def one
puts 1
end
end
Foo.new.instance_exec(&:one)
# => ArgumentError: no receiver given
```
But it's differece behavior with...
ta1kt0me (hiroki tokutomi)
01:50 PM Misc #13366 (Rejected): error in ram reinstall
1.9.3 is already EOL.
Maybe, you need to report to rubygems repository.
http://github.com/rubygems/rubygems/
hsbt (Hiroshi SHIBATA)
01:38 PM Bug #13371: Syntax Error with regex when parens are omitted
shyouhei (Shyouhei Urabe) wrote:
> ndn (Nikola Nenkov) wrote:
> ...
Yes, but it was more of a question if it's a bug or not. Like should I use `%r//` when omitting parens as a principle? If yes - I would submit a PR in Rubocop and so on.
ndn (Nikola Nenkov)
01:35 PM Bug #13371: Syntax Error with regex when parens are omitted
ndn (Nikola Nenkov) wrote:
> As per the syntax highlighting in my text editor and a discussion with another person, it seems that the opening slash is interpreted as division.
Yes. Your text editor parses the line correctly. If you...
shyouhei (Shyouhei Urabe)
01:20 PM Bug #13371 (Rejected): Syntax Error with regex when parens are omitted
When you skip the parens of method invocations and pass a regex, you can get a `SyntaxError` if the regex starts with a space.
~~~ ruby
''.split(/ ./) # => []
''.split /./ # => []
''.split / ./ # !> SyntaxError: unexpected '.'
...
ndn (Nikola Nenkov)
01:15 PM Revision 0d40bf8f (git): error.c: warning functions
* error.c: define warning functions in all combinations of
* no errno, system errno, argument
* without/with encoding
* enabled/disabled by default
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58150 b2dd03c8-39d4-4d8f-98ff-82...
nobu (Nobuyoshi Nakada)
12:27 PM Bug #13053: Array#select! can resize to negative size
ruby_2_3 r58149 merged revision(s) 57121. nagachika (Tomoyuki Chikanaga)
12:26 PM Revision 62a02670 (git): merge revision(s) 57121: [Backport #13053]
array.c: do not resize to less than 0
Shrinking the Array from the block invoked by Array#select! or
Array#reject! causes the Array to be a negative number size. Ensure that
the resulting Array won't be smaller t...
nagachika (Tomoyuki Chikanaga)
11:25 AM Bug #11964: __callee__ in aliased methods defined in a module returns an incorrect value
ruby_2_3 r58148 merged revision(s) 56592. nagachika (Tomoyuki Chikanaga)
11:25 AM Revision f8f026c4 (git): merge revision(s) 56592: [Backport #11964]
* eval.c, method.h, proc.c, vm.c, vm_eval.c, vm_insnhelper.c, vm_method.c:
TracePoint#method_id should return method_id, not callee_id.
[ruby-core:77241] [Feature #12747]
* test/ruby/test_settracefunc.rb: cha...
nagachika (Tomoyuki Chikanaga)
11:13 AM Bug #10774: Regression: URI::MAilTo#to_mailtext - undefined method unescape for URI::RFC3986_Parser
ruby_2_3 r58147 merged revision(s) 56139,57066,57099,57100. nagachika (Tomoyuki Chikanaga)
11:13 AM Revision 4919dbab (git): merge revision(s) 56139,57066,57099,57100: [Backport #10774]
* lib/uri/mailto.rb: Removed needless `return` and use `.`` instead of `::`
with class method.
* test/uri/test_mailto.rb: Added tests for coverage.
Use URI.decode_www_form_component [Bug #10774]
`pars...
nagachika (Tomoyuki Chikanaga)
10:44 AM Revision cc8f2f85 (git): error.c: refactor warning messages
* error.c (with_warning_string): extract building warning message
string from variadic arguments.
* error.c (syserr_warning): write warning message with the system
error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58...
nobu (Nobuyoshi Nakada)
08:26 AM Bug #13349: Ruby unable to open files in /dev on AIX if compiled on AIX 7.1 or later
Thanks for the comments, i just found a bug description from the vendor which seems to apply.
I will apply the fix for http://www-01.ibm.com/support/docview.wss?uid=isg1IV90904 today or tomorrow and will update this ticket.
0x6373 (Christian Schwabl)
06:41 AM Feature #13295: [PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus)
On 2017/03/27 14:55, Eric Wong wrote:
> You're absolutely right; sorry about that. I will fix simply, for now.

Nobody redef them so no problem :p

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
06:08 AM Feature #13295: [PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus)
SASADA Koichi <ko1@atdot.net> wrote:
> On 2017/03/26 15:16, Eric Wong wrote:
> > Oops, I already committed r57828 before this message.
> > opt_str_freeze insn already takes care of redefinition in
> > insns.def; so extra check for c...
normalperson (Eric Wong)
05:41 AM Feature #13295: [PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus)
On 2017/03/26 15:16, Eric Wong wrote:
> Oops, I already committed r57828 before this message.
> opt_str_freeze insn already takes care of redefinition in
> insns.def; so extra check for compile.c won't be affected.

now it checks o...
ko1 (Koichi Sasada)
06:12 AM Revision 2ff826ee (git): * 2017-03-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:12 AM Revision 669a55df (git): fix redefinition optimization for -"literal string" (UMinus)
Unfortunately this enlarges insns.def by yet another
instruction. However, it is much prettier than opt_str_freeze
in use, and maybe we can avoid having so many instructions in
the future.
[ruby-core:80368]
* insns.def (DEFINE_INSN): ...
Eric Wong
05:52 AM Bug #13343: Improve Hash#merge performance
I followed the behavior of Array's methods such as
~~~
VALUE
rb_ary_sort(VALUE ary)
{
ary = rb_ary_dup(ary);
~~~
It does not check whether initialize_dup/initialize_copy were overridden.
watson1978 (Shizuo Fujita)
05:21 AM Bug #13343: Improve Hash#merge performance
watson1978@gmail.com wrote:
> https://bugs.ruby-lang.org/issues/13343
> ----------------------------------------
> Hash#merge will be faster around 60%.

+Cc ruby-core, since your post was English (and I don't read Japanese)

Thi...
normalperson (Eric Wong)
05:21 AM Bug #13343: Improve Hash#merge performance
watson1978@gmail.com wrote:
> https://bugs.ruby-lang.org/issues/13343
> ----------------------------------------
> Hash#merge will be faster around 60%.

+Cc ruby-core, since your post was English (and I don't read Japanese)

Thi...
normalperson (Eric Wong)
05:49 AM Bug #13369 (Closed): TracePoint gives incorrect `return_value` after rescuing error when using `return`
In the following example
```ruby
class Foo
MyError = Class.new(StandardError)
def example1
norf
rescue MyError => error
2
end
def example2
norf
rescue MyError => error
return 2
end
de...
backus (John Backus)
03:50 AM Feature #13368 (Closed): Improve performance of Array#sum with float elements
The declaration of local variable in loop, it will initialize local variable for each run of the loop with clang generated code.
So, it shouldn't declare the local variable in heavy loop.
Array#sum with float elements will be faster ...
watson1978 (Shizuo Fujita)

03/26/2017

10:29 PM Bug #13367 (Closed): Fix issue for MinGW / MSYS2 builds and testing
I'm working to get test-all working in a stable fashion in a Windows MinGW / MSYS2 environment. One item I've looked at is skips. Some RubyGems tests require git. This requires adding and correctly setting an environment variable for t... MSP-Greg (Greg L)
05:57 PM Misc #13366 (Rejected): error in ram reinstall
Error running 'env GEM_HOME=/Users/krin/.rvm/gems/ruby-1.9.3-p551@global GEM_PATH= /Users/krin/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -d /Users/krin/.rvm/src/rubygems-2.6.11/setup.rb --no-document',
showing last 15 lines of /Users/krin/.r...
matt3 (matthew chow)
04:42 PM Revision b411090c (git): merge revision(s) 53566:
* configure.in: improve ICC (Intel C Compiler) support.
* configure.in (CXX): The name of icc's c++ compiler is `icpc`.
* configure.in (warnings): Add `-diag-disable=2259` to suppress
noisy warnings: "non-poin...
U.Nakamura
10:21 AM Feature #13295 (Closed): [PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus)
Applied in changeset trunk|r58142.
----------
NEWS: feature number for String#-@ compile-time optimization
[ruby-core:79971] [Feature #13295]
Anonymous
06:21 AM Feature #13295: [PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus)
shyouhei@ruby-lang.org wrote:
> We looked at this issue in today's developer meeting.
>
> Koichi pointed out that you have to consider redefinition of
> String#-@. You need to take care about such situation, like
> we do already ...
normalperson (Eric Wong)
10:21 AM Revision 833e42d1 (git): NEWS: feature number for String#-@ compile-time optimization
[ruby-core:79971] [Feature #13295]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
09:23 AM Misc #13329: Creating a German ruby mailinglist on ruby-lang.org?
I would appreciate it if there could at least be an indication as to whether this is possible or not. Because otherwise we're going to use a different mailinglist host (which I would find unfitting, but we need to go forward at some poin... Quintus (Marvin Gülker)
08:25 AM Revision ce3ea463 (git): * thread.c (rb_thread_fd_close): unintentionally removed at r58094.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:25 AM Revision 1fb37c4c (git): * test/ruby/test_thread.rb (test_thread_interrupt_for_killed_thread):
may fix the test failure on some platforms introduced at r58108.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:22 AM Revision b2cdb79c (git): merge revision(s) 49806:
envutil.rb: timeout_error argument to invoke_ruby
* test/lib/envutil.rb (invoke_ruby): add `timeout_error` optional
keyword argument, the exception class to be raised if the target
process timed out. if it i...
U.Nakamura
07:13 AM Revision cb64ef24 (git): parse.y: unterminated content token
* parse.y (parser_parse_string): defer the end token to next
reading, to yield tSTRING_CONTENT with the unterminated content.
[Bug #13363]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:21 AM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
ext/syscall with numbers defined would be nice, but I think optional.

Mainly, I want to be able to continue trying new syscalls before
they have libc support.
normalperson (Eric Wong)
04:48 AM Bug #13365 (Closed): Improve performance of rb_equal() with special constants
rb_equal() is been using in many places to compare the object.
If objects are special constants,
"if (obj1 == obj2) return Qtrue;" can check whether objects are equal or not.
(https://github.com/ruby/ruby/blob/0b1f6aed9414a4d7714910...
watson1978 (Shizuo Fujita)
04:11 AM Revision 7b9fffe6 (git): * thread.c (rb_thread_sleep_deadly_allow_spurious_wakeup): need to
mark as exported. this may fix the load error introduced at r58115.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:21 AM Revision 07e4aa67 (git): gmake.mk: multi mspec
* defs/gmake.mk (MSPECOPT): enable multi exec if parallel make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:50 AM Revision 0e22e24d (git): common.mk: test-rubyspec
* common.mk (yes-test-rubyspec): make jobserver ready.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/25/2017

08:35 PM Revision 7c2a8668 (git): * 2017-03-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:35 PM Revision ab844e7a (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:35 PM Revision 14ae7869 (git): Add a tool for backporters.
* tool/generate-backport-changelog.rb: Generate ChangeLog entries from svn log.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:31 PM Revision 9c3d2ca6 (git): * ChangeLog: log for r58102.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
08:30 PM Revision 544c352e (git): * ChangeLog: logs for r58085 - r58129.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:55 PM Bug #10944: Documentation of Array.new w.r.t. element index available to a block
ruby_2_2 r58129 merged revision(s) 58037. usa (Usaku NAKAMURA)
06:55 PM Revision 64cd400a (git): merge revision(s) 58037: [Backport #10944]
docs for creating arrays
* array.c: [DOC] add example for Array.new with block and index.
Reported by Don Cruickshank. [ruby-core:68442] [Bug #10944]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@5812...
U.Nakamura
06:55 PM Bug #10936: Error in Rubydoc for DateTime#rfc3339
ruby_2_2 r58128 merged revision(s) 58020. usa (Usaku NAKAMURA)
06:55 PM Revision 03ab27a8 (git): merge revision(s) 58020: [Backport #10936]
date_core.c: fix error in DateTime docs
* ext/date/date_core.c: [DOC] fix format string for DateTime#rfc3339.
Reported by Andreas Rayo Kniep. [ruby-core:68418] [Bug #10936]
* ext/date/date_core.c: [DOC] ditto...
U.Nakamura
06:54 PM Bug #9294: Documentation for IO#read claims resulting string is always ASCII-8BIT encoding
ruby_2_2 r58127 merged revision(s) 58008. usa (Usaku NAKAMURA)
06:54 PM Revision b41259dc (git): merge revision(s) 58008: [Backport #9294]
io.c: improve docs
* io.c: [DOC] improve and harmonize docs for IO#read and ARGF#read;
fix invalid example code for IO#read to make it syntax highlighted.
* io.c: [DOC] various improvements for docs of IO, ARG...
U.Nakamura
06:42 PM Bug #13096: error using undef_method + refinements
ruby_2_2 r58126 merged revision(s) 57362. usa (Usaku NAKAMURA)
06:42 PM Revision d5b08a46 (git): merge revision(s) 57362: [Backport #13096]
vm_method.c: resolve refined method to undef
* vm_method.c (rb_undef): resolve the method entry which refines a
prepended method entry. [ruby-core:78944] [Bug #13096]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branc...
U.Nakamura
06:36 PM Bug #13225: [DOC] expand docs for Date shifting
ruby_2_2 r58125 merged revision(s) 57737. usa (Usaku NAKAMURA)
06:36 PM Revision 950758b0 (git): merge revision(s) 57737: [Backport #13225]
date_core.c: expand docs for Date shifting
* ext/date/date_core.c: [DOC] expand docs for Date shifting
* add examples for Date#>> and Date#<< that clarify some edge cases
* add examples for Date#next_year an...
U.Nakamura
06:35 PM Bug #13159: [DOC] Revise documentation for OpenStruct
ruby_2_2 r58124 merged revision(s) 57887. usa (Usaku NAKAMURA)
06:35 PM Revision d823f587 (git): merge revision(s) 57887: [Backport #13159]
lib/ostruct.rb: [DOC] revise docs for OpenStruct
* update paragraph on implementation:
define_singleton_method is used, not define_method
* add call-seq with return values for each_pair
* adopt descript...
U.Nakamura
06:31 PM Bug #13132: [DOC] Improve documentation for Binding
ruby_2_2 r58123 merged revision(s) 57352. usa (Usaku NAKAMURA)
06:31 PM Revision 25912b88 (git): merge revision(s) 57352: [Backport #13132]
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] ...
U.Nakamura
06:28 PM Bug #13281: [DOC] OptionParser docs leak into class documentation of Object
ruby_2_2 r58122 merged revision(s) 57775. usa (Usaku NAKAMURA)
06:28 PM Revision 352b041d (git): merge revision(s) 57775: [Backport #13281]
nodoc OptParse
* lib/optparse.rb: [DOC] nodoc OptParse, introduced with r46126,
to avoid leaking of its documentation (OptionParser's docs) into
the class documentation of Object. [ruby-core:79909] [Bug #132...
U.Nakamura
06:26 PM Bug #13233: [DOC] Fix rdoc for Rational
ruby_2_2 r58121 merged revision(s) 57686. usa (Usaku NAKAMURA)
06:26 PM Revision 02deb79d (git): merge revision(s) 57686: [Backport #13233]
rational.c: fix rdoc
* rational.c: [DOC] fix wrong indentations and comment out some lines
in code examples to make them valid Ruby code and syntax highlighted
on the rendered page.
[ci skip] [ruby-c...
U.Nakamura
06:24 PM Bug #13214: FileUtils::mkdir_p creates additional (unrequested) directory on Cygwin
ruby_2_2 r58120 merged revision(s) 57640. usa (Usaku NAKAMURA)
06:24 PM Revision acc6a302 (git): merge revision(s) 57640: [Backport #13214]
fileutils.rb: do not make root
* lib/fileutils.rb (FileUtils#mkdir_p): no need to make root
directory which should be exist and cannot be made with mkdir
recent Cygwin can make a directory contains a colon.
...
U.Nakamura
06:22 PM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
ruby_2_2 r58119 merged revision(s) 57265,57266. usa (Usaku NAKAMURA)
06:22 PM Revision 1bd1e843 (git): merge revision(s) 57265,57266: [Backport #13081]
win32/resolv.rb: ad hoc workaround
* ext/win32/lib/win32/resolv.rb (Win32::Resolv::SZ): an ad hoc
workaround for broken registry. SearchList and other registry
values must be REG_SZ, or Windows ignores anyth...
U.Nakamura
06:19 PM Bug #13192: [DOC] Add example for Symbol#to_s
ruby_2_2 r58118 merged revision(s) 57536. usa (Usaku NAKAMURA)
06:19 PM Revision cc938265 (git): merge revision(s) 57536: [Backport #13192]
doc: Add example for Symbol#to_s
* string.c: add example for Symbol#to_s.
The docs for Symbol#to_s only include an example for
Symbol#id2name, but not for #to_s which is an alias;
the docs should include...
U.Nakamura
06:16 PM Bug #13242: SIGSEGV in rb_bigzero_p()
ruby_2_2 r58117 merged revision(s) 57688,57689. usa (Usaku NAKAMURA)
06:16 PM Revision f84d2864 (git): merge revision(s) 57688,57689: [Backport #13242]
rational.c: infinity in power
* rational.c (nurat_expt): return Infinity due to overflow.
[ruby-core:79686] [Bug #13242]:
rational.c: infinity in power
* rational.c (nurat_expt): return 0 due to overfl...
U.Nakamura
06:13 PM Bug #13015: Segfault when using super and underscore parameters
ruby_2_2 r58116 merged revision(s) 57024. usa (Usaku NAKAMURA)
06:13 PM Revision d4101846 (git): merge revision(s) 57024: [Backport #13015]
vm.c: check type of hash to merge
* vm.c (core_hash_merge): check the type of the target hash to
merge. [ruby-core:78536] [Bug #13015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58116 b2dd03c8-39d4...
U.Nakamura
06:07 PM Bug #12405: Queue doesn't work inside of trap
ruby_2_2 r58115 merged revision(s) 57477,57478,57479,57492. usa (Usaku NAKAMURA)
05:54 PM Bug #12405: Queue doesn't work inside of trap
nagachika-san, r57492 is also required. usa (Usaku NAKAMURA)
06:07 PM Revision d014f463 (git): merge revision(s) 57477,57478,57479,57492: [Backport #12405]
use TRUE/FALSE.
define rb_thread_sleep_deadly_allow_spurious_wakeup().
* thread.c, thread_sync.c: define new function
rb_thread_sleep_deadly_allow_spurious_wakeup() and use it instead of
using sleep_...
U.Nakamura
05:55 PM Feature #13333: block to yield
> Out of curiosity: What's the use case(s)?
Could be simply due to reciprocity. :)
shevegen (Robert A. Heiler)
05:45 PM Bug #13190: [DOC] Fix error for escape sequences in string literals
ruby_2_2 r58114 merged revision(s) 51871,51872,51874,51875,51876,51877,51878,57517. usa (Usaku NAKAMURA)
05:45 PM Revision ed20b256 (git): merge revision(s) 51871,51872,51874,51875,51876,51877,51878,57517: [Backport #13190]
* doc/syntax/literals.rdoc (Strings): mention about ?a literal.
literals.rdoc: fix typos
* doc/syntax/literals.rdoc (Strings): fix typos.
* doc/syntax/literals.rdoc (Strings): [DOC] Document the full list
...
U.Nakamura
05:37 PM Bug #13189: [DOC] Restore class documentation for Struct
ruby_2_2 r58113 merged revision(s) 57522. usa (Usaku NAKAMURA)
05:37 PM Revision fd69ec05 (git): merge revision(s) 57522: [Backport #13189]
doc: restore class documentation for Struct
* struct.c: restore class documentation for Struct
that disappeared with r46663.
Due to r46663, the class documentation for Struct disappeared.
(The revision...
U.Nakamura
05:36 PM Bug #13161: [DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array
ruby_2_2 r58112 merged revision(s) 57434. usa (Usaku NAKAMURA)
05:36 PM Revision 0a1e5646 (git): merge revision(s) 57434: [Backport #13161]
Enumerable#{min,min_by,max,max_by} [ci skip]
* enum.c: [DOC] Enumerable#{min,min_by,max,max_by} return a sorted
array when +n+ argument is used.
* enum.c: Small typo : minimum -> maximum
[Bug #13161]
...
U.Nakamura
05:35 PM Bug #11900: broken encoding of commandline on Windows
ruby_2_2 r58111 merged revision(s) 54785. usa (Usaku NAKAMURA)
05:35 PM Revision bf2d4e93 (git): merge revision(s) 54785: [Backport #11900]
* ruby.c (process_options): convert -e script to the encoding
given by a command line option on Windows. assume it is the
expected encoding. [ruby-dev:49461] [Bug #11900]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
U.Nakamura
05:34 PM Bug #11752: Bug in Rational documentation
ruby_2_2 r58110 merged revision(s) 57539. usa (Usaku NAKAMURA)
05:34 PM Revision ae432a96 (git): merge revision(s) 57539: [Backport #11752]
rational.c: fix rdoc [ci skip]
* rational.c (rb_rational_plus): [DOC] fix an example.
A patch by Trygve Flathen <at.ruby-lang AT flathen.net> in
[ruby-core:71755]. [Bug #11752]
git-svn-id: svn+ssh://ci.ruby...
U.Nakamura
05:32 PM Bug #13364: Please backport r56310
ruby_2_2 r58109 merged revision(s) 56310. usa (Usaku NAKAMURA)
05:31 PM Bug #13364 (Closed): Please backport r56310
usa (Usaku NAKAMURA)
05:30 PM Bug #13364 (Closed): Please backport r56310
バックポート管理用のチケットです。 usa (Usaku NAKAMURA)
05:32 PM Revision 8c34c05d (git): merge revision(s) 56310: [Backport #13364]
* win32/win32.c (poll_child_status): rb_w32_wait_events_blocking() sets
errno internally, then should not set it here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:27 PM Bug #8996: pthread_mutex_lock EINVAL
ruby_2_2 r58108 merged revision(s) 57595. usa (Usaku NAKAMURA)
05:27 PM Revision f60e5af0 (git): merge revision(s) 57595: [Backport #8996]
check thread deadness correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:13 PM Bug #12741: Timeout with specified exception class sets cause on error if timeout block is handling an exception when timeout occurs
ruby_2_2 r58107 merged revision(s) 56125,56150. usa (Usaku NAKAMURA)
05:13 PM Revision da0e2152 (git): merge revision(s) 56125,56150: [Backport #12741]
* thread.c (rb_threadptr_raise): set cause from the called thread,
but not from the thread to be interrupted.
[ruby-core:77222] [Bug #12741]
* test/ruby/test_exception.rb: fix thread issues.
* use Q...
U.Nakamura
05:11 PM Bug #10403: `puts` documentation fix
ruby_2_2 r58106 merged revision(s) 57767,57943. usa (Usaku NAKAMURA)
05:11 PM Revision 134c045f (git): merge revision(s) 57767,57943: [Backport #10403]
io.c: documentation for puts
* io.c: [DOC] clarify that the 'record separator' between
arguments passed to 'puts' is always a newline.
Based on a patch by Mark Amery. [ruby-core:65801] [Misc #10403]
*...
U.Nakamura
05:08 PM Bug #13273: [DOC] Proc#call docs show "Document-method: []" directive
ruby_2_2 r58105 merged revision(s) 57765. usa (Usaku NAKAMURA)
05:08 PM Revision 8ab5fe41 (git): merge revision(s) 57765: [Backport #13273]
proc.c: documentation for Proc#{call,yield,[]}
* proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:
* change order of Document-method directives as workaround for an
RDoc rendering problem where ...
U.Nakamura
05:03 PM Bug #12975: Edit documentation for IO#print function
ruby_2_2 r58104 merged revision(s) 57780. usa (Usaku NAKAMURA)
05:03 PM Revision 673310ec (git): merge revision(s) 57780: [Backport #12975]
docs for IO#print
* io.c: [DOC] split documentation for IO#print into smaller paragraphs,
delete duplicate sentence, fix call-seq.
Based on a patch by Dario Daic. [ruby-core:78291] [Bug #12975]
git-svn-id: s...
U.Nakamura
05:01 PM Bug #13292: Invalid encodings in UTF-32
ruby_2_2 r58103 merged revision(s) 57816,57817. usa (Usaku NAKAMURA)
05:01 PM Revision ad075f69 (git): merge revision(s) 57816,57817: [Backport #13292]
fix UTF-32 valid_encoding?
* enc/utf_32be.c (utf32be_mbc_enc_len): check arguments precisely.
[ruby-core:79966] [Bug #13292]
* enc/utf_32le.c (utf32le_mbc_enc_len): ditto.
* regenc.h (UNICODE_VALID_CO...
U.Nakamura
04:58 PM Revision b824ac5f (git): * regcomp.c (set_bm_skip): Need to check the end of the string.
this patch is from https://github.com/k-takata/Onigmo/commit/e5c0e6c36187898bb27960cd66d591f172558848 .
[Backport #12997]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:48 PM Bug #13193: [DOC] Revise docs for Date and DateTime
ruby_2_2 r58101 merged revision(s) 57549. usa (Usaku NAKAMURA)
04:48 PM Revision 33581853 (git): merge revision(s) 57549: [Backport #13193]
date_core.c: [DOC] revise docs [ci skip]
* fix malformed rdoc for Date#today, Date._strptime,
and DateTime._strptime
* add code examples for Date#<< and Date#>> to demonstrate
that different dates can...
U.Nakamura
04:35 PM Bug #13169: Fix OpenStruct#each_pair return value
ruby_2_2 r58100 merged revision(s) 57515. usa (Usaku NAKAMURA)
04:35 PM Revision fc7fa64b (git): merge revision(s) 57515: [Backport #13169]
lib/ostruct.rb: Fix returned value of each_pair.
From a patch by Marcus Stollsteimer. [Fixes #13169]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:31 PM Bug #12855: Inconsistent keys identity in compare_by_identity Hash when using literals
ruby_2_2 r58099 merged revision(s) 57278,57279. usa (Usaku NAKAMURA)
04:31 PM Revision bdedc17f (git): merge revision(s) 57278,57279: [Backport #12855]
fix optimization for hash aset/aref with fstring
Patch by Eric Wong [ruby-core:78797].
I don't like the idea of making insns.def any bigger to support
a corner case, and "test_hash_aref_fstring_identity" shows
...
U.Nakamura
04:29 PM Bug #13135: Regexp.last_match returns nil with s.rindex(//)
ruby_2_2 r58098 merged revision(s) 57374. usa (Usaku NAKAMURA)
04:29 PM Revision 0d528f4a (git): merge revision(s) 57374: [Backport #13135]
string.c: rindex(//) should set $~.
This seems a bug introduced by r520 (1.4.0). [ruby-core:79110] [Bug #13135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:15 PM Bug #13254: Dir.exist? などで「ディスクがありません」ダイアログが表示される
ruby_2_2 r58097 merged revision(s) 57741. usa (Usaku NAKAMURA)
04:15 PM Revision 0f70d439 (git): merge revision(s) 57741: [Backport #13254]
disable critical-error-handler
* win32/win32.c (rb_w32_sysinit): disable critical-error-handler
message box even on mswin, regardless of runtime DLL version.
[ruby-dev:49988] [Bug #13254]
git-svn-id: svn+ssh...
U.Nakamura
04:14 PM Bug #13267: ruby 2.4.0 i686-w64-mingw32 + boost compilation error
ruby_2_2 r58096 merged revision(s) 57762. usa (Usaku NAKAMURA)
04:14 PM Revision 9f853b2e (git): merge revision(s) 57762: [Backport #13267]
broken mingw
* configure.in: check whether frexp and modf are broken.
* include/ruby/win32.h (frexp, modf): ignore bad declarations when
compiling as C++. [ruby-core:79859] [Bug #13267]
git-svn-id: svn+ssh:/...
U.Nakamura
04:13 PM Bug #13205: Backport r57589 (parallel.rb: fix intervention)
ruby_2_2 r58095 merged revision(s) 57589. usa (Usaku NAKAMURA)
04:13 PM Revision 2d5eca7f (git): merge revision(s) 57589: [Backport #13205]
parallel.rb: fix intervention
* test/lib/test/unit/parallel.rb (_report): send a response and a
newline atomically, to get rid of intervention with "p" which
runs in a separate thread.
git-svn-id: svn+ssh://...
U.Nakamura
04:03 PM Bug #13158: UNIXServer#closed? returns false after UNIXServer#close called
ruby_2_2 r58094 merged revision(s) 57422. usa (Usaku NAKAMURA)
04:03 PM Revision a48d1547 (git): merge revision(s) 57422: [Backport #13158]
io.c: close before wait
* io.c (io_close_fptr): notify then close, and wait for other
threads before free fptr. [ruby-core:79262] [Bug #13158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58094 b2dd0...
U.Nakamura
03:47 PM Bug #13076: SEGV in io.c when reading closed stream in Thread
ruby_2_2 r58093 merged revision(s) 57199,57202,57206,57224. usa (Usaku NAKAMURA)
03:47 PM Revision 8a14ed3d (git): merge revision(s) 57199,57202,57206,57224: [Backport #13076]
io.c: fix race between read and close
* io.c (io_fillbuf): fix race between read and close, in the case
the IO gets closed before the reading thread achieve the lock.
[ruby-core:78845] [Bug #13076]
th...
U.Nakamura
03:39 PM Bug #12884: Using a HashWithIndifferentAccess with a default value in a function with a keyword parameter converts it to a Hash.
ruby_2_2 r58092 merged revision(s) 57360. usa (Usaku NAKAMURA)
03:39 PM Revision d8b81e52 (git): merge revision(s) 57360: [Backport #12884]
class.c: non-keyword hash class
* class.c (rb_extract_keywords): keep the class of non-keyword
elements hash as the original. [ruby-core:77813] [Bug #12884]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2...
U.Nakamura
03:36 PM Bug #13119: String#scrub ignores the block if the string encoding is not ASCII-compatible
ruby_2_2 r58091 merged revision(s) 57302,57303,57304. usa (Usaku NAKAMURA)
03:36 PM Revision 8dc3d3fd (git): merge revision(s) 57302,57303,57304: [Backport #13119]
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]
string.c: yield invalid part
* s...
U.Nakamura
03:30 PM Bug #12613: iseq_set_sequence: adjust bug -1 < 0 (retry inside begin/rescue)
ruby_2_2 r58090 merged revision(s) 57368. usa (Usaku NAKAMURA)
03:30 PM Revision a0f4f436 (git): merge revision(s) 57368: [Backport #12613]
compile.c: check err_info
* compile.c (iseq_setup): bail out if any errors found.
[ruby-core:76531] [Bug #12613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:26 PM Feature #13303: String#any? as !String#empty?
My vote for is for not needed, with second choice of `not_empty?`.
1) neg - I don't believe it's always necessary to have pairs of logical attributes/properties, as it certainly clutters up the namespace.
2) pos - Ruby already supp...
MSP-Greg (Greg L)
03:19 PM Bug #13089: r57227 の変更ではリークが起きるようです
ruby_2_2 r58089 merged revision(s) 57236. usa (Usaku NAKAMURA)
03:19 PM Revision d53acd85 (git): merge revision(s) 57236: [Backport #13089]
rational.c: memory leak in gcd
* rational.c (rb_gcd_gmp): fix memory leak. patched by KISHIMOTO,
Makoto <ksmakoto AT dd.iij4u.or.jp> in [ruby-dev:49934].
[Bug #13089]
git-svn-id: svn+ssh://ci.ruby-lang.org/...
U.Nakamura
03:16 PM Bug #13075: String#unpack with block / String#unpack1 exposes uninitialized memory
ruby_2_2 r58088 merged revision(s) 57187,57234. usa (Usaku NAKAMURA)
03:16 PM Revision c7405500 (git): merge revision(s) 57187,57234: [Backport #13075]
pack.c: avoid returning uninitialized String
Fix unpacking with 'b', 'B', 'h' and 'H' format. Do not return an
uninitialized String to Ruby before filling the content bytes.
Fixes r11175 ("pack.c (pack_unpack): e...
U.Nakamura
03:09 PM Bug #13012: irb fails to define a method with a reserved-word-ish keyword argument
ruby_2_2 r58086 merged revision(s) 57027. usa (Usaku NAKAMURA)
03:09 PM Revision 989532c5 (git): * 2017-03-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:09 PM Revision e58af076 (git): merge revision(s) 57027: [Backport #13012]
ruby-lex.rb: fix for label
* lib/irb/ruby-lex.rb (identify_identifier): treat identifier just
followed by a colon as a lable. this is not a precise solution
but enough for the time being. [ruby-core:78526] ...
U.Nakamura
02:43 PM Bug #12478: ruby2.2.5でオブジェクトに対して def_delegatorを行うとNoMethodError undefined method `method_defined?' が発生する。
ruby_2_2 r58085 merged revision(s) 53383,55366. usa (Usaku NAKAMURA)
02:43 PM Revision a14ba6e3 (git): merge revision(s) 53383,55366: [Backport #12478]
* lib/forwardable.rb (def_instance_delegator): adjust backtrace of
method body by tail call optimization. adjusting the delegated
target is still done by deleting backtrace.
* lib/forwardable.rb (def_single_...
U.Nakamura
07:46 AM Bug #13361 (Closed): Can't build Ruby trunk with i386 arch on macOS 10.12
Applied in changeset trunk|r58084.
----------
configure.in: syscall is deprecated on macOS
* configure.in: syscall is no longer supported on macOS since
10.12. [ruby-core:80300] [Bug #13361]
nobu (Nobuyoshi Nakada)
03:31 AM Bug #13361: Can't build Ruby trunk with i386 arch on macOS 10.12
I succeeded to build i386 on my macOS with your patch.
Thank you, nobu !
watson1978 (Shizuo Fujita)
07:46 AM Revision cd80709c (git): configure.in: syscall is deprecated on macOS
* configure.in: syscall is no longer supported on macOS since
10.12. [ruby-core:80300] [Bug #13361]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:23 AM Bug #13236 (Closed): Ruby segfault
Applied in changeset trunk|r58083.
----------
class.c: prohibit refinement module
* class.c (ensure_includable): cannot include refinement
module, or the type and the class do not match.
[ruby-core:79632] [Bug #13236]
nobu (Nobuyoshi Nakada)
02:11 AM Bug #13236 (Assigned): Ruby segfault
Thank you, reduced code with `GC.stress` could reproduce it.
```ruby
module M
include refine(String) {def test;:ok end}
end
class C
include M
end
GC.stress = true
C.new("foo").test
```
But I wonder if it is possible to...
nobu (Nobuyoshi Nakada)
03:23 AM Revision 217f599a (git): class.c: prohibit refinement module
* class.c (ensure_includable): cannot include refinement
module, or the type and the class do not match.
[ruby-core:79632] [Bug #13236]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:57 AM Revision 19a1f703 (git): class.c: ensure_includable
* class.c (ensure_includable): extract checks to include and
prepend.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:44 AM Bug #13363 (Closed): Backport ripper location fix
r58080 fixed a bug of line number after an unterminated string literal, which affected `Ripper.lex`. nobu (Nobuyoshi Nakada)
01:07 AM Revision 0d0eefd9 (git): * 2017-03-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:07 AM Revision e5600caf (git): keep line number after unterminated string literal
* parse.y (parser_parse_string): keep line number even after an
unterminated string literal. it does not matter in the parser,
ripper needs this value after this error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58080 b2dd03...
nobu (Nobuyoshi Nakada)

03/24/2017

11:38 PM Bug #13236: Ruby segfault
nobu (Nobuyoshi Nakada) wrote:
> Could you enable debugging?
So I *think* I have managed to bisect the segfault. When I comment a specific test I never see the segfault, but when I uncomment it I get (sometimes) the segfault. The tes...
Gondolin (Damien Robert)
11:30 PM Bug #13358: OpenStruct overriding allocate
Eregon (Benoit Daloze) wrote:
> But not only, after all it is a public and well-known method (many hits on GitHub code search).
> ...
Methods of constructed objects will be used more than construction usually.
> but also various lib...
nobu (Nobuyoshi Nakada)
04:48 PM Bug #13358: OpenStruct overriding allocate
nobu (Nobuyoshi Nakada) wrote:
> For what purpose?
> ...
But not only, after all it is a public and well-known method (many hits on GitHub code search).
Many deserializing libraries will use it,
but also various libraries which need ...
Eregon (Benoit Daloze)
02:01 PM Bug #13358: OpenStruct overriding allocate
Eregon (Benoit Daloze) wrote:
> Lots of Ruby code calls Class#allocate.
> ...
For what purpose?
It should be used by `Class#new`, `Kernel#dup`, `Kernel#clone`, and `Marshal.load`.
> Why another patch? It seems more hacky and less p...
nobu (Nobuyoshi Nakada)
01:11 PM Bug #13358: OpenStruct overriding allocate
nobu (Nobuyoshi Nakada) wrote:
> Note that `OpenStruct.allocate` is intended to be used by only psych.
> ...
Lots of Ruby code calls Class#allocate.
Of course, #initialize should be called directly after or some other way to initializ...
Eregon (Benoit Daloze)
12:16 PM Bug #13358 (Closed): OpenStruct overriding allocate
Applied in changeset r58077.
----------
ostruct.rb: fix OpenStruct.allocate
* lib/ostruct.rb (OpenStruct.allocate): initialize an instance
variable directly, without calling `intialize` method which may
be overridden in a subclass....
nobu (Nobuyoshi Nakada)
08:14 AM Bug #13358: OpenStruct overriding allocate
Note that `OpenStruct.allocate` is intended to be used by only psych.
Not only `OpenStruct`, `Class#allocate` is not intended to be called directly.
nobu (Nobuyoshi Nakada)
06:20 PM Feature #13303: String#any? as !String#empty?
mame (Yusuke Endoh) wrote:
> if h and h["value"].present?
I think `foo.present?` semantically should be the same as `!foo.nil?` ("is the object present?" = "does the object exist?"), which probably wouldn't make much sense as a m...
stomar (Marcus Stollsteimer)
03:14 PM Feature #13303: String#any? as !String#empty?
duerst (Martin Dürst) wrote:
> [].any? is always true.
No, it is always false. I agree that `String#any?` is a bad name for the behavior, anyway.
I think that what Naruse-san really wants is, still, `Object#present?`.
if h...
mame (Yusuke Endoh)
12:47 PM Feature #13303: String#any? as !String#empty?
Maybe String#filled? or String#filled_in? ? rosenfeld (Rodrigo Rosenfeld Rosas)
08:46 AM Feature #13303: String#any? as !String#empty?
`any?` would definitely be the wrong name, because for Arrays, [].any? is always true.
Of the names proposed so far, I think `not_empty?` looks best. An alternative may be `unempty?`, but that may sound decidedly unenglish :-). Anothe...
duerst (Martin Dürst)
08:18 AM Feature #13303: String#any? as !String#empty?
matz (Yukihiro Matsumoto) wrote:
> Use-case?
For example https://github.com/ruby/ruby/commit/0256fa889039295742448ad72634fec4ea638684#diff-9199d649a7165e719f0209c3c789f1bbR482
> ...
naruse (Yui NARUSE)
02:30 PM Bug #13361 (Feedback): Can't build Ruby trunk with i386 arch on macOS 10.12
Does this work?
```diff
diff --git a/configure.in b/configure.in
index 1cec2e33ac..dcd56ba2f7 100644
--- a/configure.in
+++ b/configure.in
@@ -1100,6 +1100,12 @@ AS_CASE(["$target_os"],
],
[macosx_10_5=yes], [maco...
nobu (Nobuyoshi Nakada)
09:24 AM Bug #13361: Can't build Ruby trunk with i386 arch on macOS 10.12
The build error is occurred on i386 only. watson1978 (Shizuo Fujita)
07:07 AM Bug #13361: Can't build Ruby trunk with i386 arch on macOS 10.12
Only i386 but not x86_64? nobu (Nobuyoshi Nakada)
02:18 AM Bug #13361 (Closed): Can't build Ruby trunk with i386 arch on macOS 10.12
Ruby uses deprecated function and it causes build error.
Here is reproduce operation.
~~~
$ svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby
$ cd ruby
$ autoconf
$ ./configure --with-arch=i386
$ make
CC = clang
LD = ld
...
watson1978 (Shizuo Fujita)
02:06 PM Revision 33334546 (git): merge revision(s) 58078:
export_changelog must specify the branch's url
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@58079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:05 PM Revision 8d1dacb2 (git): export_changelog must specify the branch's url
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:16 PM Revision cd911b93 (git): ostruct.rb: fix OpenStruct.allocate
* lib/ostruct.rb (OpenStruct.allocate): initialize an instance
variable directly, without calling `intialize` method which may
be overridden in a subclass. [ruby-core:80292] [Bug #13358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nobu (Nobuyoshi Nakada)
10:39 AM Bug #13360 (Closed): MinGW svn 58071 Build broken! Appears unicode related...
MSP-Greg (Greg L) wrote:
> Please close.
Done.
duerst (Martin Dürst)
03:53 AM Bug #13360: MinGW svn 58071 Build broken! Appears unicode related...
Note to self - always check appveyor and travis files
make touch-unicode-files
Please close.
MSP-Greg (Greg L)
12:46 AM Bug #13360 (Closed): MinGW svn 58071 Build broken! Appears unicode related...
As mentioned previously, I've been building and using trunk for several months. Last build I did that was fine was 2017-03-22 svn 58055.
Today, I tried svn 58071, and it stopped before completing a build for both i686 and x86_64. I ...
MSP-Greg (Greg L)
07:29 AM Revision 7142f5b5 (git): logger: remove redundant opt_str_freeze use
Strings in "when" statements are allocation-free, so there's
never any reason to uglify the code to use opt_str_freeze over
the normal putobject instructions, here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58076 b2dd03c8-39d4-4...
Eric Wong
05:51 AM Feature #13362 (Closed): [PATCH] socket: avoid fcntl for read/write_nonblock on Linux
On platforms where MSG_DONTWAIT works reliably on all sockets
(so far, I know of Linux), we can avoid fcntl syscalls and
implement IO#write_nonblock and IO#read_nonblock in terms of the
socket-specific send and recv family of syscalls...
normalperson (Eric Wong)
04:37 AM Revision 7cdf09ca (git): Do not update Unicode headers
* common.mk (name2ctype.h, casefold.h): use as checked out unless
ALWAYS_UPDATE_UNICODE=yes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:42 AM Revision cf94bb9a (git): Don't download from Unicode.org
* tool/make-snapshot: use checked out headers for Unicode, to get
rid of downloading data files from Unicode.org.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:44 AM Revision f5e26594 (git): common.mk: touch-unicode-files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:10 AM Revision 489c1e33 (git): Make Unicode data directory
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:37 AM Bug #13062: 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
1.3.1 still had the problem, but 1.3.2 worked, thanks! It would still be nice if this was ported over to 2.4.x abezzub (Andrew Bezzub)
12:27 AM Bug #13062: 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
You can install and use bigdecimal-1.3.1 via standalone gem with Ruby 2.4 hsbt (Hiroshi SHIBATA)
 

Also available in: Atom