Project

General

Profile

Activity

From 12/29/2016 to 01/04/2017

01/04/2017

08:05 PM Feature #13103 (Open): [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
[PATCH] random.c (fill_random_bytes_syscall): use "__NR_" prefix on Linux
glibc still does not define the SYS_getrandom alias for
__NR_getrandom in the Linux kernel. However, installing
up-to-date Linux kernel headers (linux-libc-d...
normalperson (Eric Wong)
05:18 PM Bug #13102: Confusing method name: Set#delete?
PS: This has been in the stdlib since at least 1.8.7 according to the docs. kaikuchn (Kai Kuchenbecker)
05:18 PM Bug #13102 (Rejected): Confusing method name: Set#delete?
Greetings,
a colleague of mine who recently started to learn Ruby managed to greatly confuse me today when he used Set#delete? which he claimed would delete an item from a set.
Reading the documentation I suspect the method was meant...
kaikuchn (Kai Kuchenbecker)
03:37 PM Bug #13101 (Closed): Date#rfc2822 and Time#rfc2822 don't return the same format
Using the rfc2822 method on various date/time classes returns a slightly different result each time:
~~~
Time.now.rfc2822 # => "Wed, 04 Jan 2017 10:21:06 -0500"
Date.today.rfc2822 # => "Wed, 4 Jan 2017 00:00:00 +0000"
Time.no...
iain_nl (Iain Hecker)
02:15 PM Feature #12650: Use UTF-8 encoding for ENV on Windows
B Kelly wrote:
> Hi,
> ...
I would like to second this request. We are also troubled by the encoding issues under Windows. Not sure when Ruby 3 is planned to be released, but we would prefer for a more immediate solution.
thomthom (Thomas Thomassen)
11:06 AM Revision 70db4f6e (git): win32/registry.rb: registry type names
* ext/win32/lib/win32/registry.rb (Win32::Registry#read): show
registry type names instead of numeric values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:36 AM Bug #13100 (Rejected): OpenSSL::PKey::EC#public_keyでGroup情報がコピーされない。
OpenSSL::PKey::EC#public_key= で公開鍵(OpenSSL::PKey::EC::Point)をセットし、その公開鍵のgroupのエンコーディング方式を:compressedにセットした後、OpenSSL::PKey::EC#public_keyで再度公開鍵を取得するとそのgroupのエンコーディング方式が:compressedではなく、:uncompressedのままになります。
2.3.0では:compressedが取得できており、2...
azuchi (Shigeyuki Azuchi)
08:21 AM Bug #13081 (Closed): resolv.rb may be the cause of the rubygems bug on Windows
Applied in changeset r57265.
----------
win32/resolv.rb: ad hoc workaround
* ext/win32/lib/win32/resolv.rb (Win32::Resolv::SZ): an ad hoc
workaround for broken registry. SearchList and other registry
values must be REG_SZ, or Wind...
nobu (Nobuyoshi Nakada)
01:21 AM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
I think that to warn and ignore is nice. usa (Usaku NAKAMURA)
08:21 AM Revision 3047144a (git): win32/resolv.rb: ad hoc workaround
* ext/win32/lib/win32/resolv.rb (Win32::Resolv::SZ): an ad hoc
workaround for broken registry. SearchList and other registry
values must be REG_SZ, or Windows ignores anything in those
values otherwise. [ruby-dev:49924] [Bug #130...
nobu (Nobuyoshi Nakada)
07:23 AM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
Aaron Patterson wrote:
> The `:itself.to_proc` doesn't look so great as an alternative, but maybe we could make `case / when` support `&:itself` syntax.
`case / when` isn't the original concern, but just an unexpected side effect.
E...
nobu (Nobuyoshi Nakada)
07:06 AM Bug #13099 (Rejected): Binding#irb does not work outside of irb
You have to `require "irb"` by yourself.
No plan to autoload "irb" by `binding.irb` now.
nobu (Nobuyoshi Nakada)
06:13 AM Feature #13017: Switch SipHash from SipHash24 to SipHash13
Crypto-analyse of SipHash (and best result for SipHash13)
https://eprint.iacr.org/2014/722.pdf
funny_falcon (Yura Sokolov)
05:47 AM Revision aa5ff4a4 (git): lib/cmath.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:05 AM Bug #13043: Exception#cause can become recursive/infinite
I've finally gave up to backport this into `ruby_2_2`, because of a test of `rake` failed.
I doubt that the test is nonsense, but a maintenance branch should be conservative about changing its behavior.
usa (Usaku NAKAMURA)
02:02 AM Revision ffb1a5d8 (git): Revert r57229 and finally giving up backporting [Bug #13043]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
12:31 AM Feature #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname
v.ondruch@tiscali.cz wrote:
> If nothing else, I would consider right if documentation discouraged their use ...

I support documentation discouraging their use.

I'm against a warning message at runtime; that's just annoying
to n...
normalperson (Eric Wong)
12:30 AM Revision 2c1aa788 (git): adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

01/03/2017

11:36 PM Bug #13099 (Closed): Binding#irb does not work outside of irb
I had read that one of the new features of 2.4.0 is that `Binding#irb` is now a method, so I decided to test this out in a program I was working on. Here is the program
~~~ ruby
class Test
attr_accessor :x, :y, :z
def initializ...
snood1205 (Eli Sadoff)
11:28 PM Feature #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname
I have no pro or con opinion, just adding links for people who just want to click on stuff for the corresponding docu:
https://ruby-doc.org/stdlib-2.4.0/libdoc/socket/rdoc/Socket.html#method-c-gethostbyaddr
https://ruby-doc.org...
shevegen (Robert A. Heiler)
09:20 AM Feature #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname
If nothing else, I would consider right if documentation discouraged their use ... vo.x (Vit Ondruch)
09:17 AM Feature #13097 (Closed): Deprecate Socket.gethostbyaddr and Socket.gethostbyname
Is there a reason to keep these methods around? They were marked obsolete by POSIX.1-2001 and the POSIX.1-2008 removes the specifications of gethostbyname, gethostbyaddr recommending the use of getaddrinfo and getnameinfo instead. If the... vo.x (Vit Ondruch)
11:27 PM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
"Over the past year or so, I've been trying to avoid programming in any compiled languages."
I am going a bit off-topic here but I could not resist to add one comment to this.
I try this even more generally - avoid any other langua...
shevegen (Robert A. Heiler)
07:01 PM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
Eric Wong <normalperson@yhbt.net> wrote:
> We can support String#pack

I meant Array#pack ENOCOFFEE :x
normalperson (Eric Wong)
06:31 PM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
kosaki.motohiro@gmail.com wrote:
> >We should expect users of this to be able to read and follow
> >documentation. We already have a warning about it. I prefer we
> >allow it to improve, and allow users to shoot themselves in the
> ...
normalperson (Eric Wong)
11:59 AM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
>We should expect users of this to be able to read and follow
> ...
This is unrelated what I said. I said current interface (both C level and Ruby level) is not designed well and then,
user have _no way_ to write correct code. Ruby cod...
kosaki (Motohiro KOSAKI)
10:42 PM Feature #13001 (Closed): Add `full` option to `ObjectSpace.dump_all`
Applied in changeset r57260.
----------
Add `full` option to `ObjectSpace.dump_all`
The `full` option includes all slots (even `T_NONE`) in the JSON output.
This is to help with debugging heap fragmentation.
Here is an example usage:
...
Anonymous
10:42 PM Revision e758e9da (git): * 2017-01-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:42 PM Revision ed2abc43 (git): Add `full` option to `ObjectSpace.dump_all`
The `full` option includes all slots (even `T_NONE`) in the JSON output.
This is to help with debugging heap fragmentation.
Here is an example usage:
```ruby
File.open('heap.json', 'w') do |f|
ObjectSpace.dump_all(output: f, full: tr...
tenderlovemaking (Aaron Patterson)
08:44 PM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
While `:itself.to_proc` works, I still can't see when one would need it, and it's much easier and clearer to check for `nil` and `false`
```ruby
def foo val
case val
when true
'true value'
when 1
'one'
when nil,...
marcandre (Marc-Andre Lafortune)
06:24 PM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
IMO the backwards incompatibility risks outweigh the rewards.
As Marc-Andre says, `array.grep(true)` and `array.grep(false)` could be replaced with `array.select(&:itself)` and `array.reject(&:itself)`. Since `case / when` just sends...
tenderlovemaking (Aaron Patterson)
03:10 PM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
Marc-Andre Lafortune wrote:
> 2) There is no good replacement for the current uses of `when true` and `when false`. In particular, `when true` would basically require separate `if`.
> ...
I think there is an alternative.
```ruby
...
sawa (Tsuyoshi Sawada)
07:12 PM Feature #11547: remove top-level constant lookup
Ah, no, https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57244/entry/variable.c#L419 seems to say that Qundef is what the search function returns to indicate failure, raising in the caller. fxn (Xavier Noria)
07:07 PM Feature #11547: remove top-level constant lookup
Oh, didn't look at the patch. This means String::Hash returns nil?
fxn (Xavier Noria)
02:04 PM Feature #13017: Switch SipHash from SipHash24 to SipHash13
I was learning about SipHash13 this holiday season.
I understand that the whole concept of using SipHash as hash function of hash tables is to resist hashDoS-analogous attacks. If hashDoS aws not a problem then we could use more fast...
shyouhei (Shyouhei Urabe)
02:02 PM Bug #13098 (Closed): miniruby fails with SEGV on NetBSD/powerpc
Hi,
the build of ruby 2.3.3 fails on NetBSD/macppc (which is a powerpc architecture) with
~~~
...
linking miniruby
generating encdb.h
./tool/generic_erb.rb:3: [BUG] Segmentation fault
ruby 2.3.3p222 (2016-11-21 revision 56859)...
he (Håvard Eidnes)
10:49 AM Revision 6f31dcd7 (git): compile.c: fallback nil
* compile.c (iseq_compile_each): push fallback nil only when
defined guard is added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:48 AM Revision 7e001f28 (git): compile.c: omit unnecessary defined guard
* compile.c (defined_expr): omit unnecessary defined guard when
method call has no receiver and no arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:47 AM Revision 0886a027 (git): forwardable.rb: fix branches
* lib/forwardable.rb (instance_delegate, single_delegate): fix
inverted branches.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:35 AM Revision a50cc9ce (git): forwardable.rb: use defined?
* lib/forwardable.rb (_delegator_method): use defined? operator
instead of binding and calling unbound Kernel#respond_to?. a
remedy for an performance bottleneck.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57256 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
08:40 AM Revision 46c0e79b (git): forwardable.rb: use defined?
* lib/forwardable.rb (_delegator_method): use defined? operator
instead of binding and calling unbound Kernel#respond_to?. a
remedy for an performance bottleneck.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57255 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
03:28 AM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
Yes this issue is present in 2.2.6.
When I checked the logs I saw the same symptoms reported here.
When I checked the 2.2.6 source code on my local machine it appeared that change in revision 53868 was also required there in the 2....
hedgehog (Hedge Hog)
02:00 AM Revision 363c7839 (git): * 2017-01-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:00 AM Revision aa710736 (git): lib/benchmark.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)

01/02/2017

11:31 PM Feature #11547: remove top-level constant lookup
I would honestly rather see it raise an exception instead of silently return nil. I'd rather KNOW my bug than hunt it. zenspider (Ryan Davis)
11:15 PM Bug #13096 (Closed): error using undef_method + refinements
I've got a bug report on minitest/mock that I've reduced to the following:
~~~ ruby
class Object
def to_query # remove this, works fine
end
end
Object.prepend Module.new # remove this, works fine
module Object...
zenspider (Ryan Davis)
10:21 PM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
kosaki.motohiro@gmail.com wrote:
> I disagree.
>
> http://man7.org/linux/man-pages/man2/syscall.2.html clearly explains a caller must care
> Architecture-specific requirements. But current this interface have no way Ruby core care
...
normalperson (Eric Wong)
01:14 PM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
I disagree.
http://man7.org/linux/man-pages/man2/syscall.2.html clearly explains a caller must care
Architecture-specific requirements. But current this interface have no way Ruby core care
alignment etc.
syscall is misdesigned i...
kosaki (Motohiro KOSAKI)
04:52 AM Feature #13095 (Open): [PATCH] io.c (rb_f_syscall): remove deprecation notice
io.c (rb_f_syscall): remove deprecation notice
New, perhaps experimental syscalls appear all the time which
may not and never be be supported by the system C library.
Furthermore, on common GNU/Linux platforms, kernel development
...
normalperson (Eric Wong)
01:02 PM Bug #13094: Zlib::GzipReader eof?がfalseなのにgetsでnilが返ってくる
たしかにFileとZlib::GzipReaderでeof?の挙動が違いますね。
Fileの方にあわせるべきかなぁ……。
さておき、現状こうなってしまっていますし、修正は2.5からだと思うのでgetsの戻り値で分岐した方がよいでしょうね。
naruse (Yui NARUSE)
03:35 AM Bug #13094 (Closed): Zlib::GzipReader eof?がfalseなのにgetsでnilが返ってくる
下記のように、eof?がfalseであればgetsでnilが返ってくることはないことを期待してるとエラーが起きてしまいます。
zlibでeof?は非推奨でしょうか?
~~~ ruby
require 'zlib'
o = ('!'..'~').to_a
i = 225
1000.times do
Zlib::GzipWriter.open('./s.gz') do |gz|
i.times do
gz.write(o.sam...
iehn (Hironao TSUTSUMIDA)
12:20 PM Revision 6fca65e7 (git): lib/English.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:59 AM Bug #13092: Interpreter Bug
Nobuyoshi Nakada wrote:
> How to reproduce it?
I have no idea what is causing the bug,
The rake task "channels:synchronize" for this repo is causing it, only with ruby 2.4.0, the 2.3.1 is fine!
Repo: http://github.com/marcelob...
marceloboeira (Marcelo Boeira)
08:56 AM Bug #12613: iseq_set_sequence: adjust bug -1 < 0 (retry inside begin/rescue)
This code has the same symptoms. Removing the second begin/rescue, the method, or the return statement makes the code work (reports SyntaxError, without crashing).
~~~
#!/usr/bin/env ruby
def test
begin
break
rescue
...
bkutil (Balazs Kutil)
01:40 AM Revision b70d3f67 (git): adjust spacing [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
12:22 AM Revision 03b8cb95 (git): object.c: rb_class_alloc
* object.c (rb_obj_alloc): add pathological check of klass for
extension libraries which do not check given arguments properly.
[ruby-core:78934] [Bug #13093]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57250 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)
12:22 AM Feature #13083: Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
I think that the way it currently exists is logical. As `=~` is an Object method, it is worth while keeping the more permissible behavior whereas errors should be thrown for `match` and `match?` if `nil` is passed. The change that I woul... snood1205 (Eli Sadoff)
12:16 AM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
I think that a possible middle ground replacement would be to introduce truthy and falsy constants into `TrueClass` and `FalseClass` respectively. You could then do, for example,
~~~ ruby
case 1
when true then puts 'This will not ma...
snood1205 (Eli Sadoff)
12:03 AM Bug #13093 (Closed): JSON Parse
Applied in changeset r57249.
----------
object.c: rb_class_s_new
* object.c (rb_class_new_instance): add pathological check of
klass for extension libraries which do not check given arguments
properly. [ruby-core:78934] [Bug #13093]
nobu (Nobuyoshi Nakada)
12:03 AM Revision 42361548 (git): object.c: rb_class_s_new
* object.c (rb_class_new_instance): add pathological check of
klass for extension libraries which do not check given arguments
properly. [ruby-core:78934] [Bug #13093]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57249 b2dd03c...
nobu (Nobuyoshi Nakada)

01/01/2017

11:41 PM Bug #13093 (Feedback): JSON Parse
I got a `NameError`.
```
-:1:in `<main>': undefined local variable or method `remplace_template' for main:Object (NameError)
```
nobu (Nobuyoshi Nakada)
10:36 PM Bug #13093 (Closed): JSON Parse
When trying to parse a JSON file from the following format:
```
[
{"original":"yahoo.fr","replace":"yahoo.fr"},
{"original":"zahnen.cl","replace":"zahnen.cl"},
{"original":"zzion.cl","replace":"zzion.cl"}
]
```
using the foll...
hfr1994 (Hector Flores)
10:26 PM Bug #13092 (Feedback): Interpreter Bug
How to reproduce it? nobu (Nobuyoshi Nakada)
09:03 PM Bug #13092: Interpreter Bug
The same project works with ruby 2.3.1.
http://github.com/marceloboeira/feedcast
marceloboeira (Marcelo Boeira)
08:15 PM Bug #13092 (Closed): Interpreter Bug
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
marceloboeira (Marcelo Boeira)
10:20 PM Revision 1c80c388 (git): dir.c: getattrlist on OSX 10.5
* dir.c (is_case_sensitive): use getattrlist() if fgetattrlist()
is unavailable, on OSX 10.5. [ruby-core:68829] [Bug #11054]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:52 PM Bug #13091: 2.4.0がコンパイルできない
修正しました。
#11054 は修正されたはずだけどなー、っと思ったら別の場所で分岐無しで使ってるんですね。
しかし、7世代以上前のmacOSを今サポートすべきだとは思わないのでそのままですかね。
なお、手元で動かす分にはfgetattrlistをgetattrlistで置き換えれば突破できるんじゃないかと思います。
naruse (Yui NARUSE)
04:42 PM Bug #13091 (Closed): 2.4.0がコンパイルできない
Applied in changeset r57246.
----------
fix typo [Bug #13091]
naruse (Yui NARUSE)
01:53 PM Bug #13091 (Closed): 2.4.0がコンパイルできない
2.4.0のコンパイルができません。
(省略)
compiling array.c
array.c: In function ‘rb_ary_zip’:
array.c:3340: error: syntax error before ‘)’ token
(省略)
となります。(私の古い)Macで発生している現象ですが、nclude/ruby/ruby.hの以下の部分が原因と思われますので影響範囲はそれなりに広いのではないでしょうか。
diff...
KOIZUMI_Satoru (Satoru Koizumi)
04:51 PM Bug #8289: [].join.encoding # => US-ASCII (I expect also UTF-8
Khalil Fazal wrote:
> puts [].join.encode("utf-8").encoding
`puts [].join.force_encoding("utf-8").encoding` is correct because of both semantic and performance.
String#force_encoding just overwrite the encoding of string instead of ...
naruse (Yui NARUSE)
04:42 PM Revision c2ebf056 (git): * 2017-01-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:42 PM Revision b5381899 (git): fix typo [Bug #13091]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:07 PM Feature #11547: remove top-level constant lookup
In particular this one http://guides.rubyonrails.org/autoloading_and_reloading_constants.html#when-constants-aren-t-missed.
We'd love to base Rails autoloading on Kernel#autoload and have the exact same semantics, but that is not poss...
fxn (Xavier Noria)
02:58 PM Feature #11547: remove top-level constant lookup
The fix is even simpler than what I was picturing: https://github.com/ruby/ruby/commit/44a2576f798b07139adde2d279e48fdbe71a0148
If it sticks, this will make a bunch of Rails autoload issues go away. Right on nobu, thanks!
bronson (Scott Bronson)
09:08 AM Feature #11547 (Closed): remove top-level constant lookup
Applied in changeset r57244.
----------
variable.c: top-level constant look-up
* variable.c (rb_const_search): [EXPERIMENTAL] remove top-level
constant look-up. [Feature #11547]
nobu (Nobuyoshi Nakada)
09:06 AM Feature #11547: remove top-level constant lookup
Sorry, missed this feature. nobu (Nobuyoshi Nakada)
10:06 AM Bug #13036 (Rejected): Date.parse mishandling spanish months "Abril y Agosto"
Shyouhei Urabe wrote:
> So is it a dates_international.rb's problem?
Yes. But that file has other problems, among else that it only supports four additional languages (French, German, Italian, and Spanish).
> ...
Yes indeed. I sea...
duerst (Martin Dürst)
04:21 AM Bug #13036: Date.parse mishandling spanish months "Abril y Agosto"
So is it a dates_international.rb's problem? Then sorry but the ruby's core do not ship that library. You might have obtained a copy of it from somewhere else. Do you remember where? Or, you might want to contact @jackrg directly. L... shyouhei (Shyouhei Urabe)
09:17 AM Revision 9df88e9c (git): test for [Feature #11547]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:07 AM Revision 44a2576f (git): variable.c: top-level constant look-up
* variable.c (rb_const_search): [EXPERIMENTAL] remove top-level
constant look-up. [Feature #11547]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:22 AM Revision 46454b5e (git): passed block should keep the lambda-ness
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

12/31/2016

10:44 PM Revision 5659843d (git): * 2017-01-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:44 PM Revision 9043c073 (git): Update submaintainer of default gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
04:40 PM Bug #13036: Date.parse mishandling spanish months "Abril y Agosto"
Even if Ruby have never intended to parse dates other than English it works quite well parsing Spanish dates. I'm quite confident that it uses [dates_international.rb](https://gist.github.com/jackrg/2927162) for the magic. I base my beli... greutter (Gonzalo Reutter)
04:37 PM Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
> 4) Increases the confusion of true vs "truthy" and false vs "falsey"
I think that the words "true" and "false" are a lot easier to understand than "truthy" and "falsy".
There should be some document that states the valid values f...
shevegen (Robert A. Heiler)
08:08 AM Bug #13090 (Closed): Cannot use return statement in lambdas using instance_eval (MRI 2.4)
Applied in changeset r57240.
----------
vm.c: fix return in lambda
* vm.c (invoke_block_from_c_splattable): pass lambda-ness.
* vm_eval.c (yield_under): invoke lambda proc properly.
[ruby-core:78917] [Bug #13090]
nobu (Nobuyoshi Nakada)
08:07 AM Revision 91587f6b (git): vm.c: fix return in lambda
* vm.c (invoke_block_from_c_splattable): pass lambda-ness.
* vm_eval.c (yield_under): invoke lambda proc properly.
[ruby-core:78917] [Bug #13090]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57240 b2dd03c8-39d4-4d8f-98ff-823fe69...
nobu (Nobuyoshi Nakada)
03:29 AM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
Your patch also works when using the rubyinstaller-built shared openssl 1.0.2j lib.
`make test-all` segfaults, but test segfaults and other unresolved testing failures are typical when building ruby on windows.
~~~
$ ruby --versio...
jonforums (Jon Forums)
01:01 AM Bug #13085: io.c io_fwrite creates garbage
Proposed patch to temporarily freeze string while copying
~~~diff
io.c (io_fwrite): temporarily freeze string when writing

This avoids garbage from IO#write for [Bug #13085].
Memory usage from benchmark/bm_io_copy...
normalperson (Eric Wong)
12:41 AM Revision 31729338 (git): * 2016-12-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:41 AM Revision ff4e14f0 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:41 AM Revision f01d3b23 (git): add benchmark for IO.copy_stream IO#write case
I will attempt to reduce garbage in proposed fix
for https://bugs.ruby-lang.org/issues/13085
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong

12/30/2016

11:28 PM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
Before you decide whether to commit your patch to support using static openssl libs, I'll double check that a 32bit build with the rubyinstaller-built openssl lib from https://bintray.com/oneclick/OpenKnapsack/openssl/1.0.2j#files also w... jonforums (Jon Forums)
08:06 PM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
Yes, that was very surprising to find windows openssl using gdi32.dll.
I've got more testing to do, but your patch appears to work for both 1.0.2j and 1.1.0c on 2.4.0p0:
Thank you.
~~~
$ ruby --version
ruby 2.4.0p0 (2016-12-24...
jonforums (Jon Forums)
05:52 PM Bug #8289: [].join.encoding # => US-ASCII (I expect also UTF-8
A work around for my own projects:
~~~ ruby
class Array
alias_method :old_join, :join
# A work around for https://bugs.ruby-lang.org/issues/8289
def join(separator = $,)
'' + old_join(separator)
end
end
puts ["...
khalil_fazal (Khalil Fazal)
02:42 PM Bug #13090 (Closed): Cannot use return statement in lambdas using instance_eval (MRI 2.4)
Hello,
I'm pretty sure I've found a bug after running specs for dry-initializer gem on MRI 2.4.
I managed to find the minimal code to reproduce the issue:
MRI 2.3.3
```
$ ruby -e "instance_eval(&lambda { |_| return })"
$
``...
decuplet (Nikita Shilnikov)
12:53 PM Bug #13078: with Integer a and b, a.fdiv(b) sometimes inaccurate than Rational(a, b).to_f
pull requested
https://github.com/ruby/ruby/pull/1508
metanest (Makoto Kishimoto)
11:45 AM Feature #11547: remove top-level constant lookup
With 2.4 released and I wasn't able to find anything related to this issue in https://github.com/ruby/ruby/blob/v2_4_0/NEWS I guess it did not make it into 2.4.
I was wondering if there are any plans regarding working on this. In almo...
tisba (Sebastian Cohnen)
09:14 AM Feature #12508: Integer#mod_pow
Updated as Integer#pow, with such API. metanest (Makoto Kishimoto)
08:01 AM Bug #13089 (Closed): r57227 の変更ではリークが起きるようです
Applied in changeset r57236.
----------
rational.c: memory leak in gcd
* rational.c (rb_gcd_gmp): fix memory leak. patched by KISHIMOTO,
Makoto <ksmakoto AT dd.iij4u.or.jp> in [ruby-dev:49934].
[Bug #13089]
nobu (Nobuyoshi Nakada)
07:59 AM Bug #13089 (Closed): r57227 の変更ではリークが起きるようです
きしもとです
手元の環境で、最新版(r57227 の変更以降)で、以下のような
スクリプトを実行しながら、topコマンドでインタプリタのプロセスを
見ていると、リークがあるようで、SIZE, RES がじりじりと増えて
ゆきます。
```ruby
# fdiv_leak_sample
A = 0x4000_0000_0000_0000
B = 0x4000_0000_0000_0000
def f
A.fdiv B
end
...
metanest (Makoto Kishimoto)
08:01 AM Revision 994d13b9 (git): rational.c: memory leak in gcd
* rational.c (rb_gcd_gmp): fix memory leak. patched by KISHIMOTO,
Makoto <ksmakoto AT dd.iij4u.or.jp> in [ruby-dev:49934].
[Bug #13089]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:53 AM Bug #13069: mkmf: ignore linker warnings on OpenBSD
Thansk for addressing the warnings. Your proposed patch solves my problem. Anonymous

12/29/2016

09:58 PM Bug #13069: mkmf: ignore linker warnings on OpenBSD
I think this is a better fix. This keeps the `:werror` behavior in `Logging::postpone`, it just turns off the use of `:werror` by default. Users that want werror behavior by default can set `$werror = true`.
~~~ diff
--- lib/mkmf.r...
jeremyevans0 (Jeremy Evans)
09:03 PM Bug #13069 (Open): mkmf: ignore linker warnings on OpenBSD
Some of the warnings were addressed in r57189, r57190, and r57191. However, I think we should rethink checking for an empty log file, and rely purely on the return code:
~~~ diff
--- lib/mkmf.rb.orig Sun Dec 25 09:49:06 2016
+++...
jeremyevans0 (Jeremy Evans)
04:16 PM Revision c922626a (git): * 2016-12-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:16 PM Revision c326ab8c (git): test/ruby/test_pack.rb: fix test case added by r57187
The test case for String#unpack added by r57187 is not properly testing
because the String will be filled after the block invocation.
[ruby-core:78841] [Bug #13075]
Thanks to nagachika for pointing this out:
http://d.hatena.ne.jp/nag...
rhenium (Kazuki Yamaguchi)
03:54 PM Bug #13080: [mingw regression] broken openssl extension in 2.4.0p0
Apparently my change broke it:
https://github.com/ruby/openssl/commit/5ba12a364fa5019f0e0f1e356087c001330097f1
I never thought OpenSSL would actually use gdi32.dll, but it does! RAND_screen() which used those gdi32.dll functions ...
rhenium (Kazuki Yamaguchi)
01:16 PM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
Yes, Windows seems to ignore the value when it is not REG_SZ, too.
But I wonder if it is desirable to ignore such broken registry silently.
nobu (Nobuyoshi Nakada)
12:27 PM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
How about ignoring the registry value if its type is not expected type?
```diff
Index: resolv.rb
===================================================================
--- resolv.rb (revision 57233)
+++ resolv.rb (working copy)
@@ -...
kou (Kouhei Sutou)
12:43 PM Bug #13088 (Rejected): Strange behavior in String.to_i
Matheus Mina wrote:
> It converts the first number in the string to integer. Is it correct?
Yes.
http://ruby-doc.org/core-2.4.0/String.html#method-i-to_i
nobu (Nobuyoshi Nakada)
11:10 AM Bug #13088 (Rejected): Strange behavior in String.to_i
When I try convert a string to integer using .to_i method it has a strange behavior.
It converts the first number in the string to integer. Is it correct?
I think the expected behavior should be convert to a integer if it has only ...
mfbmina (Matheus Mina)
12:22 PM Bug #13087 (Closed): Regression of instance_exec behaviour in ruby 2.4
nobu (Nobuyoshi Nakada)
11:05 AM Bug #13087 (Closed): Regression of instance_exec behaviour in ruby 2.4
I've just caught up this running our test suite against the newly released ruby 2.4. Here is the repro gist:
```ruby
class A
def initialize(x)
@x = x ...
chucke (Tiago Cardoso)
10:32 AM Revision e383c2ea (git): rational.c: refactor to_r
* rational.c (read_num, read_rat_nos): refactor to curtail
creating Rational objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:27 AM Bug #13086 (Rejected): /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36: [BUG] Segmentation fault
You load the extension library for 2.2.1 from ruby 1.9.1. nobu (Nobuyoshi Nakada)
05:40 AM Bug #13086: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36: [BUG] Segmentation fault
I am in a cloud9 instance.
I just updated nokogiri to 1.7.0.
I have attached the bug report.
tmorgan99 (Tim Morgan)
05:32 AM Bug #13086 (Rejected): /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36: [BUG] Segmentation fault
require 'nokogiri'
at first, it worked ok, but as I reload my script, I encounter the SegFault.
could be an issue in the code behind nokogiri ?
tmorgan99 (Tim Morgan)
09:26 AM Bug #13084 (Closed): String cast to Rational on 2.4.0p0 results in SegFault with Mathn required
Applied in changeset r57232.
----------
rational.c: fix for mathn
* rational.c (read_num, read_rat_nos): dispatch by the type of numerator, for
mathn. [ruby-core:78893] [Bug #13084]
nobu (Nobuyoshi Nakada)
12:21 AM Bug #13084: String cast to Rational on 2.4.0p0 results in SegFault with Mathn required
Can be replicated on Linux via Docker
Below Segfaults
~~~
docker run -it ruby:slim ruby -e 'require "mathn"; p Rational("5/5");'
~~~
Below Returns Expected Result
~~~
docker run -it ruby:slim ruby -e 'p Rational("5/5");'
...
burningpony (Russell Osborne)
12:06 AM Bug #13084 (Closed): String cast to Rational on 2.4.0p0 results in SegFault with Mathn required
See the below example, while `mathn` is required recasting a string into a Rational causes a SegFault. Remove mathn and the code will not crash.
~~~ ruby
require 'mathn'
# Both result in Segfault
Rational("5/5")
"5/5".to_r
~~~...
burningpony (Russell Osborne)
09:26 AM Revision ff93ad62 (git): rational.c: fix for mathn
* rational.c (read_num, read_rat_nos): dispatch by the type of numerator, for
mathn. [ruby-core:78893] [Bug #13084]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:06 AM Revision 69938349 (git): * 2016-12-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:05 AM Revision 8691f8ca (git): rational.c: canonicalization
* rational.c (canonicalization): define always regardless CANON,
and remove unnecessary ifdefs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:46 AM Bug #13082: Regex match from position behavior with start of line/string special character
Thanks, I didn't know about \G! It's a little hard to understand in this situation, do you think it might be helpful to add to the doc on matching with position?
"\G - Matches point where last match finished"
akanet (Vincent Woo)
02:39 AM Bug #13082 (Rejected): Regex match from position behavior with start of line/string special character
Offset 2 is not a beginning of a line, nor the beginning of the string.
Use `\G`.
nobu (Nobuyoshi Nakada)
01:11 AM Bug #13085 (Closed): io.c io_fwrite creates garbage
Relying on rb_str_new_frozen for unconverted strings does not
save memory because copy-on-write is always triggered in
read-write I/O loops were subsequent IO#read calls will
clobber the given write buffer.
```ruby
buf = ''.b
...
normalperson (Eric Wong)
 

Also available in: Atom