Project

General

Profile

Activity

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

05/11/2016

07:23 PM Bug #12372 (Closed): Resolv::DNS does not fetch authority section resources when calling getresource(s)
In some cases, for example, when trying to retrieve the nameservers of a domain, you need to ask authoritative servers:
~~~
> dig ns org
(...)
;; ANSWER SECTION:
org. 13729 IN NS a0.org.afilias-nst.info.
org. 13729 IN NS a2.o...
ereslibre (Rafael Fernández López)
05:58 PM Bug #12371 (Closed): Windows Nano Server WIN32OLE compatibility
The `OleInitialize()` call used in WIN32OLE is not supported on Nano Server due to the fact that the STA COM model is not available:
https://github.com/ruby/ruby/blob/32674b167bddc0d737c38f84722986b0f228b44b/ext/win32ole/win32ole.c#L8...
alexpilotti (Alessandro Pilotti)
05:03 PM Bug #12370: require 'mkmf' changes Object#respond_to? behaviour
The behavior of `Object#respond_to?` isn't changed.
Simply mkmf.rb defines `configuration` method.
```
$ ruby -rmkmf -e 'p method(:configuration)'
#<Method: Object(MakeMakefile)#configuration>
```
Just do not mix mkmf.rb unnece...
nobu (Nobuyoshi Nakada)
02:25 PM Bug #12370 (Rejected): require 'mkmf' changes Object#respond_to? behaviour
Replication steps:
``` ruby
$ irb
> RUBY_VERSION
=> '2.3.0'
> ...
=> false
> YAML.respond_to?(:configuration)
=> false
> ...
=> false
> YAML.respond_to?(:configuration)
=> true
```
``` ruby
Object.constants do |constant|...
dsferreira (Daniel Ferreira)
04:54 PM Revision 6ff3a8e3 (git): mkmf.rb: fix conflict in have_library
* lib/mkmf.rb (try_func): get rid of conflict of declarations of
main(). checking local symbol reference does not make sense.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:39 PM Revision d6d8ea91 (git): win32: qsort_s
* win32/Makefile.sub (HAVE_QSORT_S): disable on VS2012 too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:21 PM Revision 98c084b8 (git): * win32/Makefile.sub (HAVE_QSORT_S): use qsort_s only for Visual Studio
2012 or later, because VS2010 seems to causes a SEGV in
test/ruby/test_enum.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:08 PM Revision cb459dbe (git): fix typo at ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
03:04 PM Revision 313f9694 (git): * 2016-05-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:04 PM Revision 0b8f8ac5 (git): * vm_insnhelper.c (vm_getivar): describe fast-path explicit
(compiler frindly). [Bug #12274].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
12:50 PM Bug #12274 (Closed): accessing to instance variable should be fast.
Applied in changeset r54976.
----------
* compile.c (iseq_compile_each): share InlineCache during same
instance variable accesses. Reducing memory consumption,
rasing cache hit rate and rasing branch prediction hit rate
are exp...
tarui (Masaya Tarui)
12:50 PM Revision 44916ec4 (git): * compile.c (iseq_compile_each): share InlineCache during same
instance variable accesses. Reducing memory consumption,
rasing cache hit rate and rasing branch prediction hit rate
are expected. A part of [Bug #12274].
* iseq.h (struct iseq_compile_data): introduce instan...
Masaya Tarui
12:38 PM Bug #12353: Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
Nobuyoshi Nakada wrote:
> I can't reproduce it.
> ...
The regression appears to be specific to ActiveSupport 4.1.15. If I try ActiveSupport 4.2.6, `Marshal.dump` behaves as expected.
jeffreyc (Jeff C)
12:24 PM Revision ac8c23f1 (git): test_minitest_unit.rb: fix "random" sort
* test/minitest/test_minitest_unit.rb (test_test_methods_random):
hack to fix the order by avoiding duplicate keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:31 AM Bug #9569 (Open): SecureRandom should try /dev/urandom first
In general SecureRandom should work as it works on OpenBSD.
It uses arc4random_buf, which gathers entropy from /dev/urandom.
A problem of this direction is the risk of the vulnerability of arc4random_buf.
Other than recent BSDs incl...
naruse (Yui NARUSE)
05:55 AM Bug #9569: SecureRandom should try /dev/urandom first
George Koehler: you're missing the point: the OS RNG should be used instead of OpenSSL's. That isn't necessarily /dev/urandom on every platform. Clearly /dev/urandom is a poor candidate for Windows (CryptGenRandom or RtlGenRandom should ... bascule (Tony Arcieri)
08:18 AM Revision be4b1c1e (git): util.c: qsort_s
* util.c (ruby_qsort): use qsort_s if available, for Microsoft
Visual Studio 2005 (msvcr80.dll) and mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:13 AM Revision d22cf0de (git): fix file name [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:35 AM Bug #12369 (Rejected): optionparseで引数の文字列が受け取れなくなる
nobu (Nobuyoshi Nakada)
06:10 AM Bug #12369 (Rejected): optionparseで引数の文字列が受け取れなくなる
```ruby
#test.rb
require "optparse"
OptionParser.new do |opt|
opt.on('-a', '--aaa=VAL') {|v| p "aaa", v }
opt.on('-b', '--bbb[=VAL]') {|v| p "bbb", v }
opt.on('-c', '--ccc(=VAL)') {|v| p "ccc", v }
opt.parse! ARGV
end
```
...
soukouki (soutarou okada)
05:42 AM Bug #12368 (Rejected): default encoding of Integer#chr
現状、`Integer#chr`は引数なしの場合には、
1. default internalが設定されていればそれを使う
2. default internalが`nil`ならASCII(-8BIT)とみなす
という挙動になっていますが、2の部分についてはかつてscript encodingのデフォルトがUS-ASCIIだった時代の名残のような気がします。
というわけで、2の場合にはscript encodingとみなすのが正しいのではないでしょうか。
usa (Usaku NAKAMURA)
01:33 AM Revision a3d2c119 (git): * 2016-05-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:33 AM Revision 4e3a98d3 (git): * ChangeLog: Remove trailing-whitespaces.
[ci skip][fix GH-1348]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

05/10/2016

06:44 PM Bug #12359: Named captures "conflict" warning is unnecessary and limits uses of named captures
I have worked around this for now in JRuby by modifying the warning to *only* fire if a named capture was previously declared as something other than a named capture.
The commit to JRuby is here: https://github.com/jruby/jruby/commit/...
headius (Charles Nutter)
05:08 PM Bug #12359: Named captures "conflict" warning is unnecessary and limits uses of named captures
Related Ruby issue: https://bugs.ruby-lang.org/issues/9623
I think the warning needs to be softened to allow repeat use in literal regexp at the very least.
headius (Charles Nutter)
12:46 PM Bug #12367 (Closed): [PATCH] Declaring an already defined class with Object as the new superclass does not raise an error
Applied in changeset r54970.
----------
* insns.def (defineclass): Also raise an error when redeclaring the
superclass of a class as Object and it has another superclass.
[Bug #12367] [ruby-core:75446]
* test/ruby/test_class.rb: tes...
Eregon (Benoit Daloze)
11:54 AM Bug #12367 (Assigned): [PATCH] Declaring an already defined class with Object as the new superclass does not raise an error
nobu (Nobuyoshi Nakada)
11:26 AM Bug #12367 (Closed): [PATCH] Declaring an already defined class with Object as the new superclass does not raise an error
For example:
~~~ ruby
class SuperclassIgnoresObject < A
end
SuperclassIgnoresObject.superclass # A
class SuperclassIgnoresObject < Object # Should raise a superclass mismatch but it doesn't.
end
SuperclassIgnoresObject.supercl...
Eregon (Benoit Daloze)
12:46 PM Revision 06dd20f7 (git): * insns.def (defineclass): Also raise an error when redeclaring the
superclass of a class as Object and it has another superclass.
[Bug #12367] [ruby-core:75446]
* test/ruby/test_class.rb: test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
11:36 AM Feature #12357: Random#initialize with a String
Nobuyoshi Nakada wrote:
> I found that rubyspec fails.
> ...
I think it's fine to change the ruby/spec to adapt for this.
The test just intends to verify that argument checking is performed,
but of course a compatible evolution of th...
Eregon (Benoit Daloze)
09:55 AM Feature #12357: Random#initialize with a String
This proposal is not described about "external sources" in detail, and use cases.
If this proposal want to pass data to init_by_array, the intention is clear.
But string is still ambiguous because of its endian.
http://www.math.sci....
naruse (Yui NARUSE)
07:54 AM Feature #12357: Random#initialize with a String
I found that rubyspec fails.
Maybe, an alternative is an optional parameter of `Random.new_seed` for the precision.
nobu (Nobuyoshi Nakada)
07:41 AM Feature #12357: Random#initialize with a String
Yes! shevegen (Robert A. Heiler)
10:55 AM Bug #12363 (Rejected): URI::Generic.build allows invalid input
URI::Generic.new has 11th argument named arg_check even though its default is false.
```
irb(main):006:0> uri = URI::Generic.new('http', invalid_userinfo, invalid_host, 80, nil, '/', nil, nil, nil,nil, true)
URI::InvalidComponentEr...
naruse (Yui NARUSE)
10:30 AM Misc #12362: Redmine Forum Board signup
Instead of forum, we use mailing lists:
https://www.ruby-lang.org/en/community/
naruse (Yui NARUSE)
02:40 AM Misc #12362 (Rejected): Redmine Forum Board signup
We didn't provide a function of the forum board. hsbt (Hiroshi SHIBATA)
10:12 AM Misc #12365: [DOC] Suggestion to change FileUtils.compare_file
I think the author considered BusyBox.
Therefore it is not a good example.
I think /dev/null and /dev/random is better...
naruse (Yui NARUSE)
07:37 AM Misc #12365 (Closed): [DOC] Suggestion to change FileUtils.compare_file
Hello.
The documentation at:
http://ruby-doc.org/stdlib-2.3.1/libdoc/fileutils/rdoc/FileUtils.html#method-c-compare_file
shows the "return" value in the second example to be:
#=> maybe false
I am not sure what this mea...
shevegen (Robert A. Heiler)
09:43 AM Feature #12361: Proposal: add Geo::Coord class to standard library
You see, my point was not "I created a cool code, lets add it to stdlib!"
My point was "We need standard Geo Coordinates type in stdlib" (because of `<reasons>`).
I've just thought it would be easier to discuss with some sample code (b...
zverok (Victor Shepelev)
09:16 AM Feature #12361: Proposal: add Geo::Coord class to standard library
Victor Shepelev wrote:
> I referenced "gem question" in original proposal: "This type is too "small" to be defined by separate gem, so, all of existing geo gems (GeoKit, RGeo, GeoRuby, Graticule etc.) define their own LatLng, or Locat...
duerst (Martin Dürst)
08:11 AM Feature #12361: Proposal: add Geo::Coord class to standard library
Robert A. Heiler wrote:
> Would it actually not be better to instead add one or two methods to time, date or datetime?
> ...
I'm not sure how coordinates processing can be added to Time/Date classes. Could you explain please?..
On o...
zverok (Victor Shepelev)
08:02 AM Feature #12361: Proposal: add Geo::Coord class to standard library
Martin Dürst wrote:
> On rubygems, I see a lot of gems with 'geo' in their name. Which one is yours? How popular is it? These days, it's easy to use something as a gem, so it's not that necessary to include things into the standard libr...
zverok (Victor Shepelev)
07:40 AM Feature #12361: Proposal: add Geo::Coord class to standard library
Would it actually not be better to instead add one or two methods to time, date or datetime?
I guess your proposal would add a default new toplevel namespace Geo, which I am not sure
is a good idea per se since other projects may wan...
shevegen (Robert A. Heiler)
04:19 AM Feature #12361: Proposal: add Geo::Coord class to standard library
On rubygems, I see a lot of gems with 'geo' in their name. Which one is yours? How popular is it? These days, it's easy to use something as a gem, so it's not that necessary to include things into the standard library.
You make a lot ...
duerst (Martin Dürst)
08:36 AM Bug #12366: optionparseで引数の文字列が受け取れなくなる
フラグと分けてもオプショナル引数を置きたいときは、`'--foo [VAL]'`を使ってください。 nobu (Nobuyoshi Nakada)
08:33 AM Bug #12366 (Rejected): optionparseで引数の文字列が受け取れなくなる
`[=VAL]` は、直接か`=`かでフラグに続いているものだけオプショナル引数とみなします。
```ruby
require "optparse"
OptionParser.new do |opt|
opt.on('-a', '--foo[=VAL]') {|v| p v }
opt.parse! ARGV
end
p ARGV
```
```
$ ruby bug-12366.rb -a hoge
nil
["ho...
nobu (Nobuyoshi Nakada)
08:12 AM Bug #12366 (Rejected): optionparseで引数の文字列が受け取れなくなる
```ruby
require "optparse"
OptionParser.new do |opt|
opt.on('-a', '--foo[=VAL]') {|v| p v }
opt.parse! ARGV
end
```
```
> ./test.rb -f foge
nil
```
となり、引数を受け取れない。
`'--foo(=VAL)'`、`'--foo=VAL'`
とすると受け取れる
soukouki (soutarou okada)
07:50 AM Feature #12360: More useful return values from bang methods
I think this proposal is to change the return value *if* actual rejection happened, but not the case nothing was rejected, and the result doesn't need to be `self` to know if it happened or not.
A drawback is a cost to create an array...
nobu (Nobuyoshi Nakada)
07:12 AM Feature #12360: More useful return values from bang methods
`reject!` returns `nil` in case nothing was rejected at all. This is useful when a programmer wants to know if actual rejection happened or not, by using single `if` statement.
Returning rejected elements can be handy on some scenarios...
shyouhei (Shyouhei Urabe)
07:44 AM Misc #12283: Obsolete ChangeLog and commit message in Git-style
I personally have no preference either way.
I should however had also note that I like the current changelog format:
https://github.com/ruby/ruby/blob/trunk/ChangeLog
It sort of is easy for me to read what is new, what is chan...
shevegen (Robert A. Heiler)
06:46 AM Revision 15fbd05e (git): random.c: reuse bits
* random.c (random_ulong_limited): reduce calling bytes methods by
reusing dropped bits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:45 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
Vit Ondruch wrote:
> > even 0.9.8/1.0.0 series are no longer supported[1]
> ...
Yes, that's exactly why I didn't drop them in this series, and it didn't reduce code greatly compared to dropping 0.9.6/0.9.7.
rhenium (Kazuki Yamaguchi)
05:29 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
> even 0.9.8/1.0.0 series are no longer supported[1]
If I am not mistaken, 0.9.8 is still part of RHEL5/CentOS5 and they are still supported, although not by upstream.
vo.x (Vit Ondruch)
05:57 AM Revision b402cc71 (git): random.c: use bytes
* random.c (obj_random_bytes): base on bytes method instead of
rand method, not to call toplevel rand method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:36 AM Revision 518713fd (git): * configure.in (-fexcess-precision=standard): before r54895 -std=c99
is specified and it implied -fexcess-precision=standard.
Now with -std=gnu99, it should be explicitly specified.
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54967 b2dd03...
naruse (Yui NARUSE)
12:33 AM Feature #12364 (Closed): Copy superclass serial number to singleton subclasses for better IMC hits
Hi,
I've attached a patch that copies the serial number from the superclass to newly created singleton subclasses. For example:
~~~
class Foo
def x; end
end
def bar(v)
v.x
end
a = Foo.new
bar(a)
a.singleton_class
...
tenderlovemaking (Aaron Patterson)

05/09/2016

09:59 PM Bug #12346 (Closed): Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
nobu (Nobuyoshi Nakada)
06:38 PM Bug #12346: Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
patch from https://bugs.ruby-lang.org/issues/11880 fixes this issue. it's also fixed in ruby_2_3 head.
Ruby 2.3.0:
```
.\sandbox\devkit\mingw\bin\gdb.exe --args .\sandbox\ruby23_mingw\bin\ruby.exe -d -v -e "require 'win32ole'" -e ...
allen (Allen Hewes)
08:45 PM Bug #12363 (Rejected): URI::Generic.build allows invalid input
Reproduce:
~~~
require 'uri'
invalid_host = 'ex_ample.com'
invalid_userinfo = 'uuuu:pp/pp'
uri = URI::Generic.new('http', invalid_userinfo, invalid_host, 80, nil, '/', nil, nil, nil)
uri.to_s
#=> "http://uuuu:pp/pp@ex_ample.com...
avit (Andrew Vit)
08:37 PM Misc #12362 (Rejected): Redmine Forum Board signup
How do I sign up on Redmine's Forum? I'm asking here, because there are NO instructions on the redmine site. http://www.redmine.org/projects/redmine/boards
Thanks for any assistance you can provide.
GREYHELM (Dawes Graybeal)
05:26 PM Feature #12361 (Rejected): Proposal: add Geo::Coord class to standard library
## Proposal
Add `Geo::Coord` class to Ruby standard library, representing `[latitude, longitude]` pair + convenience methods. Add `Geo` standard library with additional calculations and convenience methods.
## Rationale
In moder...
zverok (Victor Shepelev)
04:25 PM Revision fbf22f2d (git): * 2016-05-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:25 PM Revision a6b221f2 (git): random.c: compare by rb_equal
* random.c (random_equal): compare seeds by rb_equal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:23 PM Feature #12360 (Rejected): More useful return values from bang methods
It would be nice if bang methods returned results that where of some additional use. Presently most just return the effected receiver.
For example, currently Array#reject! works as follows:
a = [1,2,3,4]
a.reject!{ |x| x %...
trans (Thomas Sawyer)
02:51 PM Bug #12359: Named captures "conflict" warning is unnecessary and limits uses of named captures
See https://github.com/jruby/jruby/issues/3865 for a related issue in JRuby. headius (Charles Nutter)
02:46 PM Bug #12359 (Closed): Named captures "conflict" warning is unnecessary and limits uses of named captures
There's currently a warning whenever a named capture in a regular expression has the same name as an already-declared local variable:
```
$ ruby23 -v -e 'x = 1; /(?<x>foo)/ =~ "foo"'
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-...
headius (Charles Nutter)
02:30 PM Revision bc7a845a (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:39 PM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
Thanks! I'd be happy to maintain ext/openssl.
I have read #5481 and #9612 before, so I know that gemifying ext/openssl is in progress.
rhenium (Kazuki Yamaguchi)
07:39 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
Zachary Scott wrote:
> I'm happy for your help with Ruby's OpenSSL!
> ...
@zzak Could you explain him (or add explanation to README.rd of ruby/openssl) the relation and status between openssl gem and Ruby repo.
naruse (Yui NARUSE)
07:32 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
I'm happy for your help with Ruby's OpenSSL!
This is a rather large change, and would like to see it land in the (To Be Released) openssl gem:
https://github.com/ruby/openssl
If you're interested, I can give you commit to the open...
zzak (zzak _)
04:24 AM Bug #12324 (Assigned): Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
I think you become a committer and commit it by yourself. (and maintain it) naruse (Yui NARUSE)
07:39 AM Bug #12358 (Closed): TestProcess#test_threading_works_after_exec_fail random test failures
Ruby 2.3.1 builds randomly fail quite often on Fedora Rawhide [1] with following error:
```
1) Error:
TestProcess#test_threading_works_after_exec_fail:
Timeout::Error: execution expired
/builddir/build/BUILD/ruby-2.3.1/test/...
vo.x (Vit Ondruch)
04:57 AM Bug #9569: SecureRandom should try /dev/urandom first
I made myself a benchmark:
https://gist.github.com/kernigh/d169895a700c6511d08511c005a28d88
RAND_bytes() from OpenSSL seems to be faster than /dev/urandom on my computer. I'm running OpenBSD, and OpenSSL is really LibreSSL. At first ...
kernigh (George Koehler)
04:27 AM Revision 8610bd03 (git): random.c: consitify
* random.c (init_by_array): consitify initializing keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:52 AM Revision ad949e8f (git): random.c: seed conversion
* random.c (rand_init): random_seed() always returns an Integer,
no conversion for it.
* random.c (random_init, rb_f_srand): convert the given seed to an
Integer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54962 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
01:52 AM Revision 639bfd6d (git): thread.c: GET_THREAD once in rb_thread_atfork
* thread.c (rb_thread_atfork_internal): move th to an argument.
* thread.c (rb_thread_atfork): do not repeat GET_THREAD().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:46 AM Revision a46df859 (git): thread.c: clear atfork functions
* thread.c (rb_thread_atfork, rb_thread_atfork_before_exec): do
nothing unless working fork is available.
* thread_sync.c (rb_mutex_abandon_all): define only if working
fork is available.
* thread_sync.c (rb_mutex_abandon_keeping_mut...
nobu (Nobuyoshi Nakada)
12:05 AM Revision e6709f0a (git): openssl/extconf.rb: NO SSL macros first
* ext/openssl/extconf.rb: check OPENSSL_NO_SSL{2,3} macros before
checking related functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:05 AM Revision abfc0b18 (git): webrick/utils.rb: suppress messages
* test/webrick/utils.rb (TestWEBrick#start_server): suppress
progress messages from WEBrick::Utils#create_self_signed_cert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:05 AM Revision 4a46404a (git): test_ssl_server.rb: assert_self_signed_cert
* test/webrick/test_ssl_server.rb (assert_self_signed_cert):
extract common assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/08/2016

10:20 PM Revision 2cb362b5 (git): * include/ruby/{defines,ruby}.h: need to define function attributes
alternatives in defines.h instead of ruby.h, because they are used
in oniguruma.h and the header used without including ruby.h at
encoding library sources.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54956 b2dd03c8-39d4-4d8f-...
U.Nakamura
09:31 PM Revision a8e1070d (git): * include/ruby/ruby.h (CONSTFUNC, PUREFUNC): fixed build errors on
non-gcc build environments introduced at r54952.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:52 PM Revision b3935f17 (git): * gc.c (rb_gc_unprotect_logging): throw rb_memerror when it cannot
allocate memory. This is pointed out by Facebook's Infer.
* gc.c (gc_prof_setup_new_record): ditto.
* regparse.c (parse_regexp): ditto.
* util.c (MALLOC): use xmalloc and xfree like above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
naruse (Yui NARUSE)
05:44 PM Revision 6db71fb1 (git): * 2016-05-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:44 PM Revision 28f5e12c (git): * configure.in: check function attirbute const and pure,
and define CONSTFUNC and PUREFUNC if available.
Note that I don't add those options as default because
it still shows many false-positive (it seems not to consider
longjmp).
* vm_eval.c (stack_check): get rb_thread_t* as an argume...
naruse (Yui NARUSE)
02:36 PM Revision 94419c16 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:10 PM Revision 93767f7a (git): * ext/openssl/extconf.rb: asume it doesn't have SSLv2 related
functions when OPENSSL_NO_SSL2 is defined.
Usually openssl's header and the library (libssl) have the same
set of functions, but on some environment the library has functions
whose headers doesn't declare. (openssl/opensslconf.h an...
naruse (Yui NARUSE)
10:06 AM Feature #12226 (Open): Dir.home with valid named user raises ArgumentError on Windows
nobu (Nobuyoshi Nakada)
09:51 AM Feature #12226 (Closed): Dir.home with valid named user raises ArgumentError on Windows
Applied in changeset r54947.
----------
file.c: home dir fall back
* file.c (rb_home_dir_of): return the default home path if the
user name is the current user name, on platforms where struct
pwd is not supported. a temporary meas...
nobu (Nobuyoshi Nakada)
09:59 AM Revision 6cd2c905 (git): win32ole_error.h: add attributes
* ext/win32ole/win32ole_error.h (ole_raise): add attributes,
NORETURN and PRINTF_ARGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:59 AM Revision d7d64d91 (git): objspace_dump.c: fix format
* ext/objspace/objspace_dump.c (dump_append_string_content),
(dump_object): fix the format specifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:51 AM Revision f0355ae7 (git): file.c: home dir fall back
* file.c (rb_home_dir_of): return the default home path if the
user name is the current user name, on platforms where struct
pwd is not supported. a temporary measure against
[Bug #12226].
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
nobu (Nobuyoshi Nakada)
05:52 AM Bug #9569: SecureRandom should try /dev/urandom first
Daira Hopwood wrote:
> Many competent cryptographers and engineers have told you that using the OpenSSL RNG is significantly less safe than directly using /dev/urandom. They are right. Even better would be to use libsodium's RNG API, wh...
shyouhei (Shyouhei Urabe)
03:21 AM Revision 65bbd088 (git): intern.h: suppress warnings
* include/ruby/intern.h (rb_disable_super, rb_enable_super):
remove NORETURN. these do nothing but just return.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:31 AM Feature #12357 (Feedback): Random#initialize with a String
https://github.com/ruby/ruby/compare/trunk...nobu:feature/Random%23initialize-string
Currently `Random#initialize` only accepts an `Integer`.
It would be useful to accept a `String` to feed the seed from external sources, I think.
nobu (Nobuyoshi Nakada)
12:55 AM Revision f2535e14 (git): * configure.in: add -Wsuggest-attribute=format and suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:55 AM Revision 4e0e7219 (git): * 2016-05-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:55 AM Revision a6c8e8d1 (git): * configure.in: add -Wsuggest-attribute=noreturn and suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:55 AM Revision 644c36e9 (git): * configure.in: add -Werror=implicit-int to avoid missing type of
function declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

05/07/2016

01:49 PM Bug #10296 (Closed): SEGV from unchecked Data_Get_Struct() argument
It doesn't happen with 2.2.5. nobu (Nobuyoshi Nakada)
01:37 PM Revision a6e805f7 (git): * lib/webrick/ssl.rb: Accept string value for SSLCertName. It is used
to invoke ssl server with command line.
[fix GH-1329] Patch by @kerlin
* test/webrick/test_ssl_server.rb: Added test for GH-1329
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:55 PM Revision d8e22fa1 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:55 PM Revision b39d4eac (git): * test/webrick/test_ssl_server.rb: Added basic test for `webrick/ssl`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:25 PM Feature #12317: Name space of a module
I realized that the order of modules that I wrote in the expected output is not in accordance with methods like `nesting` or `ancestors` (which go from self to the modules that are farther). So perhaps, the following may be better:
~~...
sawa (Tsuyoshi Sawada)
07:22 AM Revision ed5b9856 (git): random.c: optimize int_pair_to_real_inclusive
* random.c (int_pair_to_real_inclusive): optimize to multiply
without Bignum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:21 AM Revision 091d88ab (git): random.c: split random_int32
* random.c (random_int32): split the cases of rb_random_t and
other objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:59 AM Revision 1a696e35 (git): random.c: unnecessary declarations
* random.c (random_ulong_limited, random_ulong_limited_big):
remove unnecessary extern declarations. rb_num_negative_p is
declared in internal.h now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54936 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
02:53 AM Bug #11652 (Feedback): Bug after running 'next' during binding.pry in a rails project
I couldn't reproduce this with following env.
```
ruby 2.2.6p320 (2016-04-26 revision 54784) [x86_64-darwin15]
pry (0.10.3)
```
hsbt (Hiroshi SHIBATA)
02:42 AM Bug #9569: SecureRandom should try /dev/urandom first
Many competent cryptographers and engineers have told you that using the OpenSSL RNG is significantly less safe than directly using /dev/urandom. They are right. Even better would be to use libsodium's RNG API, which handles portability ... daira (Daira Hopwood)
02:29 AM Bug #12286 (Third Party's Issue): Segfault on ruby 2.3.0p0 (2015-12-25 revision 53290) [armv7l-linux-eabihf]
hsbt (Hiroshi SHIBATA)
12:56 AM Bug #11567 (Feedback): Segmentation fault CFUNC :gets
I couldn't reproduce this with latest versions of 2.1-2.4.
Please try with 2.2.5 or 2.3.1.
hsbt (Hiroshi SHIBATA)
12:54 AM Bug #11020 (Third Party's Issue): Ruby 2.1.5 crashing when running rails 3.2.21
hsbt (Hiroshi SHIBATA)
12:36 AM Bug #10607 (Feedback): Segmentation fault, with nokogiri craching ruby
2.0.0 is EOL. Please try with 2.2/2.3. hsbt (Hiroshi SHIBATA)
12:35 AM Bug #10604 (Feedback): Segmentation fault, Rubymine 6.3.3, Linux xxxx-desktop 3.5.0-51-generic #76-Ubuntu SMP Thu May 15 21:19:10 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
2.0.0 is EOL now. Please try with 2.2 or 2.3. hsbt (Hiroshi SHIBATA)
12:21 AM Bug #10390 (Feedback): BUG] Segmentation fault at 0xbf3eeedc
Can you try with Ruby 2.1.10 or 2.2/2.3? hsbt (Hiroshi SHIBATA)
12:03 AM Bug #9683: Segmentation fault when using default proc feature in ruby Hash object
I tried to following code with latest stable versions.
```rb
a = Hash.new {|h,k| h[k] += 1}
begin; a[1]; rescue SystemStackError; end
a[1]
```
```
ruby 2.1.10p492 (2016-04-22 revision 54691) [x86_64-darwin15.0]
ruby 2.2.6p3...
hsbt (Hiroshi SHIBATA)

05/06/2016

11:52 PM Bug #9473 (Third Party's Issue): Corruption and Segmentation faults all over
hsbt (Hiroshi SHIBATA)
11:51 PM Bug #12356 (Rejected): Vector covector incorrect multiplication with another vector.
Version 2.2.4
v1 = Vector[2,3,4]
v2 = Vector[4,5,6]
v1.covector.row_size #1
v1.covector.column_size #3
v2.covector.row_size #1
v2.covector.column_size #3
Vector does not have distinction between row and column, t...
edmorte (Rafael Silva)
11:45 PM Bug #10296: SEGV from unchecked Data_Get_Struct() argument
It still happens with 2.1.10. hsbt (Hiroshi SHIBATA)
10:58 PM Bug #12355 (Closed): [PATCH] exec, system, and spawn fail when Array#to_hash is defined and their first argument is an Array
Applied in changeset r54934.
----------
process.c: argument types over conversion
* process.c (rb_exec_getargs): honor the expected argument types
over the conversion method. the basic language functionality
should be robust. [ru...
nobu (Nobuyoshi Nakada)
06:33 PM Bug #12355 (Closed): [PATCH] exec, system, and spawn fail when Array#to_hash is defined and their first argument is an Array
When any gem which adds a to_hash method to Array is loaded (extlib, dropbox, others), Kernel.exec, Kernel.system, and Kernel.spawn will fail when you specify the program name with an array. Behold:
~~~
irb(main):001:0> ex = "/usr/lo...
fimmtiu (Dennis Taylor)
10:58 PM Revision f4edece0 (git): * 2016-05-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:58 PM Revision 48ed6686 (git): process.c: argument types over conversion
* process.c (rb_exec_getargs): honor the expected argument types
over the conversion method. the basic language functionality
should be robust. [ruby-core:75388] [Bug #12355]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54934...
nobu (Nobuyoshi Nakada)
04:10 PM Feature #12354 (Closed): PKey::EC Can't output public key pem when private key exists
Steps to reproduce:
Create EC key:
```ruby
key = OpenSSL::PKey::EC.new("prime256v1")
key.generate_key
```
Try and output in pem format
```ruby
key.to_pem #Outputs private key pem
key.public_key.to_pem #Error
```
In o...
armour (Armour Comms)
02:30 PM Revision cc22facc (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:08 PM Bug #12342: DRb.stop_service doesn't kill sleeping TimerIdConv threads
I have opened a pull request to expose an API for killing the timer thread. This PR should be enough to workaround this issue for me, although it would be nice if DRb.start_service could be responsible for creating/starting the timer an... jrafanie (Joe Rafaniello)
09:26 AM Feature #12242 (Feedback): Is it worth adding collision probability of SecureRandom functions in RubyDoc?
naruse (Yui NARUSE)
07:18 AM Revision c0f92009 (git): random.c: fill_random_bytes_syscall function
* random.c (fill_random_bytes_syscall): turned into a static
function, to be inlined probably, so that it is unavailable if
it is a preprocessor macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54932 b2dd03c8-39d4-4d8f-98ff-...
nobu (Nobuyoshi Nakada)
07:18 AM Revision a331eeb5 (git): random.c: refactor
* random.c (rand_random, rb_f_rand): refactor, split condition
expressions, and return in the precedence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:52 AM Revision 3377db6b (git): random.c: use rb_check_to_int
* random.c (rand_range, rand_random): use rb_check_to_int instead
of rb_check_to_integer with the same conversion method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:52 AM Revision 0e303494 (git): random.c: prefer rb_check_arity
* random.c: use rb_check_arity instead of rb_scan_args for simple
optional arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:52 AM Revision c92c8218 (git): random.c: sipseed_keys_t
* random.c (sipseed): separate type of keys to reduce use of the
magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:29 AM Revision 72c4fc72 (git): random.c: default seed mark
* random.c (Init_Random_default): since seed is marked by
random_mark, no needs to mark itself as a global variable.
allocate Random instance before making the seed value, to get
rid of the potential risk of GC during the allocatio...
nobu (Nobuyoshi Nakada)
06:29 AM Revision 80c9b664 (git): random.c: return value is not GCed
* random.c (rand_init): since seed is the return value, no needs
to be volatile to prevent from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:58 AM Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Anyways, given the real-world use-case, I now think it's a good idea to have something that does strip.empty? -equivalent method for String. Maybe shell-related use cases can be migrated to shellwords standard library, like by creating ... shyouhei (Shyouhei Urabe)
04:50 AM Bug #12353 (Feedback): Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
I can't reproduce it.
```
$ gem2.3 install --user --no-doc activesupport
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: activesupport-4.2.6.gem (100%)
Successfully installed activesupport-4.2.6
2 gem...
nobu (Nobuyoshi Nakada)
02:55 AM Bug #9569: SecureRandom should try /dev/urandom first
In the meantime until upstream changes are made to SecureRandom, if anyone has come across this thread and is looking for a RubyGem that provides a /dev/urandom-based RNG (and a Windows equivalent), RbNaCl's RandomBytes module wraps libs... bascule (Tony Arcieri)
01:36 AM Feature #12352 (Assigned): New hash syntax broken for numeric keys
Matz, do you want numeric keys for new hash syntax? shyouhei (Shyouhei Urabe)

05/05/2016

11:37 PM Bug #12351 (Third Party's Issue): ruby-1.9.3.4 (Ubuntu): undefined variable in MiniTest::Unit::Runner::Worker (unit.rb:328)
upstream repo of minitest is here https://github.com/seattlerb/minitest
Please submit your issue and patch to upstream.
hsbt (Hiroshi SHIBATA)
05:58 PM Bug #12351 (Third Party's Issue): ruby-1.9.3.4 (Ubuntu): undefined variable in MiniTest::Unit::Runner::Worker (unit.rb:328)
An undefined variable in `MiniTest::Unit::Runner::Worker` causes `rake` execution to fail (status code 1) when performing tests. (Test case was running rake with code from https://github.com/blackducksoftware/ohloh_scm).
The cause is ...
jbatista (J Batista)
11:16 PM Revision 0c13d23d (git): enum.c: examples of Enumerable#detect [ci skip]
* enum.c (enum_find): [DOC] add more examples to the documentation
of Enumerable#detect, to show that it equals to Enumerable#find.
[Fix GH-1340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54925 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
09:17 PM Bug #12353 (Closed): Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
Attempting to call `Marshal.dump` on an `ActiveSupport::CoreExtensions::Numeric::Time` (e.g., `1.day`) triggers a ```NoMethodError: undefined method `marshal_dump' for 86400:Fixnum``` exception in both Ruby 2.3.0 and 2.3.1 on OS X (10.11... jeffreyc (Jeff C)
08:41 PM Bug #12346: Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
It *could* be something with my registry but it works in Ruby 2.3.0 32-bit, Ruby 2.2.5 64-bit and Ruby 2.2 HEAD 64-bit.
Ruby 2.2 HEAD 64-bit:
```
.\sandbox\devkit\mingw\bin\gdb.exe --args .\sandbox\ruby22_mingw\bin\ruby.exe -d -v ...
allen (Allen Hewes)
01:21 AM Bug #12346 (Feedback): Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
I can't reproduce it with the trunk and 2.3.1 on Windows 7.
Probably it is related to the content of your registry.
Could you try building with `-O0` and running from a debugger?
nobu (Nobuyoshi Nakada)
08:35 PM Feature #12352 (Rejected): New hash syntax broken for numeric keys
[[Matz himself showed in RubyConf 2015 the following example]](https://www.youtube.com/watch?v=LE0g2TUsJ4U&t=13m04s):
~~~
h = { 1: 2, 2: 4, 3: 6 }
~~~
Which gives
~~~
SyntaxError: unexpected ':', expecting =>
h = { 1: 2, 2: ...
adrianomitre (Adriano Mitre)
06:00 PM Feature #12005: Unify Fixnum and Bignum into Integer
Akira Tanaka wrote:
> Other benefits?
As you show people write Fixnum case and Bignum case.
But sometimes they write only Fixnum even though they must write Bignum case.
Unified Integer avoids such pitfall.
naruse (Yui NARUSE)
03:11 AM Feature #12005: Unify Fixnum and Bignum into Integer
On 2016/05/04 23:54, akr@fsij.org wrote:

> I feel that unifying Fixnum and Bignum is simple and beautiful.
>
> However I'm not sure that there are enough concrete benefits over
> the incompatibility.

> Concrete benefits I know ...
duerst (Martin Dürst)
05:30 PM Bug #12323: Wrong example code in OptionParser documentation
ruby_2_3 r54924 merged revision(s) 54808. nagachika (Tomoyuki Chikanaga)
05:30 PM Revision f8e604c6 (git): merge revision(s) 54808: [Backport #12323]
* lib/optparse.rb: [DOC] fix example code. base on the code by
Semyon Gaivoronskiy in [ruby-core:75224]. [Bug #12323]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:28 PM Bug #11880: blank string makes Win32ole crush
ruby_2_3 r54923 merged revision(s) 53322,53323. nagachika (Tomoyuki Chikanaga)
05:28 PM Revision 10685d4f (git): merge revision(s) 53322,53323: [Backport #11880]
* ext/win32ole/win32ole.c (ole_vstr2wc, ole_variant2val): fix blank
string conversion.
[Bug #11880]
Thanks Akio Tajima for the patch!
string conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
nagachika (Tomoyuki Chikanaga)
05:26 PM Bug #12339: result of 123456789 ** -2 in doc
ruby_2_3 r54922 merged revision(s) 54898. nagachika (Tomoyuki Chikanaga)
05:26 PM Bug #12339: result of 123456789 ** -2 in doc
なるほどその通りでした。指摘ありがとうございます。 nagachika (Tomoyuki Chikanaga)
05:26 PM Revision ac5ffe0a (git): merge revision(s) 54898: [Backport #12339]
* bignum.c: [DOC] Update result of 123456789 ** -2.
[ruby-dev:49606] [Bug #12339]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:00 PM Revision d6c3079e (git): * 2016-05-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision e1ce20cf (git): random.c: use uint32_t
* random.c (struct MT, next_state): use uint32_t for the state
vector.
* random.c (init_by_array, rand_init): ditto for initializing
keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:46 PM Feature #12350: Introduce Array#find! that raises an error if element not found
You can pass a callable object to `Enumerable#find`:
~~~ruby
def find_price!(size)
prices.find(->{ fail "Price for #{size} not found" }){ |p| p.key == size }
end
~~~
cremno (cremno phobia)
02:25 PM Feature #12350: Introduce Array#find! that raises an error if element not found
Victor Shepelev wrote:
> > Could you elaborate what is bad in your example? Basically I don't see anything bad in your code except a little bit verbose like in mine solution.
> ...
I don't think it makes a sense, however, you can use `...
nobu (Nobuyoshi Nakada)
02:05 PM Feature #12350: Introduce Array#find! that raises an error if element not found
> Could you elaborate what is bad in your example? Basically I don't see anything bad in your code except a little bit verbose like in mine solution.
I don't know! The most popular and widely accepted Ruby Style Guide just bans them: ...
zverok (Victor Shepelev)
01:30 PM Feature #12350: Introduce Array#find! that raises an error if element not found
Victor Shepelev wrote:
> I'm pretty unhappy that community/style guidelines are banning the straightforward and readable solution:
> ...
I'm not aware about the banning. Could you elaborate what is bad in your example? Basically I don'...
ka8725 (Andrey Koleshko)
11:35 AM Feature #12350: Introduce Array#find! that raises an error if element not found
I'm pretty unhappy that community/style guidelines are banning the straightforward and readable solution:
~~~ruby
prices.find { |p| p.key == size } or fail "Price for #{size} not found"
~~~
zverok (Victor Shepelev)
11:22 AM Feature #12350 (Open): Introduce Array#find! that raises an error if element not found
It would be great to have some function (like `Hash#fetch`) for `Array` that raises an exception if element not found by passed block in `find`.
For example:
~~~
[].find! { |el| el == 1 }
=> ElementError: element not found
~~~
...
ka8725 (Andrey Koleshko)
10:04 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
I made v2 of the patch:
https://github.com/ruby/ruby/compare/trunk...rhenium:feature/openssl-110-v2
Changes:
- Re-ordered commits in more meaningful order (and squashed some small commits).
I'm so sorry if you already sta...
rhenium (Kazuki Yamaguchi)
03:04 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
It's because X25519 is an algorithm for key exchange. Ed25519, the corresponding (sharing the elliptic curve) signature scheme, is not yet implemented in OpenSSL. There are tickets but it looks like nobody is working on it at the moment.... rhenium (Kazuki Yamaguchi)
09:06 AM Revision a22221ca (git): * test/ruby/test_complexrational.rb: Remove duplicated raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yui-knk (Kaneko Yuichiro)
07:27 AM Revision 6112b290 (git): proc.c: no temporary args array
* proc.c (bmcall): method proc is always lambda, args is the array
which is made from argc and argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:18 AM Revision cfc29cf2 (git): proc.c: no unnecessary temporary array
* proc.c (bmcall): get rid of making temporary single element
array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:11 AM Revision 5c19519e (git): proc.c: suppress a warning
* proc.c (call_method_data_safe): suppress clobbered warning by
old gcc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:39 AM Revision deca1d80 (git): * string.c (rb_str_sub): Fix a special match variable name.
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yui-knk (Kaneko Yuichiro)
03:45 AM Bug #11043 (Rejected): .rvm/gems/ruby-2.1.1/gems/json-1.8.2/lib/json/common.rb:67: [BUG] unknown type 0x22 (0xc given)
Kamal Ahmed wrote:
> ```
> ...
This means that you loaded an extension library for ruby 1.8 or earlier.
Purge and reinstall that json gem.
nobu (Nobuyoshi Nakada)
02:52 AM Bug #11043 (Feedback): .rvm/gems/ruby-2.1.1/gems/json-1.8.2/lib/json/common.rb:67: [BUG] unknown type 0x22 (0xc given)
I couldn't reproduce this with `ruby 2.1.10p492 (2016-04-22 revision 54691) [x86_64-darwin15.0]`
Please try with 2.1.10 or latest stable versions like 2.2 or 2.3
hsbt (Hiroshi SHIBATA)
03:22 AM Revision 84f94652 (git): use TH_JUMP_TAG
* vm_eval.c (rb_eval_cmd, rb_catch_obj): use TH_JUMP_TAG with the
same rb_thread_t used for TH_PUSH_TAG, instead of JUMP_TAG with
the current thread global variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54914 b2dd03c8-3...
nobu (Nobuyoshi Nakada)
02:49 AM Bug #9933 (Feedback): segmentation fault when running 'gem' (ruby 2.1.2p95)
Please try with Ruby 2.1.10 or latest version of 2.2 and 2.3. hsbt (Hiroshi SHIBATA)
02:48 AM Bug #9679 (Third Party's Issue): /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/util/diff.rb:129: [BUG] Segmentation fault
Ruby 1.9.3 is EOL now. and It's vendor's ruby provided Chef Software, Inc. Please report to Chef Software. hsbt (Hiroshi SHIBATA)
02:45 AM Bug #11135 (Third Party's Issue): [BUG] Segmentation fault at 0x000000000000b0
I couldn't reproduce this with `ruby 2.4.0dev (2016-05-03 trunk 54898) [x86_64-darwin15]`
If you still have this issue, Please submit issue to upstream repository. ref. https://github.com/rubygems/rubygems
hsbt (Hiroshi SHIBATA)
01:49 AM Revision 77421bcc (git): * 2016-05-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:49 AM Revision 4a066896 (git): random.c: use arc4random_buf
* random.c (fill_random_bytes_syscall): use arc4random_buf if
available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom