Project

General

Profile

Activity

From 05/10/2016 to 05/16/2016

05/16/2016

02:49 PM Bug #12388 (Third Party's Issue): Iterating second dbm enum causes first dbm enum to stop
When iterating over a dbm file, accessing the enumerator of a second dbm file causes iteration of the first dbm file to stop prematurely. This happens in ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] and also in ruby 2.3.2p1... wayne.conrad (Wayne Conrad)
01:27 PM Bug #12383: Warnings when compiling proc.c on cygwin
I'm also seeing the warning on my Linux box with GCC 6.1.1/5.3.0. Removing "-Wsuggest-attribute=noreturn" from configure.in fixes for me. There is a difference in configure output.
With -Wsuggest-attribute=noreturn:
~~~
checking f...
rhenium (Kazuki Yamaguchi)
11:14 AM Bug #12383: Warnings when compiling proc.c on cygwin
I updated to
```
/cygdrive/i/szsz/tmpp/gcc/gcc-5.3.0-5.x86_64/src/gcc-5.3.0/configure
```
but the error persists.
duerst (Martin Dürst)
10:57 AM Bug #12383: Warnings when compiling proc.c on cygwin
> ```
> ...
Seems older a little.
nobu (Nobuyoshi Nakada)
10:23 AM Bug #12383 (Open): Warnings when compiling proc.c on cygwin
Here's my gcc version information:
```
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc/gc...
duerst (Martin Dürst)
12:57 PM Bug #12385 (Feedback): xmlrpc requires Ruby version >= 2.4.0., and produces an error even though I have Ruby 2.4.0
It's fixed at r55017. Can you confirm this? hsbt (Hiroshi SHIBATA)
10:29 AM Bug #12385 (Closed): xmlrpc requires Ruby version >= 2.4.0., and produces an error even though I have Ruby 2.4.0
With
```
make up; make install-nodoc
```
I get the error below. There are two issues with this:
1) I have Ruby 2.4.0, so it's very unclear why this should produce an error
2) xmlrpc has been around for a long time, and older versio...
duerst (Martin Dürst)
11:40 AM Feature #12387 (Closed): ripper: new parser event for kwrest parameter
Ripper does not handle unnamed kwrest parameter well.
~~~ruby
$ ruby -rpp -rripper -e'pp Ripper.sexp("def a(*x, **y) end")'
[:program,
[[:def,
[:@ident, "a", [1, 4]],
[:paren,
[:params,
nil,
nil,
[:r...
rhenium (Kazuki Yamaguchi)
11:00 AM Revision 84cd5191 (git): * enc/unicode.h: Additional uses of ONIG_CASE_MAPPING compilation switch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
10:55 AM Feature #12386 (Closed): Move definition of ONIG_CASE_MAPPING compilation switch outside onigumo files
At r55018, in include/ruby/oniguruma.h, at line 131, I introduced
the compilation switch ONIG_CASE_MAPPING. The purpose of this switch
is to isolate the case-mapping functionality that is introduced into
Ruby but is not used with regu...
duerst (Martin Dürst)
10:46 AM Revision 3ab0ea80 (git): * append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:46 AM Revision 65db16de (git): * include/ruby/oniguruma.h: Introducing ONIG_CASE_MAPPING compilation
switch
* include/ruby/oniguruma.h, enc/unicode.h: Using ONIG_CASE_MAPPING
compilation switch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
10:29 AM Revision 2f190353 (git): * gems/bundled_gems: Update xmlrpc-0.1.1. xmlrpc-0.1.0 didn't allow
to install on 2.4.0dev.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
08:34 AM Bug #4388: open-uriで環境変数http_proxyを使うときに認証付きのProxyが使えません
perlのLWPも環境変数のパスワード使いますね。
perl -MLWP::Simple -e 'getprint "http://www.google.com"'
で、確認。
ソースがとっちらかってて1行でうまくポイントできないけど。
kosaki (Motohiro KOSAKI)
08:07 AM Bug #4388: open-uriで環境変数http_proxyを使うときに認証付きのProxyが使えません
いちおうPythonでどうしてるかは調べました。urllib.request.urlopenが同等のようですが、環境変数のパスワードをしっかり
読んでます。だって、それがデファクトだから。
すでにデファクト仕様が決まっちゃってるものに対して、Rubyだけ逆らうのに意味があるとは思えません。
https://github.com/python/cpython/blob/master/Lib/urllib/request.py#L779
kosaki (Motohiro KOSAKI)
07:39 AM Bug #4388: open-uriで環境変数http_proxyを使うときに認証付きのProxyが使えません
こちら、いままさに私もはまっています。
現代的において認証つきPROXYを使っているのは企業ネットワークで認証つきPROXYを使っており、外に出るのに必要という
状況であり、マルチユーザではつかわないか、もしくは、シェアするのは全員同僚という環境だと思います。
よって、わたしもそうですが、wgetその他を通すために環境変数にパスワードは入れています。他に方法がないので。
デスクトップのwidgetなど含めるとHTTP使うソフトは100を超えるので設定してられない...
kosaki (Motohiro KOSAKI)
06:26 AM Revision 9a9d375f (git): * test_handle.rb: refine test_fallback_to_ansi
* test/fiddle/test_handle.rb (test_fallback_to_ansi): ensure that
the fallback result equals to ANSI version.
[ruby-core:75494] [Bug #12377]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:37 AM Bug #12384 (Feedback): vm_call_cfunc - cfp consistency error ruby 2.3.1p112
What do you mean by a "record"?
How to reproduce it?
nobu (Nobuyoshi Nakada)
01:57 AM Bug #12384 (Closed): vm_call_cfunc - cfp consistency error ruby 2.3.1p112
Appears to be an issue when deleting a record with an attached callback that deletes an associated record. Not sure how else to describe. Sorry. travissperry (Travis Sperry)
04:29 AM Bug #12377 (Closed): recipe for target 'do-install-nodoc' failed
Applied in changeset r55015.
----------
configure.in: revert macro names
* configure.in (FUNC_STDCALL, FUNC_CDECL, FUNC_FASTCALL): set
macro names explicitly to the old names, which are accidentally
changed at r54985, for backward ...
nobu (Nobuyoshi Nakada)
04:29 AM Revision c7d11ee1 (git): configure.in: revert macro names
* configure.in (FUNC_STDCALL, FUNC_CDECL, FUNC_FASTCALL): set
macro names explicitly to the old names, which are accidentally
changed at r54985, for backward compatibilities.
fiddle also depends on these names to fallback to ANSI n...
nobu (Nobuyoshi Nakada)
02:54 AM Revision 572807ee (git): * lib/xmlrpc: Removed empty directory. It could not be deleted by git-svn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
02:41 AM Feature #12160 (Closed): Extract XMLRPC library to bundled gem
Applied in changeset r55013.
----------
* lib/xmlrpc.rb, lib/xmlrpc/*, test/xmlrpc: XMLRPC is bundled gem
on Ruby 2.4. [Feature #12160][ruby-core:74239]
* gems/bundled_gems: ditto.
hsbt (Hiroshi SHIBATA)
02:41 AM Revision e2bb529c (git): * lib/xmlrpc.rb, lib/xmlrpc/*, test/xmlrpc: XMLRPC is bundled gem
on Ruby 2.4. [Feature #12160][ruby-core:74239]
* gems/bundled_gems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:16 AM Revision b14c93e6 (git): extmk.rb: fix skipping messages
* ext/extmk.rb (extmake): select the message if skipped because
its parent extension is not configured.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/15/2016

09:11 PM Bug #12332 (Closed): [PATCH] proc.c: fix RDoc of Proc#===/call/yield/[]
Applied in changeset r55010.
----------
proc.c: fix RDoc of Proc#===/call/yield/[]
[Bug #12332]
Since r52050 ("proc.c: enable optimization of Proc#call")
for [Feature #11569], we need to maintain this documentation
in a way RDoc compr...
Anonymous
09:11 PM Revision 495863fe (git): * 2016-05-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:11 PM Revision 3044a0bc (git): proc.c: fix RDoc of Proc#===/call/yield/[]
[Bug #12332]
Since r52050 ("proc.c: enable optimization of Proc#call")
for [Feature #11569], we need to maintain this documentation
in a way RDoc comprehends. This is probably not worth fixing
in RDoc itself since this uses a non-stand...
Eric Wong
02:04 PM Bug #12315: OptionParser parses quoted --dash strings in 2.3.0
Nobuyoshi Nakada wrote:
> I can't reproduce it.
> ...
It's working now on a different machine. Might've been a local problem. Sorry for bothering. How do I close this bug?
mreq (Petr Marek)
01:54 PM Revision 7803106c (git): io.c: use PRI_OFFT_PREFIX for off_t
* io.c (do_io_advise): use configured PRI_OFFT_PREFIX instead of
PRI_OFF_T_PREFIX to format off_t properly on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:47 PM Feature #12317: Name space of a module
No issue in my point of view.
I agree with your reply.
Can you take a look at my proposal to see what you think about it?
dsferreira (Daniel Ferreira)
01:39 PM Feature #12317: Name space of a module
Daniel Ferreira wrote:
> Simple challenge example:
> ...
It should return
~~~ruby
::Baz::Bar.namespace
# => [Foo::Bar, Foo]
~~~
I haven't read through the issue, but what is the issue here?
sawa (Tsuyoshi Sawada)
12:58 PM Feature #12317: Name space of a module
Hi Tsuyoshi.
A clear namespace definition is important for the implementation of my proposed feature: [internal interface](https://bugs.ruby-lang.org/issues/9992)
In fact I was thinking in proposing such a similar method.
Followin...
dsferreira (Daniel Ferreira)
01:24 PM Bug #12383 (Feedback): Warnings when compiling proc.c on cygwin
I don't see that warning, with `optflags=-O0` .. `-O3`.
```
$ LANG=C gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: ...
nobu (Nobuyoshi Nakada)
03:02 AM Bug #12383 (Closed): Warnings when compiling proc.c on cygwin
When compiling ruby on cygwin, I get the following warnings for proc.c:
```
compiling proc.c
proc.c: In function ‘call_method_data_safe’:
proc.c:1984:11: warning: variable ‘result’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclob...
duerst (Martin Dürst)
11:59 AM Bug #12342 (Closed): DRb.stop_service doesn't kill sleeping TimerIdConv threads
Applied in changeset r55008.
----------
don't use keeper thread. [Bug #12342]
seki (Masatoshi Seki)
11:59 AM Revision e143a741 (git): don't use keeper thread. [Bug #12342]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masatoshi SEKI
07:56 AM Feature #12242: Is it worth adding collision probability of SecureRandom functions in RubyDoc?
Yui, it may be helpful to say what kind of feedback do you want, and from whom. duerst (Martin Dürst)
07:17 AM Revision 6b413272 (git): * array.c (rb_ary_entry): extract rb_ary_elt to organize if-conditions
and check whether is is embdeded at once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:56 AM Feature #9992: Access Modifiers (Internal Interfaces)
Hi Jörg, thank you very much for your interesting questions.
This is a subject for a wider discussion and your questions come in the right direction in my opinion.
My base view is the following example:
Fred wants to create a ge...
dsferreira (Daniel Ferreira)
03:51 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
Hiroshi SHIBATA wrote:
> I added this issue to agenda of developer meeting at next week.
> ...
Thanks!
rhenium (Kazuki Yamaguchi)
03:24 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
I added this issue to agenda of developer meeting at next week.
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20160517Japan
Please wait a few days.
hsbt (Hiroshi SHIBATA)
02:58 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
@matz
Can I have SVN access?
I'd love to help improving/maintaining Ruby and ext/openssl. Several of my patches including openssl-related and non-openssl-related, have landed with the help of @nobu and @nurse. I was planning to sen...
rhenium (Kazuki Yamaguchi)
01:31 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
Patch v3. It looks like OpenSSL 1.1.0 is delaying...
https://github.com/ruby/ruby/compare/trunk...rhenium:feature/openssl-110-v3
Changes:
- Rebased to apply atop trunk.
- [03/36] is new: I noticed OpenSSL::X509::Attribute#value...
rhenium (Kazuki Yamaguchi)
03:03 AM Revision 9529e46a (git): random.c: suppress a warning
* random.c (random_ulong_limited): suppress a shift count warning
when unsigned long is 32bits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:57 AM Bug #12382 (Closed): Deprecated constants will not print out warning when accessed directly
Applied in changeset r55005.
----------
vm_insnhelper.c: deprecated constant in class
* vm_insnhelper.c (vm_get_ev_const): warn deprecated constant even
in the class context. [ruby-core:75505] [Bug #12382]
nobu (Nobuyoshi Nakada)
01:57 AM Revision 5cb5692a (git): vm_insnhelper.c: deprecated constant in class
* vm_insnhelper.c (vm_get_ev_const): warn deprecated constant even
in the class context. [ruby-core:75505] [Bug #12382]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/14/2016

11:21 PM Revision 6d4fb98e (git): random.c: clear seed
* random.c (rand_init): clear packed seed value explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:43 PM Revision 9be98516 (git): * 2016-05-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:43 PM Revision 3b4e68cf (git): * iseq.h (struct iseq_compile_data): use struct rb_id_table
instead of st_table.
* iseq.c (prepare_iseq_build): don't allocate ivar_cache_table
until it has at least one element.
* iseq.c (compile_data_free): free ivar_cache_table only if it
is allocated.
* compile.c (get_ivar_ic_value): a...
naruse (Yui NARUSE)
05:47 PM Bug #12379: mkmf.rb `pkg-config --exists`と`pkg-config --libs`の呼び出し方法が異なり期待した結果にならない(OS X)
ruby_2_3 r55001 merged revision(s) 54999. nagachika (Tomoyuki Chikanaga)
12:04 AM Bug #12379 (Closed): mkmf.rb `pkg-config --exists`と`pkg-config --libs`の呼び出し方法が異なり期待した結果にならない(OS X)
Applied in changeset r54999.
----------
lib/mkmf.rb: use xsystem to pkg-config --exists
* lib/mkmf.rb (pkg_config): use xsystem consistently to set up
library path environment variable as well as latter pkg-config
calls. [ruby-dev...
nobu (Nobuyoshi Nakada)
05:46 PM Revision 97888037 (git): merge revision(s) 54999: [Backport #12379]
* lib/mkmf.rb (pkg_config): use xsystem consistently to set up
library path environment variable as well as latter pkg-config
calls. [ruby-dev:49619] [Bug #12379]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branche...
nagachika (Tomoyuki Chikanaga)
12:00 PM Bug #12382 (Closed): Deprecated constants will not print out warning when accessed directly
Hi,
the current behavior of `deprecate_constant` is a little confusing:
```ruby
module Namespace
module Deprecated
end
deprecate_constant :Deprecated
end
puts "Referenced access:"
Namespace::Deprecated # warning: c...
rbjl (Jan Lelis)
11:14 AM Bug #12381 (Closed): ext/openssl classes' dup/clone don't work well
They don't copy the underlying C level structures.
~~~ruby
ssl_ctx = OpenSSL::SSL::SSLContext.new
ssl_ctx.ciphers = "aNULL"
p ssl_ctx.ciphers
# => [["ADH-AES256-GCM-SHA384", "TLSv1.2", 256, 256], .. aNULL cipher suites ..]
new_...
rhenium (Kazuki Yamaguchi)
11:07 AM Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface
I want to work on this before the release of openssl gem.
- EC#public_key returns an EC::Point, not an EC
I think it's better to add new #dup_public (or #public_pkey ?) method for each PKey types, rather than changing EC#public...
rhenium (Kazuki Yamaguchi)
08:28 AM Feature #12380: `Struct` as a subclass of `Class`
Jeremy Evans wrote:
> You can't subclass Class in ruby:
I see.
> ...
At the moment, my motivation is only conceptual. We are able to do things the way it is now, but from OOP point of view, it is not desirable. It is just as goo...
sawa (Tsuyoshi Sawada)
07:18 AM Feature #12380: `Struct` as a subclass of `Class`
Tsuyoshi Sawada wrote:
> I propose that either `Struct` should be redefined as a subclass of `Class`, or a new class `StructClass` should be introduced as a subclass of `Class`, and take over the functionality of `Struct`.
You can't ...
jeremyevans0 (Jeremy Evans)
06:22 AM Feature #12380 (Open): `Struct` as a subclass of `Class`
This issue is somewhat of the same flavor as #12374.
`Struct` has a constructor that creates a class:
~~~ruby
Struct.new(:foo)
# => #<Class:0x007f605f892cb0>
~~~
and this is the same situation with `Class`.
~~~ruby
Class....
sawa (Tsuyoshi Sawada)
01:09 AM Revision 005ee0e4 (git): ChangeLog: GitHub reference
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:04 AM Revision f37f881a (git): lib/mkmf.rb: use xsystem to pkg-config --exists
* lib/mkmf.rb (pkg_config): use xsystem consistently to set up
library path environment variable as well as latter pkg-config
calls. [ruby-dev:49619] [Bug #12379]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54999 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)

05/13/2016

05:15 PM Bug #12379 (Closed): mkmf.rb `pkg-config --exists`と`pkg-config --libs`の呼び出し方法が異なり期待した結果にならない(OS X)
OS X 10.11.4上で
- rubyが/opt/localにインストールされている
- /opt/local/lib/libiconv.dylibがある
とき、gem ffiのインストールに失敗します。
~~~
% gem2.4 install --user-install ffi
:
Building native extensions. This could take a while...
ERROR: Error inst...
kimuraw (Wataru Kimura)
04:44 PM Feature #12378 (Open): arbitrary size Random.new_seed
https://github.com/ruby/ruby/compare/trunk...nobu:feature/Random.new_seed-prec
Related to #12357, a proposal to add an optional parameter, `precision` in bits, to `Random.new_seed`.
nobu (Nobuyoshi Nakada)
04:36 PM Revision fc9bc883 (git): test_rand.rb: tests for seeds
* test/ruby/test_rand.rb: tests for Random.raw_seed and
Random.new_seed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:28 PM Bug #12376: No error for elseif condition
You may want to use a code lint tool, such as [rubocop](https://github.com/bbatsov/rubocop).
BTW, next quiz:
~~~
> a = 1
> ...
0
=> nil
~~~
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
12:40 PM Bug #12376: No error for elseif condition
Of course.
Makes perfect sense.
I would say the way to handle this bugs in a pro-active way would be to use 100% coverage in the test suite.
I can not see how the bug would be missed with that.
TDD as a must in ruby like always.
Tha...
dsferreira (Daniel Ferreira)
11:51 AM Bug #12376 (Rejected): No error for elseif condition
usa (Usaku NAKAMURA)
11:37 AM Bug #12376: No error for elseif condition
And most editors can high-light keywords, but not `elseif`, as shown in this page, FYI. nobu (Nobuyoshi Nakada)
10:59 AM Bug #12376 (Closed): No error for elseif condition
it's parsed like
``` ruby
a = 1
if a == 2
puts 2
elseif(a==1)
puts 1
else
puts 0
end
```
and the method `elseif` is not called in the false condition.
But you can find this kind of bugs using rubocop or other tool...
matz (Yukihiro Matsumoto)
10:59 AM Bug #12376: No error for elseif condition
It is parsed as
~~~ruby
if a == 2
puts 2
elsif a == 3
puts 3
elseif(a == 1)
puts 1
else
puts 4
end
~~~
With `elseif` being just a method call. With this branch not evaluated, there is no problem with unknown met...
zverok (Victor Shepelev)
10:41 AM Bug #12376 (Rejected): No error for elseif condition
Something I have been for a long time wondering about.
I don't know if this is a parsing problem or not but for me it seems like it is.
Replication:
``` ruby
$ irb
> RUBY_VERSION
=> '2.3.0'
> ...
0
=> nil
```
Shouldn't ...
dsferreira (Daniel Ferreira)
03:16 PM Revision d009cebf (git): random.c: no local copy of the seed
* random.c (make_seed_value): append leading-zero-guard and get
rid of making a local copy of the seed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:16 PM Revision 00a371c2 (git): * 2016-05-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:16 PM Revision 79850a08 (git): random.c: fill_random_seed size
* random.c (fill_random_seed): move the seed size to an argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:56 PM Revision 678c39dc (git): random.c: clear buf
* random.c (random_seed): clear temporary buffer explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:01 PM Revision be33635c (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:06 AM Bug #12377 (Closed): recipe for target 'do-install-nodoc' failed
When compiling with
make up; make install-nodoc
I get the following error
```
installing default gems: /usr/local/lib/ruby/gems/2.4.0 (build_info, cache, doc, extensions, gems, specifications)
bi...
duerst (Martin Dürst)
09:34 AM Bug #12370: require 'mkmf' changes Object#respond_to? behaviour
In this situation we have Module#public_method_defined? returning different things for classes and modules which makes sense from its definition where it gets all ancestors when called in a class.
Ex:
``` ruby
$ irb
> require 'mkmf...
dsferreira (Daniel Ferreira)
09:11 AM Bug #12370: require 'mkmf' changes Object#respond_to? behaviour
Understood.
So what really makes sense to do is something like this:
``` ruby
$ irb
> require 'mkmf'
> ...
=> true
> YAML.public_methods.select {|m| m.to_s == 'configuration' }
=> [:configuration]
```
dsferreira (Daniel Ferreira)
09:04 AM Feature #12375: Net::HTTP.post
Usaku NAKAMURA wrote:
> Shugo Maeda wrote:
> ...
Ah, I forgot to consider consistency with Net::HTTP.get.
> Of course, to implement it is not so hard, so I believe you will do it before committing the patch :-)
It's easy to imple...
shugo (Shugo Maeda)
08:22 AM Feature #12375: Net::HTTP.post
Shugo Maeda wrote:
> * The first argument must be a URI object, but it might be better to accept a String.
It should accept the hostname and the path parameters, like Net::HTTP.get.
Of course, to implement it is not so hard, so I be...
usa (Usaku NAKAMURA)
07:56 AM Feature #12375 (Closed): Net::HTTP.post
Net::HTTP.post_form is convenient, but it's dedicated to application/x-www-form-urlencoded.
Why not provide Net::HTTP.post for other media types?
```
res = Net::HTTP.post(URI('http://www.example.com/api/search'),
...
shugo (Shugo Maeda)
06:44 AM Feature #12275 (Open): String unescape
Thank you. That makes sense to me because String#dump has no corresponding undump method now. shyouhei (Shyouhei Urabe)
03:52 AM Bug #12371: Windows Nano Server WIN32OLE compatibility
In Window Nano Server TP5, Microsoft has temporarily changed the behavior of `OleInitialize` internally to use `CoInitializeEx(NULL, COINIT_MULTITHREADED)` as a compatibility fix, despite what the spec / documentation says. It is unders... Iristyle (Ethan Brown)

05/12/2016

11:46 PM Revision da696ae7 (git): drop FreeBSD < 4 support
* NEWS: drop FreeBSD < 4 support.
The most recent version affected by this is 3.5 and was released
in 2000.
https://www.freebsd.org/releases/3.5R/announce.html
https://en.wikipedia.org/wiki/History_of_FreeBSD#Version_history
git...
nobu (Nobuyoshi Nakada)
11:39 PM Bug #12370 (Closed): require 'mkmf' changes Object#respond_to? behaviour
`Module#public_method_defined?` is for instance methods.
`Object#respond_to?` is for its own methods.
They have no relationship.
nobu (Nobuyoshi Nakada)
10:25 AM Bug #12370: require 'mkmf' changes Object#respond_to? behaviour
Hi Nobu.
I discovered due to this bug in capybara-screenshot gem: [[https://github.com/mattheworiordan/capybara-screenshot/issues/162]]
And your right. I also think they should not use
``` ruby
require 'mkmf'
```
But when ...
dsferreira (Daniel Ferreira)
11:35 PM Revision 8cd05857 (git): extmk.rb: failures format
* ext/extmk.rb: show extension failures in compilation-mode
friendly format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:35 PM Revision 3bdf613a (git): defines.h: avoid redefinition
* include/ruby/defines.h (GCC_VERSION_SINCE): get rid of
re-definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:21 PM Bug #12371: Windows Nano Server WIN32OLE compatibility
In my tests `OleInitialize(NULL)` succeeded on Nano Server TP5 and reverse forwarders installed. Then it already is basically equivalent to `CoInitializeEx(NULL, COINIT_MULTITHREADED)` (everything else it does is printing two debugging m... cremno (cremno phobia)
04:20 PM Bug #12371: Windows Nano Server WIN32OLE compatibility
Yes, the behavior of `OleInitialize` is generally additive and per the docs at https://msdn.microsoft.com/en-us/library/windows/desktop/ms690134(v=vs.85).aspx, it is necessary to call before using any COM functions that use:
* Clipboa...
Iristyle (Ethan Brown)
01:58 AM Bug #12371 (Assigned): Windows Nano Server WIN32OLE compatibility
Doesn't `CoInitialize` differ than `OleInitialize`? nobu (Nobuyoshi Nakada)
06:30 PM Feature #12374: SingletonClass
Sorry, for the last example, I meant:
~~~ruby
A = SingletonClass.new
~~~
sawa (Tsuyoshi Sawada)
06:28 PM Feature #12374 (Closed): SingletonClass
I propose to have a class `SingletonClass`, a subclass of the class `Class`, to which all singleton classes belong. It should be the owner of all the properties that are specific to singleton classes. Also, the methods defined on `Single... sawa (Tsuyoshi Sawada)
06:27 PM Revision 4e080d26 (git): fix typo in r54988
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:12 PM Revision b207e7cd (git): include/ruby/defines.h (GCC_VERSION_SINCE): moved from internal.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:12 PM Revision 07dd6fcc (git): * 2016-05-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:12 PM Revision ac11f944 (git): Use HAVE_BUILTIN___BUILTIN_CONSTANT_P
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:12 PM Revision 91e3c8b3 (git): * configurein: use alternative keyword
to avoid macros conflicts with them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:07 PM Feature #11090: Enumerable#each_uniq and #each_uniq_by
Why introduce one more method if we can just implement `#uniq` (with or without block, sticking to `Array#uniq` semantics) for `Enumerable` and `Enumerator::Lazy`? With `Enumerator::Lazy` we do not need to create an array.
```ruby
mo...
prijutme4ty (Ilya Vorontsov)
03:43 PM Feature #12275: String unescape
I think yes, inverse of String#dump. I have user inputed string without qoutes, but it don't metter much. asnow (Andrew Bolshov)
02:12 PM Bug #12373: Optimize CSV#shift
I update patches.
csv-shift-1.patch: Use **s1.start_with?(s2)** instead of **s1[0] == s2** and use **s1.end_with?(s2)** instead of **s1[-1] == s2**.
~~~
$ ruby csv-benchmark.rb
Warming up --------------------------------------
...
ksss (Yuki Kurihara)
07:10 AM Bug #12373: Optimize CSV#shift
Thank you for your reply.
> You can replace str1[-1] == str2 with str1.end_with?(str2) too, three places.
Yes, That is my next plan.
I'm writing benchmark carefully.
Should I collect patches in this issue?
ksss (Yuki Kurihara)
02:05 AM Bug #12373: Optimize CSV#shift
You can replace **`str1[-1] == str2`** with **`str1.end_with?(str2)`** too, three places. nobu (Nobuyoshi Nakada)
12:45 AM Bug #12373 (Closed): Optimize CSV#shift
I think that **`str1.start_with?(str2)`** is faster than **`str1[0] == str2`**.
Because **`str1.start_with?(str2)`** just call **`String#start_with?`**, But **`str1[0] == str2`** call **`String#[]`**, make new `String` object and call *...
ksss (Yuki Kurihara)
01:01 PM Revision b69cc4cc (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:19 AM Revision 2b7c7214 (git): extmk.rb: failed messages at the end
* ext/extmk.rb: output failed configurations at the end, not to be
scrolled out.
TODO: show the message at the end of the whole build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:12 AM Feature #12364: Copy superclass serial number to singleton subclasses for better IMC hits
I don't have any objection about this change because it is not big change.
Did you measure not micro-benchmarks?
ko1 (Koichi Sasada)
01:06 AM Bug #9569: SecureRandom should try /dev/urandom first
@naruse Do you think it's inadequate for Linux users to fall back to getrandom(2)? If so, why? shyouhei (Shyouhei Urabe)
12:48 AM Bug #10558 (Third Party's Issue): failing require digest.so on OSX statically compiled ruby
nobu (Nobuyoshi Nakada)

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)
 

Also available in: Atom