Project

General

Profile

Activity

From 12/05/2016 to 12/11/2016

12/11/2016

07:28 PM Bug #13024 (Closed): Confusing error message matching a non-ASCII string with ASCII-regex
```ruby
irb(main):001:0> "\u2603".match(/./n)
(irb):1: warning: regexp match /.../n against to UTF-8 string
=> #<MatchData "☃">
```
I actually had to read the source to discover the intention of this error (partly because I copied...
herwin (Herwin W)
02:40 PM Bug #13022 (Rejected): Nested array syntax error returns nil
marcandre (Marc-Andre Lafortune)
01:08 PM Feature #12898: String#match? method in addition to Regexp#match?
Accepted.
Matz.
matz (Yukihiro Matsumoto)
09:20 AM Misc #12976: Update example of Hash#value? and Hash#has_value?
This has been integrated, so this ticket can be closed herwin (Herwin W)
09:20 AM Revision 7e8b910a (git): parse.y: zero codepoints
* parse.y (parser_tokadd_utf8): relax restriction to allow zero or
more codepoints.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:13 AM Revision 1d51f427 (git): fix Zlib.gzip/gunzip document
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:24 AM Bug #13023 (Rejected): missing library when trying to install 2.3 via rvm - pointing to directory on someone computer
nobu (Nobuyoshi Nakada)

12/10/2016

10:18 PM Bug #13019: Fix st_hash* functions
It passes SMHasher (at least, little-endian variant). funny_falcon (Yura Sokolov)
09:36 PM Bug #13023 (Rejected): missing library when trying to install 2.3 via rvm - pointing to directory on someone computer
I don;t know who the Travis is but literally I cannot make 2.3.3 to work with rvm and gem.
See screenshot attached.
Didn't know where to post this.
If this is wrong group delete it.
Beyo (Sebastian Szwarc)
06:34 PM Revision 5ec23b52 (git): Updated documentation examples for Hash#value?
The same code is used for has_value? and value?, but according to
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/43765
has_value is deprecated. Use the non-deprecated syntax in the examples.
by Herwin Weststrate <herwin@snt....
naruse (Yui NARUSE)
06:23 PM Revision 66c9bb11 (git): Add missing :nodoc: comment
We were missing a `:nodoc:` magic comment that was making automated tools show
that this method was missing documentation, when it really didn't need to be
documented.
by Devon Estes <devon.c.estes@gmail.com>
https://github.com/ruby/ruby...
naruse (Yui NARUSE)
05:47 PM Revision 548ec36c (git): * 2016-12-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:47 PM Revision 2873edea (git): Merge Onigmo 6.0.0
* https://github.com/k-takata/Onigmo/blob/Onigmo-6.0.0/HISTORY
* fix for ruby 2.4: https://github.com/k-takata/Onigmo/pull/78
* suppress warning: https://github.com/k-takata/Onigmo/pull/79
* include/ruby/oniguruma.h: include onigmo.h.
* ...
naruse (Yui NARUSE)
05:28 PM Bug #13022: Nested array syntax error returns nil
Yes, this is expected behavior. Ruby parses this as:
~~~ ruby
[[1,3], [5,6].[](11, 15), [17,22]]
~~~
And Array#[] returns nil if the starting index (11) is out of range.
jeremyevans0 (Jeremy Evans)
05:07 PM Bug #13022 (Rejected): Nested array syntax error returns nil
If you leave out a comma in a nested array, ruby returns `nil` instead of raising a SyntaxError. Is this expected behavior?
1. Create a nested array with a missing comma:
[[1,3], [5,6] [11, 15], [17,22]] #=> [[1, 3], nil, [17, 22]]
harrywhelchel (Harry Whelchel)
01:16 PM Bug #12348 (Closed): PKey::EC.public_key returns EC::Point
There is an inconsistency with other OpenSSL::PKey classes in #public_key method. However I don't think it's worth breaking backwards compatibility in order to align the behavior with the other classes, as OpenSSL::PKey::{RSA,DSA,DH}#pub... rhenium (Kazuki Yamaguchi)
01:06 PM Feature #12085 (Closed): [PATCH] openssl: document `exception: false' for *_nonblock
Applied as 5c31e7233476 at the new repository:
https://github.com/ruby/openssl/commit/5c31e7233476bec184cac239b5d36de68dbd997e
and is already imported to trunk as a part of openssl v2.0.0.
rhenium (Kazuki Yamaguchi)
01:03 PM Bug #12952 (Closed): Incompatibility of a method signature between `Float#round` and `BigDecimal#round`
mrkn (Kenta Murata)
01:03 PM Bug #12952: Incompatibility of a method signature between `Float#round` and `BigDecimal#round`
I've fixed this in bigdecimal version 1.3.0.pre, which has already been imported in trunk. mrkn (Kenta Murata)
12:37 PM Bug #8831 (Closed): test-all error: OpenSSL::SSL::SSLError: SSL_write: bad write retry
#12126 should have fixed the root cause. r42790 is already reverted (EDIT: by f542fb60add7 at GitHub ruby/openssl and imported to trunk by r56946) and RubyCI seems to be happy with this. rhenium (Kazuki Yamaguchi)
12:28 PM Bug #10166 (Closed): Problem with openssl and ext/openssl - ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
rhenium (Kazuki Yamaguchi)
12:25 PM Feature #12254 (Closed): Add SSLCiphers option to webrick ssl.rb
The patch has already been merged by r54669. rhenium (Kazuki Yamaguchi)
08:56 AM Revision 42a677c8 (git): bigdecimal: version 1.3.0.pre.2
Import bigdecimal version 1.3.0.pre.2. The full commit log is here:
https://github.com/ruby/bigdecimal/compare/v1.3.0.pre...v1.3.0.pre.2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
08:54 AM Revision 30540c56 (git): stringio.c: chomp CR
* ext/stringio/stringio.c (strio_getline): chomp CR not only LF,
as well as String#chomp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:26 AM Bug #13021 (Closed): `Zlib.gunzip` modifies argument String
Applied in changeset r57042.
----------
zlib.c: replace with substring
* ext/zlib/zlib.c (zstream_discard_input): replace with unread
portion substring, not modifying the input buffer directly.
[ruby-core:78567] [Bug #13021]
nobu (Nobuyoshi Nakada)
03:48 AM Bug #13021: `Zlib.gunzip` modifies argument String
```patch
diff --git i/ext/zlib/zlib.c w/ext/zlib/zlib.c
index 78860132df..0ce14198cc 100644
--- i/ext/zlib/zlib.c
+++ w/ext/zlib/zlib.c
@@ -879,9 +879,8 @@ zstream_discard_input(struct zstream *z, long len)
z->input = Qnil;
...
nobu (Nobuyoshi Nakada)
02:00 AM Bug #13021 (Closed): `Zlib.gunzip` modifies argument String
```
% irb -r irb/completion --simple-prompt
>> RUBY_DESCRIPTION
=> "ruby 2.4.0dev (2016-12-10 trunk 57036) [x86_64-linux]"
> ...
=> true
>> gz=Zlib.gzip('test')
=> "\x1F\x8B\b\x00\xBF`KX\x00\x03+I-.\x01\x00\f~\x7F\xD8\x04\x00\x00\x...
znz (Kazuhiro NISHIYAMA)
08:26 AM Revision f46a1377 (git): zlib.c: replace with substring
* ext/zlib/zlib.c (zstream_discard_input): replace with unread
portion substring, not modifying the input buffer directly.
[ruby-core:78567] [Bug #13021]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57042 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
08:12 AM Revision 0c83666c (git): openssl: import v2.0.1
Import Ruby/OpenSSL 2.0.1. The full commit history since 2.0.0 (imported
at r56946) can be found at:
https://github.com/ruby/openssl/compare/v2.0.0...v2.0.1
This release contains only bug fixes. Note, the first two commits since
v2.0...
rhenium (Kazuki Yamaguchi)
07:49 AM Revision 8e129373 (git): bigdecimal: import version 1.3.0.pre
Import bigdecimal version 1.3.0.pre. The full commit log of this
changes can be found at:
https://github.com/ruby/bigdecimal/compare/5c43a9e...v1.3.0.pre
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57040 b2dd03c8-39d4-4d8f-9...
Kenta Murata
07:23 AM Bug #9192 (Closed): Inconsistent comparison between Float and BigDecimal
mrkn (Kenta Murata)
07:23 AM Bug #9192: Inconsistent comparison between Float and BigDecimal
This is fixed in the latest master branch of [ruby/bigdecimal](https://github.com/ruby/bigdecimal). mrkn (Kenta Murata)
07:19 AM Bug #9689 (Closed): (BigDecimal + Float) no longer commutative due to #7176
This is fixed in the latest master branch of [ruby/bigdecimal](https://github.com/ruby/bigdecimal). mrkn (Kenta Murata)
07:14 AM Feature #12161 (Closed): Friendly BigDecimal#inspect
This is fixed in the latest master branch of [ruby/bigdecimal](https://github.com/ruby/bigdecimal). mrkn (Kenta Murata)
07:13 AM Bug #10286 (Closed): BigDecimal - inconsistency with other numeric classes
This was fixed in the latest master branch of [ruby/bigdecimal](https://github.com/ruby/bigdecimal). mrkn (Kenta Murata)
07:01 AM Bug #10613: SNI is not optional when using TLS
Which server? TLS servers conforming to the TLS/TLS extensions specification should simply ignore the extension if it is not supported. rhenium (Kazuki Yamaguchi)
06:36 AM Bug #11947 (Closed): BigDecimal#coerce: unexpected behavior with Float
This fixed on the current master branch of [ruby/bigdecimal](https://github.com/ruby/bigdecimal) repository.
So I close this issue.
mrkn (Kenta Murata)
06:25 AM Revision 2dd99307 (git): Fix grammer [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:36 AM Bug #12958 (Closed): Breaking change in how `#round` works
Applied in changeset r57038.
----------
internal.h: change the default rounding mode to half-up
* internal.h (ROUND_DEFAULT): changed to RUBY_NUM_ROUND_HALF_UP.
[Bug #12958] [ruby-core:78204]
* test/ruby/test_integer.rb: fix asserti...
mrkn (Kenta Murata)
02:20 AM Bug #12958: Breaking change in how `#round` works
OK, the default behavior should be kept unchanged.
Matz.
matz (Yukihiro Matsumoto)
02:36 AM Revision f72be814 (git): internal.h: change the default rounding mode to half-up
* internal.h (ROUND_DEFAULT): changed to RUBY_NUM_ROUND_HALF_UP.
[Bug #12958] [ruby-core:78204]
* test/ruby/test_integer.rb: fix assertions for the above change.
* test/ruby/test_rational.rb: ditto.
* test/test_mathn.rb: ditto.
git...
Kenta Murata
02:16 AM Revision adc9c71f (git): Fix document of gunzip and gzip [ci skip]
- fix a typo (`GzipReadr` -> `GzipReader`)
- `Zlib::GzipReader.new` does not take block
- fix encoding
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
12:21 AM Feature #13020: Zlib.gzip and Zlib.gunzip
naruse@airemix.jp wrote:
> I added Zlib.deflate/inflate [Feature #4180] before, but writing/reading gzip is still too complex.
> It should have shorthand method.

I like the convenience, but I think encouraging use of
potentially l...
normalperson (Eric Wong)

12/09/2016

10:45 PM Feature #13020 (Closed): Zlib.gzip and Zlib.gunzip
Applied in changeset r57035.
----------
Zlib.gzip and Zlib.gunzip [Feature #13020]
Encode and Decode gzip data without creating files.
naruse (Yui NARUSE)
10:37 PM Feature #13020 (Closed): Zlib.gzip and Zlib.gunzip
I added Zlib.deflate/inflate [Feature #4180] before, but writing/reading gzip is still too complex.
It should have shorthand method.
naruse (Yui NARUSE)
10:45 PM Revision 5ae717f2 (git): * 2016-12-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:45 PM Revision 583b6dc3 (git): Zlib.gzip and Zlib.gunzip [Feature #13020]
Encode and Decode gzip data without creating files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:45 PM Revision 1f63c0fc (git): Suppress warning: this use of "defined" may not be portable
Use of defined() in macro expansion is considered non portable.
https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01577.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:25 PM Bug #12958: Breaking change in how `#round` works
I would echo 100% of what mathew murphy wrote, and also add that this negatively affects ergonomics for the vast majority of cases where one wants to not use banker's rounding. I now need to know that Ruby rounds Floats differently than ... chrisccerami (Chris Cerami)
03:31 PM Bug #12958: Breaking change in how `#round` works
For the record, I think that the new choice of default is poor.
People have a normal everyday expectation for how numbers are rounded. I claim that the expectation is that >= .5 rounds up, <.5 rounds down.
I cite as evidence:
...
meta (mathew murphy)
07:14 PM Bug #13019: Fix st_hash* functions
Yura Sokolov wrote:
> Previous implementation had an issues:
> ...
Although performance of MRI hash benchmarks are not improved by this patch, I confirm a bad behaviour of the current variant of murmur hash in MRI. A half year ago, I...
vmakarov (Vladimir Makarov)
02:02 PM Bug #13019 (Closed): Fix st_hash* functions
Previous implementation had an issues:
- macros murmur1 assumes murmur_step takes rotation value
as a second argument
- but murmur_step second argument is "next block"
- this makes st_hash_uint and st_hash_end to not mix high bits ...
funny_falcon (Yura Sokolov)
06:48 PM Feature #13017: Switch SipHash from SipHash24 to SipHash13
Since we removed recently the code switching weak/strong hashes, the speed of the strong hash (siphash24) became important.
According to my measurements on i7-4790K, Switching from siphash24 to siphash13 improves MRI hash table benchm...
vmakarov (Vladimir Makarov)
08:19 AM Feature #13017: Switch SipHash from SipHash24 to SipHash13
Eric, you are right. Excuse me for that.
Just uploaded right version.
funny_falcon (Yura Sokolov)
01:11 AM Feature #13017: Switch SipHash from SipHash24 to SipHash13
funny.falcon@gmail.com wrote:
> Feature #13017: Switch SipHash from SipHash24 to SipHash13
> https://bugs.ruby-lang.org/issues/13017

I think the wrong patch was uploaded to redmine:

> ---Files--------------------------------
> ...
normalperson (Eric Wong)
06:14 PM Bug #10613: SNI is not optional when using TLS
Is there any chance of this patch getting merged?
We're encountering this bug and are currently monkeypatching the Net::HTTP#connect method to disable SNI for the connections where it's problematic.
bschmeck (Ben Schmeckpeper)
11:07 AM Feature #12142: Hash tables with open addressing
I think the array `features` should be `static const`.
https://github.com/k-takata/Onigmo/commit/44e3c0a16da1116be641ea807c1202434b743ace
k_takata (Ken Takata)
03:25 AM Revision c047f58d (git): ruby.h: add prefix
* include/ruby/ruby.h (RB_TEST, RB_NIL_P): prefix RB to get rid of
name conflicts with other headers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:59 AM Revision d8761cf2 (git): Adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:57 AM Revision b8095e59 (git): * 2016-12-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:57 AM Revision e9a8e8ab (git): remove core#hash_merge_ary
* compile.c (compile_array_): remove m_core_hash_merge_ary which
seems unreachable, and wrong number of arguments.
* vm.c (m_core_hash_merge_ary): removed because it is never used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57...
nobu (Nobuyoshi Nakada)
01:28 AM Feature #12982: ruby 2.3.1 got crash on macos

here is the detail procedure.
https://github.com/padrino/padrino-framework/issues/2097
hunterhu (Hunter Hu)

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\...
coldnebo (Larry Kyrala)
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...
coldnebo (Larry Kyrala)
06:59 PM Bug #13018: end of file reached (EOFError) from SMTP
Fix typo tobymurray-nanometrics (Toby Murray)
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...
tobymurray-nanometrics (Toby Murray)
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...
funny_falcon (Yura Sokolov)
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...
jduff (John Duff)
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
nobu (Nobuyoshi Nakada)
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...
znz (Kazuhiro NISHIYAMA)
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.
> ...
duerst (Martin Dürst)
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".
- ...
shyouhei (Shyouhei Urabe)
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...
duerst (Martin Dürst)
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.
shyouhei (Shyouhei Urabe)
08:29 AM Feature #13016: String#gsub(hash)
Is str.gsub(map) a shortcut for str.gsub(Regexp.union(map.keys)) { map[$&] } ? akr (Akira Tanaka)
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... shyouhei (Shyouhei Urabe)
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...
usa (Usaku NAKAMURA)
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?
_dim (Dimitry Andric)
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. [...
nobu (Nobuyoshi Nakada)
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...
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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...
nobu (Nobuyoshi Nakada)
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]
nobu (Nobuyoshi Nakada)
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... justcolin (Colin Fulton)
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
nobu (Nobuyoshi Nakada)
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]
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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...
labocho (Keisuke NISHI)
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
nobu (Nobuyoshi Nakada)

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...
shugo (Shugo Maeda)
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]
shugo (Shugo Maeda)
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...
_dim (Dimitry Andric)
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... _dim (Dimitry Andric)
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
shugo (Shugo Maeda)
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!
shugo (Shugo Maeda)
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...
_dim (Dimitry Andric)
04:18 PM Bug #13013: Segmentation fault
Yes thank you. I just came back to report that. Thank you for your time. prees (Phil Rees)
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.
usa (Usaku NAKAMURA)
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.
prees (Phil Rees)
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 svn[bot]
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...
znz (Kazuhiro NISHIYAMA)
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
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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...
shugo (Shugo Maeda)
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. shyouhei (Shyouhei Urabe)
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...
shugo (Shugo Maeda)
12:59 PM Revision 06a9b6bd (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
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...
shugo (Shugo Maeda)
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
nobu (Nobuyoshi Nakada)
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`
matsuda (Akira Matsuda)
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. shyouhei (Shyouhei Urabe)
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
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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
shugo (Shugo Maeda)
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]
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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 svn[bot]
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
U.Nakamura
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...
shyouhei (Shyouhei Urabe)
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.
shyouhei (Shyouhei Urabe)

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
znz (Kazuhiro NISHIYAMA)
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 znz (Kazuhiro NISHIYAMA)
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
nobu (Nobuyoshi Nakada)
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). shevegen (Robert A. Heiler)
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...
dwbutler (David Butler)
02:13 PM Bug #12945: Use-after-free in vm_trace.c
The patch is now in trunk! :) deivid (David Rodríguez)
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.
deivid (David Rodríguez)
02:12 PM Bug #13011: Make `trace_running` an integer flag again
Wow, that was fast, thank you Nobu! :) deivid (David Rodríguez)
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...
nobu (Nobuyoshi Nakada)
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 ...
deivid (David Rodríguez)
01:57 PM Revision 35573c18 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
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 Sutou Kouhei
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...
nobu (Nobuyoshi Nakada)
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.
...
mrkn (Kenta Murata)
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...
mrkn (Kenta Murata)
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 ...
Kenta Murata
12:58 PM Feature #12813: Calling chunk_while, slice_after, slice_before, slice_when with no block
After consideration, I accept this proposal.
Matz.
matz (Yukihiro Matsumoto)
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...
Kenta Murata
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
znz (Kazuhiro NISHIYAMA)
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
hsbt (Hiroshi SHIBATA)
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. jjwiz (Ryan R)
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....
jjwiz (Ryan R)
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/...
rhenium (Kazuki Yamaguchi)
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.
...
jjwiz (Ryan R)
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! matsuda (Akira Matsuda)
07:48 AM Bug #12994: Embedded ruby vs2015 build crashes
Ok, but the rb_w32_sysinit function is not declared in a header file. fjilderd (Freddy Jilderda)
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...
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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...
duerst (Martin Dürst)
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
nobu (Nobuyoshi Nakada)
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...
nobu (Nobuyoshi Nakada)
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...
nobu (Nobuyoshi Nakada)
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...
duerst (Martin Dürst)
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
nobu (Nobuyoshi Nakada)
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/...
rhenium (Kazuki Yamaguchi)
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
rhenium (Kazuki Yamaguchi)
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...
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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.
nobu (Nobuyoshi Nakada)
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...
shyouhei (Shyouhei Urabe)
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?
shyouhei (Shyouhei Urabe)

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 svn[bot]
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 shugo (Shugo Maeda)
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)...
vmakarov (Vladimir Makarov)
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...
nobu (Nobuyoshi Nakada)
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...
duerst (Martin Dürst)
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`. jeremyevans0 (Jeremy Evans)
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
~~~
rovf (Ronald Fischer)
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
fjilderd (Freddy Jilderda)
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... fjilderd (Freddy Jilderda)
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 znz (Kazuhiro NISHIYAMA)
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 znz (Kazuhiro NISHIYAMA)
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 ...
shugo (Shugo Maeda)
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/...
shugo (Shugo Maeda)
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
...
grosser (Michael Grosser)
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
------------ ------------- ------------- --...
knqyf263 (Teppei Fukuda)
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
nobu (Nobuyoshi Nakada)
 

Also available in: Atom