Project

General

Profile

Activity

From 07/03/2015 to 07/09/2015

07/09/2015

11:44 PM Bug #11342 (Feedback): ruby 2.2.2 will not compile on Solaris 11.2 32 or 64 bit
Anthony Palermo wrote:
> make & sudo make install
> ...
You may want to run `make && sudo make install`.
You can run as `make SUDO=sudo install`.
> ~~~
> ...
Seems some more headers are needed.
Where is `uint8_t` defined on Solal...
nobu (Nobuyoshi Nakada)
10:17 PM Bug #11342: ruby 2.2.2 will not compile on Solaris 11.2 32 or 64 bit
ruby 2.1.x compiles just fine aderium (Anthony Palermo)
10:16 PM Bug #11342 (Closed): ruby 2.2.2 will not compile on Solaris 11.2 32 or 64 bit
~~~
make & sudo make install
[1] 23519
Password:
~~~
(snip)
~~~
option.c:886:33: error: expected declaration specifiers or ‘...’ before ‘u_int8_t’
option.c: In function ‘inspect_tcpi_options’:
option.c:898:5: error: ‘options’ ...
aderium (Anthony Palermo)
11:29 PM Bug #11341 (Third Party's Issue): Rails server command is not working fine
You load an extension library for 2.0 from 2.2.
Probably the usual rvm's bug.
~~~
0 ruby 0x000000010667b98b rb_vm_bugreport + 155
1 ruby 0x000000010651fe80 rb_bug_co...
nobu (Nobuyoshi Nakada)
05:03 PM Bug #11341: Rails server command is not working fine
The file which i uploaded is wrong one. sorry. This is the original one EshVal (Esh Val)
04:59 PM Bug #11341 (Third Party's Issue): Rails server command is not working fine
I wanted to run the rails server command and it's showing some log and it is crashed. EshVal (Esh Val)
11:12 PM Feature #10594: Comparable#clamp
Ferdinand Niedermann wrote:
> Here you go: https://github.com/ruby/ruby/pull/962
The failure condition should be `min > max` rather than `max < min`. It's arguably rather silly to clamp to a single value, but the operation is neverth...
0x0dea (D.E. Akers)
08:28 PM Feature #10594: Comparable#clamp
Here you go: https://github.com/ruby/ruby/pull/962 nerdinand (Ferdinand Niedermann)
07:33 AM Feature #10594: Comparable#clamp
> That `min > max` should raise an `ArgumentError` seems the only logical conclusion.
I agree. I'll send another pull request including that.
nerdinand (Ferdinand Niedermann)
07:54 AM Revision 3e972a11 (git): test_process.rb: test for [Bug #11340]
* test/ruby/test_process.rb (test_wait_exception): test for r51202
and r51203. [Bug #11340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:38 AM Revision b3544b25 (git): * win32/win32.c (waitpid): fixed return value of previous commit. thanks, nobu!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:11 AM Bug #11340 (Closed): Windows で Timeout.timeout を使って Process.waitpid を監視しても timeout が正しく動かない
Applied in changeset r51202.
----------
* win32/win32.c (waitpid): return immediately if interrupted.
reported by <takkanm AT gmail.com> [ruby-dev:49176] [Bug #11340]
usa (Usaku NAKAMURA)
05:00 AM Bug #11340 (Closed): Windows で Timeout.timeout を使って Process.waitpid を監視しても timeout が正しく動かない
以下のような、コードでプロセスの実行時間監視をしていたところ、
Windows とその他の環境で異なります。
~~~ruby
require 'timeout'
pid = Process.spawn('sleep', '10')
puts Time.now
begin
Timeout.timeout(1) {
Process.waitpid(pid)
}
rescue => e
p e
end
puts Time....
takkanm (三村 益隆)
06:10 AM Revision fcb79d53 (git): * win32/win32.c (waitpid): return immediately if interrupted.
reported by <takkanm AT gmail.com> [ruby-dev:49176] [Bug #11340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:16 AM Feature #10829: Add to_proc method to the Array class
Have you seen Functors before?
https://www.ruby-forum.com/topic/4402886
baweaver (Brandon Weaver)
04:04 AM Revision f23adf74 (git): * vm_insnhelper.c (vm_search_super_method): use CI_SET_FASTPATH().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
02:10 AM Revision d53e1a79 (git): * vm_core.h: remove rb_call_info_t::klass because
rb_callable_method_entry_t has information about defined class.
* vm_insnhelper.c (vm_search_method): don't set ci->klass because
it is removed.
* vm_insnhelper.c (rb_equal_opt): ditto.
* vm_insnhelper.c (vm_search_superclass): removed...
ko1 (Koichi Sasada)
01:19 AM Revision ea67287a (git): * lib/net/http/responses.rb: Added 308 status to CODE_TO_OBJ list.
[fix GH-961] Patch by @billinghamj
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:35 AM Revision dc2eb0c6 (git): * vm_core.h (rb_control_frame_t): fix comments (layout index).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
12:27 AM Bug #11327 (Closed): Improve duplicate key warning.
Applied in changeset r51196.
----------
* parse.y: Improve duplicate key warning with patch by @andremedeiros
[Fix GH-938] https://github.com/ruby/ruby/pull/938 [Bug #11327]
zzak (zzak _)
12:27 AM Revision 701024f9 (git): * 2015-07-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:27 AM Revision d5e6c167 (git): * parse.y: Improve duplicate key warning with patch by @andremedeiros
[Fix GH-938] https://github.com/ruby/ruby/pull/938 [Bug #11327]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)

07/08/2015

05:39 PM Bug #11152 (Feedback): Resolv::DNS should use Search Domains provided in /etc/resolv.conf by default
Hi,
It should parse your `/etc/resolv.conf` file. Can you post your `/etc/resolv.conf`? Maybe it's a problem with the parser.
tenderlovemaking (Aaron Patterson)
04:08 PM Feature #10594: Comparable#clamp
> I think there is even another option: Swapping the min and max values if they are passed in the wrong order.
I suspect there is little to no precedent for allowing "position-independent positional arguments". It's true that they cou...
0x0dea (D.E. Akers)
01:00 PM Feature #10594: Comparable#clamp
I think there is even another option: Swapping the min and max values if they are passed in the wrong order.
This is obviously a question of the principle of least surprise. If you compare `#clamp` to `#between?`, it makes sense to ac...
nerdinand (Ferdinand Niedermann)
11:35 AM Revision 39051ba1 (git): leakchecker.rb: close console
* test/lib/leakchecker.rb (LeakChecker#find_fds): close console
before find open FDs for each time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:21 AM Bug #11316: ruby 2.2 on Windows generates incorrect BAT files for gems
Update: just tested with rubygems 2.4.8 and it generates BAT files correctly. I hope this version is planned for inclusion into Windows builds of ruby. jekader (Jeka Der)
10:08 AM Bug #11316: ruby 2.2 on Windows generates incorrect BAT files for gems
Hi and sorry for delay. My gem version is 2.4.5:
~~~
C:\Windows\system32>gem --version
2.4.5
C:\Windows\system32>where gem
C:\Program Files\ruby22\bin\gem
C:\Program Files\ruby22\bin\gem.bat
C:\Windows\system32>rhc --help
'...
jekader (Jeka Der)
11:03 AM Bug #11336: TestProcess#test_exec_fd_3_redirect failed on Solaris 10
> Also, maybe the __APPLE__ || __HAIKU__ code above is suitable for all
OS, too.
I think so, and the following patch solves the failure ofTestProcess#test_exec_fd_3_redirect on Solaris 10.
~~~
Index: process.c
==================...
ngoto (Naohisa Goto)
02:58 AM Bug #11336: TestProcess#test_exec_fd_3_redirect failed on Solaris 10
ngotogenome@gmail.com wrote:
> ~~~
> $ ruby -e 'a = IO.pipe; b = IO.pipe; p a; p b; pid = fork { exec("ruby", "-e", "print IO.for_fd(3).read(1)", 3=>a[0],1=>b[1]) }; b[1].close; a[0].close; a[1].write("."); p b[0].read(1); Process.wai...
normalperson (Eric Wong)
12:47 AM Bug #11336: TestProcess#test_exec_fd_3_redirect failed on Solaris 10
Sometimes ASYNC BUG occurs, but it cannot be reproduced with truss.
~~~
$ ruby -e 'a = IO.pipe; b = IO.pipe; p a; p b; pid = fork { exec("ruby", "-e", "print IO.for_fd(3).read(1)", 3=>a[0],1=>b[1]) }; b[1].close; a[0].close; a[1].wri...
ngoto (Naohisa Goto)
06:09 AM Revision 6c3d366b (git): resolver.rb: fix fd leaks
* lib/rubygems/resolver.rb (resolve): close UI output unless
debugging.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:05 AM Revision 023835f4 (git): basicsocket.c: swap examples [ci skip]
* ext/socket/basicsocket.c (bsock_do_not_reverse_lookup),
(bsock_do_not_reverse_lookup_set): [DOC] swap examples. the code
setting the flag is for the setter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51193 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)
05:05 AM Revision ee750a8a (git): pass saved errno
* ext/socket/socket.c (socket_s_ip_address_list): pass saved errno
to rb_syserr_fail.
* ext/readline/readline.c (readline_getc, readline_s_set_input),
(readline_s_set_output): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
nobu (Nobuyoshi Nakada)
01:59 AM Bug #11327: Improve duplicate key warning.
Agreed.
Matz
matz (Yukihiro Matsumoto)

07/07/2015

10:43 PM Revision 601c10e6 (git): * lib/csv.rb: typo fix [ci skip][fix GH-958] Patch by @henrik
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
10:38 PM Bug #11336: TestProcess#test_exec_fd_3_redirect failed on Solaris 10
Can you try a higher fd number instead of 3?
Also, truss output would be useful.
Thanks.
normalperson (Eric Wong)
10:21 PM Bug #11336: TestProcess#test_exec_fd_3_redirect failed on Solaris 10
>Was there any output in stderr from this test?
nothing
Recently, the failure message is changed to below.
It seems the SIGKILL is caused by timeout of the test.
~~~
TestProcess#test_exec_fd_3_redirect [/XXXXX-51186/test/ruby/...
ngoto (Naohisa Goto)
04:58 PM Bug #11336: TestProcess#test_exec_fd_3_redirect failed on Solaris 10
Was there any output in stderr from this test? Thanks. normalperson (Eric Wong)
09:36 AM Bug #11336 (Closed): TestProcess#test_exec_fd_3_redirect failed on Solaris 10
On Solaris 10, TestProcess#test_exec_fd_3_redirect failed since r51146 (where the test was added).
~~~
1) Failure:
TestProcess#test_exec_fd_3_redirect [/XXXXX-51146/test/ruby/test_process.rb:2049]:
<"."> expected but was
<nil>.
...
ngoto (Naohisa Goto)
09:59 PM Feature #11339 (Closed): [PATCH] io.c: avoid kwarg parsing in C API
~~~
rb_scan_args and hash lookups for kwargs in the C API are clumsy and
slow. Instead of improving the C API for performance, use Ruby
instead :)
Implement IO#read_nonblock and IO#write_nonblock in prelude.rb
to avoid argument p...
normalperson (Eric Wong)
07:51 PM Bug #11338 (Closed): [PATCH] iseq.c (iseq_data_to_ary): dump kw_arg as symbol
Applied in changeset r51190.
----------
iseq.c (iseq_data_to_ary): dump kw_arg as symbol
Fix RubyVM::InstructionSequence#to_a after r49517
Keywords were made symbols to fix [Bug #10831] [ruby-core:68031],
so we should dump symbols as-i...
Anonymous
07:41 PM Bug #11338 (Closed): [PATCH] iseq.c (iseq_data_to_ary): dump kw_arg as symbol
iseq.c (iseq_data_to_ary): dump kw_arg as symbol
Fix RubyVM::InstructionSequence#to_a after r49517
Keywords were made symbols to fix [Bug #10831] [ruby-core:68031],
so we should dump symbols as-is instead of attempting to convert
t...
normalperson (Eric Wong)
07:50 PM Revision 011347e4 (git): iseq.c (iseq_data_to_ary): dump kw_arg as symbol
Fix RubyVM::InstructionSequence#to_a after r49517
Keywords were made symbols to fix [Bug #10831] [ruby-core:68031],
so we should dump symbols as-is instead of attempting to convert
them from IDs
* iseq.c (iseq_data_to_ary): dump kw_arg ...
Eric Wong
06:29 PM Bug #11327: Improve duplicate key warning.
If matz will approve, and no objection, I will commit it. zzak (zzak _)
04:22 PM Feature #10594: Comparable#clamp
In the case of `min > max`, the options seem to be these:
* return `nil`
* return the receiver
* raise an `ArgumentError`
Given that the first two are likely to cause something else to explode down the line, it seems best to just...
0x0dea (D.E. Akers)
03:57 PM Revision fe94eaa5 (git): * test/ruby/test_method.rb (TestMethod#test_{instance,define}_method): assumed
default external is UTF-8. fixed failures introduced at r51175.
* test/-ext-/symbol/test_type.rb
(Test_Symbol::TestType#test_check_{id,symbol}_invalid_type): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51189 b2dd03c8-3...
U.Nakamura
03:42 PM Revision 3294c272 (git): * 2015-07-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:41 PM Revision d4397258 (git): * test/ruby/test_array.rb
(TestArray#test_short_heap_array_sort_bang_memory_leak): seems to need more
margin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:38 PM Feature #11337 (Closed): Allow rescue without begin inside blocks
While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible:
~~~
1.times do
abc
rescue
p 'error'
end
~~~
...
rosenfeld (Rodrigo Rosenfeld Rosas)
09:21 AM Revision 4f66d02c (git): * random.c (fill_random_bytes_syscall): fix compile error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:20 AM Revision 7c94c028 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:48 AM Revision 2fb7e7df (git): compile.c (COMPILE_ERROR): reduce GET_THREAD() calls
Shorten a long line and reduce global variable access, giving
a minor code size reduction (at least on 32-bit x86):
text data bss dec hex filename
96807 772 48 97627 17d5b compile.orig
96775 772 ...
Eric Wong
07:46 AM Revision 50c0a200 (git): random.c: fix failures on old Linux
This follows the behavior of fill_random_bytes_urandom and fixes
the following failures I encountered on my old machine:
1) Error:
TestSecureRandom#test_s_random_bytes_without_openssl:
NotImplementedError: No random device
$RUBYDIR/...
Eric Wong
06:26 AM Revision bcd96d92 (git): random.c: try getrandom
* random.c (fill_random_bytes_syscall): try getrandom system call
on Linux if supported by the kernel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:25 AM Revision e96955e8 (git): random.c: separate fill_random_bytes
* random.c (fill_random_bytes): separate into functions by system
call and by direct read of urandom device.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:02 AM Revision 8a0ab36d (git): file.c: skip invalid byte
* file.c (rb_str_normalize_ospath): skip invalid byte sequence not
to loop infinitely. this case usually does not happen as the
input name should come from real file systems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51180 ...
nobu (Nobuyoshi Nakada)
05:41 AM Revision 548497d5 (git): * vm_backtrace.c: remove debug flag introduced accidentaly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
04:40 AM Bug #11221: Fix indentation in Zlib documentation
ruby_2_1 r51178 merged revision(s) 50834. usa (Usaku NAKAMURA)
04:40 AM Revision c7458b51 (git): merge revision(s) 50834: [Backport #11221]
* ext/zlib/zlib.c: Fix indentation for rdoc.
[Bug #11221][ruby-core:69465]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:38 AM Bug #11249: Fix require paths for BigDecimal and io-console
ruby_2_1 r51177 merged revision(s) 50860. usa (Usaku NAKAMURA)
04:37 AM Revision a0cf0fbd (git): merge revision(s) 50860: [Backport #11249]
* ext/bigdecimal/bigdecimal.gemspec: Fix require paths for released gem.
[fix GH-929] Patch by @voxik
* ext/io/console/io-console.gemspec: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51177 b2...
U.Nakamura
04:24 AM Revision e25bb03e (git): merge revision(s) 50972:
test_gem_remote_fetcher.rb: get rid of errors
* test/rubygems/test_gem_remote_fetcher.rb (start_ssl_server):
temporary measure for "dh key too small" error of OpenSSL
1.0.2c+.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
U.Nakamura
03:49 AM Revision c53464c7 (git): symbol.c: preserve encoding
* symbol.c (rb_check_id, rb_check_symbol): preserve encoding of
the given name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:08 AM Revision 135c7572 (git): * cont.c (cont_free): remove mysterious fflush()
introduced at r19890, maybe accidentaly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:52 AM Revision c5dad98c (git): * proc.c (rb_method_call): because data->me should be non-NULL,
do not check data->me
* proc.c (method_inspect): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:41 AM Revision f395c5be (git): * vm_core.h: remove rb_iseq_t::orig because rb_iseq_clone()
no longer exists.
* iseq.c: don't use rb_iseq_t::orig.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:27 AM Revision 16a68369 (git): * iseq.c, internal.h (rb_iseq_clone): removed because we don't need to
clone iseq any more.
* class.c (clone_method): share iseq between cloned methods. All of
method dependent information are able to refer from method entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51171 b2dd03c8-39d4-4d8f-98...
ko1 (Koichi Sasada)

07/06/2015

07:45 PM Revision bbf7495f (git): string.c: ensure String#freeze resizes internal buffer
rb_str_freeze may resize oversized buffers to save memory, so favor
it over rb_obj_freeze. This is useful because IO methods do not
prematurely shrink buffers, as they are likely to be overwritten
with full data.
* string.c (Init_Strin...
Eric Wong
07:13 PM Revision 57f2c607 (git): * vm.c (vm_define_method): remove an unused local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
07:08 PM Revision 5c4d7b9a (git): * vm_core.h: remove rb_iseq_t::defined_method_id because it is not
needed.
* eval.c (frame_func_id): simplify. rb_callable_method_entry_t
has enough information.
* eval.c (frame_called_id): ditto.
* iseq.c (prepare_iseq_build): catch up this fix.
* proc.c (rb_mod_define_method): ditto.
* vm.c (vm_defi...
ko1 (Koichi Sasada)
06:48 PM Revision ce457442 (git): * vm_core.h: remove a useless declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:44 PM Revision 02d58689 (git): * vm_core.h: remove rb_iseq_t::klass to reduce dynamic data.
* internal.h, iseq.c (rb_iseq_klass): remove it because
rb_iseq_t::klass is removed.
* vm_insnhelper.c (vm_super_outside): do not see cfp->iseq, but
check callable method entry on a frame.
This fix simplify the logic to search supe...
ko1 (Koichi Sasada)
04:54 PM Revision 202643de (git): * cont.c (fiber_init): initialize control frame correctly.
This fix does not affect any ordinal execution, but
affects debug prints.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
04:49 PM Revision bba7c4b0 (git): * 2015-07-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:49 PM Revision 73c0f4f7 (git): * test/ruby/test_array.rb
(TestArray#test_short_heap_array_sort_bang_memory_leak): relax the threshold
to get rid of a false positive failure of mswin CI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:26 PM Feature #10594: Comparable#clamp
I tried the basic implementation (adaption of `#between?`). What should we do about cases like these?
```
irb(main):001:0> 1.clamp(2, 1)
=> 2
irb(main):002:0> 2.clamp(2, 1)
=> 1
```
With `#between?` these make more sense, becaus...
nerdinand (Ferdinand Niedermann)
01:49 PM Revision 62147303 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:03 AM Bug #3351 (Closed): stack overflow on super
Applied in changeset r51161.
----------
* vm_insnhelper.c (vm_search_super_method): do not skip calling
same methods in super.
[Bug #3351]
* test/ruby/test_super.rb: fix a test.
ko1 (Koichi Sasada)
08:38 AM Bug #3351: stack overflow on super
Agreed.
Matz.
matz (Yukihiro Matsumoto)
09:02 AM Revision c8854d2c (git): * vm_insnhelper.c (vm_search_super_method): do not skip calling
same methods in super.
[Bug #3351]
* test/ruby/test_super.rb: fix a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:00 AM Revision 415e9cef (git): * ext/tk/tcltklib.c: removed deprecated safe level.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
08:35 AM Revision b07e78fa (git): * method.h, proc.c (rb_method_entry_location): make it static
and remoev prefix `rb_' because it is used only in proc.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:27 AM Revision 4d419a54 (git): * test/lib/memory_status.rb: removed redundant path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
04:55 AM Bug #11316 (Closed): ruby 2.2 on Windows generates incorrect BAT files for gems
and imported to trunk at r49511. usa (Usaku NAKAMURA)
04:48 AM Bug #11316 (Rejected): ruby 2.2 on Windows generates incorrect BAT files for gems
Fixed at https://github.com/rubygems/rubygems/commit/f9232680 nobu (Nobuyoshi Nakada)
02:24 AM Revision 0918c27a (git): string.c: register_fstring
* string.c (register_fstring): separate registration from
rb_fstring().
* string.c (rb_fstring_new): skip argument checks in rb_fstring().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

07/05/2015

11:03 PM Revision 87954dd8 (git): fix multiple load
* test/rubygems/test_gem_commands_install_command.rb: previously
load rubygems/request_set which will be required in
rubygems/commands/install_command.rb to get rid of loading
multiple times.
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)
08:55 PM Revision 77eea6f9 (git): test/ruby/test_array.rb: longer timeout for memory leak test
This was causing CI failures on ko1's test box
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
04:18 PM Revision 1f3971e0 (git): * 2015-07-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:18 PM Revision ecb6ea2a (git): parallel.rb: upper directory
* test/lib/test/unit/parallel.rb: make @@project_dir one level
upper as this file had moved one level deeper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:54 PM Revision 9b37b750 (git): Fix typo in optparse library [ci skip] [Fix GH-956]
* lib/optparse.rb: [DOC] Fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:27 AM Bug #11335 (Closed): `ruby -r debug` catchpoint problem
With a `test-debug.rb` like this:
~~~
raise 'test'
~~~
And starting the debugger like this:
~~~
ruby -r debug test-debug.rb
~~~
By default, the catchpoint is `StandardError`, but it doesn't work:
~~~
test-debug.rb:1:r...
sigsys (Math Ieu)
09:28 AM Revision 4f1178ac (git): gc.c (gc_profile_record_get): fix spelling error in keys
This may cause compatibility problems for some users, but maybe
nobody tracked it closely in the past because it is disabled by
default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
08:05 AM Bug #11316: ruby 2.2 on Windows generates incorrect BAT files for gems
No issue with a fresh ruby-2.2.2-p95-x86-mingw either.
Deka, what do you get for "gem --version" ? Check which gem exe is getting picked up in your path with "where gem" as well.
leriksen (Leif Eriksen)
03:42 AM Bug #11316 (Third Party's Issue): ruby 2.2 on Windows generates incorrect BAT files for gems
It's generated by rubygems, not ruby's installer. nobu (Nobuyoshi Nakada)
02:20 AM Bug #11316: ruby 2.2 on Windows generates incorrect BAT files for gems
I tested this against ruby 2.2.2p95 x64-mingw without issue.
rhc.bat appears to be correct.
~~~
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"c:\Ruby22-x64\bin\ruby.exe" "c:/Ruby22-x64/bin/rhc" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO ...
leriksen (Leif Eriksen)
05:58 AM Bug #11037: Time Parse Documentation Incorrect - Undefined method getlocal
Hi,
I think it is useful Time.parse specifications on the document.
This patch is fix operation to along specifications.
nkmrya (Yasuhiro Nakamura)
05:54 AM Revision cd56fbdf (git): * README.md: fix a typo pointed out by raoulvdberge. [ci skip] [DOC]
https://github.com/ruby/ruby/pull/953#commitcomment-11998186
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:56 AM Revision 7f3ab1cc (git): Update README.md [ci skip] [Fix GH-953]
* README.md: Added link HowToReport bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:03 AM Bug #11332: Arrayの操作でcrubyインタプリタのメモリリークが起きる
rev.51148 で実行して直っていることを確認しました metanest (Makoto Kishimoto)
01:52 AM Bug #11332 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
Applied in changeset r51147.
----------
array.c: fix memory leak
* array.c (rb_ary_sort_bang): the original array may not be
embedded even if a substitution array is embedded, as it is
embedded when the original array is short enou...
nobu (Nobuyoshi Nakada)
12:41 AM Bug #11332: Arrayの操作でcrubyインタプリタのメモリリークが起きる
`pop`だけで起きるのはOSXのlibc固有のようでした。
Linuxではたしかに4要素から3要素に減らしたあとでsort!した場合だけのようです。
nobu (Nobuyoshi Nakada)
02:03 AM Revision 46062034 (git): test_process.rb: reap pid
* test/ruby/test_process.rb (test_exec_fd_3_redirect): should reap
the grandchild process, in common.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:51 AM Revision 48129219 (git): array.c: fix memory leak
* array.c (rb_ary_sort_bang): the original array may not be
embedded even if a substitution array is embedded, as it is
embedded when the original array is short enough but not
embedded. [ruby-dev:49166] [Bug #11332]
git-svn-id: ...
nobu (Nobuyoshi Nakada)
12:40 AM Revision 033e8e5b (git): test/ruby/test_process.rb: test for fd=3 usability in child
Ensure we can redirect anything to fd=3 in a child process. This
test exists because fd=3 is a commonly reserved FD for a timer
thread pipe in the parent Ruby VM, but fd=3 is the first FD used by
the sd_listen_fds function for systemd.
...
Eric Wong

07/04/2015

11:20 PM Bug #11332: Arrayの操作でcrubyインタプリタのメモリリークが起きる
`Array#pop`だけで起きるような気がします。
~~~
$ for i in 1 5 10 100 1000 10000; do echo; echo $i; ruby2.2 -r ./test/lib/memory_status.rb -e "puts m0 = Memory::Status.new; 10000.times{[*1..$i].pop}; GC.start; puts m1 = Memory::Status.new; p m1.rss.f...
nobu (Nobuyoshi Nakada)
03:15 PM Bug #11332: Arrayの操作でcrubyインタプリタのメモリリークが起きる
`ruby -e 'loop { [1, 2, 3, 4].tap(&:pop).sort! }'` とすると、同じ現象と思われるメモリ増加が確認できました。
(ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14])
`loop { [1, 2, 3, 4, 5].tap(&:pop).sort! }` でも `loop { [1, 2, 3].tap(&:pop).sort! }` でもメモリ増...
wanabe (_ wanabe)
02:35 PM Bug #11332 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
きしもとです
`Array` の `sort!` と、`pop` または `shift` の操作を組み合わせると、わずか
ですが ruby インタプリタのメモリリークを引き起こすようです。多数回
繰返すと、どんどん大きくなります。
以下のサンプルを手元の環境(FreeBSD/amd64のruby 2.1.6、ruby 2.2.2、
trunk (r51120) )で試すと、どれもインタプリタのプロセスのメモリ
サイズが大きくなっていきます(最後はメモ...
metanest (Makoto Kishimoto)
09:28 PM Bug #10902: require("enumerator") scans LOAD_PATH 2x on every invocation
I tried to fix it int load.c, but failed rubyspec:
http://80x24.org/spew/m/1436044472-18990-1-git-send-email-e@80x24.org.txt
However, this one-liner seems to work:
~~~diff
--- a/enumerator.c
+++ b/enumerator.c
@@ -2060,6 +2060,...
normalperson (Eric Wong)
04:53 PM Revision 4ea870cd (git): * 2015-07-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:52 PM Revision 805d0a46 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:54 PM Bug #11334 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
wanabe (_ wanabe)
02:47 PM Bug #11334 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
きしもとです

Array の sort! と、pop または shift の操作を組み合わせると、わずか
ですが ruby インタプリタのメモリリークを引き起こすようです。多数回
繰返すと、どんどん大きくなります。

以下のサンプルを手元の環境(FreeBSD/amd64のruby 2.1.6、ruby 2.2.2、
trunk (r51120) )で試すと、どれもインタプリタのプロセスのメモリ
サイズが大きくなっていきます(最後はメ...
metanest (Makoto Kishimoto)
02:54 PM Bug #11333 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
「メールをチケットにする」操作のミスで重複チケットを作ってしまったので閉じます。
失礼いたしました。
wanabe (_ wanabe)
02:35 PM Bug #11333 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
きしもとです

Array の sort! と、pop または shift の操作を組み合わせると、わずか
ですが ruby インタプリタのメモリリークを引き起こすようです。多数回
繰返すと、どんどん大きくなります。

以下のサンプルを手元の環境(FreeBSD/amd64のruby 2.1.6、ruby 2.2.2、
trunk (r51120) )で試すと、どれもインタプリタのプロセスのメモリ
サイズが大きくなっていきます(最後はメ...
metanest (Makoto Kishimoto)
02:25 PM Bug #11060: load(fifo) blocks whole process
Backported into `ruby_2_2` branch at r51143. nagachika (Tomoyuki Chikanaga)
02:24 PM Revision 31539009 (git): merge revision(s) 50887,50896,50902: [Backport #11060]
* file.c (rb_file_load_ok): try opening file without gvl not to
lock entire process. [Bug #11060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:54 AM Revision 39be41cb (git): all?, any?, one?, none? of empty Enumerable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:43 AM Revision aebf152e (git): * Add test case for empty array and first method with args.
Patch by @yui-knk [fix GH-955]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
10:39 AM Revision a894e920 (git): * Add test for `Enumerable#sort` with block. Patch by @yui-knk
[fix GH-954]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:49 AM Revision df11c9c5 (git): enum.c: remove volatile, use RB_GC_GUARD
volatile appears unnecessary in most cases as the VALUEs are used as
arguments of uninlined functions. Even worse, volatile can be
insufficient in places where RB_GC_GUARD is necessary.
* enum.c (zip_ary): remove volatile, use RB_GC_GU...
Eric Wong
05:33 AM Feature #11331 (Closed): [PATCH] load.c: use fstring for loaded features and expanded load path
Loaded features is an obvious candidate for fstring since
feature paths of Ruby sources are included in iseq locations,
and iseq locations are in the fstring table anyways.
Deduplicating expanded load path can reuse old objects, sin...
normalperson (Eric Wong)
05:28 AM Feature #11330 (Closed): [PATCH] string.c: ensure String#freeze resizes internal buffer
rb_str_freeze may resize oversized buffers to save memory, so favor
it over rb_obj_freeze. This is useful because IO methods do not
prematurely shrink buffers, as they are likely to be overwritten
with full data.
* string.c (Init_...
normalperson (Eric Wong)
04:38 AM Bug #11326: Defining a writer as a Struct member allowed?
nobu@ruby-lang.org wrote:
> Eric Wong wrote:
> > I suggest banning it (barely-tested patch):
>
> +1

OK with matz to commit my patch? (+ tests)?

Also, what about '?' and '!' in field names?
Can we continue to allow those?
I ...
normalperson (Eric Wong)
01:43 AM Bug #11222 (Closed): make test-all 時の TESTS に -j オプションをつけるとファイルが多重ロードされる
Applied in changeset r51138.
----------
test_case.rb: fix multiple load
* lib/rubygems/test_case.rb (teardown): do not delete features
loaded from the original load paths, the same libraries should
be loaded again when the same fea...
nobu (Nobuyoshi Nakada)
01:43 AM Revision 5c19a5fa (git): test_case.rb: fix multiple load
* lib/rubygems/test_case.rb (teardown): do not delete features
loaded from the original load paths, the same libraries should
be loaded again when the same features are required.
[ruby-dev:49031] [Bug #11222]
git-svn-id: svn+ssh:/...
nobu (Nobuyoshi Nakada)
01:30 AM Misc #11329 (Closed): Improved documentation grammar for open-uri#open option
Minor documentation readability improvement vpafodaf (D Hudson)
12:47 AM Revision 443ce92b (git): * 2015-07-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:47 AM Revision 8bfc0b65 (git): vm.c: reduce branches for always-set VM fields
thgroup_default, mark_object_ary, load_path, load_path_snapshot,
expanded_load_path, loaded_features, loaded_features_snapshot,
top_self, defined_module_hash are always defined at process startup.
This makes it wasteful to have extra br...
Eric Wong

07/03/2015

08:14 PM Bug #11201: pkg_config NoMethodError when finding other -config program
Backported into `ruby_2_2` branch at r51135. nagachika (Tomoyuki Chikanaga)
09:45 AM Bug #11201: pkg_config NoMethodError when finding other -config program
ruby_2_1 r51123 merged revision(s) 50717. usa (Usaku NAKAMURA)
08:13 PM Revision 7b2a41d3 (git): merge revision(s) 50717: [Backport #11201]
* lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option
is not available. patch in [ruby-core:69428] by Hans Mackowiak.
[ruby-core:69421] [Bug #11201]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/r...
nagachika (Tomoyuki Chikanaga)
08:05 PM Feature #10672: Enable SSL on cache.ruby-lang.org
This is really great, and addresses the hardest part of my request. Thank you to Fastly for supporting the open source Ruby project with TLS for cache.ruby-lang.org, and to the Ruby project for enabling it!
I'll move the latter part o...
konklone (Eric Mill)
12:56 AM Feature #10672 (Closed): Enable SSL on cache.ruby-lang.org
I launched https CDN at 03/07/2015 JST.
Please use https://cache.ruby-lang.org
I appreciated fastly's suppot.
hsbt (Hiroshi SHIBATA)
07:58 PM Bug #11192: capture group special variable with large index invokes UB
Backported into `ruby_2_2` at r51134. nagachika (Tomoyuki Chikanaga)
07:33 PM Bug #11192: capture group special variable with large index invokes UB
sorry, previous commet is a mistake. nagachika (Tomoyuki Chikanaga)
07:31 PM Bug #11192: capture group special variable with large index invokes UB
Backported into `ruby_2_2` branch at r51132. nagachika (Tomoyuki Chikanaga)
09:39 AM Bug #11192: capture group special variable with large index invokes UB
ruby_2_1 r51122 merged revision(s) 50671. usa (Usaku NAKAMURA)
07:57 PM Revision 72fa2ec3 (git): merge revision(s) 50671: [Backport #11192]
* compile.c (iseq_compile_each): out of range NTH_REF is always
nil.
* parse.y (parse_numvar): check overflow of NTH_REF and range.
[ruby-core:69393] [Bug #11192]
* util.c (ruby_scan_digits): make pu...
nagachika (Tomoyuki Chikanaga)
07:45 PM Bug #11117: When you refine String with to_regexp, then it breaks Regexp.try_convert even when the refinement is not used
Backported into `ruby_2_2` branch at r51133. nagachika (Tomoyuki Chikanaga)
08:55 AM Bug #11117: When you refine String with to_regexp, then it breaks Regexp.try_convert even when the refinement is not used
ruby_2_1 r51119 merged revision(s) 50430,50440. usa (Usaku NAKAMURA)
07:44 PM Revision 8ff3a728 (git): merge revision(s) 50430,50440: [Backport #11117]
* vm_eval.c (rb_method_call_status): undefined refined method is
not callable unless using. [ruby-core:69064] [Bug #11117]
* vm_eval.c (rb_method_call_status): resolve refined method entry
to check if undefi...
nagachika (Tomoyuki Chikanaga)
07:33 PM Bug #11162: Update documentation for CMath library
Backported into ruby_2_2 branch at r51132. nagachika (Tomoyuki Chikanaga)
09:13 AM Bug #11162: Update documentation for CMath library
ruby_2_1 r51121 merged revision(s) 50793,51120. usa (Usaku NAKAMURA)
07:31 PM Revision 306ed7c0 (git): merge revision(s) 50793,51120: [Backport #11162]
* lib/cmath.rb: [DOC] Add docs [ci skip][Fix GH-909][Bug #11162]
Patch provided by @davydovanton
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
07:30 PM Bug #11327 (Closed): Improve duplicate key warning.
This change rephrases the duplicate key warning, which causes some confusion.
Before:
~~~
/Users/andre/bug.rb:4: warning: duplicated key at line 5 ignored: :max_instances
~~~
After:
~~~
/Users/andre/bug.rb:4: warning: key ...
superdealloc (Andre Medeiros)
07:27 PM Revision 5f938625 (git): merge revision(s) 50972:
test_gem_remote_fetcher.rb: get rid of errors
* test/rubygems/test_gem_remote_fetcher.rb (start_ssl_server):
temporary measure for "dh key too small" error of OpenSSL
1.0.2c+.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
nagachika (Tomoyuki Chikanaga)
06:55 PM Bug #11045: ruby/test_m17n_comb.rb test_str_crypt tests platform-specific crypt behavior
Backported into `ruby_2_2` branch at r51130. nagachika (Tomoyuki Chikanaga)
06:55 PM Revision aa4dc2b0 (git): merge revision(s) 50366: [Backport #11045]
* test/ruby/test_m17n_comb.rb: test_str_crypt split into strict
and non-strict versions to allow masking out non-strict when
glibc version cannot be determined (#11045).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@...
nagachika (Tomoyuki Chikanaga)
06:51 PM Bug #11254: [BUG] no corresponding cfp
Backported into `ruby_2_2` at r51129. nagachika (Tomoyuki Chikanaga)
06:50 PM Revision b94b3260 (git): merge revision(s) 50850: [Backport #11254]
vm.c: break from orphan block
* vm.c (rb_vm_search_cf_from_ep): break from orphan block is
possible condition, but not [BUG].
[ruby-core:69548] [Bug #11254]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@5112...
nagachika (Tomoyuki Chikanaga)
12:55 PM Revision 6282b156 (git): * test/ruby/test_require.rb (TestRequire#test_loading_fifo_threading):
fix previous commit. [Bug #11060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:37 AM Bug #11278: remove rb_control_frame_t::klass
I committed this change. If you find any regression, please report about it.
I measured some applications with https://github.com/ko1/class_stat gem. This gem reports class/module/T_ICLASS usage.
For example, my rails app https://g...
ko1 (Koichi Sasada)
11:25 AM Bug #11278 (Closed): remove rb_control_frame_t::klass
Applied in changeset r51126.
----------
* method.h: introduce rb_callable_method_entry_t to remove
rb_control_frame_t::klass.
[Bug #11278], [Bug #11279]
rb_method_entry_t data belong to modules/classes.
rb_method_entry_t::owner ...
ko1 (Koichi Sasada)
11:25 AM Revision 8895c18d (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:25 AM Bug #11279 (Closed): remove rb_control_frame_t::klass
Applied in changeset r51126.
----------
* method.h: introduce rb_callable_method_entry_t to remove
rb_control_frame_t::klass.
[Bug #11278], [Bug #11279]
rb_method_entry_t data belong to modules/classes.
rb_method_entry_t::owner ...
ko1 (Koichi Sasada)
11:24 AM Revision 5e8a1474 (git): * method.h: introduce rb_callable_method_entry_t to remove
rb_control_frame_t::klass.
[Bug #11278], [Bug #11279]
rb_method_entry_t data belong to modules/classes.
rb_method_entry_t::owner points defined module or class.
module M
def foo; end
end
In this case, owner is M.
...
ko1 (Koichi Sasada)
11:05 AM Bug #11060: load(fifo) blocks whole process
Nobuyoshi Nakada wrote:
> Franck Verrot wrote:
> ...
My automatic translator tricked me :-)
> > Once running, it seems that loading from a FIFO isn't supported (it's expecting a regular file). Here's a patch for making `load` work w...
cesario (Franck Verrot)
08:52 AM Bug #11060: load(fifo) blocks whole process
ruby_2_1 r51118 merged revision(s) 50887,50896,50902. usa (Usaku NAKAMURA)
10:30 AM Revision b0ed2765 (git): * test/ruby/test_require.rb (TestRequire#test_loading_fifo_threading):
ignore Errno::ENOENT on unlinking. [Bug #11060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:15 AM Revision 759d1288 (git): merge revision(s) 49235: [Backport #10711]
numeric.c: fix message
* numeric.c (coerce_failed): fix the error message on non-flonum
platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:43 AM Revision f81db3c8 (git): merge revision(s) 50717: [Backport #11201]
* lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option
is not available. patch in [ruby-core:69428] by Hans Mackowiak.
[ruby-core:69421] [Bug #11201]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/r...
U.Nakamura
09:39 AM Revision bf571987 (git): merge revision(s) 50671: [Backport #11192]
* compile.c (iseq_compile_each): out of range NTH_REF is always
nil.
* parse.y (parse_numvar): check overflow of NTH_REF and range.
[ruby-core:69393] [Bug #11192]
* util.c (ruby_scan_digits): make pu...
U.Nakamura
09:25 AM Bug #11326: Defining a writer as a Struct member allowed?
Eric Wong wrote:
> I suggest banning it (barely-tested patch):
+1
nobu (Nobuyoshi Nakada)
08:28 AM Bug #11326: Defining a writer as a Struct member allowed?
peter-rl@suschlik.de wrote:
> I don't have a strong opinion whether defining a writer member should
> ...
I suggest banning it (barely-tested patch):
~~~diff
--- a/struct.c
+++ b/struct.c
@@ -12,6 +12,7 @@
#include "internal.h"...
normalperson (Eric Wong)
07:38 AM Bug #11326 (Closed): Defining a writer as a Struct member allowed?
Hi,
yesterday I've stumbled on weird behavior defining writers as Struct members.
While this code works on MRI it breaks on JRuby and Rubinius:
```ruby
Struct.new(:x=).new(nil).x = 23
```
On JRuby it fails with:
```
Arg...
splattael (Peter Leitzen)
09:12 AM Revision a57c9250 (git): merge revision(s) 50793,51120: [Backport #11162]
* lib/cmath.rb: [DOC] Add docs [ci skip][Fix GH-909][Bug #11162]
Patch provided by @davydovanton
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:08 AM Revision 6ddfcd93 (git): * lib/cmath.rb: shouldn't use non-ASCII characters in documentation. as a
custom, single quote is seen as the same as apostrophe in computer typography.
[skip ci]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:55 AM Revision 1bd36e36 (git): merge revision(s) 50430,50440: [Backport #11117]
* vm_eval.c (rb_method_call_status): undefined refined method is
not callable unless using. [ruby-core:69064] [Bug #11117]
* vm_eval.c (rb_method_call_status): resolve refined method entry
to check if undefi...
U.Nakamura
08:51 AM Revision dffe87c7 (git): merge revision(s) 50887,50896,50902: [Backport #11060]
* file.c (rb_file_load_ok): try opening file without gvl not to
lock entire process. [Bug #11060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:33 AM Bug #10967: Is "warning: private attribute?" wrong?
Is this a spec change or a bug? usa (Usaku NAKAMURA)
07:15 AM Feature #10594: Comparable#clamp
That does make a lot of sense. I'll send another pull request. nerdinand (Ferdinand Niedermann)
05:30 AM Revision 3e5988b2 (git): file.c: _wfreopen_s on mingw
* win32/file.c: some mingw compilers need a tweek for the
declarations of _wfreopen_s. [Bug #11320]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:25 AM Bug #11324 (Closed): Encoding to a String's own encoding with some options fails
Applied in changeset r51116.
----------
transcode.c: empty encoding name
* transcode.c (rb_econv_set_replacement): target encoding name can
be empty now. [ruby-core:69841] [Bug #11324]
nobu (Nobuyoshi Nakada)
03:25 AM Revision e0ec0c7d (git): transcode.c: empty encoding name
* transcode.c (rb_econv_set_replacement): target encoding name can
be empty now. [ruby-core:69841] [Bug #11324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom