Project

General

Profile

Activity

From 12/21/2015 to 12/27/2015

12/27/2015

11:48 PM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
headius@headius.com wrote:
> A suggestion for how to make kwarg-passing to C functions
> allocation-free: have a thread-local (or perhaps global, since CRuby
> doesn't run Ruby code in parallel) array you can populate with the
> key...
normalperson (Eric Wong)
11:00 PM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
A suggestion for how to make kwarg-passing to C functions allocation-free: have a thread-local (or perhaps global, since CRuby doesn't run Ruby code in parallel) array you can populate with the key/value pairs coming out of the VM. Metho... headius (Charles Nutter)
10:49 PM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
I don't usually jump in to grouse about CRuby changes, but this is really gross. We shouldn't be mucking up the core classes like this just to work around a missing optimization in the runtime.
I'd strongly recommend making a better r...
headius (Charles Nutter)
10:13 PM Feature #11882: Map or NamedMap
It was pointed out to me, that there is an ambiguity in the following case.
~~~
array.method {{a: 1}}
# could be
array.method { {a: 1} }
#or
#array.method(Map.new({a: 1}))
~~~
To be fair, I feel that this would be an extremel...
hcatlin (Hampton Catlin)
04:02 PM Bug #11901: Performance Issue with OpenStruct
Now, to throw in my own opinion: probably the simplest fix would be to circumvent the `#respond_to?` check if we hit `#method_missing?` already - the check is both unnecessary and inaccurate. So probably we'd want the method defining me... amcaplan (Ariel Caplan)
03:48 PM Bug #11901: Performance Issue with OpenStruct
To be more specific (but not clog up the description), the problem can be traced to https://github.com/ruby/ruby/blob/b8d9770b6c699af6e63dab727621777fbfbf7b44/lib/ostruct.rb#L166 where the methods are only defined if `#respond_to?` is `f... amcaplan (Ariel Caplan)
03:37 PM Bug #11901 (Closed): Performance Issue with OpenStruct
After recent changes to define OpenStruct getter/setter methods lazily, there is a heavy performance impact for the use case where an attribute is assigned at initialization time (i.e. `Openstruct.new(foo: :bar)`). Once an attribute is ... amcaplan (Ariel Caplan)
02:46 PM Bug #11900: broken encoding of commandline on Windows
-Eが効いてなかったので訂正。
しかしこれだと-Uでも同等の効果が得られるわけですが、それが正しいのかどうか……。
-Uでは効かなくするにはこの修正箇所のちょっと上にあるif節の中でencをinternal encodingで上書きしている部分でencに代入しないようにする必要があります(一時変数として利用されてるだけなのでこの処理自体は本来は独立の気がする)。
~~~diff
Index: ruby.c
=======================...
usa (Usaku NAKAMURA)
02:33 PM Bug #11900: broken encoding of commandline on Windows
以下のパッチで直る(?)ような気がしますが、どうでしょうか>なかださん
~~~diff
Index: ruby.c
===================================================================
--- ruby.c (リビジョン 53345)
+++ ruby.c (作業コピー)
@@ -1535,6 +1535,9 @@ process_options(int argc, char **argv...
usa (Usaku NAKAMURA)
12:48 PM Bug #11900 (Closed): broken encoding of commandline on Windows
今頃気付いてしまったのですが、2.2以降のWindowsで、コマンドラインのエンコーディングが壊れています。
思い返すと、ちょうど1年前くらいになかださんがこの辺をいじっていたので、その時からではないかと。
trunkはもうめんどくさいからEncodingをUTF-8にしちゃっていい気がしますが、2.2と2.3はどうしたものすかね。
~~~
C:\>c:\ruby\2.1.8\bin\ruby -ve "s = 'てすと'; p [s, s.encoding...
usa (Usaku NAKAMURA)
02:34 PM Revision b8d9770b (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:34 PM Revision db8dcd1b (git): * ext/win32ole/win32ole.c (ole_variant2val): refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e suke (Masaki Suketa)
12:32 PM Bug #11899 (Rejected): `Object#public_methods` returns unordered array in Ruby 2.3.0
Previous ruby versions returned methods with same order. But this order was changed in Ruby 2.3.0.
Ruby 1.9.3:
```
1.9.3-p551 :001 > class B
1.9.3-p551 :002?> def self.init
1.9.3-p551 :003?> define_method(:f) {}
1.9...
llxff (Aleksandr Fomin)
12:28 PM Bug #11898 (Closed): backport r53346-r53349
バックポート用チケットです。
spawn等のオプショナル引数でファイルパスを指定するものに関して、エンコーディングの扱いが抜けていた点についての修正です。
(たぶん現行サポート対象ではWindows以外では問題は起きていませんでした。)
usa (Usaku NAKAMURA)
12:24 PM Revision 1187cf0e (git): * test/ruby/test_process.rb (TestProcess#test_execopts_open_chdir_m17n_path):
test for r53346, r53347 and r53348.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:15 PM Revision 8ff043d8 (git): * process.c (rb_execarg_parent_start1): need to convert the encoding to
ospath's one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:03 PM Revision 956100bc (git): * process.c (rb_execarg_addopt): need to convert to ospath.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
11:54 AM Revision fe0194e2 (git): * process.c: use rb_w32_uchdir() instead of plain chdir() on Windows.
reported by naruse via twitter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:13 AM Feature #11741: Migrate Ruby to Git from Subversion
Eric Wong wrote:
> web2004@sytse.com wrote:
> ...
If reporting bugs about GitLab by the ruby tema is a problem we would be happy to provide this via email like we do for our customers.
> > 2. If better non-javascript functionality ...
sytse (Sytse Sijbrandij)
11:00 AM Revision 701bfa0f (git): * enc/x_emoji.h: fix dead-link.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
10:55 AM Revision de962ebb (git): * doc/NEWS-2.3.0: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
09:59 AM Revision e5cd6d0d (git): Method name typo in a Tk sample
* ext/tk/sample/tkextlib/treectrl/help.rb: kength => length
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:59 AM Revision 41558044 (git): ivar name typo in a Tk sample
* ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb: @Messge => @Message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:59 AM Revision 9e04d1fb (git): Method name typo in a Tk sample
* ext/tk/sample/tktextio.rb: trancate => truncate
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:58 AM Revision 87c817fa (git): ivar name typo in a Tk sample
* ext/tk/sample/tktextio.rb: @opne => @open
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:58 AM Revision e04b5c3e (git): Typo in Tk samples
* ext/tk/sample/demos-en/goldberg.rb: miliseconds => milliseconds
* ext/tk/sample/demos-jp/goldberg.rb: miliseconds => milliseconds
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:58 AM Revision 2cf20887 (git): Method name typo in Tk samples
* ext/tk/sample/demos-en/ctext.rb: seleect_adjust => select_adjust
* ext/tk/sample/demos-jp/ctext.rb: seleect_adjust => select_adjust
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:58 AM Revision 2c58327f (git): Typo in a Tk sample
* ext/tk/sample/tkextlib/bwidget/tree.rb: allways => always
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:58 AM Revision d7bd91ef (git): Typo in a Tk sample
* ext/tk/sample/demos-jp/mclist.rb: aquq => aqua
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:57 AM Revision 01469b0b (git): Typo in a gvar name
* ext/tk/sample/demos-jp/hscale.rb: $hscale_deom => $hscale_demo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:57 AM Revision e75a0614 (git): Typo in Tk samples
* ext/tk/sample/demos-en/ttkbut.rb: happyness => happiness
* ext/tk/sample/demos-jp/ttkbut.rb: happyness => happiness
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:57 AM Revision 97d1dbad (git): Typos in messages
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matsuda (Akira Matsuda)
09:57 AM Revision 73a37eb3 (git): Documentation typos
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
09:57 AM Revision 98e3c058 (git): Typo: widget (?)
* ext/tk/lib/tk.rb: wiget => widget
* ext/tk/sample/demos-en/{floor.rb,floor2.rb,puzzle.rb}: widet => widget
* ext/tk/sample/demos-en/textpeer.rb: Wdget => widget
* ext/tk/sample/demos-jp/puzzle.rb: widet => widget
* ext/tk/sample/demos-...
matsuda (Akira Matsuda)
09:32 AM Bug #11897 (Rejected): Hash key typo in Tk
ext/tk/lib/tkextlib/blt/tree.rb: disctionary => dictionary matsuda (Akira Matsuda)
09:31 AM Bug #11896 (Rejected): Local variable name typo in Tk
ext/tk/lib/tkextlib/pkg_checker.rb: sccess_list => success_list matsuda (Akira Matsuda)
09:30 AM Bug #11895 (Rejected): Method name typo in Tk (configure, configinfo)
* ext/tk/lib/tkextlib/tcllib/crosshair.rb: confugure => configure
* ext/tk/lib/tkextlib/tcllib/crosshair.rb: confuginfo => configinfo
matsuda (Akira Matsuda)
09:28 AM Bug #11894 (Rejected): Tk method name typo (sortcolumn, sortcolumnlist)
ext/tk/lib/tkextlib/tcllib/tablelist_core.rb: sortcolum => sortcolumn
ext/tk/lib/tkextlib/tcllib/tablelist_core.rb: sortcolumlist => sortcolumnlist
matsuda (Akira Matsuda)
09:26 AM Bug #11893 (Closed): Ruby keyword typo in Tk (require)
ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb: requrie => require matsuda (Akira Matsuda)
09:25 AM Bug #11892 (Rejected): Ruby keyword typo in Tk (return)
ext/tk/lib/tkextlib/iwidgets/tabset.rb: reutrn => return matsuda (Akira Matsuda)
09:23 AM Bug #11891 (Closed): Initializer method name typo in Tk
ext/tk/lib/tkextlib/tcllib/toolbar.rb: initaialize => initialize matsuda (Akira Matsuda)
09:22 AM Bug #11890 (Closed): Initializer method name typo in Tk
ext/tk/lib/tkextlib/blt/tree.rb: initialzie => initialize matsuda (Akira Matsuda)
09:21 AM Bug #11889 (Rejected): Constant name typo in Tk
ext/tk/lib/tkextlib/blt/component.rb: LegenedID_TBL => LegendID_TBL matsuda (Akira Matsuda)
09:20 AM Bug #11888 (Rejected): Method name typo in Tk
ext/tk/lib/tk/canvas.rb: kinad_of? => kind_of? matsuda (Akira Matsuda)
09:17 AM Bug #11887 (Rejected): Local variable name typo in Tk
There's a variable name typo in ext/tk/lib/remote-tk.rb.
I haven't actually run the code, but this shouldn't be working...
matsuda (Akira Matsuda)
09:12 AM Bug #11886: Font name typo in Tk library and samples
Attached a patch. matsuda (Akira Matsuda)
09:11 AM Bug #11886 (Closed): Font name typo in Tk library and samples
There are some occurrences of "Helvetia 12 bold".
Shouldn't this be "Helvetica"?
matsuda (Akira Matsuda)
09:08 AM Revision 2a4729a4 (git): Fix rdoc for String#rstrip!, lstrip! [ci skip]
* string.c (rb_str_lstrip_bang, rb_str_rstrip_bang): [DOC] Fix
ruby-doc comments for String#rstrip! and lstrip!. It looks like
dropped bang. [Fix GH-1175]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53330 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
06:15 AM Bug #11885 (Closed): [PATCH] IO#readpartial rejects bad args
Applied in changeset r53329.
----------
IO#readpartial rejects bad args
Sometimes a sleepy developer will want to swap read_nonblock
for readpartial forget to remove "exception: false"
* io.c (io_getpartial): remove unused kwarg from ...
Anonymous
05:56 AM Bug #11885 (Closed): [PATCH] IO#readpartial rejects bad args
IO#readpartial rejects bad args
Sometimes a sleepy developer will want to swap read_nonblock
for readpartial forget to remove "exception: false"
* io.c (io_getpartial): remove unused kwarg from template
* test/ruby/test_io.rb (te...
normalperson (Eric Wong)
06:15 AM Revision edea151a (git): IO#readpartial rejects bad args
Sometimes a sleepy developer will want to swap read_nonblock
for readpartial forget to remove "exception: false"
* io.c (io_getpartial): remove unused kwarg from template
* test/ruby/test_io.rb (test_readpartial_bad_args): new
[Bug #1...
Eric Wong
02:50 AM Revision 509cfc4c (git): Add tests for String#lstrip and rstrip
* test/ruby/test_string.rb (test_rstrip, test_lstrip): Add tests
for String#lstrip and rstrip. The test cases are used from
string.c ruby-doc comments. [Fix GH-1174]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53328 b2dd03c8...
nobu (Nobuyoshi Nakada)
02:49 AM Bug #11883 (Closed): Endless loop when installing bundle gems
Problem disappeared. Maybe fixed by r53324 or r53325, but unclear why. duerst (Martin Dürst)
12:21 AM Bug #11883: Endless loop when installing bundle gems
The value in "ruby -v" is what I get back when just typing that command. However, the process I have to kill is clearly marked as "Ruby interpreter (CUI) 2.4.0dev [x86_64-cygwin]". duerst (Martin Dürst)
12:19 AM Bug #11883 (Closed): Endless loop when installing bundle gems
When trying to compile/install ruby with "make up; make install", everything stalls when trying to install bundle gems (see below for output). An instance of ruby can be observed taking up all CPU time available. This is usually a very f... duerst (Martin Dürst)
02:47 AM Revision 5a75eabe (git): Add test for String#test_insert.
* test/ruby/test_string.rb (test_insert): The test cases are
written in string.c comments as a reference. [Fix GH-1173]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:03 AM Revision aaf99a76 (git): parse.y: show_bitstack
* parse.y (show_bitstack): trace stack_type value if yydebug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:51 AM Revision bff89a03 (git): depend: version dependency
* enc/depend (enc, trans): fix version dependency, let encoding
and transcoding shared object files depend on config.status,
instead of enc.mk which is regenerated at each build, for the
RUBY_SO_NAME value used at runtime link.
gi...
nobu (Nobuyoshi Nakada)
01:03 AM Revision c7b2450e (git): depend: version dependency
* enc/depend (enc, trans): fix version dependency, shared object
files depend on the RUBY_SO_NAME value for runtime link.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:48 AM Bug #11880 (Closed): blank string makes Win32ole crush
Applied in changeset r53322.
----------
* ext/win32ole/win32ole.c (ole_vstr2wc, ole_variant2val): fix blank
string conversion.
[Bug #11880]
Thanks Akio Tajima for the patch!
suke (Masaki Suketa)
12:48 AM Revision d644f760 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:48 AM Revision 2a16594d (git): * ext/win32ole/win32ole.c (ole_vstr2wc, ole_variant2val): fix blank
string conversion.
[Bug #11880]
Thanks Akio Tajima for the patch!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
suke (Masaki Suketa)
12:46 AM Bug #11884 (Closed): Psych.load broken for OpenStruct in Ruby 2.3.0
Deserialising an OpenStruct through Psych::load results in a nil error since OpenStruct now has a respond_to_missing? method whose implementation references OpenStruct's @table instance variable.
To reproduce this issue simply use Psy...
kaikuchn (Kai Kuchenbecker)
12:35 AM Revision 0a787b9d (git): * 2015-12-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:34 AM Revision c7d317cc (git): `nul` should be uppercase [ci skip]
* doc/extension.rdoc: [DOC] `nul` should be uppercase.
change 'nul' => 'NUL'. [Fix GH-1172]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/26/2015

08:57 PM Feature #11882: Map or NamedMap
Sorry, forgot to add that the literal syntax would support all currently supported string-key variations that Hash does...
~~~
{{"a" => true}}
{{a: true}}
{{:a => true}}
~~~
Map.new would merge in standard Hashes string keys, u...
hcatlin (Hampton Catlin)
08:28 PM Feature #11882 (Assigned): Map or NamedMap
Hash is one of the best features of Ruby. I remember being so pleased when I first learned Ruby to find out that *anything* could be a key and that you could do some really clever things with scripts, if you key of non-traditional elemen... hcatlin (Hampton Catlin)
08:24 PM Bug #11881 (Closed): Ruby build uses SDKROOT as if it owns it
This is incompatible with the way SDKROOT is used by ios/osx developers, and prevents ruby from building on osx.
change was added here:
https://github.com/ruby/ruby/commit/e98f7ea423b08222b6eceda945613040c7b08a09#diff-7f2d280dffee5d0...
CamJN (Camden Narzt)
03:01 PM Bug #11880 (Closed): blank string makes Win32ole crush
Win32OLEのオブジェクトに空文字列を与えるとクラッシュします。
再現スクリプト(method_missing側)
~~~ruby
require 'win32ole'
shell = WIN32OLE.new('WScript.Shell')
shell.Popup('')
~~~
逆方向(COMコンポーネント側からの空文字列==`SysAllocStringLen(0)`のBSTRについても同様です。
添付のパッチで双方向とも修正...
arton (Akio Tajima)
02:52 PM Feature #11879 (Closed): `Module#prepended_modules`
`Module#included_modules` include prepended modules:
~~~ruby
module A; end
module B; end
A.prepend B
A.included_modules # => [B]
~~~
This is confusing, and is not useful. I think prepended modules should not be included in `Mo...
sawa (Tsuyoshi Sawada)
02:44 PM Bug #11878 (Rejected): Comparison of prepended modules
Including module `B` to class/module `A` gives the following results (as expected):
~~~ruby
module A; end
module B; end
A.include B
A < B # => true
B < A # => false
A <=> B # => -1
~~~
And prepending module `C` to `A` gives ...
sawa (Tsuyoshi Sawada)
02:22 PM Misc #11875: Ruby 2.3.0 now is slowly than php 7
Yui NARUSE wrote:
> You know, this is bug tracker, not socks under the Christmas tree.
> ...
I did not want anything to offend. Sorry.
I said firstly: "Not BUG but wish"
May you point me to "real world performance", "real world a...
Sega100500 (Сергей Е)
01:40 PM Misc #11875 (Closed): Ruby 2.3.0 now is slowly than php 7
You know, this is bug tracker, not socks under the Christmas tree.
Moreover the benchmark you show is micro benchmark.
If we improve Ruby for such micro benchmark, the real performance of Ruby may not be improved.
Because such optim...
naruse (Yui NARUSE)
12:16 PM Misc #11875: Ruby 2.3.0 now is slowly than php 7
Сергей Е wrote:
> I install Ruby 2.3, and compare perfomance (simple tests - loop, recursion) with php 7.
code of tests:
http://inet777.ru/sravnenie-proizvoditelmznosti-ruby-php-i-python-na-linux-x64-intel-core-i5/9516
Sega100500 (Сергей Е)
11:51 AM Misc #11875 (Closed): Ruby 2.3.0 now is slowly than php 7
Not BUG but wish
Always proud of the fact that Ruby - the fastest!
I happy to use Ruby - the BEST language! Thanks for all developers!
I install Ruby 2.3, and compare perfomance (simple tests - loop, recursion) with php 7.
Fo...
Sega100500 (Сергей Е)
02:03 PM Bug #11877 (Closed): Socket.gethostname will fail when the hostname length == RUBY_MAX_HOST_NAME_LEN
When `Socket.gethostname` calls `gethostname()` with a buffer `buf`, the buffer is incorrectly sized (at least on Linux systems).
`RUBY_MAX_HOST_NAME_LEN` is defined as `HOST_NAME_MAX` and the buffer `buf` is sized as `RUBY_MAX_HOST_NAM...
nsheridan (Niall Sheridan)
12:55 PM Misc #11876: Scheduled maintenance 2016/01/01
Thanks for your work.
Could you change my ("kou" account's) key to https://github.com/kou.keys in the upgrade?
I'm using id_dsa.pub on svn.ruby-lang.org. I want to change my key to id_rsa.pub (the above key).
kou (Kouhei Sutou)
12:45 PM Misc #11876 (Closed): Scheduled maintenance 2016/01/01
In 2016/01/01, I will be upgrading our subversion server named svn.ruby-lang.org.
It uses debian squeeze-lts now. squeeze-lts will end until Feb 2016. ref https://wiki.debian.org/LTS
I will upgrade it to debian jessie.
We will mak...
hsbt (Hiroshi SHIBATA)
10:01 AM Revision 5f0b598e (git): Revert "* tool/post-commit.sh: copied from svn server."
manged in another repo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:36 AM Bug #11489: XMLRPC client cannot alter SSL options for _async calls
Thanks for your report.
```ruby
xmlrpc_client.http.ca_file = @options[:ca_file]
```
works with
```ruby
xmlrpc_client.call_async(...)
```
on trunk.
kou (Kouhei Sutou)
09:33 AM Bug #11489 (Closed): XMLRPC client cannot alter SSL options for _async calls
Applied in changeset r53318.
----------
* lib/xmlrpc/client.rb: Support SSL options in async methods of
XMLRPC::Client.
[Bug #11489]
Reported by Aleksandar Kostadinov. Thanks!!!
kou (Kouhei Sutou)
09:33 AM Revision 3d8e4d60 (git): * lib/xmlrpc/client.rb: Support SSL options in async methods of
XMLRPC::Client.
[Bug #11489]
Reported by Aleksandar Kostadinov. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
09:26 AM Revision 548cb582 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:25 AM Revision c0aef8ca (git): * tool/post-commit.sh: copied from svn server.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:37 AM Bug #11874 (Closed): File.realpath fail on volume mount point directory
'C:\AAA' is a volume mount point.
When run "File.realpath 'C:\AAA'" it reports:
-e:1:in `realpath': No such file or directory @ realpath_rec - C:/Volume{b0513fa8-eb82-4aa7-92f4-bafb0d0d9220} (Errno::ENOENT)
from -e:1:in `<ma...
personnel (Am I Who)
03:53 AM Bug #11873 (Closed): Syntax error and parse problem when calling a method without parentheses
In the following case, syntax error rises when calling a method without parentheses.
~~~ruby
a b{c d}, :e do end #=> syntax error(should be syntax ok)
a b(c d), :e do end #=> syntax error(should be syntax ok)
a b{c(d)}, :e do end #...
tompng (tomoya ishida)
02:26 AM Bug #11872 (Closed): Use 'ASCII-8BIT', not 'binary', for miniruby
Applied in changeset r53315.
----------
miniinit.c: built-in encoding aliases
* miniinit.c (Init_enc): add some common aliases of built-in
encodings. [ruby-core:72481] [Bug #11872]
nobu (Nobuyoshi Nakada)
01:39 AM Bug #11872 (Closed): Use 'ASCII-8BIT', not 'binary', for miniruby
I get the following error when trying to compile ruby trunk:
[short version; long version below]
.ext/common/openssl/buffering.rb:1: unknown encoding name: binary (ArgumentError)
miniruby does not seem to know the 'binary' encoding,...
duerst (Martin Dürst)
02:26 AM Revision 91946271 (git): miniinit.c: built-in encoding aliases
* miniinit.c (Init_enc): add some common aliases of built-in
encodings. [ruby-core:72481] [Bug #11872]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/25/2015

07:35 PM Misc #11516 (Closed): Ruby 2.3.0 release engeneering
naruse (Yui NARUSE)
04:24 PM Revision 8c327b7f (git): program version from API version
* configure.in, version.h (RUBY_PROGRAM_VERSION): extract version
numbers from API version in include/ruby/version.h except for
TEENY, to save matz job next year.
* win32/setup.mak (-version-): use program version.
git-svn-id: svn+s...
nobu (Nobuyoshi Nakada)
04:20 PM Bug #11871 (Closed): Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content
Heredoc unindentation with `<<~` works as expected when the identifier is bare or double-quoted:
~~~
s = <<~_
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
or
~~~
s = <<~"_"
fiwfewifj...
sawa (Tsuyoshi Sawada)
03:02 PM Revision 73d8cbb6 (git): * 2015-12-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:02 PM Revision 00a47cf6 (git): setup.mak: split release date
* win32/setup.mak (verconf.mk): split release date into year,
month, and day.
* common.mk (RUBY_RELEASE_DATE): move from Makefile.in to share
with win32/setup.mak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53312 b2dd03c8-39...
nobu (Nobuyoshi Nakada)
02:50 PM Revision 59fc8426 (git): setup.mak: follow up r53310
* win32/setup.mak (verconf.mk): no longer appends, and escape
dollar.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:46 PM Revision fd236be2 (git): setup.mak: follow up r53303
* win32/setup.mak (verconf.mk): follow up r53303. needs STRINGIZE
now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:57 PM Revision 01d8c7dd (git): version.h: no bot
* version.h (RUBY_RELEASE_MONTH_STR, RUBY_RELEASE_DAY_STR): get
rid of substitution by svn bot.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:53 PM Revision d261b14c (git): * 2015-12-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:53 PM Revision b846f535 (git): version.h: no bot
* version.h (RUBY_RELEASE_MONTH_STR, RUBY_RELEASE_DAY_STR): get
rid of substitution by svn bot.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:48 PM Revision b8dd2827 (git): * 2015-12-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:48 PM Revision 4eeabd4f (git): version.h: no bot
* version.h (RUBY_RELEASE_MONTH_STR, RUBY_RELEASE_DAY_STR): get
rid of substitution by svn bot.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:43 PM Revision 12cda434 (git): * 2015-12-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:43 PM Revision 63ebdd4b (git): version.h: RUBY_RELEASE_DATE from YMD
* configure.in: extract RUBY_RELEASE_DAY at generating Makefile.
* version.h (RUBY_RELEASE_DATE): construct from RUBY_RELEASE_YEAR,
RUBY_RELEASE_MONTH, and RUBY_RELEASE_DAY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53303 b2dd...
nobu (Nobuyoshi Nakada)
12:40 PM Revision fe2123f3 (git): version.h (RUBY_VERSION): 2.4.0 development has started.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matz (Yukihiro Matsumoto)
08:28 AM Misc #11783: Do you have any idea if you have a budgets?
I made a page: https://bugs.ruby-lang.org/projects/ruby/wiki/Donation
ko1 (Koichi Sasada)
07:49 AM Revision 18318ff6 (git): ChangeLog: typo fixes [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
06:31 AM Bug #10286 (Assigned): BigDecimal - inconsistency with other numeric classes
mrkn (Kenta Murata)
06:30 AM Bug #11707 (Rejected): (a * b) / b yields incorrect result when a is BigDecimal & b is Rational with large terms
You can convert to Rational from BigDecimal to use BigDecimal#to_r.
Check the following example:
~~~
require 'bigdecimal'
a = BigDecimal('5.0')
b = 8896443230521/1290320000r
puts ((a.to_r * b) / b) == a
~~~
I think a Bi...
mrkn (Kenta Murata)
05:12 AM Revision 0ab9e706 (git): doc/CangeLog-2.3.0, ext/tk/lib/txextlib/SUPPORT_STATUS,
include/ruby/version.h: minor grammar fixes [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)

12/24/2015

11:24 PM Bug #11870 (Closed): Eradication of typical misspellings
Applied in changeset r53299.
----------
fix common misspelling [ci skip]
* compile.c, cont.c, doc, man: fix common misspelling.
[ruby-core:72466] [Bug #11870]
nobu (Nobuyoshi Nakada)
09:49 AM Bug #11870 (Assigned): Eradication of typical misspellings
nobu (Nobuyoshi Nakada)
03:32 AM Bug #11870 (Closed): Eradication of typical misspellings
(Note: this patch is low priority and I do not complained if this isn't applied to 2.3 release.)
Thanks to the Wikipedia page https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines ,
I've found many misspel...
tad (Tadashi Saito)
11:23 PM Revision 22d8481f (git): fix common misspelling [ci skip]
* compile.c, cont.c, doc, man: fix common misspelling.
[ruby-core:72466] [Bug #11870]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:37 PM Revision 35ef17dc (git): Add ruby_2_3 branch to .travis.yml [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:12 PM Revision 239454dc (git): Add ruby_2_3 branch to .travis.yml
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@53297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:11 PM Revision 9860cf1a (git): merge revision(s) 53294:
ignore exception is the address is IPv6
some environments disables IPv6 even if they have IPv6 addresses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@53296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:06 PM Revision 0674a9c7 (git): * doc/contributing.rdoc: removed the list of branch maintainers because it may
be too old when users see it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:53 PM Revision 6e181393 (git): ignore exception is the address is IPv6
some environments disables IPv6 even if they have IPv6 addresses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:25 PM Revision ac2f601e (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:25 PM Revision 50d537a9 (git): * ChangeLog, NEWS: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:24 PM Revision d1a42edd (git): * doc/{ChangeLog,NEWS}-2.3.0: moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:35 PM Revision 73f7ac1f (git): v2.3.0p0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@53289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:32 PM Revision 29b083f5 (git): stable branch of Ruby 2.3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@53288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:09 PM Revision b58b970d (git): * 2015-12-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:09 PM Revision ea98e52f (git): revert deprecated functions
* error.c (rb_compile_error_with_enc, rb_compile_error),
(rb_compile_bug): revert deprecate internal functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:30 PM Revision 2fd34fa3 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:15 PM Revision 89b32816 (git): iseq.c: narrow down protected region
* iseq.c (rb_iseq_compile_with_option): narrow down protected
region, and check/convert/prepare arguments before setting
base_block which needs to roll back.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53282 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
02:02 PM Revision 5715bee4 (git): * NEWS: added entry for CGI.escapeHTML optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
01:05 PM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
Nobuyoshi Nakada wrote:
> What's `hint`?
> ...
Thank you for starting on this already. I appreciate it.
The hint/location suggestion is what ruby prints indicating where the syntax error occurred.
Sorry, hint is probably the wrong...
jrafanie (Joe Rafaniello)
09:52 AM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
What's `hint`?
https://github.com/ruby/ruby/compare/trunk...nobu:feature/11868-SyntaxError-location
nobu (Nobuyoshi Nakada)
03:06 AM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
Nobuyoshi Nakada wrote:
> [`assert_valid_syntax`](https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L450) may help you.
Thank you for reviewing this so quickly and the suggestion. I forgot that test/unit had ...
jrafanie (Joe Rafaniello)
12:38 AM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
[`assert_valid_syntax`](https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L450) may help you.
nobu (Nobuyoshi Nakada)
11:09 AM Bug #11740: ObjectSpace.each_object exposes internal metaclasses
Looks good now, thanks! Eregon (Benoit Daloze)
09:59 AM Revision 5a536c8f (git): add a ticket number [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:43 AM Revision 94090b05 (git): deprecate exposed internal functions
* error.c (rb_compile_error_with_enc, rb_compile_error),
(rb_compile_bug): deprecate internal functions.
* parse.y (parser_yyerror): construct exception message with
source code and carret.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
nobu (Nobuyoshi Nakada)
08:25 AM Revision 26984290 (git): preserve source file name encoding
* compile.c (append_compile_error), parse.y (compile_error):
preserve encoding of source file name in exceptions.
* error.c (rb_compile_error_str, rb_compile_bug_str): add.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53278 b2dd0...
nobu (Nobuyoshi Nakada)
08:21 AM Revision 8cda3cbb (git): NEWS: reduce redundancy w.r.t Socket+IO [ci skip]
No need to mention the same things in the same document multiple
times. Use numeric references to point to previously-mentioned
items.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
07:21 AM Revision bec6c27f (git): * common.mk (fake.rb): $(arch)-fake.rb must depend miniruby because
it may depend miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:21 AM Revision 026066e9 (git): * common.mk (ripper.c): r50045 wrongly replace $(PWD) with ../..
It is the top of build directory, not topsrcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:39 AM Revision 0f6ccf7c (git): remove empty section [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:39 AM Revision cc5781cf (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:38 AM Revision 0901fc52 (git): remove duplicated ticket number [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:35 AM Revision d9ec53a9 (git): * tool/vcs.rb (IO.popen): Refactor. Avoid assigning in condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sorah (Sorah Fukumori)
06:35 AM Revision b85a7910 (git): * tool/file2lastrev.rb: Fix ArgumentError to work on Ruby 1.8.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sorah (Sorah Fukumori)
06:35 AM Revision 53a606a5 (git): * tool/vcs.rb (IO.popen): Enable on Ruby 1.9 where chdir option is not
supported on IO.popen
* tool/vcs.rb (IO.popen): Fix NoMethodError. I guess r49705 was not
tested... :/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
05:59 AM Revision 43b21442 (git): * NEWS: rename
"Implementation changes" section to
"Supported platform changes" section.
* NEWS: add "Implementation improvements" and add several entries.
* NEWS: add NEWS entries by Eric Wong. [ruby-core:72450]
git-svn-id: svn+ssh://ci.ruby-l...
ko1 (Koichi Sasada)
03:25 AM Bug #11869 (Closed): random hang/SegFault when accessing a missing constant in irb
While testing ruby-2.2.4 on Fedora 22, I noticed that sometimes ruby would hang or segfault when accessing a missing constant within irb.
# Steps to Reproduce
1. /path/to/ruby-2.2.4/bin/irb
2. type "FOO" and press enter
3. Repeat...
postmodern (Hal Brodigan)
02:23 AM Feature #11865: CSV: keep original line when parsing
Here is the pull request for this, https://github.com/ruby/ruby/pull/1170 doni (Doni Leong)
02:21 AM Bug #11867: overriden constant instance variable mismatch
dingo egret wrote:
> ~~~ruby
> ...
You should call super if you want to set the member `a`.
~~~ruby
class A
def initialize(b)
super(b)
@b = b
end
end
~~~
shugo (Shugo Maeda)
12:32 AM Bug #11867 (Feedback): overriden constant instance variable mismatch
Exactly.
What do you expect instead?
nobu (Nobuyoshi Nakada)

12/23/2015

08:24 PM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
Note: I also tried ripper and all methods return nil for invalid syntax so RubyVM::InstructionSequence seemed like the easiest place to do this feature since it already has the information I need. jrafanie (Joe Rafaniello)
08:12 PM Feature #11868 (Open): Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
Currently, RubyVM::InstructionSequence.compile or RubyVM::InstructionSequence.new return a new InstructionSequence for valid ruby.
For invalid syntax, a SyntaxError is raised with a message of 'compile error'. Meanwhile, the useful i...
jrafanie (Joe Rafaniello)
07:34 PM Bug #11867 (Closed): overriden constant instance variable mismatch
~~~ruby
A = Struct.new(:a)
A.new(1)
#<struct A a=1>
class A
def initialize(b)
@b = b
end
end
A.new(1)
#<struct A a=nil>
~~~
Is this expected?
dingoegret (dingo egret)
03:26 PM Revision 7f71cdcf (git): * 2015-12-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:26 PM Bug #11866 (Closed): (mingw32) Cannot install or update io-console
Applied in changeset r53266.
----------
io/console: fix gem build failure on Windows
* ext/io/console/extconf.rb: fix gem build failure on Windows.
only win32_vk.inc is included in the gem and no dependencies for
the header, so tha...
nobu (Nobuyoshi Nakada)
10:42 AM Bug #11866 (Feedback): (mingw32) Cannot install or update io-console
Sorry, some files are missing.
Could you try http://www.rubyist.net/~nobu/ruby/io-console-0.4.4.gem ?
nobu (Nobuyoshi Nakada)
09:57 AM Bug #11866 (Closed): (mingw32) Cannot install or update io-console
`gem update` fails because it tries to update io-console, which cannot update (or install) itself.
Here's the full output:
~~~
λ gem install io-console
Temporarily enhancing PATH to include DevKit...
Building native extensions. ...
thany (Martijn Saly)
03:26 PM Revision 12a2e17a (git): io/console: fix gem build failure on Windows
* ext/io/console/extconf.rb: fix gem build failure on Windows.
only win32_vk.inc is included in the gem and no dependencies for
the header, so that gperf will not be mandatory.
[ruby-core:72453] [Bug #11866]
* ext/io/console/io-con...
nobu (Nobuyoshi Nakada)
02:58 PM Revision f9adadc5 (git): rb_readwrite_syserr_fail
* io.c (rb_readwrite_syserr_fail): works with the given errno than
thread local errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:57 AM Revision f4166e2d (git): prefer rb_syserr_fail
* file.c, io.c, util.c: prefer rb_syserr_fail with saved errno
over setting errno then call rb_sys_fail, not to be clobbered
potentially and to reduce thread local errno accesses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53...
nobu (Nobuyoshi Nakada)
05:29 AM Revision d15f3088 (git): configure.in: get rid of macro redefinition
* configure.in (__STDC_WANT_LIB_EXT1__): get rid of redefinition
to suppress warnings by gcc5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:15 AM Revision 616b11e2 (git): * version.h: bump to 2.1.9. may this version be the last of 2.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:12 AM Feature #11865 (Closed): CSV: keep original line when parsing
Just like the attribute @lineno in CSV, the CSV parser should keep the last original line when parsing a csv file.
Here is the reason that I want it, I am making a software to parse CSV which user uploaded, and verify the data in the ...
doni (Doni Leong)
03:43 AM Revision 3a05da13 (git): [DOC] Fix typos
* benchmark.rb
* getoptlong.rb
* irb.rb
* net/http.rb
* net/http/header.rb
* net/imap.rb
* optparse.rb
* pstore.rb
* webrick.rb
* xmlrpc.rb
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53261 b2dd03c8-39d4-4d8f-98ff-823fe...
matsuda (Akira Matsuda)
03:15 AM Bug #11864: Resolv incorrectly accepts invalid hostnames and caches records between sessions
Correction.
The previous result was when VPN is connected, and the answer seemed a list of private addresses over VPN.
After disconnecting the VPN, an empty list returned.
I'm not sure if this is your case, however, check your net...
nobu (Nobuyoshi Nakada)
03:11 AM Bug #11864 (Third Party's Issue): Resolv incorrectly accepts invalid hostnames and caches records between sessions
It returned an empty list for an empty name on Darwin 15, but returned a random list on Darwin 14.
Seems a bug of OS X 10.10.
You may want to request Apple to backport the fix.
nobu (Nobuyoshi Nakada)
01:41 AM Bug #11864: Resolv incorrectly accepts invalid hostnames and caches records between sessions
Assigning directly to Akira Tanaka, the Resolv maintainer per https://bugs.ruby-lang.org/projects/ruby/wiki/MaintainersStdlib breadtk (Osman Surkatty)
01:37 AM Bug #11864 (Third Party's Issue): Resolv incorrectly accepts invalid hostnames and caches records between sessions
Hello,
While working on a DNS related project I noticed that Resolv's `getaddresses()` and `getaddress()` functions will incorrectly accepts an empty `String` and additionally returns a cached record if a new IRB session is invoked. `...
breadtk (Osman Surkatty)
03:02 AM Revision adc08985 (git): * string.c: Fix document. Default value of the first
argument of `String#split` is not `$;` but `nil`.
When `nil` is passed as first argument, `$;` is used.
[ci skip] [Bug #11729] [ruby-dev:49378]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53260 b2dd03c8-39d4-4d8f-98ff-823fe69b...
yui-knk (Kaneko Yuichiro)

12/22/2015

10:28 PM Bug #11862 (Closed): [PATCH] ext/socket/init.c (rsock_init_sock): reject reserved FDs
Applied in changeset r53259.
----------
ext/socket/init.c (rsock_init_sock): reject reserved FDs
[ruby-core:72445] [Bug #11862]
Anonymous
09:59 PM Bug #11862: [PATCH] ext/socket/init.c (rsock_init_sock): reject reserved FDs
Indeed, it seems necessary. nobu (Nobuyoshi Nakada)
07:43 PM Bug #11862 (Closed): [PATCH] ext/socket/init.c (rsock_init_sock): reject reserved FDs
We've had this bug for years, but writing a portable test for it could
be challenging. I think it is safe to commit w/o tests; on the other hand
I doubt anybody would really care if it's fixed before 2.3 since we've
had this bug sinc...
normalperson (Eric Wong)
10:28 PM Revision 1abef5bd (git): ext/socket/init.c (rsock_init_sock): reject reserved FDs
[ruby-core:72445] [Bug #11862]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
09:25 PM Bug #11863 (Closed): configure/makefile needs to follow the standard behavior
Hello,
I'm the current OpenWRT maintainer of ruby packages.
However, configure/makefile for ruby has some exotic usages.
LDFLAGS is used only for execs
DLDFLAGS for libraries
XLDFLAGS for extra options for both.
Normally, it ...
luizluca (Luiz Angelo Daros de Luca)
09:17 PM Bug #11849: Heredoc regression in 2.2.4
Backported into `ruby_2_2` branch at r53258.
Are there any concrete gems which is affected by this regression?
I want to know the severity of this issue in the real world.
nagachika (Tomoyuki Chikanaga)
09:16 PM Revision 9c6779f5 (git): merge revision(s) 53214,53215: [Backport #11849]
* parse.y (parser_yylex): allow here documents in labeled
argument. [ruby-core:72396] [Bug #11849]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@53258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
09:04 PM Bug #11833: 2.2.4 syntax error when naked percent notation touches keyword arguments
Thank you for your report and notice.
I've just backport at r53257.
Are there any concrete gems which is affected by this regression?
I want to know the severity of this issue in the real world.
nagachika (Tomoyuki Chikanaga)
08:59 PM Bug #11833 (Closed): 2.2.4 syntax error when naked percent notation touches keyword arguments
Applied in changeset backport22:r53257.
----------
merge revision(s) 53092,53093: [Backport #11812] [Backport #11833]
* parse.y (parse_percent): Allow %-literals in labeled arg as
r51624 did for parentheses.
Fixes [ruby-core:720...
nagachika (Tomoyuki Chikanaga)
08:59 PM Bug #11812: Lack of space between colon and % literal causes syntax error
Backported into `ruby_2_2` branch at r53257. nagachika (Tomoyuki Chikanaga)
08:59 PM Revision 3b3500c6 (git): merge revision(s) 53092,53093: [Backport #11812] [Backport #11833]
* parse.y (parse_percent): Allow %-literals in labeled arg as
r51624 did for parentheses.
Fixes [ruby-core:72084] [Bug #11812].
* test/ruby/test_syntax.rb: fix typo in test
git-svn-id: svn+ssh://ci.ruby-lan...
nagachika (Tomoyuki Chikanaga)
08:16 PM Revision 89df822b (git): bump version to 2.2.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@53256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
08:00 PM Revision 299e5e52 (git): NEWS: add hint for Redmine URLs with issue number [ci skip]
This may not be obvious to folks who do not follow Ruby
development.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
06:20 PM Revision f4cacdc4 (git): Revert r53253. naruse fixed it differently in r53244
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
06:08 PM Revision 5e183c72 (git): test/socket/test_basicsocket.rb: attempt fix for [ruby-cvs:60402]
I'm not sure how fstat on fd=-1 can succeed on some systems...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
05:59 PM Revision b9576e7d (git): configure.in: define __STDC_WANT_LIB_EXT1__
* configure.in (__STDC_WANT_LIB_EXT1__): necessary to use memset_s
in strict C99 mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:34 PM Revision 9fb59681 (git): regexec.c: fix build with direct threaded VM
* regexec.c (match_at): move direct threaded VM code to get rid of
mixed declarations and code, and enable it only for gcc since it
depends on a gcc extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53251 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
05:30 PM Revision 03cc02c9 (git): * gems/bundled_gems: Upgrade the did_you_mean gem to 1.0.0
* NEWS: Add news about the did_you_mean gem
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Yuki Nishijima
05:18 PM Revision e6be17c7 (git): Fix typo in contributing docs [ci skip]
* doc/contributing.rdoc: [DOC] remove an extra word "here".
[Fix GH-1169]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:58 PM Revision 6e767dd0 (git): regexec.c: enable direct threaded VM
* regexec.c (USE_DIRECT_THREADED_VM): enable direct threaded VM by
the default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:49 PM Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Hi Matz, do you have any reactions to the above? colindkelley (Colin Kelley)
04:41 PM Revision 73cc8295 (git): * 2015-12-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:41 PM Revision 08aa1cd1 (git): test_rdoc_generator_json_index.rb: open in binmode
* test/rdoc/test_rdoc_generator_json_index.rb (test_generate_gzipped):
open a gzipped file in binary mode, since it is binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 PM Bug #11820 (Closed): Please bump version of all bundled gems prior Ruby 2.3 release
io-console 0.4.4 is released by nobu. hsbt (Hiroshi SHIBATA)
01:19 PM Bug #11820: Please bump version of all bundled gems prior Ruby 2.3 release
mrkn bumped bigdecimal-1.2.8
> nobu
Can you release new version of io/console and bump version?
hsbt (Hiroshi SHIBATA)
12:15 PM Bug #11820: Please bump version of all bundled gems prior Ruby 2.3 release
I released psych-2.0.17, and zzak released rdoc-4.2.1 hsbt (Hiroshi SHIBATA)
01:56 PM Revision 52c3b2eb (git): io-console.gemspec: BSD-2-Clause
* ext/io/console/io-console.gemspec: change the license to
BSD-2-Clause since "ruby" is no longer valid license as gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:45 PM Revision 4eac2e83 (git): fix r53231: raise Errno::EBADF like other OSes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:16 PM Bug #11740 (Closed): ObjectSpace.each_object exposes internal metaclasses
Applied in changeset r53243.
----------
gc.c: do not expose internal singleton class
* gc.c (internal_object_p): should not expose singleton classes
without a metaclass. based on patches by ko1 and shugo.
[Bug #11740]
* class.c (r...
nobu (Nobuyoshi Nakada)
02:36 AM Bug #11740: ObjectSpace.each_object exposes internal metaclasses
Koichi Sasada wrote:
> Maybe I missed some points.
> ...
You shouldn't hide singleton classes of non-class objects.
```diff
diff --git a/gc.c b/gc.c
index 12be1ea..a574656 100644
--- a/gc.c
+++ b/gc.c
@@ -2400,6 +2400,14 @@ int...
shugo (Shugo Maeda)
01:15 PM Revision 96ac47c2 (git): gc.c: do not expose internal singleton class
* gc.c (internal_object_p): should not expose singleton classes
without a metaclass. based on patches by ko1 and shugo.
[Bug #11740]
* class.c (rb_singleton_class_object_p): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
nobu (Nobuyoshi Nakada)
01:15 PM Revision 3f90a4ae (git): io-console.gemspec: bump up
* ext/io/console/io-console.gemspec: bump up to 0.4.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:11 PM Revision 9d57cf88 (git): * NEWS: Added news entry of Psych 2.0.17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
01:09 PM Revision a823014f (git): * NEWS: Added news entry of RDoc 4.2.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:20 PM Revision d9bddfda (git): * ext/bigdecimal/bigdecimal.gemspec: bump version to 1.2.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
12:08 PM Revision 145433d9 (git): * lib/rdoc.rb: bump version to 4.2.1. It contains following fixes.
https://github.com/rdoc/rdoc/pull/340
https://github.com/rdoc/rdoc/pull/341
https://github.com/rdoc/rdoc/pull/367
https://github.com/rdoc/rdoc/pull/368
* lib/rdoc/*: ditto.
* test/rdoc/*: ditto.
git-svn-id: svn+ssh://ci.ruby-lang....
hsbt (Hiroshi SHIBATA)
12:08 PM Bug #11861 (Closed): `zip` with `&symbol` causes segmentation error
nobu (Nobuyoshi Nakada)
11:33 AM Bug #11861 (Closed): `zip` with `&symbol` causes segmentation error
This code (`:foo` can be replaced with a different method, defined or not defined):
[].zip([], &:foo)
causes a segmentation error:
~~~
(irb):1: [BUG] Segmentation fault at 0x00000000e1112c
ruby 2.3.0preview2 (2015-12-11 tr...
sawa (Tsuyoshi Sawada)
11:25 AM Revision 618035b5 (git): * ext/psych/lib/psych.rb: bump version to 2.0.17
* ext/psych/psych.gemspec: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
11:20 AM Bug #11829 (Closed): [PERF] Benchmark of vm1_yield
Applied in changeset r53236.
----------
* vm_insnhelper.c: move vm_callee_setup_block_arg() (and related
functions) to the latter location.
This moving recovers performance a little.
[Bug #11829]
ko1 (Koichi Sasada)
11:20 AM Revision 11f4334f (git): * vm_insnhelper.c: move vm_callee_setup_block_arg() (and related
functions) to the latter location.
This moving recovers performance a little.
[Bug #11829]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:59 AM Bug #11860: Double splat does not work on empty hash assigned via variable
I found more cases (other than via variable) that the double splat does not work on an empty hash. While parenthesis or nesting does not cause the issue:
```ruby
[**({})] # => []
[**begin {} end] # => []
[**{**{}}] # => []
```
...
sawa (Tsuyoshi Sawada)
08:33 AM Bug #11860 (Closed): Double splat does not work on empty hash assigned via variable
When an empty hash is given as a literal, the double splat operates on it, and leaves nothing, which is expected.
```ruby
class String
def foo; end
end
[**{}] # => []
"foo".foo(**{}) # => nil
"foo".send("foo", **{}) # => nil...
sawa (Tsuyoshi Sawada)
08:22 AM Misc #10766 (Feedback): Build failed generating RDoc documentation
I cannot reproduce this on trunk, and on ruby_2_2 branch.
Please comment/open a ticket if you are still experiencing this issue.
zzak (zzak _)
08:16 AM Bug #11859 (Rejected): Regexp matching with \p{Upper} and \p{Lower} for EUC-JP doesn’t work.
U+FF21 (A, FULLWIDTH LATIN CAPITAL LETTER A) and U+00c0 (À, LATIN CAPITAL LETTER A WITH GRAVE) is `Uppercase_Letter` so it should match and return 0 in following case but this returns 1.
~~~
ruby -e 'puts "\uFF21A".encode("EUC-JP") =...
matsui (Kimihito Matsui)
06:21 AM Revision 9da8a297 (git): string.c: no exception on dummy encoding
* string.c (str_compat_and_valid): as scrub does nothing for dummy
encoding string now, incompatible encoding is not a matter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:31 AM Bug #11858 (Closed): CGI.escapeHTML should NOT return frozen string
Applied in changeset r53234.
----------
escape.c: should not freeze
* ext/cgi/escape/escape.c (optimized_escape_html): CGI.escapeHTML
should return unfrozen new string.
[ruby-core:72426] [Bug #11858]
nobu (Nobuyoshi Nakada)
03:09 AM Bug #11858: CGI.escapeHTML should NOT return frozen string
Attached a suggested patch.
This patch also adds some tests for not-modified patterns.
Tietew (Toru Iwase)
02:56 AM Bug #11858 (Closed): CGI.escapeHTML should NOT return frozen string
After r53220, following snippet fails.
~~~
$ ./ruby -rcgi -ve 'p CGI.escapeHTML("Hello, ".freeze) << "world."'
ruby 2.3.0dev (2015-12-22 trunk 53233) [x86_64-linux]
-e:1:in `<main>': can't modify frozen String (RuntimeError)
~~~
...
Tietew (Toru Iwase)
05:31 AM Revision 10a129ce (git): escape.c: should not freeze
* ext/cgi/escape/escape.c (optimized_escape_html): CGI.escapeHTML
should return unfrozen new string.
[ruby-core:72426] [Bug #11858]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/21/2015

11:55 PM Bug #11841: StringIO with read and `nil, ''` arguments broken with enabled frozen string literal
Thanks. In fact, I didn't realized the second argument is actually a buffer. My mistake deepj (deepj #)
10:28 PM Bug #11857 (Closed): Segmentation Fault in readline
I'm using a rails environment and this bug happens after I put rspec gem in my Gemfile and run a bundle install.
The log generated after segmentation is attachment and I'm available for further clarifications about the bug.
The bug...
niltonvasques (Nilton Vasques)
08:40 PM Bug #11855 (Closed): CGI.escapeHTML and taint/frozen
Applied in changeset r53233.
----------
escape.c: Preserve original state
* ext/cgi/escape/escape.c (preserve_original_state): Preserve
original state for tainted and frozen. [Fix GH-1166]
[ruby-dev:49451] [Bug #11855]
nobu (Nobuyoshi Nakada)
03:01 PM Bug #11855: CGI.escapeHTML and taint/frozen
ご報告ありがとうございます。修正パッチを書きました。
https://github.com/ruby/ruby/pull/1166
k0kubun (Takashi Kokubun)
02:22 PM Bug #11855 (Closed): CGI.escapeHTML and taint/frozen
taint フラグや frozen の扱いが変わってしまっているようです。
~~~
% ruby -v -r cgi -e 'p CGI.escapeHTML("".taint).tainted?'
ruby 2.3.0dev (2015-12-21 trunk 53230) [x86_64-darwin14]
true
% ruby -v -r cgi -e 'p CGI.escapeHTML("&".taint).tainted?'
ruby 2.3...
znz (Kazuhiro NISHIYAMA)
08:40 PM Revision 1b107d48 (git): escape.c: Preserve original state
* ext/cgi/escape/escape.c (preserve_original_state): Preserve
original state for tainted and frozen. [Fix GH-1166]
[ruby-dev:49451] [Bug #11855]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53233 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
06:58 PM Bug #11854 (Closed): Socket.for_fd(-1) causes segmentaion fault on mingw32.
Applied in changeset r53231.
----------
avoid rb_bug on BasicSocket.for_fd(-1)
* ext/socket/init.c (rsock_init_sock): check FD after validating
* test/socket/test_basicsocket.rb (test_for_fd): new
[ruby-core:72418] [Bug #11854]
Anonymous
06:57 PM Bug #11854: Socket.for_fd(-1) causes segmentaion fault on mingw32.
Will commit patch as-is since 2.3 release is soon.
normalperson (Eric Wong)
10:18 AM Bug #11854: Socket.for_fd(-1) causes segmentaion fault on mingw32.
Proposed fix (not sure about the error message saying "fstat(2)", now...)

Subject: [PATCH] avoid rb_bug on BasicSocket.for_fd(-1)

* ext/socket/init.c (rsock_init_sock): check FD after validating
* test/socket/test_basicsocket.rb ...
normalperson (Eric Wong)
09:43 AM Bug #11854 (Closed): Socket.for_fd(-1) causes segmentaion fault on mingw32.
The following command causes segmentation fault on mingw32 built version
~~~
C:>ruby -rsocket -ve 'Socket.for_fd(-1)'
~~~
~~~
-e:1: [BUG] rb_update_max_fd: invalid fd (-1) given.
ruby 2.3.0dev (2015-12-20 trunk 53220) [i386-mingw...
phasis68 (Heesob Park)
06:58 PM Revision 8e4c5d3a (git): * 2015-12-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:57 PM Revision 409e53de (git): avoid rb_bug on BasicSocket.for_fd(-1)
* ext/socket/init.c (rsock_init_sock): check FD after validating
* test/socket/test_basicsocket.rb (test_for_fd): new
[ruby-core:72418] [Bug #11854]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53231 b2dd03c8-39d4-4d8f-98ff-823fe...
Eric Wong
05:13 PM Bug #11856 (Rejected): Segmentation fault
/Users/mac/MyCRUD/vendor/cache/ruby/2.0.0/gems/json-1.8.3/lib/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin14.5.0]
-- Crash Report log information -------------------------...
alinbizau (Bizau Alin)
04:05 PM Bug #11742: lib/webrick/utils.rb:196:in `register': ERROR RuntimeError: can't add a new key into hash during iteration
additional commit for this issue: r53201 ngoto (Naohisa Goto)
12:35 PM Bug #11853 (Closed): "variable.c line 43: warning: modification of typedef with int ignored" on Solaris
Applied in changeset r53230.
----------
* variable.c (struct ivar_update): rename "extended" to "iv_extended"
to avoid name conflict with /usr/include/floatingpoint.h on
Solaris. [Bug #11853] [ruby-dev:49448]
ngoto (Naohisa Goto)
09:38 AM Bug #11853 (Closed): "variable.c line 43: warning: modification of typedef with int ignored" on Solaris
おそらく r50678 以降、Solaris 10 上の Oracle Solaris Studio 12.x にて、以下のWarningが出ています。
~~~
"variable.c", line 43: warning: modification of typedef with "int" ignored (E_MODIFY_TYPEDEF_IGNORED)
~~~
該当行周辺は以下のとおりです。(先頭コメントは行番号)
~~~
/* 37:...
ngoto (Naohisa Goto)
12:35 PM Revision 3bf3f825 (git): * variable.c (struct ivar_update): rename "extended" to "iv_extended"
to avoid name conflict with /usr/include/floatingpoint.h on
Solaris. [Bug #11853] [ruby-dev:49448]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
10:34 AM Bug #11740 (Assigned): ObjectSpace.each_object exposes internal metaclasses
This patch breaks rubyspec.
```
1)
ObjectSpace.each_object walks a class and its normal descendants when passed the class's singleton class FAILED
Expected [#<Class:0x00000001860d98>,
#<Class:0x00000001860de8>,
#<Class:0x000000...
ko1 (Koichi Sasada)
09:41 AM Bug #11740 (Closed): ObjectSpace.each_object exposes internal metaclasses
Applied in changeset r53228.
----------
* gc.c (internal_object_p): should not expose singleton classes
without a metaclass.
[Bug #11740]
* class.c (rb_singleton_class_has_metaclass_p): added.
* test/ruby/test_class.rb: add a test.
ko1 (Koichi Sasada)
10:32 AM Revision 800607aa (git): revert r53228 because this patch breaks rubyspec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
09:59 AM Bug #11699 (Third Party's Issue): Windows環境の日本語入力で不正な文字が混入する
usa (Usaku NAKAMURA)
09:37 AM Bug #11699: Windows環境の日本語入力で不正な文字が混入する
原因がわかりました。
[ansicon](https://github.com/adoxa/ansicon)をインストールしていたのが良くなかったみたいです。
アンインストールしたところ、正常に出力されました。
~~~
C:\>ruby -e "p gets"

"あ\n"
~~~
お騒がせしました。
h1kb (Taro YAMADA)
09:40 AM Revision 1bcee938 (git): * gc.c (internal_object_p): should not expose singleton classes
without a metaclass.
[Bug #11740]
* class.c (rb_singleton_class_has_metaclass_p): added.
* test/ruby/test_class.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:15 AM Bug #11852 (Closed): test_io.rb fails when maxproc < 1024
Applied in changeset r53227.
----------
* test/ruby/test_io.rb: handled rlimit value same as r52277
[Bug #11852][ruby-dev:49446]
hsbt (Hiroshi SHIBATA)
03:15 AM Revision a7f6b862 (git): * test/ruby/test_io.rb: handled rlimit value same as r52277
[Bug #11852][ruby-dev:49446]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
01:24 AM Revision 268da523 (git): lib/net/http.rb (open_timeout): update default value in RDoc [ci skip]
[ruby-core:72413]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
01:19 AM Bug #11851 (Closed): rb_profile_frames() causes segmentation fault
Applied in changeset r53225.
----------
vm_backtrace.c: ignore ifunc frames
* vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it
did before. [ruby-core:72409] [Bug #11851]
nobu (Nobuyoshi Nakada)
01:18 AM Revision cc52f511 (git): vm_backtrace.c: ignore ifunc frames
* vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it
did before. [ruby-core:72409] [Bug #11851]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:33 AM Revision 8ec531ba (git): * 2015-12-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:33 AM Revision c17e9e07 (git): NotImplementedError typo
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLSocket): fix
NotImplementedError typo. [Fix GH-1165]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom