Activity
From 12/02/2016 to 12/08/2016
12/08/2016
-
09:16 PM Bug #8241: If uri host-part has underscore ( '_' ), 'URI#parse' raise 'URI::InvalidURIError'
- Here is a unobtrusive workaround using the documented capabilities of URI:
~~~ ruby
module URI
DEFAULT_PARSER = Parser.new(:HOSTNAME => "(?:(?:[a-zA-Z\\d](?:[-\\_a-zA-Z\\d]*[a-zA-Z\\d])?)\\.)*(?:[a-zA-Z](?:[-\\_a-zA-Z\\d]*[a-zA-Z\... -
08:34 PM Bug #9974: Regression: URI.parse allows invalid URIs
- The URI abstraction speaks to RFC3986 (DNS) more directly than RFC952 (hostnames). The confusion is understandable.
Still, standards-based systems exist right now that allow this (e.g. we have an nginx deployed application that chose... -
06:59 PM Bug #13018: end of file reached (EOFError) from SMTP
- Fix typo
-
06:53 PM Bug #13018 (Closed): end of file reached (EOFError) from SMTP
- Originally filed against Rails: https://github.com/rails/rails/issues/27298
```
require 'net/smtp'
real_email_address = '' # This needs to actually be a real account
real_email_password = '' # This needs to actually be the corres... -
05:36 PM Feature #13017 (Closed): Switch SipHash from SipHash24 to SipHash13
- SipHash13 is secure enough to be used in hash-tables, and SipHash's author confirms that.
Rust already considered switch to SipHash13:
https://github.com/rust-lang/rust/issues/29754#issue-116174313
Jean-Philippe Aumasson confirmatio... -
02:14 PM Bug #12958: Breaking change in how `#round` works
- > It is true that we fixed one inconsistency to introduce another.
The new inconsistency seems worse to me. Having Numeric classes like BigDecimal and Float being consistent is more important in my opinion. People will tend to use th... -
01:51 PM Revision 761653db (git): compile.c: static_literal_value
- * compile.c (static_literal_value): separate getter from predicate
function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:58 PM Revision f573eee2 (git): extension.rdoc: add ANYARGS to method definitions
- * doc/extension.rdoc (rb_define_method, rb_define_singleton_method,
rb_define_private_method, rb_define_protected_method,
rb_define_module_function, rb_define_global_function): set ANYARGS
as arguments to their underlying functions... -
11:30 AM Feature #13016: String#gsub(hash)
- Shyouhei Urabe wrote:
> It seems there are quite few resources describing this feature on line.
Thanks!
> ...
Can you write the last sentence in Japanese? The word 'hustle' has lots of meanings, some of them confusing.
> ... -
10:16 AM Feature #13016: String#gsub(hash)
- Martin Dürst wrote:
> Shyouhei Urabe wrote:
> ...
It seems there are quite few resources describing this feature on line.
- I learned it by command line "nkf --help". The output says "4: JISX0208 Katakana to JISX0201 Katakana".
- ... -
09:22 AM Feature #13016: String#gsub(hash)
- Shyouhei Urabe wrote:
> I noticed that I can't purge `NKF.nkf '-Z4'`. It can neither be rewritten using String#tr, String#encode, nor String#unicode_normalize.
Can you give (a pointer to) a detailed description of what NKF, and in p... -
08:50 AM Feature #13016: String#gsub(hash)
- Akira Tanaka wrote:
> Is str.gsub(map) a shortcut for str.gsub(Regexp.union(map.keys)) { map[$&] } ?
Kind of yes. I was thinking of str.gsub(Regexp.union(map.keys), map) -equivalent behaviour. -
08:29 AM Feature #13016: String#gsub(hash)
- Is str.gsub(map) a shortcut for str.gsub(Regexp.union(map.keys)) { map[$&] } ?
-
08:21 AM Feature #13016 (Rejected): String#gsub(hash)
- Background: I wanted to drop NKF dependency of my script. By doing so I noticed that I can't purge `NKF.nkf '-Z4'`. It can neither be rewritten using String#tr, String#encode, nor String#unicode_normalize. It is doable using String#gsu...
-
10:11 AM Bug #13014: Adding clang volatile fixes from FreeBSD and NetBSD
- Dimitry Andric wrote:
> Can we please backport these fixes to 2.1, 2.2 and 2.3?
2.1 won't be fixed because it's in the phase of security maintenance.
But 2.2 and 2.3 will be fixed.
> ...
You don't have to do anything now.
We s... -
09:52 AM Bug #13014: Adding clang volatile fixes from FreeBSD and NetBSD
- Can we please backport these fixes to 2.1, 2.2 and 2.3? I am willing to do the work for supplying the patches, as we already have them in the FreeBSD ports collection.
Does this require a new issue, or can we re-use this one?
-
08:31 AM Bug #13012 (Closed): irb fails to define a method with a reserved-word-ish keyword argument
- Applied in changeset r57027.
----------
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. [... -
08:31 AM Revision 519af468 (git): 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] [Bug #13012]
git-svn-id: svn+ssh://ci.ruby-lang.org... -
08:25 AM Revision 18c9bf5d (git): test/unit.rb: fix -n option
- * test/lib/test/unit.rb (non_options): turn name patterns into
Regexps.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:54 AM Revision ea07884a (git): compile.c: optimize literal nodes
- * compile.c (static_literal_node_p): optimize literal nodes for
true, false, and nil, which are static literals in specific
nodes but not in NODE_LIT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57025 b2dd03c8-39d4-4d8f-98ff-8... -
06:19 AM Bug #13015 (Closed): Segfault when using super and underscore parameters
- Applied in changeset r57024.
----------
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] -
04:36 AM Bug #13015 (Closed): Segfault when using super and underscore parameters
- Having multiple parameters named `_` in a method works fine until you try to use the `super` keyword, at which point a segfault occurs. The use case where I ran into this was when I needed to create a child class which extends the initia...
-
06:19 AM Revision 05f891cb (git): 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/trunk@57024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:16 AM Bug #12729 (Closed): crash after refining private method to public
- Applied in changeset r57023.
----------
vm_insnhelper.c: zsuper in refinements
* vm_insnhelper.c (vm_call_zsuper): prevent infinite recursion
zsuper in refinements. [ruby-core:77161] [Bug #12729] -
05:16 AM Revision 7bbab207 (git): vm_insnhelper.c: zsuper in refinements
- * vm_insnhelper.c (vm_call_zsuper): prevent infinite recursion
zsuper in refinements. [ruby-core:77161] [Bug #12729]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:22 AM Feature #12871: Using the algorithm like math.fsum of Python for Array#sum
- Thank you.
Julia's algorithm looks good. But in some case, Python's algorithm is still better than that.
~~~
# julia 0.5.0
sum_kbn([1.0e100, 1.0, 1.0e-100, -1.0, -1.0e100]) # => 0.0
~~~
~~~ python
# python 3.5.2
from math i... -
12:45 AM Revision 510f0ec8 (git): parse.y: ripper generic input
- * parse.y (ripper_initialize): allow generic input as source, if
it has #gets method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/07/2016
-
11:47 PM Revision d8bcfd2b (git): Add volatile to a suppress warning.
- Without the fix, the following warning is shown:
compiling cont.c
cont.c: In function ‘rb_callcc’:
cont.c:949:39: warning: passing argument 1 of ‘cont_capture’ discards ‘volatile’ qualifier from pointer target type [-Wdiscar... -
11:27 PM Bug #13014 (Closed): Adding clang volatile fixes from FreeBSD and NetBSD
- Applied in changeset r57020.
----------
Add clang volatile fixes from FreeBSD and NetBSD.
Use volatile instead of optnone to avoid optimization which causes
segmentation faults.
Patch by Dimitry Andric. [ruby-core:78531] [Bug #13014] -
10:03 PM Bug #13014: Adding clang volatile fixes from FreeBSD and NetBSD
- Ok, I also tested this on x86_64-freebsd12, and there it still got a segfault in `cont_capture()`. This was caused by the `stat` parameter being a pointer to a volatile int, while it should have been a volatile pointer to an int.
Here... -
08:52 PM Bug #13014 (Closed): Adding clang volatile fixes from FreeBSD and NetBSD
- Referring to bug #12893, where segfaults were observed when compiling with recent versions of clang. In particular in cont.c, about which Shugo Maeda noted that he could reproduce this on FreeBSD. These segfaults are most likely caused...
-
11:27 PM Revision 472959f9 (git): Add clang volatile fixes from FreeBSD and NetBSD.
- Use volatile instead of optnone to avoid optimization which causes
segmentation faults.
Patch by Dimitry Andric. [ruby-core:78531] [Bug #13014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:20 PM Bug #12893: trunk fails on linux with clang on test with callcc
- Dimitry Andric wrote:
> > > NetBSD pkgsrc and FreeBSD ports were fixed by adding volatile.
> ...
Adding the latter version to cont_capture() didn't work, but your full patch set did work.
Thank you!
-
08:54 PM Bug #12893: trunk fails on linux with clang on test with callcc
- Shugo Maeda wrote:
> Yui NARUSE wrote:
> ...
Did you add it as `volatile rb_context_t *cont`, or as `rb_context_t *volatile cont`? Only the latter is correct.
Please refer to #13014 for the full patch set, including fix for `cont_n... -
04:18 PM Bug #13013: Segmentation fault
- Yes thank you. I just came back to report that. Thank you for your time.
-
04:13 PM Bug #13013 (Rejected): Segmentation fault
- You are mixing Ruby 2.0.0 and Ruby 2.3.
You are running Ruby 2.0.0 with a gem built with Ruby 2.3. -
03:38 PM Bug #13013 (Rejected): Segmentation fault
- Using ruby 2.3.0 with rvm. Running a very basic script, with the gems in attached file. Generates the crash report, also attached. Happy to provide any more details needed to help solve this.
Tried a fresh ruby install, same problem. - 03:30 PM Revision e8914fb3 (git): * 2016-12-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:30 PM Revision 0fe7dc7a (git): fix typo in `IO#write_nonblock` example [ci skip]
- This example explains when writing a value greater than 65536,
so the value specify must be greater than 65536.
This seems to be wrong in cee7f69
Patch by: Yuji Yaginuma <yuuji.yaginuma@gmail.com>
[Fix GH-1496]
git-svn-id: svn+ssh://c... -
02:39 PM Revision 1db7b0ad (git): ruby.c: dump option
- * ruby.c (process_options): dump specified informations all, not
only first one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:26 PM Revision c9530982 (git): assertions.rb: defered message in FailDesc
- * test/lib/test/unit/assertions.rb (FailDesc): allow to defer
message generation, as well as other assertion methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:59 PM Bug #13007 (Closed): Webbrick takes 5s to start when machine name looks like a real domain
- Applied in changeset r57014.
----------
Delay Utils.getservername until needed.
There is no need to call Utils.getservername when the :ServerName option is
specified, so delay Utils.getservername until needed to avoid unnecessary
DNS l... -
08:27 AM Bug #13007: Webbrick takes 5s to start when machine name looks like a real domain
- Hmm, I see. No objection for the approach then.
-
05:11 AM Bug #13007: Webbrick takes 5s to start when machine name looks like a real domain
- Shyouhei Urabe wrote:
> Sad news is gethostbyname blocks under the hood in the system library, not in ruby's code.
> ...
It seems not a reverse lookup issue, but a forward lookup issue.
It sounds reasonable to delay the call of Util... - 12:59 PM Revision 06a9b6bd (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:59 PM Revision 03ec7397 (git): Delay Utils.getservername until needed.
- There is no need to call Utils.getservername when the :ServerName option is
specified, so delay Utils.getservername until needed to avoid unnecessary
DNS lookups. [ruby-core:78492] [Bug #13007]
git-svn-id: svn+ssh://ci.ruby-lang.org/ru... -
08:44 AM Revision 8d879ca3 (git): compile.c: remove dead code
- * compile.c (DECL_ANCHOR, INIT_ANCHOR): make anchor name an array
and unassignable.
* compile.c (iseq_compile_each): ret is never 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:54 AM Bug #13012 (Closed): irb fails to define a method with a reserved-word-ish keyword argument
- For example
```
def a(if:) end
```
is a valid ruby code but this doesn't work on irb.
This seems to be happening for all keywords that are listed in `RubyLex::ENINDENT_CLAUSE` -
04:28 AM Feature #10208 (Feedback): Passing block to Enumerable#to_h
- FYI if there are people who need this functionality: so far we have not found an appropriately sounding name of this method. It should be a method of Enumerable (not only Hash), that takes a block, and returns a Hash.
-
04:25 AM Revision f2b6e9f0 (git): hash.c: hash should be long
- * hash.c (any_hash): should return `long', because ruby assumes
the hash value of the object id of an object is `long'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:19 AM Revision 9db0b2d7 (git): win32.c: suppress warning
- * win32/win32.c (rb_w32_home_dir): suppress sequence-point
warning, REALLOC_N re-assigns the variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:41 AM Revision f4b51e69 (git): Extend timeout for Solaris unstable10s.
- http://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-trunk/log/20161206T181910Z.fail.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:19 AM Bug #13008 (Closed): File::basename fails if extension contains a colon
- Applied in changeset r57009.
----------
file.c: cygwin behavior
* file.c: recent cygwin hides NTFS specific features.
[ruby-core:78497] [Bug #13008] -
02:19 AM Revision 7eb8d74f (git): file.c: cygwin behavior
- * file.c: recent cygwin hides NTFS specific features.
[ruby-core:78497] [Bug #13008]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:03 AM Revision 2201331d (git): * 2016-12-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:03 AM Revision 3826f177 (git): const pointer is not able to be free.
- * win32/file.c (rb_default_home_dir): should not be marked as const.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:09 AM Bug #13005: Inline rescue is inconsistent when rescuing NoMethodError
- Martin Dürst wrote:
> @matz: Is there a good reason that `o.a = 1 rescue $!.class` is interpreted as `o.a = (1 rescue $1.class)`, while it looks to me as if `o.a = 1 if $!.class` is `(o.a = 1) if $!.class`?
> ...
I guess issue #12402 i... -
12:07 AM Bug #13010 (Third Party's Issue): Tried utilizing RBENV & now RVM...from 2.3.0 to 2.3.1 to 2.3.3 - same errors over and over
- Ryan R wrote:
> Complete removal and reinstall of openssl resolved the issue.
Good to hear that. Thank you reporting anyway.
12/06/2016
-
03:33 PM Revision adef6efc (git): untabify [ci skip]
- based on the patch by W <wolf@wolfsden.cz>
[Fix GH-1497]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:33 PM Revision 0f0c388a (git): Fix indent [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:27 PM Feature #13009: Implement fetch for Thread.current
- `Thread.current` just returns a `Thread` instance, so it should be `Thread#fetch` method.
https://github.com/ruby/ruby/compare/trunk...nobu:feature/Thread%23fetch -
01:26 PM Feature #13009: Implement fetch for Thread.current
- I can not say whether this feature is important or not, but on the syntax suggestion - I like the above (on the premise that it behaves as .fetch on Hash does; I have not checked this either).
-
12:45 AM Feature #13009 (Closed): Implement fetch for Thread.current
- It's a common idiom to use a fiber-local variable, but return a default value if it hasn't been assigned. Here's an example of Ruby code I would expect to be able to write:
~~~ ruby
def feature_enabled?
Thread.current.fetch(:featu... -
02:13 PM Bug #12945: Use-after-free in vm_trace.c
- The patch is now in trunk! :)
-
01:07 PM Bug #12945: Use-after-free in vm_trace.c
- I think the issue I just reported (https://bugs.ruby-lang.org/issues/13011) might be a duplicate of this one. Jeremy Evans, could you try the patch I attached in there and see if it fixes your issue as well?
Regards. -
02:12 PM Bug #13011: Make `trace_running` an integer flag again
- Wow, that was fast, thank you Nobu! :)
-
01:57 PM Bug #13011 (Closed): Make `trace_running` an integer flag again
- Applied in changeset r57002.
----------
Make `trace_running` an integer flag again
* vm_core.h (rb_vm_struct): trace_running should be a counter but
not a bit flag. [ruby-core:78514] [Bug #13011]
Author: David Rodríguez <deivid.rod... -
12:56 PM Bug #13011 (Closed): Make `trace_running` an integer flag again
- After https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/55038, byebug's tests started to segfault. See, for example, https://travis-ci.org/deivid-rodriguez/byebug/jobs/130941967.
I investigated a bit and it seems to ... - 01:57 PM Revision 35573c18 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:57 PM Revision b23eac69 (git): rexml: REXML::Element#[] accepts String or Symbol as attribute name
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:57 PM Revision d71b5394 (git): Make `trace_running` an integer flag again
- * vm_core.h (rb_vm_struct): trace_running should be a counter but
not a bit flag. [ruby-core:78514] [Bug #13011]
Author: David Rodríguez <deivid.rodriguez@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57002 b2dd03c8-3... -
01:45 PM Feature #12871: Using the algorithm like math.fsum of Python for Array#sum
- Takeshi Nishimatsu wrote:
> Julia can do it, too.
> ...
Thank you for pointing the information.
I referred the paper written by A. Klein [1], and employed the algorithm in that paper.
It is the same algorithm of sum_kbn in Julia.
... -
01:40 PM Feature #12871 (Closed): Using the algorithm like math.fsum of Python for Array#sum
- Applied in changeset r57001.
----------
array.c, enum.c: change sum algorithm
* array.c (rb_ary_sum): change the algorithm to Kahan-Babuska balancing
summation to be more precise.
[Feature #12871] [ruby-core:77771]
* enum.c (sum_i... - 01:40 PM Revision 48f5f591 (git): array.c, enum.c: change sum algorithm
- * array.c (rb_ary_sum): change the algorithm to Kahan-Babuska balancing
summation to be more precise.
[Feature #12871] [ruby-core:77771]
* enum.c (sum_iter, enum_sum): ditto.
* test_array.rb, test_enum.rb: add an assertion for the ... -
12:58 PM Feature #12813: Calling chunk_while, slice_after, slice_before, slice_when with no block
- After consideration, I accept this proposal.
Matz. - 12:54 PM Revision 0cb1a2b8 (git): numeric.c: fix exception message for nil rounding
- * numeric.c (rb_num_get_rounding_option): fix exception message
for the case of nil rounding mode.
* test_float.rb: add an assertion for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57000 b2dd03c8-39d4-4d8f-98f... -
12:49 PM Revision a560add6 (git): Fix typos
- Patch by: Koichi ITO <koic.ito@gmail.com>
[Fix GH-1498]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:57 AM Revision 769b83f6 (git): Update latest bundled gems.
- * Rake 12.0.0
* minitest 5.10.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:34 AM Bug #13010: Tried utilizing RBENV & now RVM...from 2.3.0 to 2.3.1 to 2.3.3 - same errors over and over
- Complete removal and reinstall of openssl resolved the issue.
-
11:27 AM Bug #13010: Tried utilizing RBENV & now RVM...from 2.3.0 to 2.3.1 to 2.3.3 - same errors over and over
- Removed version managers just using brew for Ruby management. See below...2.3.3.
yojimbo:~ yojimbo$ gem install rails
/usr/local/Cellar/ruby/2.3.3/lib/ruby/2.3.0/net/http.rb:933: [BUG] Illegal instruction at 0x00000103af69fb
ruby 2.... -
10:56 AM Bug #13010 (Feedback): Tried utilizing RBENV & now RVM...from 2.3.0 to 2.3.1 to 2.3.3 - same errors over and over
- Judging from the backtrace, it seems something went wrong in the openssl library.
```
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/... -
10:44 AM Bug #13010 (Third Party's Issue): Tried utilizing RBENV & now RVM...from 2.3.0 to 2.3.1 to 2.3.3 - same errors over and over
- I've tried two different ruby managers on my new MacBook pro (sierra) and have encountered the same error over and over with the only differences in version. Can someone shed some light on this - there's nothing I could find via Google.
... -
08:48 AM Bug #12980 (Closed): Time - Time to return a Rational
- All right. Sounds rational. Thank you for the explanation, Mame-san and akr-san!
-
07:48 AM Bug #12994: Embedded ruby vs2015 build crashes
- Ok, but the rb_w32_sysinit function is not declared in a header file.
-
07:20 AM Bug #12994: Embedded ruby vs2015 build crashes
- Freddy Jilderda wrote:
> Also the function `ruby_sysinit` in ruby.c (which is the one calling `rb_w32_sysinit`) mentions in the header comment that this function should not be called by programs embedding the CRuby interpreter.
Not t... -
07:46 AM Revision 2b5287d3 (git): EPERM by symlink
- * test/ruby/test_file.rb (test_realpath_encoding): EPERM can raise
on cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:28 AM Bug #13005 (Open): Inline rescue is inconsistent when rescuing NoMethodError
- @matz: Is there a good reason that `o.a = 1 rescue $!.class` is interpreted as `o.a = (1 rescue $1.class)`, while it looks to me as if `o.a = 1 if $!.class` is `(o.a = 1) if $!.class`?
(Backwards compatibility might be a reasonable go... -
07:21 AM Revision 1f97dd56 (git): file.c: isADS
- * file.c (isADS): add macro to tell if Alternate Data Stream
separator, to distinguish from drive letter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:20 AM Bug #13002: Hash calculations no longer using universal hashing
- Martin Dürst wrote:
> Nobu - One thing I don't understand is why there wasn't any test failure on CI because there is a test that checks for bug #9318.
`strong_p` argument was used only for `String`s, but the test covered only specia... -
04:43 AM Bug #13002 (Closed): Hash calculations no longer using universal hashing
- Applied in changeset r56992.
----------
switching hash removal
* st.h (struct st_hash_type): Remove strong_hash.
(struct st_table): Remove inside_rebuild_p and curr_hash.
* st.c (do_hash): Use type->hash instead of curr_hash.
(make... -
04:28 AM Bug #13002: Hash calculations no longer using universal hashing
- Hello Victor,
Thanks for clearing up my confusing re. Bug #9381. It's too bad that that means we can't switch hashing methods.
Nobu - One thing I don't understand is why there wasn't any test failure on CI because there is a test t... -
06:16 AM Revision a8fff364 (git): EPERM by symlink
- * test/ruby/test_file_exhaustive.rb (symlinkfile): EPERM can raise
on cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:14 AM Revision d802149b (git): re.c: check that MatchData is initialized
- Follow r16757 ("* re.c: fix SEGV by Regexp.allocate.names,
Match.allocate.names, etc.", 2008-06-02). Don't do null dereference if
MatchData#hash or #== is called against an uninitialized instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/... -
06:14 AM Revision 2a456047 (git): test/ruby/test_hash.rb: suppress syntax warning
- Avoid "ambiguous first argument; put parentheses or a space even after
`-' operator" warning in assert_in_out_err. Fixes r56992.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:43 AM Revision 5714a26b (git): switching hash removal
- * st.h (struct st_hash_type): Remove strong_hash.
(struct st_table): Remove inside_rebuild_p and curr_hash.
* st.c (do_hash): Use type->hash instead of curr_hash.
(make_tab_empty): Remove setting up curr_hash.
(st_init_table_with_s... -
03:36 AM Revision 1e95f9da (git): remove unnecessary variable
- * st.c (do_hash): remove unnecessary variable and cast.
* hash.c, numeric.c, st.c: adjust style and indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:25 AM Revision 1816e393 (git): random.c: pack hash seeds
- * random.c (seed_keys_t, init_seed): pack seed for rb_hash_start and
rb_memhash, and fill them at once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:28 AM Bug #13008: File::basename fails if extension contains a colon
- I did think so, but on recent cygwin, `touch c.d:12` makes a file "c.d\u{F03A}12".
Seems `:` is mapped to that Private Use Area character.
I'm not sure if we should support it now. -
01:11 AM Feature #13006: backtrace of thread killer
- 1) Pre-2.4 usage: Killed thread can still be joined. If you call join to a killed thread, that should raise an exception. Its backtrace contains the info you want.
2) Starting from 2.4, in addition to the above, you can set Thread.r... -
01:02 AM Bug #13007: Webbrick takes 5s to start when machine name looks like a real domain
- Sad news is gethostbyname blocks under the hood in the system library, not in ruby's code.
But webrick's issue might be resolved already by issue #6559. Can you try the latest trunk to see if that fixed your problem?
12/05/2016
- 11:37 PM Revision 41a7549b (git): * 2016-12-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:37 PM Revision 1ac9b2ed (git): Add a comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:44 PM Bug #13002: Hash calculations no longer using universal hashing
- Martin Dürst wrote:
>
> ...
That what I thought until I saw the test you mentioned
```ruby
def test_wrapper_of_special_const
bug9381 = '[ruby-core:59638] [Bug #9381]'
wrapper = Class.new do
def initialize(obj)... -
01:04 PM Bug #13002: Hash calculations no longer using universal hashing
- In Bug #9381, it claims that st searches/inserts only on hash values and equalities.
Switching hash functions hiddenly from ruby space can't be compatible with Bug #9381.
The candidates would be:
1. revert hash switching,
2. reve... -
10:31 AM Bug #13002: Hash calculations no longer using universal hashing
- Hello Victor, others,
On 2016/12/04 15:28, vmakarov@redhat.com wrote:
> Issue #13002 has been updated by Vladimir Makarov.
> ...
Over the weekend, I started to think about this issue some more and to
write an email. First, I shou... -
02:59 PM Bug #13008: File::basename fails if extension contains a colon
- I don't think this is a bug. `:` is the file stream separator in NTFS (https://blogs.technet.microsoft.com/askcore/2013/03/24/alternate-data-streams-in-ntfs/). On *nix systems, you do get `c.d:12`.
-
01:41 PM Bug #13008 (Closed): File::basename fails if extension contains a colon
- ~~~
File.basename('a/b/c.d:12')
~~~
returns
~~~
c.d
~~~
but should return
~~~
c.d:12
~~~ -
12:39 PM Bug #12994: Embedded ruby vs2015 build crashes
- As a workaround I copy/pasted this code to the start of the _pioinfo function in win32.c (line 2462):
```C
#if RUBY_MSVCRT_VERSION >= 140
if (!__pioinfo) {
set_pioinfo_extra ();
}
#endif
-
10:56 AM Bug #12994: Embedded ruby vs2015 build crashes
- I'm sorry I was not clear, what I mean is I'm updating a C++ application from VS2010 to VS2015. This application embeds a ruby engine (version 1.8.6), so that users of the application can uses ruby scripting to add custom functionality t...
-
12:35 PM Revision b1272e93 (git): Remove closed checks and use `&.`
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:35 PM Revision 956aa010 (git): NEWS: mention chomp option of String and StringIO
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:10 AM Bug #12999 (Closed): there still exist race conditions in require
- Applied in changeset r56985.
----------
Don't insert an entry to loading_tbl if another thread succeed to load.
If rb_thread_shield_wait() returns Qfalse, the file has been successfully
loaded by another thread, so there is no need to ... -
11:10 AM Revision 11f9b8c0 (git): Don't insert an entry to loading_tbl if another thread succeed to load.
- If rb_thread_shield_wait() returns Qfalse, the file has been successfully
loaded by another thread, so there is no need to insert a new entry into
loading_tbl. [ruby-core:78464] [Bug #12999]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/... -
05:44 AM Bug #13007 (Closed): Webbrick takes 5s to start when machine name looks like a real domain
- sudo scutil --set HostName foo.local
ruby -r socket -e "Socket.gethostbyname(Socket.gethostname)"
or much simpler:
ruby -r socket -e "Socket.gethostbyname('foo.local')"
called from webrick/config.rb:24 ... Utils::getservername
... -
02:13 AM Feature #10912: Add method(s) to IPAddr for determining whether an address is link local
- Is there any progress?
In RFC 4291 2.4, the type of an IPv6 address is defined, as follows:
Address type Binary prefix IPv6 notation Section
------------ ------------- ------------- --... -
12:03 AM Revision 74ba0cfc (git): random.c: private rand
- * random.c (rb_random_ulong_limited): do not call private method
rand. [ruby-dev:49892] [Misc #13003]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/04/2016
- 11:14 PM Revision 4509b366 (git): * 2016-12-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:14 PM Revision cc2075cd (git): Increase timeout of TestRequire#test_require_with_loaded_features_pop
- unstable10s fails it because of timeout
http://rubyci.s3.amazonaws.com/unstable10s/ruby-trunk/log/20161201T161908Z.fail.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:04 PM Bug #13002: Hash calculations no longer using universal hashing
- Vladimir Makarov wrote:
> Although strong/weak hash approach gave about 5-6% improvement out of 45% on Ruby hash table benchmarks, I think we should not use it for Ruby. I will provide a patch to get rid of it in 2 days.
The follo... -
06:28 AM Bug #13002: Hash calculations no longer using universal hashing
- Nobuyoshi Nakada wrote:
> `test_wrapper_of_special_const` failed, that is, it's impossible to emulate switching weak and strong versions under the hood.
> ...
You are right, the behavior with strong/weak hashes is wrong for Ruby. This... -
05:37 AM Bug #13002: Hash calculations no longer using universal hashing
- Nobuyoshi Nakada wrote:
>
> ...
Sorry, if I understand Ruby documentation wrongly. But it (http://ruby-doc.org/core-2.3.3/Object.html#method-i-hash) says "The hash value for an object may not be identical across invocations or implem... -
04:12 AM Bug #13002: Hash calculations no longer using universal hashing
- `test_wrapper_of_special_const` failed, that is, it's impossible to emulate switching weak and strong versions under the hood.
I think this behavior is quirky. -
02:45 AM Bug #13002: Hash calculations no longer using universal hashing
- Vladimir Makarov wrote:
> Instead of using siphash (a secure hash function) all the time, the new hash tables use faster hash functions and when they recognize an ongoing denial attack, they are **rebuilt and switches to secure hash fun... -
01:30 AM Bug #13002: Hash calculations no longer using universal hashing
- The new hash table implementation uses a different approach to deal with the denial attacks.
Instead of using siphash (a secure hash function) all the time, the new hash tables use faster hash functions and when they recognize an on... -
12:16 AM Bug #13002 (Closed): Hash calculations no longer using universal hashing
- When preparing for my lecture on hash tables last week, I found that Ruby trunk doesn't do universal hashing anymore. See http://events.ccc.de/congress/2011/Fahrplan/attachments/2007_28C3_Effective_DoS_on_web_application_platforms.pdf fo...
-
06:27 PM Bug #13005 (Closed): Inline rescue is inconsistent when rescuing NoMethodError
- ```
o.a = 1 rescue $!.class
```
is parsed as
```
o.a = (1 rescue $!.class)
```
Try
```
(o.a = 1) rescue $1.class
```
Matz. -
05:20 PM Bug #13005 (Closed): Inline rescue is inconsistent when rescuing NoMethodError
- ```ruby
o = "some object"
class << o
private
attr_accessor :a
end
# GETTER can be rescued in a begin-block or inline
begin o.a
rescue; $!.class # => NoMethodError
end
o.a rescue $!.class # => NoMethodE... -
05:43 PM Feature #13006 (Open): backtrace of thread killer
- Hello, I am right now having difficulties to understand why one thread I have is dead. Seems been killed by something (rails/puma). But there is no way I can see to understand what and why did it.
That's why I'm proposing a new featur... -
05:40 PM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
- I posted this link to IRC (#ruby on freenode), just to see if anyone had a good name suggestion. The suggestions `#matchsub` and `#msub` were offered. I don't really like them, `#matchsub` sounds like it tries to subtitute a match (exact...
-
02:01 PM Bug #13003: About not Random instance of random: keyword ardument of Array#shuffle!
- バグでしょう。
https://github.com/ruby/ruby/compare/trunk...nobu:bug/calling-private-rand
https://github.com/ruby/spec/compare/master...nobu:bug/calling-private-rand -
04:46 AM Bug #13003 (Closed): About not Random instance of random: keyword ardument of Array#shuffle!
- Array#shuffle! の random: キーワード引数で、Randomのインスタンスでないような
任意のオブジェクトを渡してしまっていても、(最終的に)rb_random_ulong_limited 中の
rb_funcallv(obj, id_rand, 1, &lim) という呼び出しによりグローバルの rand が
呼び出されて、それっぽく動いてしまいます。
わざわざ random: キーワード引数で渡していながら、変なオブジェクトを渡してし... -
08:50 AM Bug #13004 (Closed): rb_get_kwargs はバグってないでしょうか?
- Applied in changeset r56980.
----------
extension.rdoc: fix rb_get_kwargs [ci skip]
* doc/extension.rdoc: [DOC] optional keyword arguments are
defaulted to Qundef. ignored keys are kept in the hash but a
new Hash is not created. ... -
08:26 AM Bug #13004 (Closed): rb_get_kwargs はバグってないでしょうか?
- きしもとです
拡張ライブラリで `rb_get_kwargs` を使おうとしたところ、いくつか変に
感じた点がありましたので、確認をお願いしたくこちらにメイルします。
もしバグでしたらチケットにまとめます。
(1) `values`を渡すと、全て変更(初期化)される。
extension(.ja).rdoc には、
> ```
> ...
とあるが、コードでは、
```C
1866 if (values) {
1867 ... -
08:50 AM Revision f5ef84cb (git): class.c: missing unknown_keyword_error
- * class.c (rb_get_kwargs): when values are stored, corresponding
keys have been remove from the keyword hash, and the hash should
be empty in that case. [ruby-dev:49893] [Bug #13004]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun... -
08:50 AM Revision b62e3220 (git): extension.rdoc: fix rb_get_kwargs [ci skip]
- * doc/extension.rdoc: [DOC] optional keyword arguments are
defaulted to Qundef. ignored keys are kept in the hash but a
new Hash is not created. [ruby-dev:49893] [Bug #13004]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56980... -
05:40 AM Revision b16d1968 (git): Revert changes on rb_frame_method_id_and_class()
- r56593 introduced backwards incompatible changes in the API.
[ruby-core:78471] [Feature #12747]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:05 AM Revision 7a5ad716 (git): Specify the socktype explicitly.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:53 AM Revision 94e8036b (git): Use 127.0.0.1 if getaddrinfo fails.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:04 AM Bug #12990: unicode_case_mapping_tests
- Martin Dürst wrote:
> A short additional note: If cases like these increase with future versions of Unicode, I plan to change the special treatment of U+03B9/U+03BC/U+A64B to something more data-based.
I have just done that with r569... -
01:58 AM Revision 8baa73be (git): remove special processing for U+03B9/U+03BC/U+A64B
- * enc/unicode.c: Remove special processing for U+03B9/U+03BC/U+A64B
(GREEK SMALL LETTERs IOTA/MU, CYRILLIC SMALL LETTER MONOGRAPH UK)
from onigenc_unicode_case_map and simplify code.
* enc/unicode/case-folding.rb: Remove check for U... -
01:49 AM Feature #12996: Optimize Range#===
- Yes, I tryed alias way.
But it was vary slow.
```
$ time ./miniruby t.rb
./miniruby t.rb 1.80s user 0.02s system 98% cpu 1.842 total
```
And another issue appeared.
```
$ make test-all TESTS="test/ruby/test_range.rb"
CC ... -
01:17 AM Revision 31fb4e3e (git): Reorder codepoints in some entries of CaseUnfold_11_Table
- * enc/unicode/case-folding.rb: Reorder codepoints so that the upper-case
mapping comes first.
* enc/unicode/9.0.0/casefold.h: Codepoints reordered, upper-case mapping
flag added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@569... -
12:24 AM Feature #13001: Add `full` option to `ObjectSpace.dump_all`
- Dump all the things! \o/
12/03/2016
- 03:41 PM Revision 1fa8bd75 (git): * 2016-12-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:41 PM Revision 071d3ae3 (git): Use IPv6 if it's preferred.
- I hope this fix makes tests faster on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:18 PM Revision d95f5bc8 (git): string.c: chomp option
- * string.c (rb_str_enumerate_lines): implement chomp option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:40 PM Feature #12747: Add TracePoint#callee_id
- Thanks Yamaguchi-san, good catch.
I'll revert rb_frame_method_id_and_class.
-
08:50 AM Feature #12747: Add TracePoint#callee_id
- r56593 changed the signature of rb_frame_method_id_and_class() which is exposed to C extensions. For example, this broke ruby-prof gem. Is this intentional?
-
12:18 PM Bug #12998 (Assigned): paragraph mode inconsistency between `IO#each_line` and `String#each_line`
-
11:24 AM Misc #10756 (Rejected): Add spaces between args
- I think this is duplicated of #12977.
And this patch cannot apply now. -
11:19 AM Misc #12977 (Closed): Cleanup ruby method definitions in hash.c
-
11:18 AM Revision 9fa8006a (git): Cleanup ruby method definitions in hash.c
- Always add a space between a comma and the next element. These spaces
were there sometimes, but not always. This keeps to code consistent.
Patch by: Herwin Weststrate <herwin@snt.utwente.nl>
[ruby-core:78297] [Misc #12977] [GH-1492]
g... -
11:01 AM Revision 35623d77 (git): stringio: chomp option
- * ext/stringio/stringio.c (strio_getline): implement chomp option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:01 AM Revision 856da5b4 (git): test_stringio.rb: paragraph mode
- * test/stringio/test_stringio.rb (test_gets, test_each):
assertions for paragraph mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:18 AM Revision 0d2a4cc5 (git): add tests againts regressions for upcoming codepoint reordering in unfolding table
- * test/ruby/enc/test_case_mapping.rb: Add method test_reorder_unfold to test against
problems when reordering codepoints in some entries in
CaseUnfold_11_Type CaseUnfold_11_Table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56... - 05:09 AM Revision fc410343 (git): * 2016-12-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:09 AM Revision 56419df9 (git): change test class name because it is not only about folding
- * test/ruby/enc/test_case_comprehensive.rb: Change test class name from
TestComprehensiveCaseFold to TestComprehensiveCaseMapping because the
tests are about mapping in general, not only folding
git-svn-id: svn+ssh://ci.ruby-lang.or... -
02:45 AM Bug #12507 (Closed): random SEGV in kernel.system when called with long parametre list
-
12:49 AM Bug #12999: there still exist race conditions in require
- In r56965, load_lock() was changed as follows:
```
switch (rb_thread_shield_wait((VALUE)data)) {
case Qfalse:
data = (st_data_t)ftptr;
st_insert(loading_tbl, data, (st_data_t)rb_thread_shield_new());
...
12/02/2016
-
09:23 PM Feature #13001 (Closed): Add `full` option to `ObjectSpace.dump_all`
- I would like to include T_NONE slots in the `ObjectSpace.dump_all` outpout so that I can visualize heap fragmentation. I've attached a patch that adds a "full" option to `dump_all` so that all slots are dumped to the JSON output, includ...
-
04:25 PM Feature #13000 (Feedback): Implement Set#include? with Hash#include?
- Why does `Set#include?` not call `Hash#include?`? Currently it calls `Hash#[]`.
The protocol of Set already use `Hash#include?` for `==`.
```diff
diff --git a/lib/set.rb b/lib/set.rb
index 43c388c..f3dbe2d 100644
--- a/lib/set.r... -
03:34 PM Bug #12507: random SEGV in kernel.system when called with long parametre list
- The issue can be reproduced with old trunk, r45357 ... r51492.
So I think it is a GC issue of ALLOCV_N, similar to [Bug #11418]. -
11:20 AM Feature #12996: Optimize Range#===
- Yuki Kurihara wrote:
> ## Important point
> ...
Use alias.
```C
rb_define_alias(rb_cRange, "===", "include?");
```
instead of
```C
rb_define_method(rb_cRange, "===", range_include, 1);
```
-
05:09 AM Feature #12996 (Closed): Optimize Range#===
- The proposal is that Range#=== optimize by reducing method calls.
## Benchmark
~~~shell
$ cat t.rb
i = 0
while i < 1_000_000
case i
when 1..1000
end
i += 1
end
~~~
~~~
$ time ./miniruby -e 1
./miniruby -e 1 0... -
11:17 AM Bug #12999 (Closed): there still exist race conditions in require
- TestRequire#test_require_with_loaded_features_pop fails by increasing the number of threads,
so it seems that there still exist race conditions in require.
```
lexington:ruby$ cat t/require_test.rb
require "tempfile"
Tempfile.cr... -
06:21 AM Bug #12998 (Closed): paragraph mode inconsistency between `IO#each_line` and `String#each_line`
- With this lines.rb:
```ruby
lines = "abc\n\n\n\ndef\n"
p IO.pipe{|r,w|w.print lines; w.close; r.each_line("").to_a}
p lines.each_line("").to_a
```
```
$ ./ruby -v lines.rb
ruby 2.4.0dev (2016-12-02 trunk 56965) [x86_64-darwin15... -
06:12 AM Revision 4a7c767e (git): test/ruby/test_string.rb: ensure restoring $/
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:09 AM Bug #12997 (Closed): Out-of-bounds read in regcomp.c
- Valgrind reports out-of-bounds memory access while creating a Regexp object with an invalid byte sequence:
~~~
$ valgrind ruby -e'Regexp.new("\\\xD3\xD5\xBE\x1E+".force_encoding("euc-jp"))'
==21986== Memcheck, a memory error detecto... -
03:33 AM Revision 8130ee5c (git): parse.y: simplify parsing utf-8 string
- * parse.y (parser_tokadd_codepoint): move error checks and add
char.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:47 AM Revision 80045bc2 (git): parse.y: relax spaces
- * parse.y (parser_tokadd_utf8): relax restriction spaces inside
"\u{...}".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:24 AM Revision 76bb017a (git): re.c: count associated Regexp object in MatchData#hash
- Don't discard the hash value computed for the regexp object. It seems it
was simply missed out in r24754, when MatchData#hash was initially
implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56962 b2dd03c8-39d4-4d8f-98ff-823...