Project

General

Profile

Activity

From 01/14/2017 to 01/20/2017

01/20/2017

05:11 PM Bug #13141 (Third Party's Issue): Spurious Net::FTPReplyError
I have a script that downloads many files via FTP. `ftp.getbinaryfile` occasionally fails (about 7 times while downlo... Phrogz (Gavin Kistner)
05:11 PM Feature #12180: switch id_table.c variant
Oh, to reduce hash size either max serial_id should be 0x7fffffff instead of 0xffffffff
(cause 1 bit is stolen for c...
funny_falcon (Yura Sokolov)
03:46 PM Feature #12180: switch id_table.c variant
Excuse me for not reacting on discussion.
I forgot to turn on mail notifications for this issue.
> can you make a...
funny_falcon (Yura Sokolov)
03:17 AM Feature #12180: switch id_table.c variant
We looked at this issue in yesterday's developer meeting.
(As ko1 measured before,) we confirmed that ffalcon's im...
shyouhei (Shyouhei Urabe)
04:15 PM Bug #9285 (Rejected): Exception message of Errno::ENOENT contains strings @ rb_sysopen and @ dir_initialize in Ruby 2.1
Through the experience in this three years, this error message sometimes help us to debug.
It is useful and kept as is.
naruse (Yui NARUSE)
03:23 PM Bug #9285: Exception message of Errno::ENOENT contains strings @ rb_sysopen and @ dir_initialize in Ruby 2.1
Is this worth of keeping open? It does not look it will be reverted. And seeing "temporary" workarounds such as [1] d... vo.x (Vit Ondruch)
03:04 PM Feature #13125: MRI has too much Qtrue : Qfalse;
How about `BOOL2RBOOL`? znz (Kazuhiro NISHIYAMA)
02:11 PM Feature #13125: MRI has too much Qtrue : Qfalse;
> "reverse" of RTEST()
How about ...
- CTEST()
- TEST2BOOL()
- C2BOOL()
Hope those help brainstorm a bi...
rmosolgo (Robert Mosolgo)
04:37 AM Feature #13125: MRI has too much Qtrue : Qfalse;
We looked at this issue at yesterday's developer meeting. Nobody was against introducing a macro. No consensus over... shyouhei (Shyouhei Urabe)
01:33 PM Revision 121984da (git): Remove deprecated rbconfig/datadir
This is deleted at
https://github.com/rubygems/rubygems/commit/0e3c2c1f04182990c4c7a0aa53435ad8427342fd
in upstream.
...
znz (Kazuhiro NISHIYAMA)
12:26 PM Feature #13110: Byte-based operations for String
> The "buffer gap" technique is very well known, I'm familiar with it since the early 90ies. I was thinking about it,... shugo (Shugo Maeda)
10:21 AM Feature #13110: Byte-based operations for String
Benoit Daloze wrote:
> Shugo Maeda wrote:

> > UTF-32 is not useful because it's a dummy encoding.
>
> What ab...
duerst (Martin Dürst)
11:16 AM Misc #13072: Current state of date standard library
> Time is kept in core
> date library will be separeted from Ruby repository (stdlib) to date.gem.
What problems ...
zverok (Victor Shepelev)
10:36 AM Misc #13072: Current state of date standard library
Victor Shepelev wrote:
> The facts that I've been able to gather (not supported by links, so please forgive me if I ...
naruse (Yui NARUSE)
10:59 AM Revision ef31fedd (git): extmk.rb: ignore generated sources
* ext/extmk.rb (extract_makefile): ignore generated source files
not to reconfigure when in-place build.
git-svn-i...
nobu (Nobuyoshi Nakada)
10:10 AM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
The use of `:nodoc:` for these situations it is not a valid option in my opinion.
The reason being because `Object#p...
dsferreira (Daniel Ferreira)
09:54 AM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
My proposal of [Internal intefaces](https://bugs.ruby-lang.org/issues/9992) comes in line with this proposal.
I woul...
dsferreira (Daniel Ferreira)
03:29 AM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
We looked at this issue yesterday at developers meeting.
While I understand the needs to distinguish official API ...
shyouhei (Shyouhei Urabe)
09:47 AM Feature #9992: Access Modifiers (Internal Interfaces)
Matthew Draper presented a feature request to [extended 'protected' access modifier](https://bugs.ruby-lang.org/issue... dsferreira (Daniel Ferreira)
08:19 AM Feature #12969: Allow optional parameter in String#strip and related
Yukihiro Matsumoto wrote:
> Removing pattern may not be set of single character, or may be complex.
> Considering t...
duerst (Martin Dürst)
08:00 AM Bug #9569 (Closed): SecureRandom should try /dev/urandom first
Applied in changeset r57384.
----------
SecureRandom should try /dev/urandom first [Bug #9569]
* random.c (InitVM_...
shyouhei (Shyouhei Urabe)
08:00 AM Revision abae70d6 (git): SecureRandom should try /dev/urandom first [Bug #9569]
* random.c (InitVM_Random): rename Random.raw_seed to
Random.urandom. A quick search seems there are no pr...
shyouhei (Shyouhei Urabe)
07:50 AM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
Herwin W wrote:
> Regarding `String#gsb` and `String#sb`: It is far from clear what the difference between `#sub` an...
duerst (Martin Dürst)
07:45 AM Revision e95eb958 (git): Keep -jN option
* {cygwin,template}/GNUmakefile.in (MFLAGS, MAKEFLAGS): keep -jN
option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
nobu (Nobuyoshi Nakada)
06:01 AM Feature #13017 (Closed): Switch SipHash from SipHash24 to SipHash13
Applied in changeset r57382.
----------
switch SipHash from SipHash24 to SipHash13 variant
SipHash13 is secure enou...
shyouhei (Shyouhei Urabe)
06:01 AM Revision 04c94f95 (git): switch SipHash from SipHash24 to SipHash13 variant
SipHash13 is secure enough to be used in hash-tables,
and SipHash's author confirms that.
Rust already considered swi...
shyouhei (Shyouhei Urabe)
05:34 AM Bug #13140 (Rejected): unmatched parenthesis error on regexp with "x" option when all parens are matched
http://ruby-doc.org/core-2.4.0/doc/regexp_rdoc.html#label-Free-Spacing+Mode+and+Comments nobu (Nobuyoshi Nakada)
05:08 AM Bug #13140: unmatched parenthesis error on regexp with "x" option when all parens are matched
Realized the problem.
The error is caused because the x option also ignores text after # and two # appear in the reg...
jdmeta (jake meta)
04:42 AM Bug #13140 (Rejected): unmatched parenthesis error on regexp with "x" option when all parens are matched
See the attached source file.
When the attached file is executed as is, the following error is emitted:
test.r...
jdmeta (jake meta)
05:24 AM Bug #13104: mathn.rb affects Rational literals
Just "don't use math"? nobu (Nobuyoshi Nakada)
04:26 AM Bug #13104: mathn.rb affects Rational literals
We looked at this issue at yesterday's developer meeting.
The intension was not made clear, but we confirmed that ...
shyouhei (Shyouhei Urabe)
05:14 AM Bug #13079 (Feedback): linked list corruption (probable race condition)
I'm not sure correctly, but you may violate something MRI requires.
Currently, I can't understand anything.
If you ...
ko1 (Koichi Sasada)
04:41 AM Feature #11925: Struct construction with kwargs
Another idea is introducing another method to define own struct, such as `T = Struct.define(:a, :b); T.new(a: 1, b: 2... ko1 (Koichi Sasada)
04:28 AM Bug #13139 (Closed): bug in the Ruby interpreter or extension for new AIX VM chef-client run.
Good to hear the problem disappeared. shyouhei (Shyouhei Urabe)
03:10 AM Bug #13139: bug in the Ruby interpreter or extension for new AIX VM chef-client run.
This problem goes away either after waiting for a while and retrying... or by forcing the upload of the missing cookb... ibellinf (Ian Bellinfantie)
04:27 AM Revision f81c1c24 (git): compile.c: optimization of defined? in condition
* compile.c (compile_branch_condition): trivial optimization of
defined? expression in a branch condition, where a ...
nobu (Nobuyoshi Nakada)
04:22 AM Bug #13064: Inconsistent behavior with `next` inside `begin`/`end` across different implementations.
We looked at this issue at yesterday's developer meeting.
While Ko1 and Matz already replied that the current MRI ...
shyouhei (Shyouhei Urabe)
04:01 AM Feature #13048: Better way to do Regexp.new(Regexp.escape("some string"))
We looked at this issue at yesterday's developer meeting.
While looking at "Regexp.new Regexp.escape" search resul...
shyouhei (Shyouhei Urabe)
03:41 AM Feature #13016 (Rejected): String#gsub(hash)
We looked at this issue in yesterday's developer meeting.
While I claimed the use of regular expression is an impl...
shyouhei (Shyouhei Urabe)
03:33 AM Feature #12967: Add a default for RUBY_GC_HEAP_GROWTH_MAX_SLOTS out-of-the-box
We looked at this issue at yesterday's developer meeting.
Ko1 said he was not sure if the proposed default value i...
shyouhei (Shyouhei Urabe)
03:23 AM Misc #12935: Webrick: Update HTTP Status codes, share them
We looked at this issue at yesterday's developer meeting and decided to let naruse (who was there) handle this issue. shyouhei (Shyouhei Urabe)
02:39 AM Bug #13136 (Closed): large_array.sample(11)が遅い
Applied in changeset r57380.
----------
array.c: improve Array#sample
* array.c (rb_ary_sample): improve performanc...
nobu (Nobuyoshi Nakada)
12:59 AM Bug #13136: large_array.sample(11)が遅い
別案としてhashの代わりに配列で覚えておくという方法もありますが、元の配列に比例した作業領域を使うのでそのコストが高いかもしれません。
```diff
diff --git a/array.c b/array.c
inde...
nobu (Nobuyoshi Nakada)
02:39 AM Revision 2de1dbdf (git): array.c: improve Array#sample
* array.c (rb_ary_sample): improve performance when many samples
from a large array. based on the patch by tomoya ...
nobu (Nobuyoshi Nakada)
02:27 AM Revision 8f76ad37 (git): benchmarks for Bug#13136
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:27 AM Feature #13137: Hash Shorthand
While I understand the primary reasoning behind it - less to type - I do not like the syntax proposal.
To me it lo...
shevegen (Robert A. Heiler)
01:02 AM Revision dfac1f5a (git): * 2017-01-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:02 AM Revision 1d4976c0 (git): error.c: print default RS
* error.c (rb_warn_m): print the default RS instead of an empty
string with a newline. [Feature #12944]
git-svn-i...
nobu (Nobuyoshi Nakada)

01/19/2017

08:50 PM Bug #13139: bug in the Ruby interpreter or extension for new AIX VM chef-client run.
Sorry, same error is obtained even if I put the correct recipe specification...
ibellinf (Ian Bellinfantie)
08:17 PM Bug #13139 (Closed): bug in the Ruby interpreter or extension for new AIX VM chef-client run.
installed the Chef-client on a new AIX VM.
Ran a bootstrap from windows SDK
PS C:\Users\Administrator\chef-repo>...
ibellinf (Ian Bellinfantie)
07:43 PM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
Regarding `String#gsb` and `String#sb`: It is far from clear what the difference between `#sub` and `#sb` is just by ... herwin (Herwin W)
09:22 AM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
How about String#gsb and String#sb ?
- gsb and sb are shorter and gsub and sub.
- gsb and sb is readable as g-sub...
akr (Akira Tanaka)
03:27 PM Bug #13136: large_array.sample(11)が遅い
ありがとうございます
patch修正しました。
RAND_UPTOで例外が起きる対策でst_free_tableをrb_ensureに
RAND_UPTO中に配列のサイズが変わる対策としてRAND_UPTOをあらかじめ呼んだ...
tompng (tomoya ishida)
01:42 AM Bug #13136: large_array.sample(11)が遅い
方針はいいと思います。
`RAND_UPTO()`は`rand`オブジェクトのメソッドを呼ぶ場合例外が起きる可能性があるので、`st_free_table(table)`を`rb_ensure`にするとか、`RARRAY_PTR_U...
nobu (Nobuyoshi Nakada)
02:40 PM Bug #13111 (Closed): Degraded performance for delegated methods through Forwardable module
Let me close (closed issues are inspected by branch mentors to backport-ability). I guess this is a subject to backp... shyouhei (Shyouhei Urabe)
11:11 AM Feature #8158: lightweight structure for loaded features index
Matz,
I don't know English enough to clearly understand your suggestion.
Is it suggestion of commit rights?
If...
funny_falcon (Yura Sokolov)
05:48 AM Feature #8158: lightweight structure for loaded features index
The patch seems OK now. @funny_falcon do you want to check in by yourself?
Matz.
matz (Yukihiro Matsumoto)
10:02 AM Bug #9569: SecureRandom should try /dev/urandom first
Bart de Water wrote:
> Akira Tanaka wrote:
> > Please update the man page first, if it is really out-dated.
>
> ...
akr (Akira Tanaka)
09:55 AM Feature #12906 (Closed): do/end blocks work with ensure/rescue/else
Applied in changeset r57376.
----------
parse.y: rescue/else/ensure in do-end
* parse.y (do_body): allow rescue/els...
nobu (Nobuyoshi Nakada)
08:27 AM Feature #12906: do/end blocks work with ensure/rescue/else
Although I am not a big fan of this syntax, mostly because I don't like fine grain exception handling.
But I found o...
matz (Yukihiro Matsumoto)
09:54 AM Revision 0ec889d7 (git): parse.y: rescue/else/ensure in do-end
* parse.y (do_body): allow rescue/else/ensure inside do/end
blocks. [Feature #12906]
git-svn-id: svn+ssh://ci.rub...
nobu (Nobuyoshi Nakada)
09:35 AM Bug #13127 (Assigned): DRb `load': connection closed (DRb::DRbConnError) when client exit's from within a loop iterating over remote objects
shyouhei (Shyouhei Urabe)
09:35 AM Feature #13016 (Feedback): String#gsub(hash)
akr (Akira Tanaka)
09:34 AM Feature #13016: String#gsub(hash)
Ruby has enough feature to implement String#hsub as Martin-sensei said.
However the performance of String#hsub is ...
akr (Akira Tanaka)
09:34 AM Revision f34d0ba3 (git): More description about the protected attribute of a method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:27 AM Feature #12969: Allow optional parameter in String#strip and related
In the Unicode age the list of character is more and more complex.
Using a string as a list of characters is not a g...
naruse (Yui NARUSE)
08:51 AM Feature #12969: Allow optional parameter in String#strip and related
Removing pattern may not be set of single character, or may be complex.
Considering that, using regular expression i...
matz (Yukihiro Matsumoto)
09:22 AM Feature #13067 (Closed): TrueClass,FalseClass to provide `===` to match truthy/falsy values.
Compatibility issue was bigger than I expected. I withdraw this proposal.
Matz.
matz (Yukihiro Matsumoto)
09:09 AM Bug #8241 (Closed): If uri host-part has underscore ( '_' ), 'URI#parse' raise 'URI::InvalidURIError'
URI is upgraded into RFC 3986 at Ruby 2.2. naruse (Yui NARUSE)
09:00 AM Feature #12957: A more OO way to create lambda Procs
The code above does not return a MyLamnda instance.
Matz.
matz (Yukihiro Matsumoto)
08:40 AM Feature #12957 (Feedback): A more OO way to create lambda Procs
It is not impossible to generate MyLambda.new {} as lambda.
```
% ruby -e '
class MyLambda
end
class << MyLamb...
akr (Akira Tanaka)
08:20 AM Misc #12935 (Assigned): Webrick: Update HTTP Status codes, share them
shyouhei (Shyouhei Urabe)
08:17 AM Feature #12929: ternary should look ahead w/in a block (and not care about newlines)
I don't think it's worth modifying the syntax. If you want to write complex conditional code, use if-statement.
Matz.
matz (Yukihiro Matsumoto)
08:14 AM Feature #12929: ternary should look ahead w/in a block (and not care about newlines)
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12929-ternary nobu (Nobuyoshi Nakada)
08:13 AM Bug #13135 (Closed): Regexp.last_match returns nil with s.rindex(//)
Applied in changeset r57374.
----------
string.c: rindex(//) should set $~.
This seems a bug introduced by r520 (1....
shugo (Shugo Maeda)
08:13 AM Revision d33726b8 (git): 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/...
shugo (Shugo Maeda)
07:57 AM Bug #12998 (Closed): paragraph mode inconsistency between `IO#each_line` and `String#each_line`
naruse (Yui NARUSE)
07:56 AM Bug #13064: Inconsistent behavior with `next` inside `begin`/`end` across different implementations.
mruby will be compatible with YARV soon.
Matz.
matz (Yukihiro Matsumoto)
07:44 AM Bug #13064: Inconsistent behavior with `next` inside `begin`/`end` across different implementations.
1! ko1 (Koichi Sasada)
07:48 AM Bug #13138 (Closed): Rounding bug
nobu (Nobuyoshi Nakada)
07:46 AM Bug #13138: Rounding bug
Fixed by r55604 in the trunk.
```diff
diff --git i/numeric.c w/numeric.c
index 46f112349f..9ff68f25c9 100644
--...
nobu (Nobuyoshi Nakada)
06:38 AM Bug #13138 (Closed): Rounding bug
31.175.round(2) = 31.18
32.175.round(2) = 32.17 (I expect 32.18)
roma.shukla (Roma Shukla)
07:22 AM Feature #12931 (Rejected): Add support for Binding#instance_eval
nobu (Nobuyoshi Nakada)
07:21 AM Feature #12931: Add support for Binding#instance_eval
Correct, there is no way to reuse the compiled proc. nobu (Nobuyoshi Nakada)
07:18 AM Feature #12912 (Feedback): An endless range `(1..)`
I think Integer#step and Array#drop is enough for many situations.
I agree these methods are not so intuitive.
Bu...
akr (Akira Tanaka)
07:18 AM Feature #12933 (Closed): Add Some and Optional
I think it should be implemented in gem (at least for the beginning).
After the gen got popular, we can consider mak...
matz (Yukihiro Matsumoto)
07:18 AM Feature #12926 (Closed): -l flag for line end processing should use chomp! instead of chop!
Applied in changeset r57373.
----------
parse.y: chomp by -l
* parse.y (rb_parser_while_loop): should chomp but not...
nobu (Nobuyoshi Nakada)
06:57 AM Feature #12926: -l flag for line end processing should use chomp! instead of chop!
OK, accepted
This is because `-l` is older than `chomp`.
Matz.
matz (Yukihiro Matsumoto)
07:18 AM Revision af9a151f (git): parse.y: chomp by -l
* parse.y (rb_parser_while_loop): should chomp but not chop by -l
option. [ruby-core:78099] [Bug #12926]
git-svn-...
nobu (Nobuyoshi Nakada)
07:07 AM Revision 18a315df (git): Fix documentation of options for all of methods in FileUtils.
Patch by galia traub( @galiat ). [Fix GH-1510][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57372 b2dd...
hsbt (Hiroshi SHIBATA)
07:03 AM Feature #12901: Anonymous functions without scope lookup overhead
The original idea changes the semantics of the language by keyword argument. I don't think that's a good idea.
Some ...
matz (Yukihiro Matsumoto)
06:56 AM Feature #13124: Should #puts convert to external encoding?
On current Ruby, IO converts given string only if the IO object is set internal_encoding.
Therefore the behavior is ...
naruse (Yui NARUSE)
06:39 AM Revision c59e739b (git): ENV#fetch: fix documentation of raised exception
[Fix GH-1514]
Author: Misty De Meo <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5737...
nobu (Nobuyoshi Nakada)
06:25 AM Feature #12944 (Closed): Change Kernel#warn to call Warning.warn
Applied in changeset r57370.
----------
Change Kernel#warn to call Warning.warn
This allows Warning.warn to filter/...
nobu (Nobuyoshi Nakada)
05:31 AM Feature #12944: Change Kernel#warn to call Warning.warn
Go ahead. I want to check compatibility issues early.
Matz.
matz (Yukihiro Matsumoto)
06:25 AM Revision 50db992a (git): Change Kernel#warn to call Warning.warn
This allows Warning.warn to filter/process warning messages
generated by Kernel#warn. Currently, Warning.warn can on...
nobu (Nobuyoshi Nakada)
06:12 AM Feature #5481: Gemifying Ruby standard library
Go ahead and keep gemifying libraries discussing with their maintainer.
Matz.
matz (Yukihiro Matsumoto)
05:54 AM Feature #12854: Proc#curry should return an instance of the class, not Proc
Chad, is this issue what you really want? Or you want new methods like #trans and #lens?
If you still want to make #...
matz (Yukihiro Matsumoto)
05:41 AM Feature #13017 (Open): Switch SipHash from SipHash24 to SipHash13
We are sure now by information provided by @funny_falcon. Thank you.
Go ahead and merge the patch.
Matz.
matz (Yukihiro Matsumoto)
05:40 AM Feature #13017 (Assigned): Switch SipHash from SipHash24 to SipHash13
shyouhei (Shyouhei Urabe)
05:27 AM Feature #12180 (Assigned): switch id_table.c variant
shyouhei (Shyouhei Urabe)
05:24 AM Revision 00ed779c (git): id_table.c: fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:45 AM Bug #12613: iseq_set_sequence: adjust bug -1 < 0 (retry inside begin/rescue)
r57368 would be better, to backport at least. nobu (Nobuyoshi Nakada)
03:42 AM Revision d6fc7d43 (git): 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.ru...
nobu (Nobuyoshi Nakada)
02:27 AM Feature #12733 (Assigned): Bundle bundler to ruby core
hsbt (Hiroshi SHIBATA)
02:08 AM Bug #13113: Performance issue, const_set Module.new is too slow in Ruby 2.4
On 2017/01/19 10:47, Nobuyoshi Nakada wrote:
>> (1) ann_ って何?
>
> ANoNymous

わかんねーです。
せめてコメントとか。

>> (2) Mo...
ko1 (Koichi Sasada)
01:51 AM Bug #13113: Performance issue, const_set Module.new is too slow in Ruby 2.4
On 2017/01/19 10:40, SASADA Koichi wrote:
> 中田さん:
>
> (1) ann_ って何?

ANoNymous

> (2) Module.new.const_set(:...
nobu (Nobuyoshi Nakada)
01:42 AM Bug #13113: Performance issue, const_set Module.new is too slow in Ruby 2.4
中田さん:

(1) ann_ って何?
(2) Module.new.const_set(:X, Module.new) だと、
  Module.new が支配的だと思うんだけど、何が計りたいの?

On 2017/...
ko1 (Koichi Sasada)
01:38 AM Revision 6dccc533 (git): parse.y: warn space
* parse.y (parser_yylex): warn parentheses after space.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57367 b2dd...
nobu (Nobuyoshi Nakada)

01/18/2017

09:11 PM Feature #13137 (Rejected): Hash Shorthand
The ES6 update to Javascript added object shorthand. I propose that a similar hash shorthand be added to Ruby.
###...
trevorlynnsmith (Trevor Smith)
06:23 PM Revision f850b295 (git): * 2017-01-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:23 PM Revision bb8f5b23 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:23 PM Revision e7bd5b88 (git): another benchmark for IO.copy_stream socket writing
For testing Linux socket-only workaround for
https://bugs.ruby-lang.org/issues/13085
git-svn-id: svn+ssh://ci.ruby-l...
Eric Wong
01:25 PM Bug #13136 (Closed): large_array.sample(11)が遅い
Array#sampleのパフォーマンスを改善したい
```ruby
require 'benchmark'
arr = 100000.times.to_a;
Benchmark.measure{100000.times{...
tompng (tomoya ishida)
12:35 PM Revision e527695d (git): lib/profiler.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:30 PM Bug #13115 (Assigned): `YAML.dump` outputs deperecated message even with delegated object
Psych warns if `to_yaml` method is defined by other than psych itself, and delegated methods are defined in `delegate... nobu (Nobuyoshi Nakada)
10:58 AM Feature #13129 (Assigned): Refinements cannot refine method_missing and respond_to_missing?
shyouhei (Shyouhei Urabe)
10:42 AM Bug #13134: Rational() inconsistency
Floating-point numbers in String are exact, Float literal are inexact by nature.
So I would not expect any relation ...
Eregon (Benoit Daloze)
05:24 AM Bug #13134: Rational() inconsistency
> The imprecision that can come with float denominators is why this behavior should not be allowed.
Note there alr...
stomar (Marcus Stollsteimer)
12:48 AM Bug #13134: Rational() inconsistency
I don't think `Rational("3.1/2.0")` should introduce imprecision because the argument string has nothing to do with i... shyouhei (Shyouhei Urabe)
09:15 AM Bug #13107: def_delegators causes random errors in MRI 2.4.0
And I can confirm that also rack-test test suite is passing with this patch [1].
[1] https://apps.fedoraproject....
vo.x (Vit Ondruch)
09:13 AM Bug #13107: def_delegators causes random errors in MRI 2.4.0
Just FTR, this is causing failures in Mongo gem test suite [1]. Applying this patch fixed the issues.
[1] https:...
vo.x (Vit Ondruch)
06:51 AM Bug #10687 (Closed): ArgumentError in certain cases of instance_exec (new bug in 2.2)
nobu (Nobuyoshi Nakada)
06:30 AM Bug #12177 (Closed): Using `if:` as symbol in hash with new hash syntax in irb console is not working
nobu (Nobuyoshi Nakada)
06:18 AM Bug #12276 (Closed): Quoting error involving '$' characters in DT_RPATH pathnames
Quote by single quotes.
```
$ LDFLAGS=" -Wl,-rpath='\$\$ORIGIN/../lib' " ./configure
$ make
$ readelf -d ruby...
nobu (Nobuyoshi Nakada)
05:57 AM Bug #13135: Regexp.last_match returns nil with s.rindex(//)
Shugo Maeda wrote:
> Regexp.last_match returns nil, if // is given to String#rindex:
The following patch seems to...
shugo (Shugo Maeda)
02:53 AM Bug #13135 (Closed): Regexp.last_match returns nil with s.rindex(//)
Regexp.last_match returns nil, if // is given to String#rindex:
```
lexington:ruby$ ruby -ve 'p "foo".rindex(//);...
shugo (Shugo Maeda)
05:49 AM Bug #11964 (Closed): __callee__ in aliased methods defined in a module returns an incorrect value
Seems fixed by r56592. nobu (Nobuyoshi Nakada)
05:49 AM Bug #12058 (Closed): Unexpected value of __callee__ when including a module
Seems fixed by r56592. nobu (Nobuyoshi Nakada)
05:23 AM Bug #13096 (Closed): error using undef_method + refinements
Applied in changeset r57362.
----------
vm_method.c: resolve refined method to undef
* vm_method.c (rb_undef): reso...
nobu (Nobuyoshi Nakada)
05:23 AM Revision b38823ce (git): 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 ...
nobu (Nobuyoshi Nakada)
03:47 AM Feature #12387 (Assigned): ripper: new parser event for kwrest parameter
Seems OK. nobu (Nobuyoshi Nakada)
03:38 AM Bug #12884 (Closed): Using a HashWithIndifferentAccess with a default value in a function with a keyword parameter converts it to a Hash.
Applied in changeset r57360.
----------
class.c: non-keyword hash class
* class.c (rb_extract_keywords): keep the c...
nobu (Nobuyoshi Nakada)
03:38 AM Revision 54a77d20 (git): * 2017-01-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:38 AM Revision 13dffd8a (git): 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] [B...
nobu (Nobuyoshi Nakada)

01/17/2017

09:33 PM Bug #13134: Rational() inconsistency
I propose leaving the behavior the way it is. A float denominator is filled with possible unexpected behavior. For ex... snood1205 (Eli Sadoff)
08:59 AM Bug #13134 (Assigned): Rational() inconsistency
mrkn (Kenta Murata)
06:44 AM Bug #13134 (Closed): Rational() inconsistency
`Rational()` parses a float, an integer divided by an integer, and a float divided by an integer.
```ruby
Rationa...
nobu (Nobuyoshi Nakada)
12:54 PM Revision 556e3da4 (git): uri/generic.rb: fix exception on non-IP format
* lib/uri/generic.rb (URI::Generic#find_proxy): match IP address
no_proxy against resolved self IP address. [Fix G...
nobu (Nobuyoshi Nakada)
12:47 PM Revision 2a9dd6b8 (git): lib/pstore.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:14 AM Revision 6ef99fec (git): version.h: bump up patchlevel for r57356.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@57357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
11:13 AM Revision a1709f1d (git): win32/win32.c: fix r57351. rename PATH_MAX to MAX_PATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@57356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:31 AM Revision 22908245 (git): rinda/ring.rb (make_socket): do not keep socket on failures
This prevents leaked FD warnings on test/rinda/test_rinda.rb
when testing on a machine without multicast support.
gi...
Eric Wong
12:08 AM Bug #13085: io.c io_fwrite creates garbage
At least on Linux, this is probably the best performance we can get
with sockets. Unfortunately, this does not affe...
normalperson (Eric Wong)

01/16/2017

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

01/15/2017

08:17 PM Bug #13131: ArgumentError: string contains null byte
Benoit Daloze wrote:
> You inverted the order of the arguments, it's the filename first:
>
> IO.binwrite('/tm...
voobscout (voob scout)
05:03 PM Bug #13131 (Rejected): ArgumentError: string contains null byte
You inverted the order of the arguments, it's the filename first:
IO.binwrite('/tmp/test.txt', 0.chr)
Eregon (Benoit Daloze)
12:34 PM Bug #13131 (Rejected): ArgumentError: string contains null byte
Why does this not work?:
IO.binwrite(0.chr, '/tmp/test.txt')
If it's not a bug, then please somebody explain - ...
voobscout (voob scout)
04:13 PM Bug #13132 (Closed): [DOC] Improve documentation for Binding
* remove explicit return from code examples
* grammar fixes
* other small fixes
stomar (Marcus Stollsteimer)
01:45 PM Revision 992b0148 (git): s/SaveStringValue/SafeStringValue/
Fix a typo in extension.rdoc.
Signed-off-by: Akira Matsuda <[email protected]>
closes #1512
git-svn-id: svn+ssh://ci.r...
matsuda (Akira Matsuda)
06:08 AM Revision 53a1b9f2 (git): .gdbinit: refine rp [ci skip]
* .gdbinit (rp, output_string, rp): show the contents after NUL
char.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nobu (Nobuyoshi Nakada)
05:50 AM Revision 1d36a09d (git): rbinstall.rb: mimic rubygems wrapper script
* tool/rbinstall.rb (app_script_text): move shell script part
after comments generated by RubyGems. '#'-lines are c...
nobu (Nobuyoshi Nakada)
02:56 AM Revision 710d9384 (git): lib/profile.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:45 AM Revision 37a8a2a2 (git): rbinstall.rb: do nothing if bin script is same
* tool/rbinstall.rb (check_executable_overwrite): do nothing if
the existing file equals to the wrapper script to b...
nobu (Nobuyoshi Nakada)
12:15 AM Bug #13126: __dir__ in eval returns nil
Artem Shein wrote:
> I've replaced the "`File.dirname(File.realpath(__FILE__))`" in my source code with "`__dir__`" ...
nobu (Nobuyoshi Nakada)

01/14/2017

11:10 PM Bug #13130 (Closed): [DOC] Mention behavior of Array#join for nested arrays
Applied in changeset r57329.
----------
mention behavior of Array#join for nested arrays [ci skip]
The current docu...
Anonymous
08:42 PM Bug #13130 (Closed): [DOC] Mention behavior of Array#join for nested arrays
The current documentation for Array#join does not mention the special treatment of nested arrays.
It says:
> Re...
stomar (Marcus Stollsteimer)
11:09 PM Revision 0255bac7 (git): * 2017-01-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:09 PM Revision eeb36c5c (git): mention behavior of Array#join for nested arrays [ci skip]
The current documentation for Array#join does not mention the
special treatment of nested arrays.
It says:
> Returns...
Eric Wong
08:35 PM Bug #13126: __dir__ in eval returns nil
Nobuyoshi Nakada wrote:
> When the third argument is not given, `__FILE__` in `eval` is `"(eval)"`.
> Do you mean t...
metadeus (Artem Shein)
07:02 AM Bug #13126: __dir__ in eval returns nil
Artem Shein wrote:
> It should be the same as `File.dirname(__FILE__)` or at least `File.dirname(File.realpath(__FIL...
nobu (Nobuyoshi Nakada)
05:21 PM Feature #13129 (Assigned): Refinements cannot refine method_missing and respond_to_missing?
Refinements with method_missing and respond_to_missing? behaves very strangely.
```ruby
class C; end
using Mod...
matsuda (Akira Matsuda)
09:38 AM Revision 3408e9e3 (git): revert r57323
StringIO.new makes the buffer IO.default_external, while
StringIO.new("".dup) makes source encoding which is defaulte...
nobu (Nobuyoshi Nakada)
06:13 AM Revision c850c4ad (git): fix up r57322
* tool/rbinstall.rb: ruby_install_name is used too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57327 b2dd03c8...
nobu (Nobuyoshi Nakada)
02:26 AM Revision 8b8505d2 (git): resolv.rb: byte buffer
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder): treat the
data as a byte buffer.
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
02:26 AM Revision 2b2450ba (git): Made #decode_rdata client to catch errors
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#get_rr):
re-raise an exception from decode_rdata as DecodeErr...
nobu (Nobuyoshi Nakada)
02:06 AM Revision af5eae43 (git): * 2017-01-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:06 AM Revision c8a4b572 (git): StringIO.new makes a RW buffer
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:28 AM Feature #13128 (Rejected): to all robots :)
This language can be made psycheactive by a simple core concept ,holographic coding based on random generation of str... Dreamworldz (Plamen Stanchev)
 

Also available in: Atom