Project

General

Profile

Activity

From 05/21/2013 to 05/27/2013

05/27/2013

07:55 PM Bug #8454 (Rejected): Date and Time compatibility
it's the current spec.
see [ruby-dev:24250].
i think you are interested in the following case too.
> Time.parse('2001-02-03')
#=> 2001-02-03 00:00:00 +0900
> ...
#=> #<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)>
> Dat...
tadf (tadayoshi funaba)
04:04 PM Bug #8454 (Rejected): Date and Time compatibility
Time.to_datetime creates a DateTime object with the local timezone
Date.to_datetime creates a DateTime object with the +0000 timezone
As a result, Date.to_time.to_datetime gives a different result than Date.to_datetime.
jonys (Jonatan Hejzlar)
07:43 PM Bug #7445: strptime('%s %z') doesn't work
`DateTime` also does.
~~~
$ ruby -r date -e 'dt=DateTime.now; ARGV.each{|f| p dt.strftime(f)}' '%s' '%s %z'
"1369651261"
"1369651261 +0900"
~~~
so what?
tadf (tadayoshi funaba)
12:59 PM Bug #7445: strptime('%s %z') doesn't work
It works perfectly fine in C:
~~~
./test '%s' '%s %z'
1369626774
1369626774 -0500
~~~
~~~C
#include <stdio.h>
#include <time.h>
int main(int argc, char *argv[]) {
struct tm *tm;
time_t t;
char buf[0x100];
t = time(...
felipec (Felipe Contreras)
06:16 PM Revision 40fe524b (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:14 PM Revision 30dbed38 (git): * ext/objspace/gc_hook.c, ext/objspace/objspace.c: add new methods to
hook GC invocation.
* ObjectSpace.after_gc_start_hook=(proc)
* ObjectSpace.after_gc_end_hook=(proc)
Note that hooks are not kicked immediately. Procs are kicked
at postponed_job.
This feature is a sample of new internal event and
...
ko1 (Koichi Sasada)
05:57 PM Revision b01c4ddf (git): * gc.c (gc_stat): remove wrong rest_sweep().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
05:46 PM Revision 8a81b54a (git): * gc.c (garbage_collect_body): fix GC_ENABLE_LAZY_SWEEP condition.
* gc.c (GC_NOTIFY): move debug print location and use stderr instead
of stdout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:33 PM Bug #8432 (Closed): make install ruby 2.0.0 fails with undefined method `sub!'
This issue was solved with changeset r40956.
Andrew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
rbinstall.rb: reject empty files
* tool/rbinstall.rb (install_...
nobu (Nobuyoshi Nakada)
05:08 PM Revision c180e0d8 (git): * vm_trace.c (rb_postponed_job_register_one): fix iteration bug.
* ext/-test-/postponed_job/postponed_job.c,
test/-ext-/postponed_job/test_postponed_job.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:03 PM Feature #8453: Implement Struct.map
Eregon (Benoit Daloze) wrote:
> I wonder why #select is overridden though. Probably performance reasons.
Actually, it is an historical reason: #select used to have #values_at behavior when given integers.
Eregon (Benoit Daloze)
04:57 PM Feature #8453 (Closed): Implement Struct.map
Struct instances (that is classes produced by Struct.new) include Enumerable.
Actually Struct itself includes Enumerable (written in the left column on the documentation page)
and Struct.new makes Struct an ancestor of the created cl...
Eregon (Benoit Daloze)
08:10 AM Feature #8453 (Closed): Implement Struct.map
http://ruby-doc.org/core-2.0/Struct.html does not contain any 'map' like method, I imagine given 'each' and 'select' are available it's probably not too hard to implement.
As always I'm 100% open to contribute so if you deem this nec...
eLobato (Daniel Lobato Garcia)
04:48 PM Revision f79ddbeb (git): test_method.rb: fix for direct invocation
* test/ruby/test_method.rb (TestMethod#test___dir__): use aboslute
path for the case invoked directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:48 PM Revision 462804fc (git): suppress warnings
* ext/-test-/postponed_job/postponed_job.c (pjob_register),
(pjob_call_direct): none void function.
* ext/-test-/tracepoint/tracepoint.c (tracepoint_track_objspace_events):
adjust type to get rid of implicit cast.
* ext/objspace/ob...
nobu (Nobuyoshi Nakada)
03:46 PM Revision f72bd6e7 (git): add a ChangeLog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:40 PM Revision e4c58251 (git): * include/ruby/ruby.h, gc.c: add new internal event
RUBY_INTERNAL_EVENT_GC_END. This event invokes at the end of
after_sweep().
Time chart with lazy sweep is here:
(1) Kick RUBY_INTERNAL_EVENT_GC_START
(2) [gc_marks()]
(3) [lazy_sweep()]
(4) [... run Ruby program (mutator) wit...
ko1 (Koichi Sasada)
03:19 PM Revision c5b6c189 (git): * 2013-05-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:19 PM Revision eccb729a (git): * vm_trace.c (rb_postponed_job_flush): remove a wrong comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:14 PM Feature #8393 (Rejected): A class who's parent class is in a module can go wrong if files are required in the wrong order
nobu (Nobuyoshi Nakada)
01:11 PM Revision 783cffce (git): * include/ruby/ruby.h (RHASH_SIZE): Add a cast to suppress a
warning, comparison between signed and unsigned integer
expressions [-Wsign-compare], on ILP32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:28 AM Revision f0b6cb6f (git): * include/ruby/ruby.h: rename RUBY_INTERNAL_EVENT_FREE to
RUBY_INTERNAL_EVENT_FREEOBJ.
* ext/-test-/tracepoint/tracepoint.c,
ext/objspace/object_tracing.c,
gc.c, vm_trace.c: catch up this change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:04 AM Revision 0d339bf5 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:01 AM Revision 050dd10d (git): * ext/objspace/objspace.c: support ObjectSpace.trace_object_allocations.
Read the following test to know HOWTO.
This feature is a sample of RUBY_INTERNAL_EVENT.
* test/objspace/test_objspace.rb: add a test.
* ext/objspace/object_tracing.c: ditto.
* gc.c (rb_gc_count): add. THis function returns GC count.
* ...
ko1 (Koichi Sasada)
08:33 AM Revision 14f6c8ca (git): rbinstall.rb: reject empty files
* tool/rbinstall.rb (install_recursive): add maxdepth option.
* tool/rbinstall.rb (bin-comm): limit depth of bindir and reject empty
files. [ruby-core:55101] [Bug #8432]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40956 b2dd03c...
nobu (Nobuyoshi Nakada)
08:33 AM Revision 75b9218f (git): vm_insnhelper.c: suppress warning
* vm_insnhelper.c (vm_callee_setup_keyword_arg): suppress
-Wsign-compare warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:55 AM Revision 084df96e (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tmm1 (Aman Karmani)
07:17 AM Revision a1b1b6f7 (git): * vm_trace.c (rb_postponed_job_flush, rb_postponed_job_register): use
ruby_xmalloc/xfree. It is safe during GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:30 AM Feature #8107 (Closed): [patch] runtime flag to track object allocation metadata
This issue was solved with changeset r40940.
Aman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* include/ruby/debug.h, vm_trace.c: add rb_postponed_job API.
P...
ko1 (Koichi Sasada)
05:46 AM Revision 308d5d0c (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:24 AM Bug #8442: sendmesg (blocking) of class BasicSocket is repeatably sent by the ruby kernel
Similar bugs have been reported to Jruby & Rubinius:
https://github.com/rubinius/rubinius/issues/2362
http://jira.codehaus.org/browse/JRUBY-7169
m_josenhans (Michael Josenhans)
02:16 AM Revision 91a0c5e3 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:16 AM Revision 696d3046 (git): * append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:26 AM Revision 787fd858 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:24 AM Revision 662cbf22 (git): * test/-ext-/postponed_job/test_postponed_job.rb: fix typo and class name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
12:23 AM Revision 984d2653 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:21 AM Revision 680f0b5b (git): * include/ruby/ruby.h, gc.c, vm_trace.c: add internal events.
* RUBY_INTERNAL_EVENT_NEWOBJ: object created.
* RUBY_INTERNAL_EVENT_FREE: object freeed.
* RUBY_INTERNAL_EVENT_GC_START: GC started.
And rename `RUBY_EVENT_SWITCH' to `RUBY_INTERNAL_EVENT_SWITCH'.
Internal events can not invoke any R...
ko1 (Koichi Sasada)

05/26/2013

11:42 PM Revision dc7522f8 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:41 PM Revision a913138c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:40 PM Revision 96090c08 (git): * ext/-test-/postponed_job/postponed_job.c: fix `init' function name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:21 PM Feature #4254: Allow method transplanting
=begin
: saturnflyer (Jim Gay) wrote:
The specs fail on ruby-head ((<URL:https://travis-ci.org/saturnflyer/casting/jobs/7432959>)) but pass for 2.0 ((<URL:https://travis-ci.org/saturnflyer/casting/jobs/7432957>))
From your "ruby-head"...
nobu (Nobuyoshi Nakada)
12:03 AM Feature #4254: Allow method transplanting
=begin
Seems fine.
$ ruby -v -e 'module M; def foo; :foo;end; end; p m = M.instance_method(:foo).bind(Object.new); p m.call'
ruby 2.1.0dev (2013-05-25 trunk 40923) [universal.x86_64-darwin11]
#<Method: Object(M)#foo>
:foo
P...
nobu (Nobuyoshi Nakada)
09:31 PM Revision a5fc9521 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:31 PM Revision 7f4d09d6 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:30 PM Revision e2793a90 (git): * include/ruby/debug.h, vm_trace.c: add rb_postponed_job API.
Postponed jobs are registered with this API. Registered jobs
are invoked at `ruby-running-safe-point' as soon as possible.
This timing is completely same as finalizer timing.
There are two APIs:
* rb_postponed_job_register(flags, f...
ko1 (Koichi Sasada)
08:41 PM Feature #8452 (Open): Kernel#otherwise to rewrite code like (obj || default_obj).do_smth
Imagine you have code like this
(long_computation_chain || []).do_smth
While it isn't difficult, but it forces a developer to use additional parentheses. It can be difficult to trace where opening bracket is when computation_chain...
prijutme4ty (Ilya Vorontsov)
05:27 PM Revision 767debf9 (git): * gc.c (gc_stat): collect promote_operation_count and
types (RGENGC_PROFILE >= 2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
04:43 PM Revision ca2ca7d3 (git): * gc.c (gc_stat): collect shade_operation_count,
remembered_sunny_object_count and remembered_shady_object_count
for each types when RGENGC_PROFILE >= 2.
They are informative for optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40938 b2dd03c8-39d4-4d8f-98ff-823fe6...
ko1 (Koichi Sasada)
04:19 PM Revision c4c821a7 (git): * hash.c (rb_hash_tbl_raw), internal.h: added.
Returns st_table without shading hash.
* array.c: use rb_hash_tbl_raw() for read-only purpose.
* compile.c (iseq_compile_each): ditto.
* gc.c (count_objects): ditto.
* insns.def: ditto.
* process.c: ditto.
* thread.c (clear_coverage): di...
ko1 (Koichi Sasada)
03:51 PM Revision 9ae121d6 (git): * 2013-05-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:51 PM Revision 22415d4f (git): * tool/make-snapshot: use ENV["AUTOCONF"] instead of directly using
literal "autoconf".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:37 PM Revision 4ae72030 (git): * 2013-05-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:37 PM Revision a20a1472 (git): * hash.c, include/ruby/ruby.h: support WB protected hash.
* constify RHash::ifnone and make new macro RHASH_SET_IFNONE().
* insert write barrier for st_update().
* include/ruby/intern.h: declare rb_hash_set_ifnone(hash, ifnone).
* marshal.c (r_object0): use RHASH_SET_IFNONE().
* ext/openssl/oss...
ko1 (Koichi Sasada)
09:44 AM Bug #8435: Can't build tcl/tk extensions after updating Debian/Ubuntu package
A possible fix:
--- a/ext/tk/extconf.rb 2013-01-10 05:47:20.000000000 -0200
+++ b/ext/tk/extconf.rb 2013-05-25 21:32:54.230020034 -0300
@@ -117,6 +117,11 @@
/64|universal/ =~ RUBY_PLATFORM
end
+def multiarch_supported?
+ ...
romuloceccon (Rômulo Ceccon)
03:02 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
Fair point rkh, feel free to close this unless there is something to avoid printing lots of warnings. eLobato (Daniel Lobato Garcia)

05/25/2013

11:50 PM Bug #8445 (Assigned): IO.open and IO#set_enconding does not support :fallback option
Is this intentional or just unexpected inconsistency? naruse (Yui NARUSE)
07:48 PM Feature #8449 (Assigned): Array#ary_plus always returns an array
=begin
Even when Array is subclassified, + operator keeps on returning an Array.
Don't know if it is a bug or intentional, but it has surprised me for sure.
I paste some code for demonstrational purposes:

#!/usr/bin/env ...
txemagon (José M. González)
02:56 PM Feature #8437: custom operators, unicode
Hi Mathew,
thanks for the list.
This is a good definition.
All of the symbols from that lists,
as defined by Mathew above
Shall not be allowed as part of an identifier in the ruby language
but shall be reserved for other use....
eike.rb (Eike Dierks)
02:55 PM Revision ea54c59a (git): internal.h: adjust indent
* internal.h (RCLASS_SUPER, RCLASS_SET_SUPER): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:29 PM Revision 9421b186 (git): * test/fiddle/test_handle.rb (Fiddle::TestHandle#test_static_sym): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
02:29 PM Revision 1dafd4eb (git): * test/fiddle/test_c_struct_entry.rb,
test/fiddle/test_c_union_entity.rb,
test/fiddle/test_cparser.rb, test/fiddle/test_func.rb,
test/fiddle/test_handle.rb, test/fiddle/test_import.rb,
test/fiddle/test_pointer.rb: don't run test if the system
don't support fiddle.
g...
ktsj (Kazuki Tsujimoto)
12:36 PM Revision 2ee7d727 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:34 PM Revision 0ea40b22 (git): * ext/pty/pty.c (get_device_once): FreeBSD 10-current and 9-stable
added O_CLOEXEC support to posix_openpt, so assume FreeBSD 9.2 or
later supports it.
http://www.freebsd.org/cgi/query-pr.cgi?pr=162374
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:37 AM Revision 9b119ab4 (git): Remove unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:59 AM Bug #8443: -Lprefix/lib
2013年5月24日 16:06 Tanaka Akira <akr@fsij.org>:
>
> おっと、r40907 で対処済みでしたか。
> 試します。

ちゃんと直ってました。ありがとうございます。

http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-i386/log/20130524T200310Z.diff.html.gz
http://www.rubyi...
akr (Akira Tanaka)
10:27 AM Misc #8447: BasicObject id behaviour
nobu (Nobu4bb9d34yoshi Nakada) wrote:
> It's just an implementation detail, 0x9773a68 == 0x4bb9d34.
Sorry, missent.
"0x9773a68 == 0x4bb9d34<<1", of course.
nobu (Nobuyoshi Nakada)
10:21 AM Misc #8447 (Closed): BasicObject id behaviour
It's just an implementation detail, 0x9773a68 == 0x4bb9d34. nobu (Nobuyoshi Nakada)
12:05 AM Misc #8447 (Closed): BasicObject id behaviour
=begin
This is not really an issue. This is rather a question. It's about ids of BasicObject instances. When I invoke an undefined method on a BasicObject instance, I get an odd NoMethodError. The message of this error informs me that a...
kyrylo (Kyrylo Silin)
09:55 AM Revision 458b79e4 (git): * proc.c (rb_method_entry_min_max_arity): fix missing break in switch.
This was introduced in r38236, which is not intentional apparently.
This has caused no actual harm because VM_METHOD_TYPE_OPTIMIZED is
not used except for OPTIMIZED_METHOD_TYPE_SEND, but may do in
future. Coverity Scan found this ...
mame (Yusuke Endoh)
09:32 AM Revision a0b3e032 (git): * dir.c (bracket): fix copy-paste error. When the first and last
characters of fnmatch range have different length, fnmatch may
have wrongly matched a path that does not really match.
Coverity Scan found this bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40925 b2dd03c8-39d4-4d8f-98ff-823...
mame (Yusuke Endoh)
08:11 AM Revision 7b5a42f0 (git): * gc.c (after_gc_sweep): reduce full GC timing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:06 AM Feature #4254: Allow method transplanting
=begin
I am interested in this feature although with a different use.
It appears that 2.0.0-p0 allowed methods to be unbound from a module and bound to any object.
I've forked rubyspec and created a failing spec ((<URL:https://git...
saturnflyer (Jim Gay)
02:28 AM Revision 675ba20c (git): no clearing method cache
* variable.c (set_const_visibility): return without clearing method
cache if no arguments.
* vm_method.c (set_method_visibility): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:27 AM Revision 9abf0913 (git): vm_method.c: quote method name
* vm_method.c (set_method_visibility): quote unprintable method name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:24 AM Revision 8a4fb4ac (git): eval.c: rb_frame_callee returns current name
* eval.c (rb_frame_callee): returns the called name of the current
frame, not the previous frame.
* eval.c (prev_frame_callee, prev_frame_func): rename and make static,
as these are used by rb_f_method_name() and rb_f_callee_name() o...
nobu (Nobuyoshi Nakada)

05/24/2013

11:58 PM Revision 165db57c (git): string.c: check argument type
* string.c (rb_str_quote_unprintable): check if argument is a string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:22 PM Bug #8446 (Closed): sdbm fails to fetch existing key if many elements in it
=begin
When I store many keys in SDBM, it may fail to fetch the value and returns nil.
The maximum number of all readable keys is varied by the value size.
I believe it's best to be able to store and restore as many as disk size is no...
arton (Akio Tajima)
10:04 PM Revision 10a726d9 (git): * 2013-05-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:03 PM Revision 37b862c6 (git): call rb_frame_callee() only once
* eval_error.c (error_pos): no needs to call rb_frame_callee() twice.
* safe.c (rb_secure, rb_insecure_operation): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:03 PM Bug #8445 (Assigned): IO.open and IO#set_enconding does not support :fallback option
RubyDoc says that `IO.open` and `IO#set_encoding` supports optional argument defined in `String#encode`.
http://ruby-doc.org/core-2.0/IO.html#method-c-new-label-Options
In fact, `:invalid, :undef and :replace` works as expected.
How...
pjmtdw (Haruhiro Yoshimoto)
09:27 PM Bug #8412 (Closed): Small Documentation Fix for Fiddle Module
This issue was solved with changeset r40916.
Steven, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/fiddle/fiddle.c: fix typo in fiddle doc [Bug #8412]
Anonymous
11:57 AM Bug #8412 (Feedback): Small Documentation Fix for Fiddle Module
zzak (zzak _)
06:15 PM Bug #8444 (Assigned): Regexp vars $~ and friends are not thread local
In the docs for the Regexp special variables, `$~` and friends, it says "These global variables are thread-local and method-local variables". However the following gives an unexpected result:
```ruby
def get_proc
proc do |str|...
jamespharaoh (James Pharaoh)
06:03 PM Feature #8343 (Closed): StringScanner#[] should accept names of named captures
Merged at r40881! naruse (Yui NARUSE)
04:23 PM Bug #8443: -Lprefix/lib
2013年5月24日 15:55 Tanaka Akira <akr@fsij.org>:
> 2013年5月24日 10:39 Nobuyoshi Nakada <nobu@ruby-lang.org>:
>>
>>> 実際に問題が出た環境は buildroot で作った i386 環境と、
>>> Android (x86) の環境です。
>>> ビルド環境 (x86_64) と中途半端に似ていると問題が起きやすいようです。
>>
>>...
akr (Akira Tanaka)
11:04 AM Bug #8443 (Closed): -Lprefix/lib
This issue was solved with changeset r40907.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
configure.in: no runtime path to -L
* configure.in (LIBRUBY_RPA...
nobu (Nobuyoshi Nakada)
10:54 AM Bug #8443 (Assigned): -Lprefix/lib
nobu (Nobuyoshi Nakada)
10:05 AM Bug #8443 (Closed): -Lprefix/lib
最近試しているクロスコンパイルな CI で、
思い立って DESTDIR を使って気がついたんですが、
configure に --prefix=/usr と指定すると、
/usr にあるライブラリを使ってしまうことがあるようです。

クロスコンパイルなので、ビルド環境の /usr は使ってほしくないんですが、
どうでしょうか。

実際に問題が出た環境は buildroot で作った i386 環境と、
Android (x86) ...
akr (Akira Tanaka)
02:08 PM Revision bea632a0 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:27 PM Revision 2fb8799e (git): * ext/fiddle/fiddle.c: fix typo in fiddle doc [Bug #8412]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Charlie Somerville
12:01 PM Bug #8441 (Feedback): /Users/Chandan/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/webrick/utils.rb:132: [BUG] Segmentation fault ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.4.2]
It would also help to have the code you were testing that produced this segfault. zzak (zzak _)
11:55 AM Bug #8441: /Users/Chandan/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/webrick/utils.rb:132: [BUG] Segmentation fault ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.4.2]
Can you reproduce this with 1.9.3-p429?
I believe 1.9.2 is no longer maintained, and you should upgrade to 1.9.3
zzak (zzak _)
05:29 AM Bug #8441 (Closed): /Users/Chandan/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/webrick/utils.rb:132: [BUG] Segmentation fault ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.4.2]
Hi,
I was trying to debug an issue while developing a web-page with RubyMine. At a break-point following crash occurred. I tried to repro the issue, but somehow I'm not able to. Still reporting it here.
Segmentation Fault Log:
/Us...
indyarocks (Chandan Kumar)
11:50 AM Bug #8439 (Assigned): test_aes_gcm_wrong_tag(OpenSSL::TestCipher) fails randomly
Can you reproduce this with trunk? zzak (zzak _)
10:33 AM Revision 98855299 (git): * variable.c (set_const_visibility): use rb_frame_this_func() instead
of rb_frame_callee() for getting the name of the called method
* test/ruby/test_module.rb: add test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
10:21 AM Revision f38a0630 (git): * gc.c: do major/full GC when:
* number of oldgen object is biggger than twice of
number of oldgen object at last full GC.
* number of remembered shady object is bigger than twice of
number of remembered shady object at last full GC.
* number of oldgen object and ...
ko1 (Koichi Sasada)
08:07 AM Revision de8cb828 (git): * intern.h: remove dangling rb_class_init_copy declaration
[ruby-core:55120] [Bug #8434]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
07:32 AM Revision c43dd625 (git): * ext/strscan/strscan.c (strscan_aref): raise error if given
name reference is not found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:54 AM Revision 755f6693 (git): io/console: rdoc
* ext/io/console/console.c (io_getch): add rdoc.
* ext/io/console/lib/console/size.rb (IO.console_size): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:54 AM Revision db41a188 (git): rename generic io modules
* ext/io/console/console.c, ext/stringio/stringio.c: rename internally
used modules as generic_readable and generic_writable. [Fix GH-315]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:52 AM Revision b84f7fda (git): * gc.c (after_gc_sweep, garbage_collect_body): do major GC (full GC)
before extending heaps.
TODO: do major GC when there are many old (promoted) objects.
* gc.c (after_gc_sweep): remove TODO comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:18 AM Bug #8442 (Closed): sendmesg (blocking) of class BasicSocket is repeatably sent by the ruby kernel
=begin

(1) The error occurs with the method "sendmesg" (blocking) of class BasicSocket on Ruby 2.0.0-p0 (rvm), but does not occur on Ruby 1.9.3-p392 (rvm).
(2) The error does not occur with the method "send" (non-blocking) of class ...
m_josenhans (Michael Josenhans)
03:59 AM Revision 717c5f94 (git): Disable clang on travis because it causes many false negative
https://travis-ci.org/ruby/ruby/builds/7448421
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:04 AM Revision d3298468 (git): configure.in: no runtime path to -L
* configure.in (LIBRUBY_RPATHFLAGS): do not append -L option with
runtime library directory if cross compiling, but only -R option.
runtime path makes no sense on the host system. [ruby-dev:47363]
[Bug #8443]
git-svn-id: svn+ssh:...
nobu (Nobuyoshi Nakada)

05/23/2013

11:07 PM Bug #8438 (Rejected): Kernel.eval can not Reliably Create new Variables
Local variables are determined at compile phase. nobu (Nobuyoshi Nakada)
03:40 PM Bug #8438 (Rejected): Kernel.eval can not Reliably Create new Variables
Variables that are created by the Kernel.eval are deleted from the execution context before the method eval exits, despite the fact that the execution context that is fed to the Kernel.eval by a Binding instance is still in use.
That ...
martin_vahi (Martin Vahi)
09:46 PM Revision 20442b9c (git): reapply r40839 [Fixes GH-316]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:11 PM Bug #8348: ruby hangs randomly in daemonized processes on Debian GNU/kFreeBSD
Did you run this test on some kind of SMP box? Ruby on Debian GNU/kFreeBSD has problems with fork in SMP environment. It was discussed a bit in debian-bsd maillist but there is still no solution. 375gnu (Hleb Valoshka)
06:06 PM Bug #8439 (Closed): test_aes_gcm_wrong_tag(OpenSSL::TestCipher) fails randomly
=begin
7) Error:
test_aes_gcm_wrong_tag(OpenSSL::TestCipher):
OpenSSL::Cipher::CipherError: unable to set GCM tag
/builddir/build/BUILD/ruby-2.0.0-p195/test/openssl/test_cipher.rb:190:in `auth_tag='
/builddir/build/BUIL...
vo.x (Vit Ondruch)
06:01 PM Revision b8b26d05 (git): * object.c (rb_obj_clone): should not propagate OLDGEN status.
This propagation had caused WB miss for class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:40 PM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
eLobato (Daniel Lobato Garcia) wrote:
> This error showed up in a Rails app, on my code I had two different files (ProxyAPI::Resource and ProxyAPI::BMC < Resource), and somehow there was a separated Resource class defined by a loaded ge...
rkh (Konstantin Haase)
02:05 PM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
> OMG, why puts 'fuck'? ;_;
Ruby doesn't prevent you from fucking yourself.
nobu (Nobuyoshi Nakada)
03:31 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
boris_stitnicky (Boris Stitnicky) wrote:
> OMG, why puts 'fuck'? ;_;
It's bait to see who gets distracted by irrelevant minutiae.
People curse. Some even scamper promisingly close to wit. Who cares. Move on. ;)
jonforums (Jon Forums)
03:14 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
OMG, why puts 'fuck'? ;_; Anonymous
03:29 PM Revision 28eb5913 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:18 PM Revision ef6fb99e (git): * 2013-05-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:18 PM Revision 4ea690ea (git): extmk.rb: don't duplicate
* ext/extmk.rb (extract_makefile): do not add dldflags if duplicated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:49 PM Revision d07439d5 (git): Add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:42 AM Bug #8435: Can't build tcl/tk extensions after updating Debian/Ubuntu package
Seems like third party issue zzak (zzak _)
10:45 AM Bug #8432: make install ruby 2.0.0 fails with undefined method `sub!'
AndrewCPaterson (Andrew Paterson) wrote:
> drwxrwxr-x 2 apaterson apaterson 4096 May 22 05:03 CVS/
Why is there CVS directory?
nobu (Nobuyoshi Nakada)
04:08 AM Bug #8432: make install ruby 2.0.0 fails with undefined method `sub!'
It is because there is a zero length file in a subdirectory under bin. There needs to be protection against this in rbinstall.rb AndrewCPaterson (Andrew Paterson)
10:10 AM Feature #8437: custom operators, unicode
eike.rb (Eike Dierks) wrote:
> I'd believe the math operator plane of unicode should be removed
> from the allowable names of identifiers,
> but should instead be reserved for operators in the parser, like +
> nowdays is.
Neit...
phluid61 (Matthew Kerwin)
09:20 AM Feature #8437 (Open): custom operators, unicode
The ruby language does currently one support a predefined set of operators.
It would be nice to add custom operators.
A lot of people ask about the elvis operator aka (?:) to cope with nil, aka rails try()
This probably is a problem...
eike.rb (Eike Dierks)
08:35 AM Revision f8180b89 (git): load.c: fix invalid read
* load.c (loaded_feature_path): fix invalid read by index underflow.
the beginning of name is also a boundary as well as just after '/'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:31 AM Feature #8270: Ruby should build without thread support (aka minix)
Thanks to everyone who responded.
Porting to Minix is only a minor target.
I suggested to the minix people that they should implement threads to get that resolved.
But obviously there's a lot of work to do
to really get ruby in t...
eike.rb (Eike Dierks)
08:22 AM Revision 699e06a8 (git): gc.c: revert r40898
* gc.c (gc_profile_dump_on): revert r40898. ok to show the record
accumulating while lazy_sweep().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:58 AM Revision 95170c70 (git): * gc.c: do not dump the last record
* gc.c (gc_profile_dump_on): do not dump the last record, for some
reason.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:09 AM Revision 09c34823 (git): revert forwardable rdoc patch for demo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:00 AM Revision ec04fecd (git): * test/ruby/test_io.rb (TestIO#test_write_32bit_boundary): HFS+ seems
not supporting a sparce file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:14 AM Revision 8a867f91 (git): * 2013-05-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:14 AM Revision ded54cb8 (git): test_io.rb: test for write
* test/ruby/test_io.rb (TestIO#test_write_32bit_boundary): add test
for write part. [ruby-core:55098] [Bug #8431]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/22/2013

11:03 PM Bug #8435: Can't build tcl/tk extensions after updating Debian/Ubuntu package
Workaround is to specify actual location of tcl/tk files:
./configure --with-tclConfig-file=/usr/lib/x86_64-linux-gnu/tclConfig.sh --with-tkConfig-file=/usr/lib/x86_64-linux-gnu/tkConfig.sh
It looks like the change in the *.sh ...
romuloceccon (Rômulo Ceccon)
10:28 PM Bug #8435 (Third Party's Issue): Can't build tcl/tk extensions after updating Debian/Ubuntu package
I've recently upgraded my Ubuntu system to 13.04 and tcl8.5-dev and tk8.5-dev were updated as well (to versions 8.5.13-1ubuntu and 8.5.11-2ubuntu4 respectively).
Now I can't build Tcl/Tk Ruby extensions anymore. I was able to reproduc...
romuloceccon (Rômulo Ceccon)
09:07 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
2013/5/18 nobu (Nobuyoshi Nakada) <nobu@ruby-lang.org>
> You can use rb_funcall2() instead here.
I made a patch which use rb_funcall2().
diff from patch.diff to patch2.diff:
diff --git a/ext/thread/thread.c b/ext/thread/thread....
Glass_saga (Masaki Matsushita)
06:51 PM Bug #8432: make install ruby 2.0.0 fails with undefined method `sub!'
The problem is still present in p195 AndrewCPaterson (Andrew Paterson)
06:51 PM Bug #8432: make install ruby 2.0.0 fails with undefined method `sub!'
There are no empty files in the bin directory:
[apaterson@xerxes ruby-2.0.0]$ ls -l bin
total 52
drwxr-xr-x 3 apaterson apaterson 4096 May 22 05:03 ./
drwxr-xr-x 28 apaterson apaterson 12288 May 22 05:47 ../
drwxrwxr-x 2 apater...
AndrewCPaterson (Andrew Paterson)
01:09 PM Bug #8432 (Feedback): make install ruby 2.0.0 fails with undefined method `sub!'
It probably occurs when an empty file exists under bin directory.
Do you have it?
nobu (Nobuyoshi Nakada)
02:36 AM Bug #8432 (Closed): make install ruby 2.0.0 fails with undefined method `sub!'
./tool/rbinstall.rb:468 is trying to reference shebang.sub! on command scripts destined for /usr/local/bin and that's failing.
Steps:
./configure --host="arm-xilinx-linux-gnueabi"
make
make install DESTDIR=../newramdisk_mnt
......
AndrewCPaterson (Andrew Paterson)
05:25 PM Feature #8430: Rational number literal
nobu (Nobuyoshi Nakada) wrote:
> I also prefer an operator.
> ...
Pretty nice!
I love this if introducing // as a operator is accepted.
mrkn (Kenta Murata)
05:21 PM Feature #8430: Rational number literal
knu (Akinori MUSHA) wrote:
> I think it should be added as an operator rather than a literal notation.
> ...
I made another implementation of the rational number literal implemented in token-level.
The implementation is available in h...
mrkn (Kenta Murata)
05:15 PM Feature #8430: Rational number literal
I also prefer an operator.
https://github.com/nobu/ruby/commit/7ff6073d70306999c0def3387387649ccd13f9d6
nobu (Nobuyoshi Nakada)
01:45 PM Feature #8430: Rational number literal
charliesome (Charlie Somerville) wrote:
> > Also, I guess runtime cost would not change much if it were introduced as operator.
> ...
At the risk of asking something stupid, could it be both? I'm thinking of unary minus / literal nega...
phluid61 (Matthew Kerwin)
12:26 PM Feature #8430: Rational number literal
> Also, I guess runtime cost would not change much if it were introduced as operator.
Rational is immutable, so if it it was introduced as a literal, the same Rational instance could be re-used, similar to how symbols and fixnums work...
Anonymous
11:49 AM Feature #8430: Rational number literal
I think it should be added as an operator rather than a literal notation.
A literal should not look like an expression, or it will fail you when you find out you have to give up the // notation in order to constify a numerator and/or ...
knu (Akinori MUSHA)
11:08 AM Feature #8430: Rational number literal
Shouldn't tDIV2 be only if IS_SPCARG(c)? nobu (Nobuyoshi Nakada)
12:46 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
Matz,
It appears that a patch was accepted into the soon to be released 1.9.4 branch (http://bugs.ruby-lang.org/issues/921) to fix the thread safety issues with autoload. Is this something that you still wish to see deprecated and rem...
reset (Jamie Winsor)
10:38 AM Revision a4eaf5f3 (git): Add NEWS for r40879: Digest::Class.file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:36 AM Revision 7a32434f (git): Fix test failure of binmode from r40879
http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20130521T131601Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:03 AM Revision f02c2b9c (git): * vm_dump.c (rb_vm_bugreport): show name of class and module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:03 AM Revision 22c0397a (git): * vm_dump.c (rb_vm_bugreport): limit class name length.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:50 AM Revision 11650a6a (git): gc.c: use size_t and no header if next_index == 0
* gc.c (gc_profile_dump_on): use size_t to get rid of overflow and
show the header when next_index > 0, instead of next_index != 1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:19 AM Revision a815b56d (git): win32.c: check error of SetFilePointer
* win32/win32.c (setup_overlapped): check the error code in addition
to the result of SetFilePointer() to determine if an error occurred,
because INVALID_SET_FILE_POINTER is a valid value.
[ruby-core:55098] [Bug #8431]
git-svn-id...
nobu (Nobuyoshi Nakada)
06:17 AM Revision 38302ca7 (git): win32.c: extract setup_overlapped and finish_overlapped
* win32/win32.c (setup_overlapped, finish_overlapped): extract from
rb_w32_read() and rb_w32_write().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:21 AM Revision 5aece501 (git): * gc.c (gc_prepare_free_objects, rest_sweep, lazy_sweep): fix position
of `during_gc' setting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:52 AM Bug #8433 (Closed): Mutexes held by background threads at fork not always released
It appears that the Ruby interpreter attempts to automatically unlock Mutexes held by background threads at the time Process.fork is called in order to avoid deadlocks in the child process. Unfortunately, the logic for doing so appears u... benweint (Ben Weintraub)
02:31 AM Feature #8422: add Enumerable#reverse_sort and Enumerable#reverse_sort_by
-1, feature creep
But I'm for defining `reverse!` as O(1), not really reversing anything, just treating the last element as first and first as last. (I do not know how collections are exactly implemented, so I am not sure whether this i...
Anonymous
12:26 AM Feature #5458: DL should be removed
zzak (Zachary Scott) wrote:
> The Win32 stuff is largely undocumented, but I remember ngoto-san
> ...
I think you're correct, I see win32/registry and win32/resolv:
However I don't see Win32API:
https://github.com/ruby/ruby/blob/...
luislavena (Luis Lavena)

05/21/2013

11:09 PM Revision daf752b1 (git): * 2013-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:09 PM Revision 9e64703e (git): * gc.c (garbage_collect): all GC is start from garbage_collect()
(or garbage_collect_body()). `garbage_collect()' accept additional
two parameters `full_mark' and `immediate_sweep'.
If `full_mark' is TRUE, then force it full gc (major gc), otherwise,
it depends on status of object space. Now, it...
ko1 (Koichi Sasada)
10:43 PM Feature #8430: Rational number literal
I updated the patch for fixing negative rational numbers:
https://github.com/mrkn/ruby/commit/b16f4da893c1cb68058098612b7d38fa44182151
mrkn (Kenta Murata)
10:31 PM Feature #8430 (Closed): Rational number literal
I would like to propose a new literal syntax for rational numbers.
The implementation is available in my github repository:
https://github.com/mrkn/ruby/commit/8ca0c9a53593e55d67f509fc403df616e2276e3a
This patch implements a notatio...
mrkn (Kenta Murata)
10:00 PM Bug #8115: make install DESTDIR=/my/install/path fails
This is still issue for -p195 :/ vo.x (Vit Ondruch)
05:50 PM Feature #8331: Update config.guess and config.sub for AArch64 (ARM64)
Would be nice to have this for Fedora/RHEL. Here is related Fedora bug [1] and ML discussion [2, 3]. Thanks.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=926463
[2] http://lists.fedoraproject.org/pipermail/devel/2013-February/17...
vo.x (Vit Ondruch)
04:34 PM Feature #8361: Alternative syntax for block parameter
=begin
I do not mind this being closed, i do not see how this can be made consistent with the existing syntax, and probably my reason for suggesting this was not valid, but as a side note, i want to mention that i have just discovered th...
alexeymuranov (Alexey Muranov)
01:54 PM Revision e12df5ef (git): Update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:51 PM Revision 3188b469 (git): Add NEWS about r40881, StringScanner#[] supports named captures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:48 PM Revision ecd5bbe8 (git): * ext/strscan/strscan.c (strscan_aref): support named captures.
patched by Konstantin Haase [ruby-core:54664] [Feature #8343]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:54 PM Feature #8429 (Closed): Options requests in net/http should be able to accept a response body
As it is currently implemented, Net::HTTP::Options does not allow responses to OPTIONS requests to have a response body:
class Net::HTTP::Options < Net::HTTPRequest
METHOD = 'OPTIONS'
REQUEST_HAS_BODY = false
RESPONSE_HAS...
cpr (Chris Rice)
12:50 PM Revision 9662e3de (git): * test/ruby/test_dir_m17n.rb (TestDir_M17N#test_entries_compose):
Use #each instead of #map just for iteration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
12:41 PM Revision 07a6b4cb (git): * ext/digest/lib/digest.rb (Digest::Class.file): Take optional
arguments that are passed to the constructor of the digest
class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:21 AM Revision 51d586c6 (git): * gc.c: remove gc_profile_record::is_marked. always true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:19 AM Revision 9578bb78 (git): * gc.c: fix to collect additional information for GC::Profiler.
* major/minor GC
* trigger reason of GC
* gc.c (gc_profile_dump_on): change reporting format with
added information.
* gc.c (gc_profile_record_get): return added information by
:GC_FLAGS => array.
git-svn-id: svn+ssh://ci.ruby-lan...
ko1 (Koichi Sasada)
07:53 AM Feature #5458: DL should be removed
On Mon, May 20, 2013 at 07:55:11AM +0900, Zachary Scott wrote:
> The Win32 stuff is largely undocumented, but I remember ngoto-san
> moved a lot of it to Fiddle already?

Pretty much everything should be moved by now. I'll remo...
Anonymous
07:52 AM Revision 2e011442 (git): * gc.c: GC::Profiler's sweeping time is accumulated all slot
sweeping time. At lazy GC, GC::Profiler makes new record entry
for each lazy_sweep(). In this change, accumulating all
slot_sweep() time.
And change indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40876 b2dd03c8-3...
ko1 (Koichi Sasada)
07:43 AM Revision 0fd2c7e6 (git): test_dir_m17n.rb: sort Dir.entries
* test/ruby/test_dir_m17n.rb (test_entries_compose): the order on the
filesystem does not matter, so sort Dir.entries result to compare.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Revision 28a4c88f (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:40 AM Revision 3f488863 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:36 AM Revision 6f7c9e2e (git): * common.mk (rdoc-bench): add a benchmark rule
using RDoc. Generate all rdoc related files
(same as `make rdoc') in temporary directory
and remove them. Excecution time, GC::Profiler
and results of GC.stat are printed.
* tool/rdocbench.rb: added for `rdoc-bench'.
git-svn-id:...
ko1 (Koichi Sasada)
07:31 AM Revision f3cdb9f3 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:27 AM Revision 3f2cb86e (git): * gc.c (gc_profile_dump_on): `count' should be (int) because it
can be negative number.
And use pointer for `record' (don't copy).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:08 AM Revision 32c5c675 (git): force_encoding expected result as filesystem encoding
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:53 AM Feature #8426: Implement class hierarchy method caching
Charlie Somerville <charlie@charliesomerville.com> wrote:
> > I prefer `st_' related name. But not strong opinion.
> I disagree because they are unrelated data structures.

In any case, I strongly prefer new sa_* functions (and ...
normalperson (Eric Wong)
 

Also available in: Atom