Activity
From 05/07/2013 to 05/13/2013
05/13/2013
-
08:14 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- ko1 (Koichi Sasada) wrote:
> Let us clarify your statement (sorry if I missed in your messages).
> ...
Personally I think RARRAY_PTR should be removed and the resulting issues of that fixed. I can understand if MRI decides not to do... -
07:59 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- (2013/05/13 19:53), SASADA Koichi wrote:
> I believe RARRAY_AREF/ASET will help (2), and I strongly agree to
> backport 2.0 and 1.9 (or provide some migration way).
The name of them (*1) and definition are remaining issue, but ... -
07:59 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- Hi,
Let us clarify your statement (sorry if I missed in your messages).
(1) Do you want to remove RARRAY_PTR() completely?
or
(2) Reduce usage of RARRAY_PTR()?
I believe RARRAY_AREF/ASET will help (2), and I strongly ... -
07:29 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- naruse (Yui NARUSE) wrote:
> As eregon says ko1 added RARRAY_AREF in r40689.
> ...
Yes, I understand that. What I'm asking is that we also then please backport RARRAY_AREF and RARRAY_ASET to 1.9 and 2.0. This so we can update the ext... -
07:25 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- dbussink (Dirkjan Bussink) wrote:
> naruse (Yui NARUSE) wrote:
> ...
dbussink (Dirkjan Bussink) wrote:
> naruse (Yui NARUSE) wrote:
> ...
As eregon says ko1 added RARRAY_AREF in r40689.
Anyway you can define compatible layer like
... -
07:20 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- dbussink (Dirkjan Bussink) wrote:
> And how about storing an entry? Is there also a macro for storing an entry?
Yes, RARRAY_ASET ( https://github.com/ko1/ruby/commit/29dd46688687f99741b445102d0cd9f5bb52bc92 ). -
07:10 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- naruse (Yui NARUSE) wrote:
> ko1's rgengc plans to introduce RARRAY_AREF for this purpose (see #8339 for detail).
> ...
In Rubinius we also still support 1.8 and 1.9 modes and use the extensions from those modes. I understand 1.8 not b... -
05:46 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- ko1's rgengc plans to introduce RARRAY_AREF for this purpose (see #8339 for detail).
So use it. -
02:40 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- jonforums (Jon Forums) wrote:
> Interesting. What platform(s) did you test this MRI patch against?
> ...
I will update the patch for this, I wasn't sure whether MRI does or doesn't allow for this in the codebase, since it also build an... -
02:39 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- normalperson (Eric Wong) wrote:
> I am curious how Rubinius implements RARRAY_PTR and why it cannot be
> ...
We don't want to expose GC managed memory like this directly to a C extension, that is our concern and why we copy. Even if we... -
11:42 AM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- jonforums (Jon Forums) wrote:
> With a trivial update to your patch, trunk built on Win7 32bit with mingw-w64 4.7.2, and `make test` passed with and without your patch.
> ...
It seems because of minitest's bug.
minitest's parallelize_... -
10:22 AM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- With a trivial update to your patch, trunk built on Win7 32bit with mingw-w64 4.7.2, and `make test` passed with and without your patch.
The only difference I saw with your patch in `make test-all` was this test status output corrupti... -
07:53 AM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- "dbussink (Dirkjan Bussink)" <d.bussink@gmail.com> wrote:
> Rubinius uses quite a few C extensions directly from MRI. Some of
> these use functionality such as RARRAY_PTR which is not necessary. For
> compatibility reasons, RARRAY... -
07:38 AM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
- Interesting. What platform(s) did you test this MRI patch against?
I've not tried my Arch, Ubuntu Server, or Snow Leopard VMs yet, but on Win7 32bit with mingw-w64 gcc 4.7.2 I get this
build fail due to not using old C90 style coding... -
05:37 AM Bug #8399 (Closed): Remove usage of RARRAY_PTR in C extensions when not needed
- Rubinius uses quite a few C extensions directly from MRI. Some of these use functionality such as RARRAY_PTR which is not necessary. For compatibility reasons, RARRAY_PTR works on Rubinius but suffers from a heavy performance penalty. Ta...
-
07:26 PM Bug #8100: Segfault in trunk
- Might be related to https://bugs.ruby-lang.org/issues/8056
-
07:26 PM Bug #8056 (Closed): Random segmentation faults in Tempfile
-
07:17 PM Bug #8056: Random segmentation faults in Tempfile
- I'm guessing this is a duplicate of #8100.
-
07:06 PM Feature #8396: Allow easier destructuring of MatchData
- You can use named capture assigning
irb(main):005:0> /(?<count>\d+)_(?<thing>apple|orange)s?/ =~ "2_apples"
=> 0
irb(main):006:0> count
=> "2"
irb(main):007:0> thing
=> "apple" -
03:03 AM Feature #8396: Allow easier destructuring of MatchData
- =begin
Yep, the (({*@})) is a nice idea. Would be awesome if it could be used for splat-less destructuring as well. @matz what do you think about this?
=end
-
12:18 AM Feature #8396: Allow easier destructuring of MatchData
- This could be a use case for the @* method proposed in #2013.
-
06:41 PM Feature #8339 (Closed): Introducing Geneartional Garbage Collection for CRuby/MRI
- This issue was solved with changeset r40689.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* include/ruby/ruby.h: add new utility macros to access
Array... -
06:34 PM Revision f254b689 (git): * string.c (rb_str_new_frozen): remove debug print.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:23 PM Revision b8c0ff86 (git): * include/ruby/ruby.h: enable to generate write barrier protected
- arrays (T_ARRAY).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:22 PM Revision 5016b37a (git): * include/ruby/ruby.h: enable to generate write barrier protected
- objects (T_STRING).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:21 PM Revision 305382bd (git): * include/ruby/ruby.h: enable to generate write barrier protected
- objects (T_OBJECT).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:19 PM Revision 1829147f (git): * include/ruby/ruby.h: enable to generate write barrier protected
- objects for numeric types (Float, Complex, Rational, Bignum).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:14 PM Revision 9b6b3672 (git): * include/ruby/ruby.h: enable RGENGC (USE_RGENGC)
- but no type creates write protected (sunny) objects
(RGENGC_WB_PROTECTED_* == 0).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:07 PM Revision 4f401816 (git): * gc.c: support RGENGC. [ruby-trunk - Feature #8339]
- See this ticet about RGENGC.
* gc.c: Add several flags:
* RGENGC_DEBUG: if >0, then prints debug information.
* RGENGC_CHECK_MODE: if >0, add assertions.
* RGENGC_PROFILE: if >0, add profiling features.
check GC.stat and GC::Profiler.
... -
05:02 PM Revision 7958c71e (git): * gc.c: remove rb_objspace_t::marked_num.
- We can use `objspace_live_num()' instead of removed `marked_num'
if it is after `after_gc_sweep()' function call.
* gc.c (after_gc_sweep): use objspace_live_num() instead of removed
rb_objspace_t::marked_num.
* gc.c (gc_mark_ptr, gc_... -
04:52 PM Revision b597df70 (git): * gc.c: disable GC_PROFILE_MORE_DETAIL (fix last commit).
- * gc.c (gc_prof_set_malloc_info): fix "objspace->heap.live_num" to
"objspace_live_num(objspace)". There is no such member variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:34 PM Revision 7d0a90e9 (git): * gc.c: refactoring GC::Profiler.
- * gc.c (gc_prof_sweep_timer_start/stop): removed because
they doesn't support lazy sweep.
* gc.c (gc_prof_sweep_slot_timer_start/stop): added.
redefine `sweeping time' to accumulated time of all of
slot_sweep().
* gc.c (rb_objspace... - 03:55 PM Revision e23941ff (git): * 2013-05-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:55 PM Revision 89e6910f (git): * include/ruby/ruby.h: constify RRational::(num,den) and
- RComplex::(real,imag).
Add macro to set these values:
* RRATIONAL_SET_NUM()
* RRATIONAL_SET_DEN()
* RCOMPLEX_SET_REAL()
* RCOMPLEX_SET_IMAG()
This change is a part of RGENGC branch [ruby-trunk - Feature #8339].
TODO: API design. RR... -
02:52 PM Feature #8391 (Closed): Introduce Object.singleton_method(:sym)
- This issue was solved with changeset r40684.
stephen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
proc.c: Kernel#singleton_method
* proc.c (rb_obj_singleton_me... -
02:41 PM Revision 8ccd658e (git): * include/ruby/ruby.h: fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:39 PM Revision b86ebc1f (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:51 PM Revision 2ad4c65b (git): * ext/socket/extconf.rb: Check socketpair again.
- It is required on Unix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:21 PM Revision dd468731 (git): * win32/win32.c (getipaddrs): use alternamtive interface name if
- available, because if_nametoindex() requires them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 11:29 AM Revision cb3fcdcd (git): * win32/win32.c, include/ruby/win32.h (getipaddrs): [experimental]
- emulate getipaddrs(3) on Unix.
* win32/Makefile.sub, configure.in (LIBS): need iphlpapi.lib for above
function.
* include/ruby/win32.h (socketpair): rb_w32_socketpair() doesn't
substitute for any function, so use non-prefixed name.... -
11:11 AM Revision f1eadb0f (git): * iseq.c (prepare_iseq_build): remove additional line braek.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:51 AM Bug #8392: stdlib's 'forwardable' documentation has a bad example
- I have left some comments on the pull request, please check it.
-
01:15 AM Bug #8392 (Assigned): stdlib's 'forwardable' documentation has a bad example
-
10:49 AM Revision 83aba048 (git): * include/ruby/ruby.h: constify RBasic::klass and add
- RBASIC_CLASS(obj) macro which returns a class of `obj'.
This change is a part of RGENGC branch [ruby-trunk - Feature #8339].
* object.c: add new function rb_obj_reveal().
This function reveal interal (hidden) object by rb_obj_hide().... -
09:56 AM Revision aacd7710 (git): * *.c, parse.y, insns.def: use RARRAY_AREF/ASET macro
- instead of using RARRAY_PTR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:51 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
- I know the reason of course.
The point is how others reading your code can guess your intention from the code.
Can you explain why the result is "unexpected"? -
09:44 AM Bug #8398 (Rejected): case/when shouldn't try to evaluate all AND joined conditions if one of preceding was falsy
-
06:42 AM Bug #8398: case/when shouldn't try to evaluate all AND joined conditions if one of preceding was falsy
- You probably think your case statement is translated to:
case
when (String === 1) && (proc { |x| x.blah } === 1)
:something
else
:no
end
I believe ruby actually translates it to:
case
when (String && proc { |x| x.blah ... -
03:48 AM Bug #8398 (Rejected): case/when shouldn't try to evaluate all AND joined conditions if one of preceding was falsy
- =begin
Steps to reproduce:
case 1
when String && proc { |x| x.blah }
:something
else
:no
end
Here is how I thought it works: goes to the first 'when', evals the first condition ((({1 === String}))), sees it's fals... -
09:41 AM Revision 12bf7363 (git): * include/ruby/ruby.h: add new utility macros to access
- Array's element.
* RARRAY_AREF(a, i) returns i-th element of an array `a'
* RARRAY_ASET(a, i, v) set i-th element of `a' to `v'
This change is a part of RGENGC branch [ruby-trunk - Feature #8339].
git-svn-id: svn+ssh://ci.ruby-lang.... -
08:56 AM Bug #8400 (Closed): skip `Rinda::TestRingFinger` tests on platforms not implementing `getifaddrs()`
- The 32 and 64bit trunk builds at ci.rubyinstaller.org are failing `make test-all`
32bit => http://ci.rubyinstaller.org/view/Ruby%20Trunk/job/ruby-trunk-x86-test-all/1333/console
64bit => http://ci.rubyinstaller.org/view/Ruby%20Tr... -
06:43 AM Revision c8fc37a9 (git): * ChangeLog: add a comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:33 AM Revision b6b85f6e (git): * object.c (rb_obj_setup): added.
- * include/ruby/ruby.h (OBJSETUP): ues rb_obj_setup() instead of
a macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:25 AM Revision 8ac05ae5 (git): * gc.c (rb_data_object_alloc): check klass only if klass is not 0.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:11 AM Feature #8394 (Assigned): use String#b instead of dup.force_encoding("ASCII-8BIT")
- 私はいいと思うので、確認してコミットしようと思います。
終わったら担当者を関さんに振ります。 -
06:03 AM Revision 925c936b (git): * gc.c (rb_data_object_alloc, rb_data_typed_object_alloc):
- use NEWOBJ_OF() instead of NEWOBJ().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:52 AM Revision 0824f9f2 (git): proc.c: Kernel#singleton_method
- * proc.c (rb_obj_singleton_method): new method Kernel#singleton_method
which returns a Method object of the singleton method.
non-singleton method causes NameError, but not aliased or zsuper
method, right now.
[ruby-core:54914] [... -
05:51 AM Revision 30485080 (git): vm_method.c: rb_method_entry_at
- * vm_method.c (rb_method_entry_at): return the method entry for id at
klass, without ancestors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:50 AM Revision 609c7420 (git): class.c: rb_singleton_class_get
- * class.c (rb_singleton_class_get): get the singleton class if exists,
or nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:49 AM Revision 111c791c (git): class.c: adjust indent
- * class.c (singleton_class_of): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:08 AM Revision ee22fad4 (git): * ext/openssl/ossl_ssl.c: Disabled OpenSSL::SSL::SSLSocket if
- defined(OPENSSL_NO_SOCK).
This fixes a linkage error on platforms which do not have socket.
OpenSSL itself is still useful as a set of cryptographic functions
even on such platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr... -
01:31 AM Revision 0dc6dcfb (git): * hash.c: Hash[] and {} are not equivalent by @eam [Fixes GH-301]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:07 AM Revision 793c5ae8 (git): * 2013-05-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:07 AM Revision 4813d871 (git): * random.c: Document Random::DEFAULT by @eLobato [Fixes GH-304]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:17 AM Feature #7688: Error hiding with rb_rescue() on Comparable#==, #coerce and others
- matz, what do you think?
Are you against introducing the change for Comparable#== ?
05/12/2013
-
11:54 PM Feature #8391: Introduce Object.singleton_method(:sym)
- I like this idea.
Matz.
-
04:32 AM Feature #8391: Introduce Object.singleton_method(:sym)
- It's not a syntax issue.
-
01:00 AM Feature #8391 (Closed): Introduce Object.singleton_method(:sym)
- =begin
In the code below:
module A
def self.hello end
def world end
end
We can reflect on the instance method like so:
A.instance_methods # => [:world]
A.instance_method :world # => #<UnboundMet... -
11:54 PM Feature #8396: Allow easier destructuring of MatchData
- I like the basic idea, but #to_ary is a method to convert into array implicitly, that means it expect the receiver provides array behavior. MatchObject does not behave like Array.
Maybe we should add another implicit conversion method ... -
06:49 PM Feature #8396 (Feedback): Allow easier destructuring of MatchData
- =begin
((*(I have opened ((<"a PR for this on GH @ rails/rails"|URL:https://github.com/ruby/ruby/pull/300>)) for this but @marcandre closed it and suggested I submit it here. I'll copy my proposal text here.)*))
Currently, you can ... -
11:53 PM Bug #8397 (Closed): TestBignum#test_interrupt_during_bigdivrem failure
- 稀に、TestBignum#test_interrupt_during_bigdivrem が失敗することがあるようです。
http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20130509T193301Z.log.html.gz
で見つけました。
8) Failure:
test_interrupt_during_bigdivrem(TestBignum) [/usr/home/chkbuild/bu... -
06:07 PM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
- Nobu you don't need the requires to reproduce. This is simply the same thing:
#!/usr/bin/env ruby
class Animal
def bark
puts 'fuck.'
end
end
module Bark
class Dog < Animal
end
end
module Bark
class Anima... -
05:41 PM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
- jeremyevans0: That's what I did when I found a problem caused by this on production code. Nonetheless you have to take into account that sometimes the order of the requires is not something you control.
nobu: In order to get these re... -
11:34 AM Feature #8393 (Feedback): A class who's parent class is in a module can go wrong if files are required in the wrong order
- It's a feature by the design.
I can't get what you expect from your code.
You will need more concrete proposal. -
11:28 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
- This isn't a bug. If you load animal.rb then dog.rb, at the point Bark::Dog is defined, Bark::Animal does not exist, so it finds Animal at the top level (standard ruby constant lookup). If you want to force the behavior you desire, you...
-
09:39 AM Feature #8393 (Rejected): A class who's parent class is in a module can go wrong if files are required in the wrong order
- Hi,
I have found that inheritance is not done properly in a certain case. Let's say we have the following files:
--------------
animal.rb -
class Animal
def bark
puts 'fuck.'
end
end
dog.rb -
module Bark
... -
01:51 PM Revision 00096bdf (git): * ChangeLog: fix a typo of r40667.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:43 PM Revision 25e5b667 (git): merge revision(s) 40664:
- * signal.c (rb_f_kill): fixes typo. s/HAS_KILLPG/HAVE_KILLPG/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:47 PM Feature #8394 (Closed): use String#b instead of dup.force_encoding("ASCII-8BIT")
- dup.force_encoding("ASCII-8BIT") を使っているところは b を使えば良いのではないかと思ったのですが、どうでしょうか?
diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb
index 7de6fc7..bb5df37 100644
--- a/lib/cgi/util.rb
+++ b/lib/cgi/util.rb
@@ -6,7 +6,7 @@ module CGI::Util
... -
12:29 PM Revision baf52faa (git): merge revision(s) 40652:
- fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:13 PM Revision d2b4011a (git): ruby.h: OFFT2NUM redefinition
- * include/ruby/ruby.h (OFFT2NUM): RUBY_REPLACE_TYPE also defines macro
to convert int type to VALUE if found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:47 AM Revision fa1e2d95 (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:02 AM Revision 2b881310 (git): * include/ruby/intern.h (rb_iv_set, rb_iv_get): removed. Bcause
- ruby.h has a declaration for that.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:01 AM Revision f3c9bb06 (git): * include/ruby/intern.h (rb_uint2big, rb_int2big, rb_uint2inum)
- (rb_int2inum, rb_ll2inum, rb_ull2inum): removed because ruby.h
has a declaration for these.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:53 AM Revision 6591e26e (git): * configure.in: removes 'ac_cv_func_fseeko=yes' form MinGW
- specific definitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:42 AM Revision 96ffcf55 (git): * file.c (rb_file_s_truncate): use correct type. chsize takes
- a long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:42 AM Revision 93d061a8 (git): * process.c: move '#define SPAWNV 1' to win32/Makefile.sub.
- * win32/Makefile.sub: see above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:42 AM Revision 82330e91 (git): * configure.in: removes AC_CHECK_FUNCS(setitimer) because it's
- unsed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:41 AM Revision 3f6b5aa2 (git): * configure.in: removes AC_CHECK_FUNCS(pause) because it's unused.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:41 AM Revision c0a30fcb (git): * signal.c (rb_f_kill): fixes typo. s/HAS_KILLPG/HAVE_KILLPG/.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:41 AM Revision 59a3943a (git): * configure.in: abort if gettimeofday doesn't exist.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:41 AM Revision 05628d3b (git): * configure.in: removes AC_CHECK_FUNC(ftruncate64).
- * configure.in: adds RUBY_REPLACE_TYPE(off_t) for creating
NUM2OFFT.
* file.c (rb_file_truncate): use correct type. chsize() take
a long.
* include/ruby/ruby.h (NUM2OFFT): use a definition created by
a configure script by default.
... -
08:41 AM Revision e79f7907 (git): * configure.in: removes AC_CHECK_FUNC(fseeko, fseeko64, ftello,
- ftello64). They are not used from anywhere.
* win32/win32.c (fseeko): removes.
* win32/win32.c (rb_w32_ftello): removes.
* include/ruby/win32.h: removes declarations of rb_w32_ftello and
rb_w32_fseeko.
* win32/Makefile.sub: removes '#... -
08:40 AM Revision 2d0c7e37 (git): * configure.in: remove AC_CHECK_FUNC(close). It is not used from
- anywhere.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:40 AM Revision f15d3ff9 (git): * configure.in: adds comments for setjmp check.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:40 AM Revision a79cccb5 (git): * configure.in: move clock_gettime() check into regular place.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:40 AM Revision 7776ca93 (git): * configure.in: add getenv() declaration check.
- * dln_find.c: add HAVE_DECL_GETENV test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:40 AM Revision fa5db016 (git): * configure.in: sorts AC_CHECK_FUNCS()s as alphabetical order.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:40 AM Revision 2f6cab0f (git): * bignum.c: remove redundant decl for big_lshift() big_rshift().
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:34 AM Bug #8392 (Closed): stdlib's 'forwardable' documentation has a bad example
- =begin
As this is a problem with the documentation, there are no steps required to reproduce it.
My Ruby version is currently ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.2], but this documentation problem appears to hav... -
07:09 AM Revision 5aa61881 (git): * ext/socket/rubysocket.h (rsock_inspect_sockaddr): as r40646
- check HAVE_TYPE_STRUCT_SOCKADDR_DL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:33 AM Revision 7da67443 (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:33 AM Revision 6210fc9f (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:11 AM Feature #8377: Deprecate :: for method calls in 2.1
- jballanc (Joshua Ballanco) wrote:
> If we remove the ability to call methods with (({::})), then the class definition lines don't match as nicely:
> ...
I'm against removing it, since I think there are places where the syntax looks nic... -
12:12 AM Feature #8377: Deprecate :: for method calls in 2.1
- =begin
I'm not sure how I feel about this. I understand the potential for confusion, but at the same time there's a certain congruity of being able to inherit from classes or methods that create classes in the same way. For example:
... -
01:44 AM Revision b9a34fd7 (git): fixed wrong document for Socket.tcp by @lann [fix GH-302]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/11/2013
-
10:29 PM Bug #7423: ruby_process_options() dereferences argv even if argc is zero
- This bug fix is neither on the (complete) Roadmap nor reported under the "Bugs unassociated with any target version". I'm afraid it should be reopened in order to get on the radar for a release.
-
07:33 PM Revision 7fc0105f (git): merge revision(s) 40606,40607,40635: [Backport #8375]
- test_scanner_events.rb: assert_location
* test/ripper/test_scanner_events.rb (TestRipper#assert_location):
rename so skipped in backtraces.
* parse.y (parser_yylex): fail if $, @, @@ are not followed by a valid
... - 06:28 PM Revision 8f88edf0 (git): * 2013-05-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:28 PM Revision 5b20e5e1 (git): raddrinfo.c: suppress warnings
- * ext/socket/raddrinfo.c (rsock_inspect_sockaddr): cast down
explicitly to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:12 PM Revision 1c0abbf0 (git): merge revision(s) 39636,39741,40454: [Backport #8071] [Backport #8387]
- configure.in: suppress error messages
* configure.in: suppress error messages, rm: cannot remove
'conftest.dSYM', from AC_EGREP_CPP with CFLAGS=-g on Darwin.
* configure.in (rm, shvar_to_cpp, unexpand_shvar): local is ... -
05:33 PM Feature #8368: Socket.getifaddrs
- It seems no one against for this method and naruse-san (the release manager of Ruby 2.1.0) supported.
I added Socket.getifaddrs.
-
05:32 PM Feature #8368 (Closed): Socket.getifaddrs
- This issue was solved with changeset r40639.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/socket: New method, Socket.getifaddrs, implemented.
[rub... -
04:04 PM Bug #8364: Vim's if_ruby feature sometimes crash. - Hiroshi,
Thank you for fixing and reporting to vim_dev. -
02:07 PM Revision 037ce7f6 (git): * ext/socket/rubysocket.h (HAVE_TYPE_STRUCT_SOCKADDR_DL):
- MSVC has struct sockadddr_dl, but its content is broken.
http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20130511T103938Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:08 PM Revision 975e43b8 (git): * test/rinda/test_rinda.rb: Socket.getifaddrs may returns an interface
- which #addr method returns nil for venet0 in OpenVZ.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:04 PM Revision 26cb14f8 (git): * ext/socket/raddrinfo.c (rsock_inspect_sockaddr): Add casts to
- suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:02 PM Revision e3a2145d (git): Add debug print to investigate a failure on Travis-CI.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:51 AM Revision ae17f7ab (git): Simplify test with Socket.getifaddrs
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:20 AM Revision 2977c53b (git): Describe Socket.getifaddrs.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:50 AM Revision a4501a75 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:32 AM Revision b323d7d5 (git): * ext/socket: New method, Socket.getifaddrs, implemented.
- [ruby-core:54777] [Feature #8368]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:50 AM Revision fade664f (git): disable test_fcntl_lock_linux on x32.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/10/2013
-
08:11 PM Bug #8386 (Closed): OpenSSL thread safety
- As some might know, Rubinius uses a lot of MRI's C extensions that are part of stdlib and ships them as well. Rubinius however does not have a GIL, so thread safety issues in C extensions are much more important.
This patch fixes a th... -
07:01 PM Feature #8321: Ripper: I would like coordinates for keywords
- I'm keeping an eye on Parser and I hope that one day we'll be able to use it in RuboCop https://github.com/bbatsov/rubocop to be able to support all Rubies out there.
As far as I know, however, Parser is now yet production ready, so I'd... -
04:53 PM Feature #8321: Ripper: I would like coordinates for keywords
- On Fri, May 10, 2013 at 9:13 AM, bozhidar (Bozhidar Batsov) <
bozhidar@batsov.com> wrote:
>
> Issue #8321 has been updated by bozhidar (Bozhidar Batsov).
>
>
> The example outlined in the proposal is exactly what I think ... -
04:13 PM Feature #8321: Ripper: I would like coordinates for keywords
- The example outlined in the proposal is exactly what I think we need. A lot of Ruby code analysis tools need exact coordinates of keywords and currently there is no easy and reliable way to get them. This is even more important, now th...
- 03:50 PM Revision 690b663c (git): * 2013-05-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:49 PM Revision b1dd4c92 (git): * gc.h (SET_MACHINE_STACK_END): Add !defined(_ILP32) to a defining
- condition to avoid compilation error on x32.
https://sites.google.com/site/x32abi/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:56 PM Revision ecddb967 (git): parse.y: invalid name as mere string
- * parse.y (parser_peek_variable_name): treat invalid global, class,
and instance variable names as mere strings rather than errors.
[ruby-core:54885] [Bug #8375]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40635 b2dd03c8-39d4-... -
02:56 PM Revision 0542f05b (git): parse.y: lex_state macros
- * parse.y (parser_yylex): use IS_lex_state() and IS_lex_state_for()
instead of direct comparison.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:31 AM Bug #8383 (Rejected): Ripper.lex does not handle correctly symbols whose identifiers coincide with keyword names
- Duplicates #6306.
-
11:24 AM Revision 980bf275 (git): * configure.in: Move library checks into "Checks for libraries." part.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:33 AM Revision 695ad02d (git): * configure.in: Reformat arguments of AC_CHECK_HEADERS and
- AC_CHECK_FUNCS to track modifications easily.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:35 AM Feature #8382: Format OpenStruct YAML dump and create getters and setters after load.
- Interesting feature request.
This reasoning would also apply to all stdlib classes, like Set, Matrix, ... right?
I'm not sure it's a big issue, but a patch like this would make yaml serialization both backwards and forwards incompa... -
03:01 AM Revision 093beeda (git): * configure.in: Don't link librt if clock_gettime is available in
- the main C library.
glibc 2.17 moves clock_* from librt to the main C library.
http://sourceware.org/ml/libc-announce/2012/msg00001.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:48 AM Revision 14c9944e (git): * test/dtrace/helper.rb: ignore empty SUDO. reuse SUDO value by using
- class variable. use test/unit instead of minitest/autorun. dispose
`Interrupted system call' error messages at parallel test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 AM Feature #8377: Deprecate :: for method calls in 2.1
- This is related and has not yet been rejected: #6806
-
01:22 AM Feature #8377: Deprecate :: for method calls in 2.1
- headius (Charles Nutter) wrote:
> More cases of ambiguity:
> ...
`obj::FOO 1` is a method call. You don't even need parens for a capitalized method that takes no arguments if you get creative: `obj::FOO *[]` :)
-
12:50 AM Feature #8377: Deprecate :: for method calls in 2.1
- More cases of ambiguity:
obj::FOO is always a constant lookup. obj::FOO() is always a method call.
obj::foo is always a method call. There's no way to omit parens for a :: call if the method name is capitalized.
I support remova... - 12:55 AM Revision 95b690d2 (git): * 2013-05-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:55 AM Revision 8daa0d49 (git): Fixed minitest dependency bug by removing env PARALLEL checks (no clue why that was there). Exactly the same minitest code tho.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/09/2013
-
11:20 PM Bug #8242 (Assigned): Fix rdoc of Range#bsearch
-
11:11 PM Feature #8377: Deprecate :: for method calls in 2.1
- > we haven't reached consensus to remove double colons for method calls from the language.
That's what this issue is about, isn't it?
> ...
I agree. But deprecating it would already be beneficial.
> we have convention of Array c... -
10:13 PM Feature #8377: Deprecate :: for method calls in 2.1
- * we haven't reached consensus to remove double colons for method calls from the language.
* even if we do, 2.2 is not the right time to remove, maybe 3.0.
* we have convention of Array class and Array(obj) conversion method, why not F... -
06:52 PM Feature #8377: Deprecate :: for method calls in 2.1 - henry.maddocks (Henry Maddocks) wrote:
> But '.' and '::' mean different things.
> ...
This isn't correct. Nokogiri.XML() and Nokogiri::XML() are equivalent. -
05:59 PM Feature #8377: Deprecate :: for method calls in 2.1
- Although in PHP you can also abuse the `::` for both static and non
static method calls it's actually not used for namespaces (unlike Ruby),
instead it uses backslashes for that. Although this means that there's
still two ways to ... -
05:54 PM Feature #8377: Deprecate :: for method calls in 2.1
- rubiii (Daniel Harrington) wrote:
> I'm also very much in favour of this change for simplicity.
> ...
But '.' and '::' mean different things.
'::' means you are calling the method that is defined inside the Nokogiri module/namespace... -
05:35 PM Feature #8377: Deprecate :: for method calls in 2.1
- phluid61 (Matthew Kerwin) wrote:
> =begin
> ...
C++ and PHP also use the scope resolution operator.
As for the rest of what you said, I don't understand.
-
04:13 AM Feature #8377: Deprecate :: for method calls in 2.1
- I'm also very much in favour of this change for simplicity.
When I learned about Nokogiri, I had no idea how this was supposed to work: Nokogiri::XML('<xml/>')
Simply changing the code to use a '.' instead of '::' makes it clear, tha... -
04:13 AM Feature #8377: Deprecate :: for method calls in 2.1
- +1
Apart from having no advantages over ".", "::" for method calls is very rarely used even anyways. It has been effectively deprecated by the Ruby community and it now has to be deprecated by Ruby itself :-) -
10:23 PM Feature #4840: Allow returning from require
- On May 9, 2013 12:14 PM, "nobu (Nobuyoshi Nakada)" <nobu@ruby-lang.org>
wrote:
>
>
> Issue #4840 has been updated by nobu (Nobuyoshi Nakada).
>
> File 0001-compile.c-toplevel-return.patch added
>
> A simple patch.
L... -
09:41 PM Feature #4840: Allow returning from require
- Pretty simple, indeed :) Not that I understand it, just that I appreciate its simplicity ;)
-
11:14 AM Feature #4840: Allow returning from require
- A simple patch.
-
08:55 PM Bug #8384 (Closed): Cannot build ruby against OpenSSL build with "no-ec2m"
- =begin
Due to recent changes in OpenSSL configuration options for Red Hat Enterprise Linux, I cannot build Ruby anymore.
These are the relevant changes in OpenSSL configuration:
@@ -227,7 +234,7 @@ sslarch=linux-ppc64
./Config... -
06:08 PM Bug #8383: Ripper.lex does not handle correctly symbols whose identifiers coincide with keyword names
- On a related note I don't think this works correctly with method definitions as well:
[30] pry(main)> Ripper.lex('def alias(arg)')
=> [[[1, 0], :on_kw, "def"],
[[1, 3], :on_sp, " "],
[[1, 4], :on_kw, "alias"],
[[1, 9], :on_lpar... -
05:51 PM Bug #8383 (Rejected): Ripper.lex does not handle correctly symbols whose identifiers coincide with keyword names
- This problem is best illustrated with an example
[23] pry(main)> Ripper.lex(':one')
=> [[[1, 0], :on_symbeg, ":"], [[1, 1], :on_ident, "one"]]
[24] pry(main)> Ripper.lex(':alias')
=> [[[1, 0], :on_symbeg, ":"], [[1,... -
02:54 PM Revision 2c240c5e (git): merge revision(s) 40612,40614: [Backport #8025]
- * class.c (rb_mod_included_modules): should not include the original
module itself. [ruby-core:53158] [Bug #8025]
* class.c (rb_mod_included_modules): should not include non-modules.
[ruby-core:53158] [Bug #... -
01:01 PM Revision 2ffbe034 (git): * ext/socket/ancdata.c (bsock_sendmsg_internal): controls_num should
- not be negative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:12 PM Revision bfb334ee (git): * file.c, ext/etc/etc.c, ext/socket/unixsocket.c,
- ext/openssl/ossl.h, ext/openssl/openssl_missing.c: Use
HAVE_AGGREGATE_MEMBER instead of HAVE_ST_MEMBER.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:48 AM Revision adb575e2 (git): * ext/socket/ancdata.c (bsock_sendmsg_internal): Always set
- controls_num to raise NotImplementedError appropriately.
(bsock_recvmsg_internal): Raise NotImplementedError if
:scm_rights=>true is given on platforms which don't have
4.4BSD style control message.
git-svn-id: svn+ssh://ci.ruby-... -
11:30 AM Bug #8381 (Closed): mistake in ruby doc - String#=== is missing
- This issue was solved with changeset r40622.
Georgia, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c: Add call-seq alias for String#=== [Bug #8381] -
10:57 AM Feature #8321: Ripper: I would like coordinates for keywords
- =begin
Do you mean changing following code from `((|current|))' to `((|proposal|))'?
*code
Ripper.sexp(<<SRC)
if some
test
elsif yet
another
else
test
end
SRC
*current
[:program,
[
[:if,
[:vc... -
04:25 AM Feature #8321: Ripper: I would like coordinates for keywords
- Here's an example:
[6] pry(main)> Ripper.sexp('alias :some :test')
=> [:program,
[[:alias,
[:symbol_literal, [:symbol, [:@ident, "some", [1, 7]]]],
[:symbol_literal, [:symbol, [:@ident, "test", [1, 13]]]]]]]
Using the fi... -
03:08 AM Revision a5e6d48d (git): * ext/socket/rubysocket.h, ext/socket/unixsocket.c,
- ext/socket/ancdata.c: Use HAVE_STRUCT_MSGHDR_MSG_CONTROL instead
of HAVE_ST_MSG_CONTROL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:30 AM Revision 029ad63b (git): * string.c: Add call-seq alias for String#=== [Bug #8381]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:18 AM Revision 8e564e3a (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:15 AM Revision 119f6751 (git): * doc/contributing.rdoc: Add guide for contributing to CRuby
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:02 AM Feature #8324: Net::Telnet.new のオプション
- 両方で受け付けるようにすると、両方指定された時にどちらを優先するのかという問題がありそうです。
CGI::Cookie.new のように他にもキーとして String のみ受け付けるものがあるようなので、
何か統一した方針で対応した方が良さそうな気がしました。
05/08/2013
-
11:42 PM Feature #8377: Deprecate :: for method calls in 2.1
- +1
"::" method call syntax has no advantages over ".", and it should be relatively simple to search through any codebase and convert the instances of using the former into the latter automatically. -
06:23 PM Feature #8377: Deprecate :: for method calls in 2.1
- I'm in favour of deprecating `::` for method calls as well. I'm all for
"multiple roads to Rome" but when it comes to the method calling syntax
I really want it to be consistent.
Actually getting rid of the operator is going to... -
11:55 AM Feature #8377: Deprecate :: for method calls in 2.1
- =begin
henry.maddocks (Henry Maddocks) wrote:
> charliesome (Charlie Somerville) wrote:
> > (({::})) is usually a constant lookup operator, but it can also be
> > used to call methods.
>
> Is it? I thought it was the scope... -
09:57 AM Feature #8377: Deprecate :: for method calls in 2.1 - +1
-
08:56 AM Feature #8377: Deprecate :: for method calls in 2.1
- charliesome (Charlie Somerville) wrote:
> (({::})) is usually a constant lookup operator, but it can also be used to call methods.
Is it? I thought it was the scope resolution operator.
charliesome (Charlie Somerville) wrote:
> ... -
08:53 AM Feature #8377: Deprecate :: for method calls in 2.1 - On Wednesday, 8 May 2013 at 4:35 AM, Hanmac (Hans Mackowiak) wrote:
> i am against that, what about methods that are defined in Kernel, but you want when you are inside an BasicObject?
> you need something like:
> Kernel::Array([]... -
05:03 AM Feature #8377: Deprecate :: for method calls in 2.1
- Hanmac (Hans Mackowiak) wrote:
> i am against that, what about methods that are defined in Kernel, but you want when you are inside an BasicObject?
> ...
You need :: before Kernel, unless you define const_get
::Kernel::Array(3)
A... -
03:35 AM Feature #8377: Deprecate :: for method calls in 2.1
- i am against that, what about methods that are defined in Kernel, but you want when you are inside an BasicObject?
you need something like:
Kernel::Array([])
or
Kernel.Array([])
what does make more sense for you? -
11:37 PM Bug #8313 (Assigned): rubygem 2.0 can't communicate with remote sources http://rubygems.org/
-
11:23 PM Bug #8381: mistake in ruby doc - String#=== is missing
- This looks like an rdoc bug that should have been fixed, but I will look into it. Thank you for reporting!
-
12:26 PM Bug #8381 (Closed): mistake in ruby doc - String#=== is missing
- #=== appears in the side bar but the description is a duplicate of #==
http://ruby-doc.org/core-2.0/String.html#method-i-3D-3D-3D -
10:23 PM Feature #8339: Introducing Geneartional Garbage Collection for CRuby/MRI
- (2013/05/08 20:56), urielka (Uriel Katz) wrote:
> Quick question,wouldn't it be better to add a generation number instead of just a flag?
> The idea is that in the future you could add more generations(most gen GC I know use 3 gener... -
08:56 PM Feature #8339: Introducing Geneartional Garbage Collection for CRuby/MRI
- Amazing work!
Quick question,wouldn't it be better to add a generation number instead of just a flag?
The idea is that in the future you could add more generations(most gen GC I know use 3 generations) -
07:58 PM Revision f9feb22f (git): error message refined.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:57 PM Revision 18646d74 (git): * configure.in: Check socket library again. shutdown() is used in
- io.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:47 PM Bug #8342 (Closed): IO.readlines ignores Encoding.default_internal if Encoding.default_external is ASCII-8BIT
- This issue was solved with changeset r40610.
Leo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (rb_io_ext_int_to_encs): ignore internal encoding if extern... -
04:55 PM Revision 86d5a05c (git): Update a comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:52 PM Revision 6d313a38 (git): * configure.in: Don't check socketpair. socketpair is not used in
- ruby command itself.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:10 PM Bug #8364: Vim's if_ruby feature sometimes crash.
- Maybe I found the reason why RUBY_INIT_STACK in rbexe() doesn't work.
`th->machine_stack_start` is set from `native_main_thread.stack_start` in ruby_init().
https://github.com/ruby/ruby/blob/ab750920b9dfdab1117bc39e14bb28195b2b9830... - 04:05 PM Revision 53175b09 (git): * 2013-05-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:05 PM Revision e8bdef65 (git): class.c: include modules only
- * class.c (rb_mod_included_modules): should not include non-modules.
[ruby-core:53158] [Bug #8025]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:38 PM Revision 4c1f8acd (git): merge revision(s) 40583,40584,40585,40590: [Backport #8367]
- * insns.def (defined): get method entry from the method top level
frame, not block frame. [ruby-core:54769] [Bug #8367]
* insns.def (defined): use vm_search_superclass() like as normal super
call. based on ... -
02:00 PM Bug #8378 (Closed): json/generator/generator.c: warning: array subscript has type 'char'
- This issue was solved with changeset r40609.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/json/generator/generator.c (isArrayOrObject): cast char to... -
02:00 PM Bug #8379 (Closed): json dependency problem
- This issue was solved with changeset r40608.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/json/generator/depend: fix dependencies [Bug #8379]
* ext... -
01:47 PM Revision 3fd0000c (git): class.c: exclude original module
- * class.c (rb_mod_included_modules): should not include the original
module itself. [ruby-core:53158] [Bug #8025]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:12 PM Bug #8376: utc method changes original time object
- You can use Time#getutc or #getgm.
-
01:07 PM Feature #8382 (Closed): Format OpenStruct YAML dump and create getters and setters after load.
- =begin
Currently Open Struct doesn't format it's YAML output exposing ((|@table|)). It also doesn't create setters and getter like (({#marshal_load})). This patch does both.
=end -
12:39 PM Revision 63594606 (git): Add a comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:47 AM Revision 4834aa53 (git): * io.c (rb_io_ext_int_to_encs): ignore internal encoding if external
- encoding is ASCII-8BIT. [Bug #8342]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:00 AM Revision ce573f31 (git): * ext/json/generator/generator.c (isArrayOrObject): cast char to
- unsigned char. [Bug #8378]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:59 AM Revision 279c7bdd (git): * ext/json/generator/depend: fix dependencies [Bug #8379]
- * ext/json/parser/depend: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:07 AM Revision 85280f4b (git): parse.y: fail if invalid name
- * parse.y (parser_yylex): fail if $, @, @@ are not followed by a valid
name character. [ruby-core:54846] [Bug #8375].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:07 AM Revision 4dfd3739 (git): test_scanner_events.rb: assert_location
- * test/ripper/test_scanner_events.rb (TestRipper#assert_location):
rename so skipped in backtraces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:06 AM Revision b8bcd920 (git): ruby.h: ISGRAPH
- * include/ruby/ruby.h (ISGRAPH): add missing macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/07/2013
-
11:39 PM Bug #8379 (Closed): json dependency problem
- json の Makefile の依存関係ですが、generator.o と parser.o の依存先の
ヘッダファイルが足りないようです。
過不足を調べてくれるスクリプト (update-deps) によれば、以下が足りないようです。
ext/json/generator/generator.o は以下が依存先として記述されていない:
include/ruby.h
include/ruby/ruby.h
.ext/include/i6... - 10:51 PM Revision 2816e539 (git): * 2013-05-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:51 PM Revision bbcf97fa (git): * ext/socket/socket.c (socket_s_ip_address_list): fix wrongly filled
- sin6_scope_id on KAME introduced by r40593 for OpenIndiana.
KAME uses fe80:<scope_id>::<interface id> for link-local address
internally.
Setting sin6_scope_id causes it leaked.
see also comments of sockaddr_obj().
git-svn-id: sv... -
10:26 PM Bug #8378 (Closed): json/generator/generator.c: warning: array subscript has type 'char'
- ふと、cygwin を target とする cross-compile をしてみたところ、
以下の警告を見つけました。
(たぶん cross でなくても警告されると思います)
make[2]: Entering directory `/extdisk/chkbuild/chkbuild/tmp/build/20130507T115727Z/ruby/ext/json/generator'
compiling generator.c
generator.c... -
09:51 PM Bug #8376: utc method changes original time object
- I admit this is a bad design, but changing it introduces incompatibility.
We don't consider it as a bug (thus we rejected).
Submit feature request instead, if you really want to change.
Maybe fixed in the future, if we can provide pro... -
09:39 PM Bug #8376: utc method changes original time object
- naruse (Yui NARUSE) wrote:
> Time#utc is destructive method.
> ...
That seems the point of this issue. The behaviour is inconsistent. `t.utc!` should be the way to destroy `t` in the example. This should be changed... ruby isn't PHP.
-
07:35 PM Bug #8376 (Rejected): utc method changes original time object
- Time#utc is destructive method.
Use dup if you want a copy. -
07:32 PM Bug #8376 (Rejected): utc method changes original time object
- The utc method changes the original time object when called.
For example when on a system with a CET timezone.
t = Time.new(2013)
t.zone # CET
t.utc
t.zone # UTC -
07:49 PM Feature #8377 (Rejected): Deprecate :: for method calls in 2.1 - =begin
(({::})) is usually a constant lookup operator, but it can also be used to call methods. This can confusing to people learning Ruby.
I propose deprecating (({::})) as a method call operator in Ruby 2.1, then removing it in 2.2... -
04:49 PM Revision 555035a3 (git): merge revision(s) 40208: [Backport #8380]
- * internal.h (MUL_OVERFLOW_SIGNED_INTEGER_P): New macro.
(MUL_OVERFLOW_FIXNUM_P): Ditto.
(MUL_OVERFLOW_LONG_P): Ditto.
* array.c (rb_ary_product): Don't overflow on signed integer
multiplication.
... -
04:45 PM Bug #8374 (Assigned): race condition when two threads require a gem
- Seems rubygems specific.
-
02:43 PM Bug #8374 (Closed): race condition when two threads require a gem
- =begin
Requiring a gem with a C extension seems to be not threadsafe.
Any one of the require lines below will frequently (but not always) cause an error like the following:
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/k... -
01:15 PM Revision 42642407 (git): * ext/readline/readline.c (insert_ignore_escape): Add a cast to
- unsigned char * before dereference.
This suppress a warning on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:12 PM Bug #8373 (Rejected): Failure to run "rails server"
- "[BUG] unknown type 0x22" is most probably T_DATA for ruby 1.8.
You have an extension library (or more) for older ruby.
Try `otool -L` for followings.
1 /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.2.1/en... -
07:47 AM Bug #8373 (Rejected): Failure to run "rails server"
- Yesterday, running "rails server" worked. Today it didn't. What happened is the following:
First, I will describe the bug error I have received (and a recommendation to post here), then I will describe the full set of my actions.
I... -
11:18 AM Revision b6f0a306 (git): * test/ruby/test_thread.rb (invoke_rec): extend timeout 10 -> 50 sec,
- to investigate test failure on rubyci.
http://a.mrkn.jp/~mrkn/chkbuild/mountain_lion/ruby-2.0.0-m64-o0/log/20130507T052909Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40600 b2dd03c8-39d4-4d8f-98ff-823... -
10:03 AM Feature #7845: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1)
- =begin
Thank you for valuable input.
That indicates the need for something like (({str.strip(:ascii)})), or opposite (({str.strip(:utf8)}))
Matz.
=end -
01:59 AM Feature #7845: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1)
- matz (Yukihiro Matsumoto) wrote:
> Akira, Thank you for pointing out.
> ...
Modern protocol like SMTPUTF8 <http://tools.ietf.org/html/rfc6532> and URL Standard <http://url.spec.whatwg.org/>
use UTF-8 as its character encoding, but the... -
01:12 AM Feature #7845: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1)
- Akira, Thank you for pointing out.
But it's hard for me to imagine concrete problematic cases.
When text from network connection is marked as Unicode, that's OK to process them as Unicode text,
otherwise they should be marked as 'AS... -
03:41 AM Bug #8372 (Rejected): Segmentation fault with Factory Girl when using :class, typo on related factory
- This is a duplicate of #8100
Please try it again with trunk. -
02:29 AM Bug #8372 (Rejected): Segmentation fault with Factory Girl when using :class, typo on related factory
- =begin
This bug is partially the result of a typo, partially learning and switching things around in FactoryGirl, and resulting in a seg fault
I have a nested ActiveRecord model (Person::Identity), when I define a FactoryGirl factory... -
03:19 AM Revision 593c24f8 (git): * ext/socket/ancdata.c (bsock_recvmsg_internal): Add a cast to
- suppress warning.
Bionic defines socklen_t as int.
Bionic defines msg_controllen as unsigned int (__kernel_size_t)
instead of socklen_t as POSIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40599 b2dd03c8-39d4-4d8f-98ff-82... -
03:14 AM Revision cb2f3c1b (git): * ext/socket/ancdata.c (ancillary_inspect): Don't call
- anc_inspect_ipv6_pktinfo if !HAVE_TYPE_STRUCT_IN6_PKTINFO.
anc_inspect_ipv6_pktinfo is not defined in the case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:12 AM Revision 2b792abd (git): * ext/socket/socket.c (socket_s_ip_address_list): Cast EXTRA_SPACE as
- int. This suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:10 AM Revision 301821bd (git): * ext/socket/extconf.rb: Set close_fds false for Cygwin.
- Cygwin doesn't support fd passing.
This enables socket extension library cross-compilable by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:09 AM Revision f4fd7790 (git): * 2013-05-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:09 AM Revision 570015a1 (git): * pack.c (swap32): Don't redefine it if it is already defined.
- Bionic defines it.
(swap64): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:01 AM Feature #8366: Exception.message take time to execute depending on the instance variables
- nobu (Nobuyoshi Nakada) wrote:
> You should define inspect method.
But it is not practical to define inspect on all the classes I write or add inspect to all third party code or plugins I use, easier and better solution would be to ...