Project

General

Profile

Activity

From 07/05/2016 to 07/11/2016

07/11/2016

04:30 PM Revision 9801daf9 (git): * 2016-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:30 PM Revision e4a27f25 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:30 PM Revision 5e1ee25a (git): * configure.in, lib/mkmf.rb, win32/Makefile.sub (CSRCFLAG): make the
compiler option replacable in Makefile.
* win32/Makefile.sub (OUTFLAG, COUTFLAG): ditto.
* win32/Makeile.sub, win32/setup.mak (CC): should not append `-nologo`
option forcely.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55638...
U.Nakamura
04:03 PM Bug #12582: OpenSSL Authenticated Encryption should check for tag length
Ok let's continue the discussion on Github: https://github.com/ruby/openssl/issues/63
Kazuki Yamaguchi wrote:
> The development of ext/openssl has moved to GitHub recently. If you have a GitHub account, could you make an issue there?
patrick.oscity (Patrick Oscity)
02:21 PM Bug #12582: OpenSSL Authenticated Encryption should check for tag length
The development of ext/openssl has moved to GitHub recently. If you have a GitHub account, could you make an issue there?
https://github.com/ruby/openssl
I prefer keeping OpenSSL::Cipher as general as possible. I'm not sure about t...
rhenium (Kazuki Yamaguchi)
07:35 AM Bug #12582 (Assigned): OpenSSL Authenticated Encryption should check for tag length
The current API for using ciphers with Authenticated Encryption (currently only AES-GCM) is rather misleading and quickly leads to subtle bugs related to the length of `auth_tag`.
In particular, the current implementation will _not_ c...
patrick.oscity (Patrick Oscity)
03:51 PM Feature #12578: Instance Variables Assigned In parameters ( ala Crystal? )
Matthew Kerwin wrote:
> Here is some history of this proposal:
> ...
You sir, are a much better "looker" than I ;)
well done!
lankford (Matt Lankford)
03:18 PM Bug #12563: backport 49758,50356
ruby_2_2 r55637 merged revision(s) 49758,50356,50359. usa (Usaku NAKAMURA)
03:17 PM Revision f54265a8 (git): merge revision(s) 49758,50356,50359: [Backport #12563]
fake.rb: rubyarchhdrdir for rubyspec
* common.mk (test-rubyspec): use fake script to set header
directories.
* template/fake.rb.in (RUBYOPT): set -r option to propagate to
forked processes.
* tool/fake.rb (...
U.Nakamura
02:38 PM Bug #12560: backport r55602
ruby_2_2 r55636 merged revision(s) 55602. usa (Usaku NAKAMURA)
02:22 PM Bug #12560: backport r55602
ruby_2_3 r55635 merged revision(s) 55602. nagachika (Tomoyuki Chikanaga)
02:38 PM Revision 3d36516d (git): merge revision(s) 55602: [Backport #12560]
require "rbconfig/sizeof"
They may fail parallel test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:22 PM Revision 4431d7a7 (git): merge revision(s) 55602: [Backport #12560]
require "rbconfig/sizeof"
They may fail parallel test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@55635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:08 PM Revision 90985c41 (git): describe RUBY_INTEGER_UNIFICATION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:59 PM Bug #12391: backport r55063
ruby_2_3 r55633 merged revision(s) 54168. nagachika (Tomoyuki Chikanaga)
01:50 PM Revision 7dafaea0 (git): merge revision(s) 54168: [Backport #12391]
* bignum.c (rb_big_hash): make it public function to be available in
other source files, and remove documentation comment for Bignum#hash.
* bignum.c (Bignum#hash): remove its definition because it is unified
...
nagachika (Tomoyuki Chikanaga)
09:05 AM Revision 7253570a (git): * enc/iso_8859_1.c: Moved test for lowercase characters without
uppercase equivalent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
08:50 AM Bug #12549: List files with CC0 license in LEGAL file
> And missing/strerror.c.
> ...
Yes, its file is included too. Thanks, I missed it. and the grep options looks better than "sort | uniq". I will take a note of it. :)
jaruga (Jun Aruga)
08:49 AM Revision b5d869a8 (git): * enc/iso_8859_4.c, enc/iso_8859_10.c, enc/iso_8859_14.c,
enc/iso_8859_15.c, enc/iso_8859_16.c: Replace case-by-case code with
lookup in ENC_ISO_8859_xx_TO_LOWER_CASE table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
08:40 AM Misc #12529: LEGAL file covering all the license information within Ruby
> Shouldn't add UCD license section?
Sorry I am not sure your meaning "UCD license section". Could you tell me more about it?
jaruga (Jun Aruga)
07:25 AM Misc #12529: LEGAL file covering all the license information within Ruby
Shouldn't add UCD license section? nobu (Nobuyoshi Nakada)
07:18 AM Bug #12552 (Feedback): You may have encountered a bug in the Ruby interpreter or extension libraries.
Try 2.3.1, and please post the whole log. nobu (Nobuyoshi Nakada)
07:00 AM Revision f12e9cea (git): * 2016-07-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:00 AM Revision e96f0f76 (git): stringio.c: convert arguments just once
* ext/stringio/stringio.c (strio_each, strio_readlines): convert
arguments just once before reading, instead of conversions for
each lines, as r55603.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55629 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
01:28 AM Bug #12576: SEGV when interrupting tail recursion
Shugo Maeda wrote:
> The following patch seems to fix the problem, but I'm not sure.
> ...
load and main have the same problem, so ISEQ_TYPE_TOP and ISEQ_TYPE_MAIN should be added.
shugo (Shugo Maeda)
12:41 AM Feature #12581 (Closed): Incorporate ActiveSupport extensions (or their equivalents) into the stdlib
Agreed with @shyouhei.
Matz.
matz (Yukihiro Matsumoto)
12:25 AM Feature #12581: Incorporate ActiveSupport extensions (or their equivalents) into the stdlib
While some ActiveSupport extensions are useful, I doubt if _all_ of them are.
I would like to -1 this. Please let us consider each extension method by method.
shyouhei (Shyouhei Urabe)

07/10/2016

11:53 PM Bug #12580 (Feedback): Difference in sprintf float rounding
Resulting 5.6 by rounding 5.55 off to one decimal place looks more "natural", than 5.5.
New behavior considers binary representation error.
What problem occurs concretely?
nobu (Nobuyoshi Nakada)
10:09 PM Bug #12580 (Closed): Difference in sprintf float rounding
on 2.4-dev
`
irb(main):006:0> sprintf "%0.01f", 5.55
=> "5.6"
irb(main):007:0> 5.55.class
=> Float
`
on 2.4-preview
`irb(main):001:0> sprintf "%0.01f", 5.55
=> "5.5"
irb(main):002:0> 5.55.class
=> Float
irb(main):003:0>...
vipulnsward (Vipul Amler)
11:05 PM Feature #12581 (Closed): Incorporate ActiveSupport extensions (or their equivalents) into the stdlib
Hey,
The ruby developers are so used to ActiveSupport extensions used by Rails, its even hard for them to tell what's Ruby and what's Rails, as shown by: http://railshurts.com/quiz/
Maybe we could incorporate ActiveSupport extensio...
sheerun (Adam Stankiewicz)
10:27 PM Feature #12578: Instance Variables Assigned In parameters ( ala Crystal? )
I like the idea behind it.
I am not sure about the syntax itself. Would this break existing code? What are the constraints how it is used?
shevegen (Robert A. Heiler)
09:26 AM Feature #12578: Instance Variables Assigned In parameters ( ala Crystal? )
Here is some history of this proposal:
* [#5825 Sweet instance var assignment in the object initializer](https://bugs.ruby-lang.org/issues/5825)
* [#8563 Instance variable arguments](https://bugs.ruby-lang.org/issues/8563)
* [#12023...
phluid61 (Matthew Kerwin)
07:33 AM Feature #12578: Instance Variables Assigned In parameters ( ala Crystal? )
I personally think this syntax looks quite good. I wonder whether it should be limited to initialize or not.
Matt Lankford wrote:
> I have looked at all 18 pages in this tracker and thought it "must" have been mentioned in here... bu...
duerst (Martin Dürst)
10:24 PM Bug #12552: You may have encountered a bug in the Ruby interpreter or extension libraries.
How did you cause the segfault? shevegen (Robert A. Heiler)
04:04 PM Bug #12545: Ruby 2.3.1 compilation error [Windows]
I just finished compilation attempts for VS 2008, VS 2010. win32.c compiled for all 2.x versions.
Looks like I have chosen a recent compiler (VS 2005) so it should be avoided. Please update requirements for Windows version.
Regards...
local.tourist.kiev (Ivan Serdyuk)
02:28 PM Revision a00ec4cf (git): enc/iso_8859_4.c: adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:53 AM Revision 07ac66cc (git): * enc/iso_8859_10.c, test/ruby/enc/test_case_comprehensive.rb:
Implement non-ASCII case conversion for ISO-8859-10, by Toya Hosokawa.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
10:33 AM Revision 8f0b58d3 (git): * test/ruby/enc/test_case_comprehensive.rb: Changed testing logic in to
catch unintended modifications of characters that do not have a case
equivalent in the respective encoding.
* enc/iso_8859_1.c, enc/iso_8859_15.c: Fixed unintended modifications of
micro sign and y with diaeresis.
git-svn-id: svn+s...
duerst (Martin Dürst)
08:05 AM Revision 40a34feb (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:05 AM Revision 3a2553c3 (git): * enc/iso_8859_4.c, test/ruby/enc/test_case_comprehensive.rb:
Implement non-ASCII case conversion for ISO-8859-4, by Kotaro Yoshida.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
07:17 AM Revision 6b9e4b81 (git): * test/ruby/enc/test_case_comprehensive.rb: Fixed a comment
(message belongs to last commit). [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
07:14 AM Revision 0657672a (git): git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
05:27 AM Revision 295f60b9 (git): util.c: round nearly middle value
* util.c (ruby_dtoa): [EXPERIMENTAL] adjust the case that the
Float value is close to the exact but unrepresentable middle
value of two values in the given precision, as r55604.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5562...
nobu (Nobuyoshi Nakada)
12:49 AM Bug #12576 (Assigned): SEGV when interrupting tail recursion
SEGV occurs as follows:
1. eval pushes a control frame.
2. foo is called repeatedly without a new control frame.
3. Interrupted by a signal, and the exception handler of eval pops the control frame pushed by Step 1. OVER POP!
4. Th...
shugo (Shugo Maeda)

07/09/2016

11:57 PM Revision 38ea5613 (git): * 2016-07-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:57 PM Revision 9eef1971 (git): * thread.c: Fixed implicit conversion error with Apple clang-800.0.31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
11:19 PM Bug #12579 (Closed): Backport rubygems fix from upstream repo for Ruby 2.2.x (2)
It's difference backport request with #12248
rubygems fixes failure of installation on NFS. I attached patch that it fixes.
see https://github.com/rubygems/rubygems/issues/1161#issuecomment-230893471
and I hope to bump version t...
hsbt (Hiroshi SHIBATA)
08:42 PM Feature #12578 (Rejected): Instance Variables Assigned In parameters ( ala Crystal? )
When I first saw the instance assignments in Crystal, I was floored... I have looked at all 18 pages in this tracker and thought it "must" have been mentioned in here... but I don't see it... pardon me if I missed it...
BUT
so in ...
lankford (Matt Lankford)
12:49 PM Bug #12577 (Rejected): Is '$' punctuation or not? Inconsistency between us-ascii and UTF-8
US-ASCII thinks '$' is punctuation. UTF-8 thinks it's not.
This means that the following two scripts:
```
# encoding: us-ascii
puts '$' =~ /\p{Punct}/ ? 'match' : 'no match'
```
and
```
# encoding: utf-8
puts '$' =~ /\p{...
duerst (Martin Dürst)
03:51 AM Revision d3776ae2 (git): * ChangeLog: shugo, you lose.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:47 AM Revision a5c3a2eb (git): * tool/mkconfig.rb: use true instead of TRUE.
* lib/getoptlong.rb: use false instead of FALSE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:44 AM Revision fd44aa7d (git): * 2016-07-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:44 AM Revision 1a03f9c5 (git): Use keyword
* tool/mkconfig.rb: use keyword true, instead of the toplevel
constant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:55 AM Bug #12576 (Closed): SEGV when interrupting tail recursion
The following program causes SEGV when interrupted by SIGINT.
```ruby
RubyVM::InstructionSequence.compile_option = {
:tailcall_optimization => true,
:trace_instruction => false
}
eval <<EOF
def foo
foo
end
foo
EOF
`...
shugo (Shugo Maeda)
12:17 AM Feature #12086: using: option for instance_eval etc.
Nobuyoshi Nakada wrote:
> Shugo Maeda wrote:
> ...
So, do you have another solution?
> > If `instance_eval(using: refinement)` is introduced, RaddDjur::DSL can be activated
> ...
I don't catch your point.
`using(refinement, &block...
shugo (Shugo Maeda)
12:05 AM Feature #12574: Remove TRUE, FALSE, and NIL
Nobuyoshi Nakada wrote:
> Deprecate them first?
Sounds reasonable.
I found that tool/mkconfig.rb uses them....
shugo (Shugo Maeda)

07/08/2016

06:45 PM Feature #12573: Introduce a straightforward way to discover whether a process is running
I tried to get Ruby to compile on a Windows 2012R2 VM, and I think I was partially successful. It appears that `test_process_exists_when_not_exists` fails on Windows, but a ton of other tests on trunk also fail, so I don't think I've got... will_in_wi (William Johnston)
03:08 PM Feature #12573: Introduce a straightforward way to discover whether a process is running
I've updated the PR to fix this round of comments. If there are more comments, I'll address them, otherwise, what else should I do to get this decided upon?
I'm also working on a Windows VM to confirm that this all works there.
Tha...
will_in_wi (William Johnston)
02:23 PM Feature #12573: Introduce a straightforward way to discover whether a process is running
I don't have a Windows machine to set this up and test. I'll try and do so. It was commented on the PR that there are some issues with the test suite in terms of Windows support, so I'll need to take a look at that. will_in_wi (William Johnston)
12:47 AM Feature #12573: Introduce a straightforward way to discover whether a process is running
What about Windows? Does this work as-is? shyouhei (Shyouhei Urabe)
01:22 PM Revision 9d87e8ac (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:07 PM Feature #12574: Remove TRUE, FALSE, and NIL
Deprecate them first? nobu (Nobuyoshi Nakada)
09:54 AM Feature #12574 (Closed): Remove TRUE, FALSE, and NIL
I believe `TRUE`, `FALSE`, and `NIL` are no longer used.
Why not remove them?
shugo (Shugo Maeda)
12:58 PM Feature #12086: using: option for instance_eval etc.
Shugo Maeda wrote:
> It looks cool, but there are two problems here:
> ...
These seem irrelevant to `instance_eval`.
> If `instance_eval(using: refinement)` is introduced, RaddDjur::DSL can be activated
> ...
I don't think that a p...
nobu (Nobuyoshi Nakada)
08:02 AM Feature #12086: using: option for instance_eval etc.
Yukihiro Matsumoto wrote:
> I like the idea, but I understand this makes implementation harder (especially for performance).
Speaking of performance, inline cache cannot store refined methods because the same block can be
executed w...
shugo (Shugo Maeda)
07:56 AM Feature #12086: using: option for instance_eval etc.
Nobuyoshi Nakada wrote:
> I'm against `instance_eval` under the hood by libraries.
I used to be against it too, but it's common now whether `using:` is available or not.
Let me talk about a use case.
I wrote a packrat parser li...
shugo (Shugo Maeda)
12:51 PM Bug #12575 (Closed): Conditional jump or move depends on uninitialised value(s) at rb_wait_for_single_fd (thread.c:3864)
Applied in changeset r55613.
----------
* thread.c (rb_wait_for_single_fd): Clean up fds.revents every time
before calling ppoll(2). [Bug #12575] [ruby-dev:49725]
ngoto (Naohisa Goto)
12:46 PM Bug #12575 (Closed): Conditional jump or move depends on uninitialised value(s) at rb_wait_for_single_fd (thread.c:3864)
x86_64 の Debian GNU/Linux 8 にて、valgrind上でdrbのテストを実行すると、以下のレポートが出ました。
(r55612 にて確認)
```
$ valgrind ./ruby test/runner.rb -v test/drb
(中略)
[ 12/115] DRbTests::ACLTest#test_not_1 = 0.01 s
[ 13/115] DRbTests::TestBug4409#test_bug440...
ngoto (Naohisa Goto)
12:51 PM Revision 79e46488 (git): * thread.c (rb_wait_for_single_fd): Clean up fds.revents every time
before calling ppoll(2). [Bug #12575] [ruby-dev:49725]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
12:34 PM Bug #12569 (Closed): There is no any warnings or errors with wrong comma after last attr_accessor attribute
Try with `-w` option. nobu (Nobuyoshi Nakada)
07:22 AM Feature #12533 (Assigned): Refinements: allow modules inclusion, in which the module can call internal methods which it defines.
Matz, what do you think of this?
Local rebinding may be worth considering, but there is a trade-off.
shugo (Shugo Maeda)
07:18 AM Feature #12534 (Feedback): Refinements: refine modules as well
There is an implementation difficulty when refining modules and calling `super` in that refinement.
One solution is prohibiting `super` in a refinement for a module.
Other proposals (and patches) are welcome.
shugo (Shugo Maeda)
05:38 AM Revision 558b9d05 (git): numeric.c: round as double
* numeric.c (flo_round): compare as double, not long double with
i387.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:21 AM Revision 286eec26 (git): * vm_args.c (vm_caller_setup_arg_block): call rb_sym_to_proc()
directly to reduce method dispatch overhead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)

07/07/2016

11:46 PM Revision ceca0454 (git): * io.c (rb_io_s_read): add description of pipes to the documentation
of IO.read.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
10:40 PM Feature #12573: Introduce a straightforward way to discover whether a process is running
Pull request: https://github.com/ruby/ruby/pull/1399 will_in_wi (William Johnston)
10:39 PM Feature #12573: Introduce a straightforward way to discover whether a process is running
Fix formatting. will_in_wi (William Johnston)
10:38 PM Feature #12573 (Open): Introduce a straightforward way to discover whether a process is running
## Background
The best present solution is to kill the process with a signal of 0, and then evaluate the exit code and two possible exceptions to determine whether or not this process is alive. This is surprising when Ruby has so many...
will_in_wi (William Johnston)
08:04 PM Bug #12569 (Rejected): There is no any warnings or errors with wrong comma after last attr_accessor attribute
In second sample we don't have any warnings or errors with wrong comma after last attr_accessor attribute and without it is very difficult to identify the typo. initialize method does not performed.
## It works
```ruby
class Soluti...
mr.krasavtsev@gmail.com (Roman Krasavtsev)
06:59 PM Bug #12568 (Closed): wrong ArgumentError if an array is given for instance_exec with optional argument
Applied in changeset r55609.
----------
* vm_args.c (setup_parameters_complex): don't raise ArgumentError
if an array is given for instance_exec with optional argument.
[ruby-core:76300] [Bug #12568]
https://github.com/rails/rails...
naruse (Yui NARUSE)
06:50 PM Bug #12568 (Closed): wrong ArgumentError if an array is given for instance_exec with optional argument
From Ruby 2.2 to trunk, it wrongly raise ArgumentError as follows:
Sample code:
```ruby
instance_exec([1,2,3]){|a| p a}
instance_exec([1,2,3]){|a=[]| p a}
instance_exec([1,2,3], &->(a){ p a })
->(a=[]){ p a }.to_proc.call([1,2,...
naruse (Yui NARUSE)
06:59 PM Revision c016898e (git): * vm_args.c (setup_parameters_complex): don't raise ArgumentError
if an array is given for instance_exec with optional argument.
[ruby-core:76300] [Bug #12568]
https://github.com/rails/rails/pull/25699
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:59 PM Revision e4d4172b (git): suppress warnings: unused variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:06 PM Misc #12567 (Closed): Where is parser.bundle ?
Hello,
Ruby 2.3 add native json support.
The `json` **gemspec** files, list :
* json.rb
* json/add/bigdecimal.rb
* json/add/complex.rb
* ...
* json/ext/generator.bundle
* json/ext/parser.bundle
Where can I find / how can...
waghanza (Marwan Rabbâa)
05:27 PM Bug #12566 (Closed): IO.copy_stream : tty/command-line events not being passed around
nobu (Nobuyoshi Nakada)
03:52 PM Bug #12566: IO.copy_stream : tty/command-line events not being passed around
```
$stdin.raw!
```
You can close, found the solution.
chucke (Tiago Cardoso)
03:12 PM Bug #12566 (Rejected): IO.copy_stream : tty/command-line events not being passed around
Coming from here: http://stackoverflow.com/questions/38248911/ruby-when-copying-streams-how-to-make-it-pass-input-characters
I don't know if the `stdin` is not flushing the special characters down the stack, or the leaf process `stdou...
chucke (Tiago Cardoso)
05:21 PM Bug #12545: Ruby 2.3.1 compilation error [Windows]
According to [MSDN][1], `NET_LUID` is used since Windows Vista released in 2006.
Visual C++ 8.0 was released in 2005, so it wouldn't know that union.
[1]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa366320(v=vs.85).asp...
nobu (Nobuyoshi Nakada)
01:14 AM Bug #12545: Ruby 2.3.1 compilation error [Windows]
Ivan Serdyuk wrote:
> Various versions of Microsoft compiler gave same errors.
Can you say which ones, exactly? Were there Microsoft compilers that didn't give these errors?
> ...
A patch, or a series of patches, would be very hel...
duerst (Martin Dürst)
04:01 PM Bug #12549: List files with CC0 license in LEGAL file
And missing/strerror.c.
You can use `find -exec {} +` and `grep -l`, or `grep -r --include`.
```
find . \( -name "*.[ch]" -o -name "*.src" \) -exec grep -li 'public[ -]domain' {} +
grep -lri 'public[ -]domain' --include="*.[ch]" ...
nobu (Nobuyoshi Nakada)
03:49 PM Revision 2db397b4 (git): * 2016-07-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:49 PM Revision 804a3e10 (git): * vm_eval.c (yield_under): change prototype to get argc/argv.
* vm_eval.c (specific_eval): change for above.
* vm_eval.c (rb_obj_instance_exec): avoid object allocation.
* vm_eval.c (rb_mod_module_exec): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55606 b2dd03c8-39d4-4d8f-98ff-823fe...
naruse (Yui NARUSE)
03:11 PM Bug #12535: are there 2 sleep methods defined?
If you want to overwrite the method globally, prepend the module to `Kernel` instead of the singleton class of it. nobu (Nobuyoshi Nakada)
03:09 PM Bug #12535: are there 2 sleep methods defined?
@Nobu, can you check my last comment? I think this is a valid concern, as in "the same method defined in two objects". chucke (Tiago Cardoso)
12:56 PM Bug #12564: Sometimes test_settracefunc.rb segfaults in exec_hooks_body (vm_trace.c)
This occasionally also occurs on Solaris 10 running on Sparc CPU.
http://rubyci.s3.amazonaws.com/unstable10s/ruby-trunk/log/20160706T161911Z.fail.html.gz
ngoto (Naohisa Goto)
11:12 AM Bug #12565: SEGV when using &:foo with tail call optimization
@nobu Please fix it if you come up with a better solution.
It seems that Ruby 2.2 or earlier doesn't have this problem.
shugo (Shugo Maeda)
11:08 AM Bug #12565 (Closed): SEGV when using &:foo with tail call optimization
Applied in changeset r55605.
----------
* vm_args.c (vm_caller_setup_arg_block): disable symbol block
argument optimization when tail call optimization is enabled,
in order to avoid SEGV. [ruby-core:76288] [Bug #12565]
shugo (Shugo Maeda)
11:07 AM Bug #12565: SEGV when using &:foo with tail call optimization
The debug information is as follows:
```
(eval):2: [BUG] Segmentation fault at 0x00000000000010
ruby 2.4.0dev (2016-07-07 trunk 55604) [x86_64-linux]
-- Control frame information -----------------------------------------------
c...
shugo (Shugo Maeda)
10:57 AM Bug #12565 (Closed): SEGV when using &:foo with tail call optimization
The following script causes SEGV:
```ruby
RubyVM::InstructionSequence.compile_option = {
:tailcall_optimization => true,
:trace_instruction => false
}
eval(<<EOF)
def foo(&block)
yield(1, 2)
end
def bar
foo(&:*)
...
shugo (Shugo Maeda)
11:08 AM Revision 68260018 (git): * vm_args.c (vm_caller_setup_arg_block): disable symbol block
argument optimization when tail call optimization is enabled,
in order to avoid SEGV. [ruby-core:76288] [Bug #12565]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
07:37 AM Revision 9bb27fa3 (git): numeric.c: round nearly middle value
* numeric.c (flo_round): [EXPERIMENTAL] adjust the case that the
receiver is close to the exact but unrepresentable middle value
of two values in the given precision.
http://d.hatena.ne.jp/hnw/20160702
git-svn-id: svn+ssh://ci.rub...
nobu (Nobuyoshi Nakada)
07:31 AM Revision 415059ab (git): io.c: convert arguments just once
* io.c (rb_io_s_foreach, rb_io_s_readlines): convert arguments
just once before reading, instead of conversions for each lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:37 AM Bug #12561: OpenSSL::Cipher#key= silently truncates key strings.
I agree with Kazuki's judgment about backporting to the stable branches.
BTW is there any entry about this change in NEWS file?
User should be noticed about the inconsistent behaviors.
nagachika (Tomoyuki Chikanaga)
01:48 AM Bug #12561 (Closed): OpenSSL::Cipher#key= silently truncates key strings.
Thank you for reporting!
I believe it is a bug, r55146 fixed it in trunk. Unfortunately it looks like some applications use the behavior unintentionally. So I'm filling Backport with WONTFIX.
rhenium (Kazuki Yamaguchi)
01:09 AM Feature #12553: IO.readlines(filename, chomp: true)
とりあえず。
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12553-chomp-option
nobu (Nobuyoshi Nakada)

07/06/2016

11:50 PM Bug #12564 (Closed): Sometimes test_settracefunc.rb segfaults in exec_hooks_body (vm_trace.c)
I'm not really sure which test segfaults but I think it's test_tracepoint_with_multithreads
This might be similar to bug #11603 and I think it's caused by some multithreading issues.
I also found:
* https://rubyci.s3.amazonaws.c...
davispuh (Dāvis Mosāns)
08:40 PM Bug #12563 (Closed): backport 49758,50356
49758,50356 is required to run `make test-rubyspec` because without them rubyspec fails to build option/capi/ext.
https://travis-ci.org/ruby/ruby/builds/142788121
naruse (Yui NARUSE)
08:37 PM Bug #12562 (Closed): URI merge removes empty segment contrary to RFC 3986
## Background
This bug surfaced while testing against a server whose router expects an empty segment. The server routing is not correct, however, the result exposed the discontinuity compared to the specifications in RFC 3986.
## D...
john_elrick (John Elrick)
08:27 PM Bug #12561 (Closed): OpenSSL::Cipher#key= silently truncates key strings.
Not entirely sure if this is a bug or a feature request, so please recategorize if I got it wrong.
Setting the key on an OpenSSL::Cipher will throw an exception if the key is too short. But if the key string is too long, and bytes pa...
xavierholt (Kevin Burk)
08:05 PM Bug #12545: Ruby 2.3.1 compilation error [Windows]
Various versions of Microsoft compiler gave same errors. Might suggestion is that it is some sort of typdef related resolution issue.
My proposal is to split this win32.c file into different files, allow one of those to completely cov...
local.tourist.kiev (Ivan Serdyuk)
06:20 PM Bug #12560 (Closed): backport r55602
They may fail parallel test-all.
* ruby_2_3: https://travis-ci.org/ruby/ruby/builds/141708115
* ruby_2_2: https://travis-ci.org/ruby/ruby/builds/142772798
naruse (Yui NARUSE)
06:17 PM Revision 8667e8b1 (git): require "rbconfig/sizeof"
They may fail parallel test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:05 PM Revision 215aa0cc (git): * 2016-07-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:05 PM Revision 020bd9f4 (git): * tool/redmine-backporter.rb: fixed command alias bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:21 PM Bug #11964 (Assigned): __callee__ in aliased methods defined in a module returns an incorrect value
usa (Usaku NAKAMURA)
03:16 PM Feature #12558: Ruby does not support alternative server name in SSL connection
FWIW, it looks like there was Net::HTTP#enable_post_connection_check option (r13499, 2007-09-23), but it was removed soon afterward (r13648, 2007-10-07). rhenium (Kazuki Yamaguchi)
08:12 AM Feature #12558 (Rejected): Ruby does not support alternative server name in SSL connection
In server keystore file, it specifies Owner like Owner: CN=default.server. When used SSL connection to connect to the server, it reported a error #<OpenSSL::SSL::SSLError: hostname "xxx.xx.xxx.xxx" does not match the server certificate>.... gangshen (gang shen)
03:07 PM Revision c38982f7 (git): * bignum.c (Init_Bignum): revert a part of previous commit (r55598),
because the implementation of Object#hash is a little difference from
trunk. cf. [Backport #12391]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:11 PM Bug #12391: backport r55063
ruby_2_2 r55598 merged revision(s) 54168. usa (Usaku NAKAMURA)
01:55 PM Bug #12391: backport r55063
r54168 が入ってないとむしろ症状が悪化していました……。 usa (Usaku NAKAMURA)
02:11 PM Revision 62b4c459 (git): merge revision(s) 54168: [Backport #12391]
* bignum.c (rb_big_hash): make it public function to be available in
other source files, and remove documentation comment for Bignum#hash.
* bignum.c (Bignum#hash): remove its definition because it is unified
...
U.Nakamura
01:26 PM Bug #12559 (Closed): ./enc/iso_8859_14.c, line 253: error: syntax error near / with old fcc on Solaris 10
Applied in changeset r55597.
----------
enc/iso_8859_14.c: Fix compile error by old version of fcc on Solaris 10.
[Bug #12559]
ngoto (Naohisa Goto)
01:08 PM Bug #12559 (Closed): ./enc/iso_8859_14.c, line 253: error: syntax error near / with old fcc on Solaris 10
Solaris 10上の古い Fujitsu C Compiler (fcc) にて、以下のコンパイルエラーが発生します。
```
fcc -G -o .ext/sparc64-solaris2.10/enc/iso_8859_13.so enc/iso_8859_13.o -L. -L. -L. -KV9 -KVIS2 -L/usr/local/64/lib -R/usr/local/64/lib -KV9 -KVIS2 -L/usr/local/64/li...
ngoto (Naohisa Goto)
01:26 PM Revision 2529b383 (git): enc/iso_8859_14.c: Fix compile error by old version of fcc on Solaris 10.
[Bug #12559]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
10:54 AM Revision e2bfb648 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:54 AM Revision 1edb021b (git): * enc/iso_8859_14.c, test/ruby/enc/test_case_comprehensive.rb:
Implement non-ASCII case conversion for ISO-8859-14, by Yutaro Tada.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
10:24 AM Revision 5636291d (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:24 AM Revision 95110676 (git): * enc/iso_8859_1.c, enc/iso_8859_15.c, enc/iso_8859_16.c:
Allign indenting to onigmo convention.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
09:59 AM Revision 45de86d7 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:59 AM Revision 6fb97b3f (git): * enc/iso_8859_15.c, test/ruby/enc/test_case_comprehensive.rb:
Implement non-ASCII case conversion for ISO-8859-15, by Maho Harada.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
09:34 AM Revision 79b1758b (git): * enc/iso_8859_16.c, test/ruby/enc/test_case_comprehensive.rb:
Implement non-ASCII case conversion for ISO-8859-16, by Satoshi Kayama.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
06:49 AM Bug #12557 (Closed): backport r55581 (Net::HTTP should raise error when CR/LF in a request line)
This is a ticket for backport management. The issue was already fixed on trunk.
Let's treat r55581 and r55582 as a bugfix and backport into stable branches.
nagachika (Tomoyuki Chikanaga)
06:46 AM Bug #12556 (Closed): backport r55579 (Net::FTP should raise error when CR/LF in a line)
Let's treat r55579 as a bugfix and backport into stable branches. nagachika (Tomoyuki Chikanaga)
05:48 AM Revision 64fea274 (git): Update dependencies
* common.mk (compile.o, loadpath.o): update dependencies.
* common.mk (vm_call.o): remove stale object dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:44 AM Revision 1bdc1a55 (git): Local header dependencies
* lib/mkmf.rb (create_makefile): store $headers in LOCAL_HDRS for
depend files.
* ext/digest/digest_conf.rb (digest_conf): add implementation
specific headers to $header.
* ext/digest/{md5,rmd160,sha1,sha2}/depend: add LOCAL_HDRS to ...
nobu (Nobuyoshi Nakada)
05:44 AM Revision c89b0645 (git): Ignore -save-temps=obj files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:37 AM Revision 221730b3 (git): update-deps: exclude timestamps
* tool/update-deps (concentrate): exclude timestamps for
directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:37 AM Revision fc480888 (git): update-deps: for clang
* tool/update-deps (read_single_cc_deps): clang may not include
the current working directory name in .i files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:03 AM Revision 78b9d778 (git): probes.dmyh: remove preprocessor directives
* tool/gen_dummy_probes.rb: remove include and conditional
directives from probes.dmyh which are removed by preprocessing.
* common.mk: remove unnecessary dependencies on vm_opts.h via
probes.dmyh.
git-svn-id: svn+ssh://ci.ruby-lan...
nobu (Nobuyoshi Nakada)
05:01 AM Revision 9df94321 (git): Revert ext/json/parser/prereq.mk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:28 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
I agree that can be a point. I changed the subject. shyouhei (Shyouhei Urabe)
03:19 AM Feature #12484: Optimizing Rational
> but it's an another story IMHO.
I agree with you.
mrkn (Kenta Murata)
12:16 AM Revision c74aaed0 (git): Add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
12:01 AM Revision 554c879f (git): * lib/net/http/generic_rquest.rb (write_header): A Request-Line must
not contain CR or LF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)

07/05/2016

10:14 PM Revision 8686ce2b (git): * 2016-07-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:14 PM Revision 34a0e098 (git): * lib/net/ftp.rb (putline): raise an ArgumentError when
CR or LF is included in a line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
06:36 PM Bug #12555 (Rejected): Cannot resume a fiber that was earlier transferred from, then transferred back to, and then yielded
Consider the following code snippet:
~~~
require 'fiber'
fiber2 = nil
fiber1 = Fiber.new do
puts "In Fiber 1" # 3
fiber2.transfer # 4
end
fiber2 = Fiber.new do
puts "In Fiber 2" ...
amukher1 (Arindam Mukherjee)
04:38 PM Bug #12554: yamlに渡すファイルポインタを自分でcloseしないと動作が変
ありがとうございます。
GCのcloseに頼ったコードを書いていたみたいです。
気を付けたいと思います。
uy (西行寺 うゆ)
02:03 PM Bug #12554: yamlに渡すファイルポインタを自分でcloseしないと動作が変
西行寺 うゆ wrote:
> rubyのファイルポインタは、スコープを抜けたら処理系側でcloseされているものと思ったんですが
それは誤解です。
参照されなくなったFileオブジェクトは、GCされる時にcloseされる可能性はありますが、
それはいつになるのか普通は予測困難ですので、用が済んだらちゃんと閉じられるように
コードを書いてください。
usa (Usaku NAKAMURA)
01:47 PM Bug #12554 (Rejected): yamlに渡すファイルポインタを自分でcloseしないと動作が変

rubyのファイルポインタは、スコープを抜けたら処理系側でcloseされているものと思ったんですが
yamlで読み書きを行う場合に動作がおかしいような気がします
このスクリプトを実行すると、それなりの確率で以下のエラーが出て、
test.yamlのデータが変です
~~~
require"yaml"
def func
file = "test.yaml"
data = YAML.load_file( file )
r = rand(999...
uy (西行寺 うゆ)
01:03 PM Bug #12536: SIGABRT during GC on Debian GNU/Linux 8 (x86_64) due to insufficient string buffer allocation related with term fill
>エンコーディング設定時に上記から呼ばれる rb_str_fill_terminator() がバグっていたことが判明しました。
r55575 にて、エンコーディング設定時=termlen変更時には、
rb_str_change_terminator_length() という新関数を呼ぶように変更し、
str_fill_term() は (capaに無条件に+1していた部分などを除いて)元に戻しました。
termlen変更に伴うheap容量変更と、term_...
ngoto (Naohisa Goto)
11:49 AM Feature #12542 (Closed): Bump version to json-2.0.1
Applied in changeset r55576.
----------
* ext/json/*, test/json/*: Update json-2.0.1.
Changes of 2.0.0: https://github.com/flori/json/blob/f679ebd0c69a94e3e70a897ac9a229f5779c2ee1/CHANGES.md#2015-09-11-200
Changes of 2.0.1: https://...
hsbt (Hiroshi SHIBATA)
09:33 AM Feature #12542: Bump version to json-2.0.1
作業どもです、コミットしてください naruse (Yui NARUSE)
11:49 AM Revision b0087b17 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:49 AM Revision 33453225 (git): * append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:49 AM Revision 11306587 (git): * ext/json/*, test/json/*: Update json-2.0.1.
Changes of 2.0.0: https://github.com/flori/json/blob/f679ebd0c69a94e3e70a897ac9a229f5779c2ee1/CHANGES.md#2015-09-11-200
Changes of 2.0.1: https://github.com/flori/json/blob/f679ebd0c69a94e3e70a897ac9a229f5779c2ee1/CHANGES.md#2016-07-01...
hsbt (Hiroshi SHIBATA)
11:10 AM Bug #12545: Ruby 2.3.1 compilation error [Windows]
I don't see any problems with cygwin, so this problem may be compiler-specific. Can you try with another compiler? (e.g. another version of a Microsoft Complier?) duerst (Martin Dürst)
08:59 AM Bug #12545: Ruby 2.3.1 compilation error [Windows]
Martin Dürst wrote:
> Can this bug be reproduced on trunk?
Yes. As also as for 2.1.9, 2.2.5
local.tourist.kiev (Ivan Serdyuk)
06:04 AM Bug #12545 (Feedback): Ruby 2.3.1 compilation error [Windows]
Can this bug be reproduced on trunk? duerst (Martin Dürst)
10:45 AM Revision 5eff15d1 (git): * string.c (rb_str_change_terminator_length): New function to change
termlen and resize heap for the terminator. This is split from
rb_str_fill_terminator (str_fill_term) because filling terminator
and changing terminator length are different things. [Bug #12536]
* internal.h: declaration for rb_str_...
ngoto (Naohisa Goto)
09:51 AM Feature #10098: [PATCH] Timing-safe string comparison for OpenSSL::HMAC
Yui, I'm a little confused. The patch you have in your comment looks timing-safe to me. Also I suggest taking a look at Nobu's improvements to my code, I definitely learned a lot more about speed after reading it.
Other things that do...
arrtchiu (Matt U)
09:31 AM Feature #12553: IO.readlines(filename, chomp: true)
ごもっともだと思います。 duerst (Martin Dürst)
09:11 AM Feature #12553 (Closed): IO.readlines(filename, chomp: true)
IO.readlinesやIO.foreach、IO#each_lineなどは戻り値(またはブロックパラメータ)のそれぞれの「行」に改行を含みます。
POSIXの "Line" の定義は末尾の改行を含んでのものなので非常に正しい挙動なのですが、正直不便です。
> [3.206 Line](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206)
>...
naruse (Yui NARUSE)
09:07 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
Having read a bit more I see that there are indeed multiple possible ways of handling tie-breaking i.e. when a value is n.5, but is it reasonable for two implementations in ruby core (sprintf and round) to use a different method? It's at... unclekiki (Kieran McCusker)
03:01 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
I doubt if this is a bug or not. The rounding mode you describe is so-called "round to the nearest even" which is described in ISO 31-0 as "generally preferable". Maybe the author of sprintf explicitly chose such mode (not sure).
It...
shyouhei (Shyouhei Urabe)
08:13 AM Bug #12552 (Closed): You may have encountered a bug in the Ruby interpreter or extension libraries.
Major (Phumzani Major)
04:48 AM Feature #3511: rb_path_to_class should call custom const_defined? methods
I've attached an updated patch for current ruby trunk, which I think is a little more consistent with non-lazily-defined constant lookup. Also simplified the test case a little.
oggy (George Ogata)
02:09 AM Bug #12209 (Closed): Array#pack("G") problem
Applied in changeset r55573.
----------
* pack.c (pack_pack): use union instead of bare variable to ease
optimizations and avoid assigning x87 floating point number.
[ruby-core:74496] [Bug #12209]
* pack.c (pack_unpack): ditto.
naruse (Yui NARUSE)
02:08 AM Revision a3ca2c7c (git): * 2016-07-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:08 AM Revision e90e916b (git): * pack.c (pack_pack): use union instead of bare variable to ease
optimizations and avoid assigning x87 floating point number.
[ruby-core:74496] [Bug #12209]
* pack.c (pack_unpack): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
 

Also available in: Atom