Activity
From 03/17/2012 to 03/23/2012
03/23/2012
-
11:53 PM Bug #6193: Time.new does not accept seconds as a String
- Here is the patch which will fix the problem with the seconds. There is also pull request for github.
-
12:21 PM Bug #6193 (Closed): Time.new does not accept seconds as a String
- Time.new accepts any or all of the year, month, day, hour, or minute specified as a String, but does not accept a String value for seconds:
>> Time.new("2012", "3", "22", "8", "19", 30)
=> 2012-03-22 08:19:30 -0700
> ...
TypeError: ... -
11:38 PM Bug #6195: String#[] に逆順の Range を渡した場合の挙動
- 前田です。
mrkn (Kenta Murata) wrote:
> 以下のように String#[] に対して、範囲の開始インデックスが文字列の長さ以下の値である逆順の Range (beg > end) を渡した場合に空文字列が返ります。
> ...
私も最初そう思ったのですが、PythonやJavaScriptではどちらの場合も空文字列を返すようです。
# 以下の例はどちらもRubyのs[x...y]相当(s[x..y]ではない)です。
de... -
06:52 PM Bug #6195 (Rejected): String#[] に逆順の Range を渡した場合の挙動
- 以下のように String#[] に対して、範囲の開始インデックスが文字列の長さ以下の値である逆順の Range (beg > end) を渡した場合に空文字列が返ります。
"1"[1..0] #=> ""
"1"[1..-1] #=> ""
"123"[2..1] #=> ""
"123"[2..-2] #=> ""
一方、範囲の開始インデックスが文字列の長さより大きい場合は nil が返ります。
"1"[2..0] #=>... -
07:15 PM Feature #3908: private constant
- Methods are different b/c they can effect state --they can be *dangerous*. If it wasn't for that, there would be little reason to have private methods either.
So, what does this "if you really want to get at them, you still can" look ... -
09:53 AM Feature #3908: private constant
- On Thu, Mar 22, 2012 at 23:46, trans (Thomas Sawyer) <transfire@gmail.com>wrote:
> But codifying that, rather than just documenting it, is bound to be more
> frustrating than useful.
Isn't that the point of trying to crac... -
08:46 AM Feature #3908: private constant
- Isn't that really best left to a documentation detail?
While these private classes might be an implementation detail in your design, what if someone comes along and wants to build off the work and thus needs to subclass one of these i... -
02:53 AM Feature #3908: private constant
- On Thu, Mar 22, 2012 at 17:08, trans (Thomas Sawyer) <transfire@gmail.com>wrote:
> I can't think of single reason why anyone would actually have to have a
> "private", as opposed to a "public", constant. Constants are CONSTANT so... -
02:23 AM Feature #3908: private constant
- On Thu, Mar 22, 2012 at 18:08, trans (Thomas Sawyer)
<transfire@gmail.com> wrote:
> I can't think of single reason why anyone would actually have to have a "private", as opposed to a "public", constant.
Private modules and c... -
02:08 AM Feature #3908: private constant
- What was this deemed significant? I can't think of single reason why anyone would actually have to have a "private", as opposed to a "public", constant. Constants are CONSTANT so they aren't supposed to be changed after they are defined ...
-
06:49 PM Feature #6166: Enumerator::Lazy#pinch
- Hello,
trans (Thomas Sawyer) wrote:
> In previous issue #6158 it has been determined that Enumerator::Lazy#take should be lazy. But an eager form of #take would still be useful.
> ...
Enumerator::Lazy#pinch provides a random access ... -
06:43 PM Bug #6142 (Feedback): Enumerable::Lazy#zip doesn't rewind internal enumerators
-
06:42 PM Bug #6159 (Feedback): Enumerable::Lazy#inspect
-
01:19 PM Bug #6192 (Closed): Integer() doesn't handle UTF-16 input
- This issue was solved with changeset r35120.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (rb_str_to_inum): must be ASCII compatible encoding as... -
01:00 PM Bug #6192: Integer() doesn't handle UTF-16 input
- =begin
I made this patch:
Index: bignum.c
===================================================================
--- bignum.c (revision 35117)
+++ bignum.c (working copy)
@@ -11,6 +11,7 @@
#include "ruby/ruby.h"
... -
10:34 AM Bug #6192: Integer() doesn't handle UTF-16 input
- Related, String#to_i:
>> "2007".encode("UTF-16le").to_i
=> 2
-
10:30 AM Bug #6192 (Closed): Integer() doesn't handle UTF-16 input
- >> Integer("2007".encode("UTF-16le"))
ArgumentError: string contains null byte
from (irb):209:in `Integer'
from (irb):209
from /Users/john/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>'
-
11:33 AM Bug #6094 (Closed): [OpenSSL] wrong argument of rsa_generate()
- This issue was solved with changeset r35117.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Refix Bug #6094: use unsigned long integer literal.
* ext/o... -
11:03 AM Bug #6094 (Open): [OpenSSL] wrong argument of rsa_generate()
-
06:12 AM Revision 463633e4 (git): transcode.c (documentation for str_encode): Explain
- that transcoding to the same encoding is a no-op
(i.e. no exceptions, no replacements,...).
[ruby-core:43557][Bug #6190]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:19 AM Revision 163ab0a4 (git): * bignum.c (rb_str_to_inum): must be ASCII compatible encoding as
- well as String#hex and String#oct. [ruby-core:43566][Bug #6192]
* string.c (rb_must_asciicompat): check if ASCII compatible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:38 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- Updated patch with the following changes:
* rb_eEWOULDBLOCKReadable and rb_eEWOULDBLOCKWritable added
* EWOULDBLOCK versions are set to EAGAIN versions if EAGAIN == EWOULDBLOCK
* renamed function rb_readwrite_sys_fail to match error... -
02:37 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- Ok, will do.
-
03:14 AM Revision a1348699 (git): * test/ruby/test_io.rb (try_fdopen): more GCable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:04 AM Revision 2bf3b20d (git): * file.c (rb_file_s_basename): rb_enc_asciicompat() evaluates the argument multiple times.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:33 AM Revision ee3e7dcf (git): Refix Bug #6094: use unsigned long integer literal.
- * ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type.
[Bug #6094]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:02 AM Revision cca049e0 (git): Revert "* ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type."
- This reverts commit r35102.
It breaks tests on FreeBSD.
6) Failure:
test_new_with_exponent(OpenSSL::TestPKeyRSA)
[/usr/home/chkbuild/build/ruby-trunk/20120323T010301Z/ruby/test/openssl/test_pkey_rsa.rb:59]:
<3> expected but was
<12884... -
12:56 AM Revision 6d8580fe (git): * configure.in (Makefile): get rid of confliction with -j.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/22/2012
- 10:52 PM Revision e91983b4 (git): * 2012-03-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:52 PM Revision 4725c988 (git): Revert "* configure.in (Makefile): get rid of confliction with -j."
- This reverts commit r35104 because it breaks build on FreeBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:10 PM Bug #6186: Bug trying to compile Ruby 1.9.3p105
- shevegen (markus heiler) wrote:
> (I want to try to get a static version of ruby)
Well, without any flags a ruby consists of following parts:
1. the ruby binary (/usr/local/bin/ruby)
2. the libruby shared object
3. extensi... -
02:55 PM Bug #6186 (Rejected): Bug trying to compile Ruby 1.9.3p105
- shevegen (markus heiler) wrote:
> CFLAGS in use: -static -O2 -g
Do not use -static.
It makes all shared objects linked statically with libc routines.
-
01:23 PM Bug #6186: Bug trying to compile Ruby 1.9.3p105 - >
>Issue #6186 has been reported by shevegen (markus heiler).
>
>----------------------------------------
>Bug #6186: Bug trying to compile Ruby 1.9.3p105
>https://bugs.ruby-lang.org/issues/6186
>
>Author: shevegen (markus... -
01:07 PM Bug #6186: Bug trying to compile Ruby 1.9.3p105
- Sorry that it is so long. Do you need config.log too?
The bug is at:
/Depot/j/ruby-1.9.3p105/.ext/x86_64-linux/enc/encdb.so: [BUG] Segmentation fault
I am not sure what encdb.so is though. :) -
01:05 PM Bug #6186 (Rejected): Bug trying to compile Ruby 1.9.3p105
- Hi!
First my system information:
GCC Version: GCC version 4.4.3
Glibc Version: ldd (GNU libc) 2.11.2
CFLAGS in use: -static -O2 -g
Binutils Version: GNU ld (GNU Binutils) 2.22
I am trying to compile ruby version:
... -
02:14 PM Revision 2b846261 (git): * transcode.c (str_encode_bang, encoded_dup): if nothing was
- transcoded, just set encoding but leave coderange unchanged as
forcee_encoding. [ruby-core:43557][Bug #6190]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:05 PM Revision 7cbff3b9 (git): * io.c (static int io_fflush): add the definition.
- Use it in set_binary_mode_with_seek_cur().
* io.c (set_binary_mode_with_seek_cur): refactoring to split the
content into io_unread(). Fix the possibility of buffer overflow.
* io.c (io_unread): add new implementation for Windows. Pre... -
01:43 PM Bug #6094 (Closed): [OpenSSL] wrong argument of rsa_generate()
- This issue was solved with changeset r35102.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument t... -
11:47 AM Revision 3d22e33a (git): * include/ruby/win32.h (fstati64): fix macro conflicts.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:37 AM Feature #6177: array.cのrb_ary_equal()の高速化
- Nobuyoshi Nakada wrote:
>最も大きいのはrb_ary_elt()呼び出しのオーバーヘッドということのようですね。
そのようです。
> ...
おっしゃる通りです…
凡ミスをやらかしてしまいました。
p1,p2が有効であるかどうかのチェックを止め、rb_equal()を呼び出したら有効なポインタを取得するようにしました。
ベンチマークの結果はpatch3.diffとほとんど変わりません。 -
10:55 AM Revision ff075693 (git): * win32/win32.c (rb_w32_fstat, rb_w32_fstati64): convert FILETIME
- to time_t directly, not to be affected by TZ unnecessarily.
* win32/win32.c (unixtime_to_filetime): convert time_t to FILETIME
simply.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:37 AM Revision 0b83d3b2 (git): * test/ruby/test_m17n.rb (test_env): show failed values.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:37 AM Revision d28c1896 (git): * regint.h (BITS_IN_ROOM, BS_ROOM, BS_BIT): suppress warnings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:22 AM Feature #5097 (Closed): Supported platforms of Ruby 1.9.3
-
09:22 AM Bug #5094 (Closed): Supported platforms of Ruby 1.9.3
-
09:21 AM Bug #6144 (Closed): regexec may allocate extra memory?
-
09:20 AM Bug #6145 (Closed): two possible bugs in Onigmo
-
09:20 AM Bug #6143 (Closed): Onigmo allows broken regexp: /(?(x.)/
-
08:07 AM Bug #6184: [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
- Also, please include crash report from ~/Library/Logs/CrashReporter or /Library/Logs/CrashReporter.
I suspect this is a similar bug to #6181 which include a CrashReporter log. -
07:25 AM Bug #6184: [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
- Ah, also you can install openssl using rvm.
http://beginrescueend.com/packages/openssl/
:) -
07:23 AM Bug #6184 (Feedback): [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
-
07:04 AM Bug #6184: [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
- Seems openssl is something wrong.
1. If you're using OS X's default openssl -> do like `brew install openssl` and build with installed openssl, then try again.
2. If you're using openssl that installed by user -> build with OS X defa... -
06:51 AM Bug #6184 (Third Party's Issue): [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
- System:
OSX 10.7.3
Xcode 4.3.1
rvm 1.10.2
bundle 1.1.2
$ ruby -v
ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
I did:
CODE
---------------------------------------
$ rvm ruby-1.9.3-head
$ rvm g... -
07:32 AM Feature #6180: to_b for converting objects to a boolean value
- I too would very much like to see a #to_bool method on every object.
In my opinion, if you define a public API, you should be as strict as possible about what each method returns, so that your users can rely on it, but also to minimiz... -
06:04 AM Revision 9accaad5 (git): * configure.in (Makefile): add missing test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:59 AM Revision cd71db0a (git): * configure.in (Makefile): check with svn info, since svn 1.7 doesn't
- have .svn under descendent directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:59 AM Revision 11c57111 (git): * configure.in (Makefile): get rid of confliction with -j.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:57 AM Revision 3417dd28 (git): TRY_LINK needs EXEEXT
- * lib/mkmf.rb (TRY_LINK): need EXEEXT for cross-compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:43 AM Revision 39113275 (git): * ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type.
- [Bug #6094]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:17 AM Revision 24513fe2 (git): workaround for mingw
- * lib/mkmf.rb (try_link0, try_compile, try_cpp): check if the target
file get created actually. workaround for the case that the exit
status of a cygwin program seems lost on mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk... -
02:17 AM Revision b1bdada1 (git): remove conftest files
- * lib/mkmf.rb (try_constant): remove conftest files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:14 AM Revision 99594056 (git): * 2012-03-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:14 AM Revision caf627af (git): * test/ruby/test_io.rb (TestIO#test_pos_with_getc): updated.
- see [ruby-core:43550]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/21/2012
-
11:35 PM Feature #6183 (Rejected): Enumerator::Lazy performance issue
- Hello,
Enumerator::Lazy is not a silver bullet; it removes the overhead for
creating an intermediate array, but brings the drawback for calling
a block. Unfortunately, the latter is much bigger than the former.
Thus, in general, L... -
11:33 PM Feature #6183: Enumerator::Lazy performance issue
- Granted that seems like a bit too much overhead, but the advantage to lazy is not in a 1-to-1 comparison with non-lazy. Try removing the `.each` call at the end and adding `.take(10)` instead.
-
10:24 PM Feature #6183 (Closed): Enumerator::Lazy performance issue
- I benchmarked Enumerator::Lazy and that's what I got:
user system total real
Lazy: 0.690000 0.010000 0.700000 ( 0.733160)
Normal: 0.160000 0.010000 0.170000 ( 0.186695)
It seem... -
09:13 PM Feature #3479: Array#binary_find et al
- Hello,
2012/3/18, nahi <nakahiro@gmail.com>:
> Endoh-san, how do you think?
Thank you for reminding this.
I think this is a duplicate (or a subset) of #4766 which is accepted by matz.
So I'm going to commit my patch within a rea... -
08:15 PM Feature #2065 (Rejected): An ancestors iterator
- Hello,
I'm not keen to import this feature.
I'm closing the ticket. Please reopen it if you find a piece of
code in the wild whose bottleneck is solved by #each_ancestor.
--
Yusuke Endoh <mame@tsg.ne.jp> -
07:53 PM Feature #3908: private constant
- Hello,
2012/3/18, Hiroshi Nakamura <nakahiro@gmail.com>:
> Closing as implemented at 1.9.3.
Thanks.
When I think about it now, 2.0.0 were enough for
this feature. No one thought 2.0.0 would become
close to reality ... -
07:53 PM Feature #6180: to_b for converting objects to a boolean value
- On 21/03/12 01:44, trans (Thomas Sawyer) wrote:
>
> Issue #6180 has been updated by trans (Thomas Sawyer).
>
>
> Also, what you are asking for should probably be called #to_bool.
>
> Where as #to_b can have a broader, and ... -
03:53 PM Feature #6180: to_b for converting objects to a boolean value
- drbrain (Eric Hodel) wrote:
> Issue #6180 has been updated by drbrain (Eric Hodel).
>
> Why do you need to convert objects to boolean values?
1. To avoid breaking encapsulation. For example:
def connected?
!! @... -
11:40 AM Feature #6180: to_b for converting objects to a boolean value
- =begin
If you're testing that a method returns exactly true and not a true value you're probably being over-specific in your tests. An assertion that a method returns a true value and not exactly true will allow the tests to be used un... -
11:32 AM Feature #6180: to_b for converting objects to a boolean value
- The only problem with that is that Ruby defines #nil? which is a strict check for NilClass instance. Hence #true? and #false? make more sense doing the same for TrueClass and FalseClass.
-
11:26 AM Feature #6180: to_b for converting objects to a boolean value
- @drbrain - Very true but it is nice to be consistent with return values. It makes testing a little easier and fits a little better with the principle of least surprise.
@hasari - to_s could easily be string or symbol. It doesn't seem ... -
10:44 AM Feature #6180: to_b for converting objects to a boolean value
- Also, what you are asking for should probably be called #to_bool.
Where as #to_b can have a broader, and generally more useful definition, e.g.
"true".to_b #=> true
"yes".to_b #=> true
"on".to_b #=> true
1.to_b ... -
10:40 AM Feature #6180: to_b for converting objects to a boolean value
- Also, to_b is ambiguous. 'b' can stand for "bits", "bytes", "binary", just to name a few.
-
10:15 AM Feature #6180: to_b for converting objects to a boolean value
- It is even shorter if you just omit the !! or the to_b altogether:
$ ruby20 -e'puts RubyVM::InstructionSequence.compile(%[foo]).disasm'
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1... -
10:13 AM Feature #6180: to_b for converting objects to a boolean value
- I think that "to_b" is more clear and fits well with the other to_*. Using "!!" isn't the most obvious choice for people looking to create a boolean. I am a bit disheartened to find out that it's slower.
-
09:46 AM Feature #6180: to_b for converting objects to a boolean value
- BasicObject#! is optimized by YARV as following:
% ruby -e'puts RubyVM::InstructionSequence.compile(%[!!foo]).disasm'
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ... -
09:16 AM Feature #6180: to_b for converting objects to a boolean value
- Typically this comes up when you have a method ending in a question mark to indicate a boolean return value.
def foo?
!!@foo
end
def has_vowel?
!!(value =~ /[aeiou]/)
end -
08:09 AM Feature #6180: to_b for converting objects to a boolean value
- Why do you need to convert objects to boolean values?
-
06:51 AM Feature #6180 (Rejected): to_b for converting objects to a boolean value
- When a boolean return value is required it has become common practice is to use "!!" to convert the object. It would be more consistent to provide a "to_b" method on Object.
-
05:57 PM Bug #6099 (Closed): [BUG] probable buffer overflow
-
05:05 PM Bug #6182: ruby crashed with trace inof below !(Ruby interpreter or extension libraries)
- Could you try it with trunk/1.9.3?
-
04:57 PM Bug #6182 (Feedback): ruby crashed with trace inof below !(Ruby interpreter or extension libraries)
- Can you show us how we can see that output on our machine?
-
03:20 PM Bug #6182 (Closed): ruby crashed with trace inof below !(Ruby interpreter or extension libraries)
- /home/bourne/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/timeout.rb:75: [BUG] rb_register_sigaltstack. malloc error
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
-- control frame ----------
c:0006 p:---- s:0024 b:0024 l:0... -
12:58 PM Bug #6181: Ruby crash when trying to send a mail (tls/gmail)
- The crash is during X509 certificate verification.
-
12:28 PM Bug #6181 (Third Party's Issue): Ruby crash when trying to send a mail (tls/gmail)
- The following code made ruby crash:
require 'net/smtp'
smtp = Net::SMTP.new 'smtp.gmail.com', 587
smtp.enable_starttls
smtp.start("gmail.com", "***edited***", "***edited***", :login) do
smtp.send_message("hello world!!", "... -
10:53 AM Revision b2cc0976 (git): * regcomp.c: Merge Onigmo 3d855b30d574536d3ae600260208c6624ae4791c.
- [Bug#6143] [Bug#6144] [Bug#6145]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:59 AM Bug #6175: watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault
- michaelcm (Michael McWilliam) wrote:
> Also, I posted it here because the bugreport.html page said to click on the link for ruby 1.9.2 or 1.9.3, but neither were links, so I looked for something that had 9.3 in it, and that was this bac... -
08:53 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
- Hello,
Ah, I see. RubySpec defines to_a to assert that it's never called, right?
That makes sense.
2012/03/20 2:27 "marcandre (Marc-Andre Lafortune)" <ruby-core@marc-andre.ca
>:
>
>
> Issue #6155 has been updated by ma... - 08:03 AM Revision 51f41bb8 (git): * 2012-03-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:03 AM Revision af86dba2 (git): * test/ruby/test_io.rb (TestIO#test_pos_with_getc): added.
- see [Bug #6179][ruby-core:43518]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:50 AM Bug #4434: make test-all "-j10000" のように大きな並列数を与えると異常終了
- Too many open files を出してるのがマネージャープロセスなら、しょうがないんじゃない。それはRLIMIT上げればいいんだし。
workerプロセスが出してるなら問題で、それはfdリークを意味してるので -j の数によってテストが変わってしまう可能性があるのでよくないよね。
-
06:27 AM Bug #5973: Bus Error in simple project requiring YARD
- Thanks, I tried with 1.9.3-p125 and the problem does seem to be resolved.
-
01:42 AM Bug #6143: Onigmo allows broken regexp: /(?(x.)/
- OnigmoのRubyマージ作業用ブランチにも修正を反映しました。
https://github.com/k-takata/Onigmo/tree/tmp/ruby-2.0.x -
01:41 AM Bug #6145: two possible bugs in Onigmo
- 1つめは、ENCLOSE_CONDITION で node->target が NULL になることはありません。
チェック無しに node->target をデリファレンスをしているのは、ENCLOSE_STOP_BACKTRACK のケースも同様なので、今回は修正していません。
2つめは修正しました。
https://github.com/k-takata/Onigmo/tree/tmp/ruby-2.0.x -
01:35 AM Bug #6144: regexec may allocate extra memory?
- sizeof(char*)をsizeof(OnigStackIndex)に修正しました。
https://github.com/k-takata/Onigmo/tree/tmp/ruby-2.0.x -
12:23 AM Feature #6177: array.cのrb_ary_equal()の高速化
- Glass_saga (Masaki Matsushita) wrote:
> patchを直し、rb_equal()を実行した後に互いのRARRAY_LENのチェックと
> ...
最も大きいのはrb_ary_elt()呼び出しのオーバーヘッドということのようです
ね。
> >もう一点、&&ではなく||ではないでしょうか。
> ...
たしかに。
> 新しいpatchを添付します。
i != 0 なら常に (p1 != RARRAY_PTR(... -
12:09 AM Feature #3916: Add flag to ruby to make warnings fatal.
- It wouldn't break backward compatibility, but it would take time for libraries to adjust to take the most advantage of it. And yet, any library with active development will likely adjust very quickly.
I would expect existing uses of w...
03/20/2012
-
11:34 PM Feature #6177: array.cのrb_ary_equal()の高速化
- Nobuyoshi Nakada wrote:
>rb_equal()はメソッドを呼び出すので、その後ではp1,p2が有効である保証がありません。
patchを直し、rb_equal()を実行した後に互いのRARRAY_LENのチェックと
p1, p2の有効性のチェック、無効であれば有効なポインタを得る処理を入れました。
rb_ary_elt()を使えば簡潔に書けるのですが、以下のように遅くなってしまいました。
user syst... -
10:00 PM Feature #6177: array.cのrb_ary_equal()の高速化
- =begin
もう一点、(({&&}))ではなく(({||}))ではないでしょうか。
=end
-
09:58 PM Feature #6177: array.cのrb_ary_equal()の高速化
- =begin
(({rb_equal()}))はメソッドを呼び出すので、その後では(({p1})),(({p2}))が有効である保証がありません。
=end
-
08:29 PM Feature #6177: array.cのrb_ary_equal()の高速化
- Nobuyoshi Nakada wrote:
>先頭だけではなく、同一オブジェクトかどうかを常に先に調べるようにするとどうなるでしょうか。
最初の要素だけobject_idに依らない同値性の判定が必要なケース(先に添付したpatch.diffを適用したrubyにとって最悪のケース)を加えてベンチマークを取りました。
patch1は先に添付したpatch.diffを適用したもので、patch2は同一オブジェクトかどうかを常に先に調べるようにしたものです。
... -
06:13 PM Feature #6177: array.cのrb_ary_equal()の高速化
- =begin
先頭だけではなく、同一オブジェクトかどうかを常に先に調べるようにするとどうなるでしょうか。
=end
-
12:08 PM Feature #6177 (Closed): array.cのrb_ary_equal()の高速化
- できる限りVALUEの値の比較のみに留め、必要になったらrb_equal()を用いるという方針でrb_ary_equal()の高速化を試みました。
次のベンチマークを行ったところ、以下のような結果となりました。
require 'benchmark'
A = Array.new(100_0000){|n| n }
B = Array.new(1_0000){|n| n.to_s }
C = Array.new(1_0000){|n| n.to_s }
... -
11:34 PM Feature #3773: Module#parent
- I will eventually try again. I don't really understand having #name, but not being able to get the actual constant named by #name.
-
09:51 PM Feature #4523 (Rejected): Kernel#require to return the path of the loaded file
-
07:29 PM Feature #4523: Kernel#require to return the path of the loaded file
- On 19/03/12 23:24, Eric Hodel wrote:
> On Mar 19, 2012, at 10:16 AM, Alex Young wrote:
>> On 19/03/12 11:58, Luis Lavena wrote:
<snip>
>>> $LOADED_FEATURES include full paths
>>
>> Does it? Is that now part of the spec?
>... -
08:29 AM Feature #4523: Kernel#require to return the path of the loaded file
- On Mar 19, 2012, at 10:16 AM, Alex Young wrote:
> On 19/03/12 11:58, Luis Lavena wrote:
>> On Mon, Mar 19, 2012 at 8:06 AM, Alex Young<alex@blackkettle.org> wrote:
>>> On 18/03/12 10:22, nobu wrote:
>>>>
>>>>
>>>> Issue #4523 h... -
02:23 AM Feature #4523: Kernel#require to return the path of the loaded file
- On 19/03/12 11:58, Luis Lavena wrote:
> On Mon, Mar 19, 2012 at 8:06 AM, Alex Young<alex@blackkettle.org> wrote:
>> On 18/03/12 10:22, nobu wrote:
>>>
>>>
>>> Issue #4523 has been updated by nobu.
>>>
>>>
>>> I don't th... -
03:20 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
- h.shirosaki (Hiroshi Shirosaki) wrote:
> Specify options:
> ...
Silly option. Should be 'new_process_group: true' or similar, at least.
> Python module does similar things.
> ...
Sigh. - 01:55 PM Revision 905eb21d (git): * 2012-03-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:54 PM Revision 1e42030f (git): test_thread: test_condvar_wait_not_owner duplicates test_condvar_nolock
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:52 PM Feature #3916: Add flag to ruby to make warnings fatal.
- There are no priorities for warnings at present, so any code using warnings would need to be updated to take advantage of the feature, breaking backwards compatibility.
Existing uses of #warn could be set as "lowest priority" which ma... -
10:48 AM Feature #3916: Add flag to ruby to make warnings fatal.
- @drbrain Wouldn't using priorities and setting such a warning to a very low priority solve this?
-
07:40 AM Feature #3916: Add flag to ruby to make warnings fatal.
- Sometimes when I use Kernel#warn in my code it is a message the user may not be able to do anything about, such as a deprecation message in library "a" that is used in library "b" that has not yet been updated, but the user wishes to use...
-
11:28 AM Bug #6099: [BUG] probable buffer overflow
- Yui NARUSE wrote:
>IO#readpartial は
> ...
IO#readpartialも場合によってはblockする事があるんですね。
勉強になりました。 -
09:46 AM Feature #6176: Allow Enumerable#flatten to take a block
- > I think #flat_map makes more sense than #flatten accepting a block. It's unclear to me what #flatten would do with the block based on the name alone.
I never felt that this is a good kind of argument per-se. For instance, at first I... -
07:38 AM Feature #6176: Allow Enumerable#flatten to take a block
- I think #flat_map makes more sense than #flatten accepting a block. It's unclear to me what #flatten would do with the block based on the name alone.
Also, there is no Enumerable#flatten -
12:31 AM Feature #6176 (Rejected): Allow Enumerable#flatten to take a block
- I see a new method `#flat_map` has been added to Enumerable. Yet passing a block to #flatten has no use. That seems a waste, as it adds yet another method to remember when one we already know can do the job and makes sense.
-
08:37 AM Feature #3575: String#split is inconsistent with empty string and negative limit
- I will add a note to the documentation to cover the behavior of empty strings.
-
08:26 AM Bug #6089: Test suite fails with OpenSSL 1.0.1
- > Hi Martin,
> ...
Hi Bohuslav, hi Vit,
thanks for the info. OK, if the problem remains, I'll look into it now that 1.0.1 is released. The problem with DSS1 and RSA is probably that DSS1 was defined in combination with DSA signatures. S... -
05:31 AM Bug #4421: [ext/openssl] Fix RSA public key encoding
- MartinBosslet (Martin Bosslet) wrote:
> [...] and you need the latter instead of the former, let me know, I could also provide a code sample for that case.
Martin, I'd appreciate an example for the latter, yes, thanks in advance. In ... -
04:54 AM Bug #6175: watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault
- michaelcm (Michael McWilliam) wrote:
> Re: win32console, it is used by the ansi 1.4.2 gem, is that also no longer being maintained?
ansi gem do not directly depend on win32console, but you use to support ANSI colors on Windows.
Pl... -
04:43 AM Bug #6175: watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault
- Re: win32console, it is used by the ansi 1.4.2 gem, is that also no longer being maintained?
-
04:08 AM Bug #6175: watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault
- Also, I posted it here because the bugreport.html page said to click on the link for ruby 1.9.2 or 1.9.3, but neither were links, so I looked for something that had 9.3 in it, and that was this backport.
http://www.ruby-lang.org/bugre... -
04:00 AM Bug #6175: watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault
This is the minimum snapshot of code:
require 'watir'
begin
browser = Watir::Browser.attach( :url, /someUrl/i )
rescue
browser = Watir::Browser.start 'http://someUrl'
end
Line 87 in Session.rb that is the last line of ...-
12:48 AM Bug #6175 (Feedback): watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault
- Hello,
Please don't report issues on the backports projects. Use ruby-trunk instead.
Now, if you can provide code to reproduce the issue we all will appreciate it, reproducibility is the key.
I also see you have win32console gem... -
12:23 AM Bug #6175 (Rejected): watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault
- See attached log. Occurs about 5% of the time. Not sure why. Running script again immediately avoids the issue.
C:/pslibs/extlib/tools/ruby/1.9.3/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault... -
02:27 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
- Hi,
shugo (Shugo Maeda) wrote:
> Why the last example defines to_a? flat_map doesn't call to_a, but to_ary.
I think it's to spec that it doesn't call `to_a`.
-
02:11 AM Feature #2322 (Rejected): [PATCH] Add standard deviation function to Math Module
- Why do we need to specially treat the 2nd central moment, that is standard deviation, than the other nth moment, such as skewness (3rd) and kurtosis (4th)?
You can use NArray for that reason. See http://narray.rubyforge.org/index.html.en
03/19/2012
-
11:39 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
- How about removing CREATE_NEW_PROCESS_GROUP flag by default and providing a way to specify CREATE_NEW_PROCESS_GROUP flag by spawn methods's arguments?
Ruby user can specify CREATE_NEW_PROCESS_GROUP flag if it's needed.
spawn method h... -
06:27 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
- r34389 (not 34387) is the revision.
Shirosaki-san, how do you think about this? -
06:08 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
- As you may know, this bug is due to the Revision r34387.
If the CREATE_NEW_PROCESS_GROUP flag is specified in a call to the CreateProcess function, CTRL+C signal is disabled for all processes within the new process group.
I think r... -
09:07 PM Feature #4551: uri.set_scheme should downcase schemes
- I agree with this.
Please commit it. -
09:07 PM Bug #6089: Test suite fails with OpenSSL 1.0.1 - Also, this new OpenSSL is breaking the drb test suite:
$ make test-all TESTS="test/drb/test_drbssl.rb"
/builddir/build/BUILD/ruby-1.9.3-p125/lib/drb/ssl.rb:185: warning: SSL_accept returned=1 errno=0 state=SSLv3 write key exchange A: E... -
08:20 PM Bug #6089: Test suite fails with OpenSSL 1.0.1 - Hi Martin,
so OpenSSL v 1.0.1 is now public [1] and the problem seems to stay. I myself am not SSL expert, but why exactly should signing DSS1 with RSA2048 be a mismatch? I think that it's actually the right behaviour that it doesn't.
... -
08:59 PM Feature #4523: Kernel#require to return the path of the loaded file
- On Mon, Mar 19, 2012 at 8:06 AM, Alex Young <alex@blackkettle.org> wrote:
> On 18/03/12 10:22, nobu wrote:
>>
>>
>> Issue #4523 has been updated by nobu.
>>
>>
>> I don't think it's useful if it may return false.
>
>
> On the ... -
08:23 PM Feature #4523: Kernel#require to return the path of the loaded file
- On 18/03/12 10:22, nobu wrote:
>
> Issue #4523 has been updated by nobu.
>
>
> I don't think it's useful if it may return false.
On the contrary - if it returns false, you know the set of loaded files
hasn't changed. ... -
03:30 AM Feature #4523: Kernel#require to return the path of the loaded file
- No, b/c that's not running in the process and at the point in code which is in question.
-
03:22 AM Feature #4523: Kernel#require to return the path of the loaded file
- If you have two files with the same name isn't `gem which --all` enough to discover the collision?
-
02:09 AM Feature #4523: Kernel#require to return the path of the loaded file
- I haven't worked on the project where such comes into play in a few months, so I can only recollect the obvious usecase at the moment -- When debugging a problem were you suspect the wrong file is being required. Then this could be very ...
-
07:29 PM Feature #1122: request for: Object#try
- On 15/03/12 15:26, Thomas Sawyer wrote:
>
> Issue #1122 has been updated by Thomas Sawyer.
>
>
> How about just `respond` ?
>
> foo.respond(:bar)
>
> And really, there's no reason it can't support delegation style... -
05:22 PM Bug #6155 (Closed): Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
- This issue was solved with changeset r35092.
Dan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c (lazy_flat_map_func): convert the block value to
... -
04:57 PM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
- I'll fix lazy flat_map respecting Matz's opinion, but let me clarify one point.
dkubb (Dan Kubb) wrote:
> > > [1, 2, 3].flat_map { |n| n }.to_a
> ...
Why the last example defines to_a? flat_map doesn't call to_a, but to_ary.
... -
03:41 PM Bug #6158 (Closed): Enumerator::Lazy#take: should it be lazy?
- This issue was solved with changeset r35090.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c (enumerable_lazy): add an example of take and fi... -
09:26 AM Feature #6173: re.cのrb_memsearch()におけるmemchr()の利用
- optflags='-O0 -g'を付けてビルドしたtrunkを使っていたので、ベンチマークでproposalが不当に有利でした。
optflagsを外してビルドした上でベンチマークを取り直したところ、以下の結果となりました。
trunk(r35087):
user system total real
0.000000 0.000000 0.000000 ( 0.000049)
proposal... -
12:10 AM Feature #6173: re.cのrb_memsearch()におけるmemchr()の利用
- 特に添字を使う意味もなかったのでpatchを修正しました。
-
08:22 AM Revision ded27bf5 (git): * enumerator.c (lazy_flat_map_func): convert the block value to
- Array if it doesn't respond to each. [ruby-core:43334]
[Bug #6155]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:01 AM Feature #4102 (Rejected): Proposal for 'let'. A new approach using block-defaults in 1.9
- The definition of let would be: "def let() yield; end"; I don't think it's worth to add.
Matz. -
07:39 AM Revision 592a629b (git): * enum.c (zip_i): variadic argument needs explicit cast on the
- platforms where VALUE is longer than int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:41 AM Revision 831898bd (git): * enumerator.c (enumerable_lazy): add an example of take and first
- to the documentation. [ruby-core:43344] [Bug #6158]
add the description of the behavior when a block is given to zip
or cycle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:20 AM Revision 0d1c2268 (git): * compile.c (iseq_specialized_instruction): DRY and replace chain
- of if-else with switch for special instructions. based on a
patch by Vasfed. https://github.com/ruby/ruby/pull/105
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:08 AM Revision d4f0f284 (git): * test/test_pty.rb: same as r29280, skip tests when PTY allocation
- failed (that's not our fault).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:46 AM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
- Related issue (but about plain ruby realization)
https://bugs.ruby-lang.org/issues/6174 -
12:41 AM Bug #6174: Fix collision of ConditionVariable#wait timeout and #signal (+ other cosmetic changes)
- > and native method could not be interrupted (unless it will)
Sorry, it should be read as "(unless it wish)" -
12:40 AM Bug #6174 (Rejected): Fix collision of ConditionVariable#wait timeout and #signal (+ other cosmetic changes)
- 1. Currently, when Thread wakes on timeout, it could not remove itself from ConditionVariable waiters until it acquires lock.
So that, when ConditionVariable#signal is called, it will try to wakeup
such thread, instead of some one else... -
12:23 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- Charles, do you create a patch to introduce 4 constants (+2 for
EWOULDBLOCK) ? We discussed this issue today and we concluded that
that's better than anonymous class caching (to avoid Marshalling
issue.)
I think I can take c...
03/18/2012
-
11:43 PM Bug #6172 (Rejected): Inconsistent behaviour of defined?
- The former is analogous to Foo.bar(Misio), while the latter is analogous to Foo.bar("zot").
Object.const_get is mere method call. -
07:23 PM Bug #6172 (Rejected): Inconsistent behaviour of defined?
- Following behavior is obvious:
irb(main):004:0> Object.const_get("Misio")
NameError: uninitialized constant Misio
from (irb):4:in `const_get'
from (irb):4
from /Users/pawel/.rbenv/versions/1.9.4-dev/bin/irb:12:in `<main>'
irb(... -
11:14 PM Feature #6173 (Closed): re.cのrb_memsearch()におけるmemchr()の利用
- re.cのrb_memsearch()では、m == 1な場合にはfor文で各バイトと比較していますが、memchr()を用いると性能の改善がみられます。
次のようなベンチマークを実行したところ、以下のような結果となりました。
require 'benchmark'
str = "hoge" * 10000 + "\n"
Benchmark.bm do |x|
x.report do
str.index("\n")
end
e... -
11:05 PM Feature #3916: Add flag to ruby to make warnings fatal.
- Hmm... I just wrote article related to this:
https://github.com/trans/trans.github.com/wiki/2012-02-25-setting-priorities-trumps-warnings
-
06:46 PM Feature #3916 (Assigned): Add flag to ruby to make warnings fatal.
-
11:01 PM Feature #4151: Enumerable#categorize
- I'm sorry, but #categorize has big code smell. Seems like too much functionality is being shoved into one method. It is still not clear to me after reading over explanation many times how #categorize works. So either it is relatively str...
-
10:36 PM Feature #5534: Redefine Range class and introduce RelativeNumeric and RelativeRange
- More of my crazy ideas. Wouldn't it be nice to be able to write:
a, b = 0.5, 10.5
(a..b).each(Integer) { |n| puts n } -
10:11 PM Feature #4102: Proposal for 'let'. A new approach using block-defaults in 1.9
- It would conflict with RSpec's definition of #let.
Other then as a teaching tool for block scope what are the use cases? This seems to have very limited use. I find defining a new method is better way to get clean scope.
-
06:46 PM Feature #4102 (Assigned): Proposal for 'let'. A new approach using block-defaults in 1.9
-
09:53 PM Feature #4553: Add Set#pick and Set#pop
- I would expect `Array#pick` to work too. Which then leads one to think Array might support the equivalent of `Set#pop` as well. But since Array already has `#pop` it's not really a good idea to reuse same term, although in the case of Se...
-
07:26 PM Feature #4553 (Assigned): Add Set#pick and Set#pop
-
09:31 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- This is the first time I've seen regular expression groups, so it's interesting.
It occurs to me that with this addition MatchData is both a sort of Array and a sort of Hash. That being so consider `md.to_h`.
-
03:01 PM Feature #1873 (Feedback): MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- This feature itself is acceptable, but proposed method name (API) is not acceptable.
-
07:25 PM Feature #4551 (Assigned): uri.set_scheme should downcase schemes
-
07:22 PM Feature #4523: Kernel#require to return the path of the loaded file
- I don't think it's useful if it may return false.
What's the use case?
I agree that the way to know the loaded path would be useful sometimes, but this doesn't seem nice. -
07:12 PM Feature #4513 (Assigned): allow whitespace following EOL continuation backslash
- Regardless it's acceptable or not, we want to check nobu's local patches first. Don't you have that?
-
07:08 PM Feature #4483 (Assigned): PStoreをデフォルトで複数のスレッドから扱えるようにしたい
-
07:05 PM Feature #4475 (Assigned): default variable name for parameter
-
07:04 PM Feature #4414 (Rejected): Addition to String.split
- Please use unpack instead.
-
07:04 PM Feature #4335 (Rejected): String#split for empty string is always empty array
- It's intended feature, and -1 is prepared for your purpose as Nobu said. #3575
-
07:01 PM Feature #4276 (Assigned): Allow use of quotes in symbol syntactic sugar for hashes
-
06:56 PM Feature #4254 (Rejected): Allow method transplanting
-
06:49 PM Feature #4168 (Assigned): WeakRef is unsafe to use in Ruby 1.9
- Nobu, can we close this now?
-
06:47 PM Feature #4146 (Assigned): Improvement of Symbol and Proc
-
06:46 PM Feature #5096 (Assigned): offer Logger-compatibility for syslog ext
-
06:46 PM Bug #5073 (Assigned): Ruby 1.9.2 may fail to build ri data when an RDoc plugin is installed
-
06:46 PM Feature #5011 (Assigned): Add Perl 6-like main method definition support: accept command-line arguments as method arguments
-
06:46 PM Feature #5010 (Assigned): Add Slop(-like) in stdlib and deprecate current OptionParser API
-
06:46 PM Feature #4985 (Assigned): Add %S[] support for making a list of symbols
-
06:46 PM Bug #4974 (Assigned): [ext/tk] ruby_1_9_2@32391 build failure with MinGW
-
06:46 PM Bug #4971 (Assigned): Module#class_variables
-
06:46 PM Feature #4938 (Assigned): Add Random.bytes [patch]
-
06:46 PM Bug #4911 (Assigned): timer_thread_function() が thead unsafe
-
06:46 PM Feature #4872 (Assigned): REXML::XMLDecl#encodingがStringではなくEncodingを返すようにする
-
06:46 PM Feature #4831 (Assigned): Integer#prime_factors
-
06:46 PM Feature #4788 (Assigned): resolv.rb refactoring
-
06:46 PM Feature #4787 (Assigned): Integer#each_modulo(n)
-
06:46 PM Feature #4649 (Assigned): Adding parallel constructors to Ruby 2.0
-
06:46 PM Feature #4614 (Assigned): [RFC/PATCH] thread_pthread.c: lower RUBY_STACK_MIN_LIMIT to 64K
-
06:46 PM Feature #4570 (Assigned): [PATCH v2] io.c (rb_io_close): release GVL if possible
-
06:46 PM Feature #4521 (Assigned): NoMethodError#message may take very long to execute
-
06:46 PM Feature #4086 (Assigned): Feature request: add String#contain? and {Enumerable,Array}#contain? methods
-
06:46 PM Feature #4085 (Assigned): Refinements and nested methods
-
06:46 PM Feature #3953 (Assigned): TCPSocket / UDPSocket do not accept IPAddr objects.
-
06:22 PM Feature #3953: TCPSocket / UDPSocket do not accept IPAddr objects.
- knu, how do you think?
-
06:18 PM Feature #3953: TCPSocket / UDPSocket do not accept IPAddr objects.
- If we implement this feature, we need a method for duck type, such as IPAddr#to_ipaddress to convert to IP-address string.
-
06:46 PM Feature #3946 (Assigned): Array#packのqQ指定子に機種依存サイズフラグ!を追加
-
06:46 PM Feature #3901 (Assigned): WIN32OLE_VARIANT.new method lacks consistency
-
06:46 PM Bug #3781 (Assigned): FIBER_USE_NATIVE が有効だと落ちるスクリプトがある
-
06:46 PM Feature #3731 (Assigned): Easier Embedding API for Ruby
-
06:06 PM Feature #3731 (Open): Easier Embedding API for Ruby
-
06:46 PM Feature #3620 (Assigned): Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
-
06:46 PM Feature #3608 (Assigned): Enhancing Pathname#each_child to be lazy
-
06:46 PM Bug #3594 (Assigned): URI class doesn't do file URL's properly.
-
06:46 PM Feature #3479 (Assigned): Array#binary_find et al
-
05:27 PM Feature #3479: Array#binary_find et al
- Endoh-san, how do you think?
-
06:46 PM Feature #3450 (Assigned): Format Strings with Named Arguments & Hash#default
-
06:46 PM Feature #3399 (Assigned): UNC path is not handled properly
-
06:46 PM Feature #3333 (Assigned): mkmf (have|find)_cxx_header
-
03:56 PM Feature #3333: mkmf (have|find)_cxx_header
- Imported from #3330
うっかりruby-listに投げてしまったきしもとです
[ruby-list:47092] で振ってみた話題に関係して、なのですが(ツリーになりませんでしたが)、
mkmf に C++ のヘッダをチェックする機能を追加するパッチです。
```diff
Index: configure.in
===========================================================... -
06:46 PM Feature #3328 (Assigned): Kernel#p outputs as default_internal encoding, and so on
-
06:46 PM Feature #3322 (Assigned): Simple Patch to make ruby copy-on-write-friendly
-
06:46 PM Feature #3206 (Assigned): Problems manipulating the signal mask with Ruby
-
06:46 PM Feature #3187 (Assigned): Allow dynamic Fiber stack size
-
02:36 PM Feature #3187: Allow dynamic Fiber stack size
- How about;
```ruby
t = Thread.new(stack_size: 1024)
t.stack_size = 1024
t[:initial_tls_hash] = {}
t.run {
...
}
``` -
06:46 PM Feature #3163 (Assigned): SyntaxError when using variable which is also a method in current scope with a Symbol argument
-
06:46 PM Feature #2837 (Assigned): Compile-time constant for HEAP_GROWTH_FACTOR (patch attached)
-
06:46 PM Feature #2709 (Assigned): $VERBOSE, $DEBUG and Kernel#sprintf
-
06:46 PM Feature #2643 (Assigned): test/unit redefinition check of test_* method
-
03:11 PM Feature #2643: test/unit redefinition check of test_* method
- Shota, please handle this. We also added you as a maintainer of test/unit. http://bugs.ruby-lang.org/projects/ruby/wiki/Maintainers
-
06:46 PM Feature #2631 (Assigned): Allow IO#reopen to take a block
-
03:12 PM Feature #2631: Allow IO#reopen to take a block
- I don't feel changing `IO#reopen` is great way to solve this issue.
How about `spawn()`?
Since Ruby 1.9, `spawn` provides a primitive for redirection.
It is thread safe.
Apart from that, I think `$stdin`, `$stdout`, `$stderr` c... -
02:58 PM Feature #2631: Allow IO#reopen to take a block
- Method name?
-
06:46 PM Feature #2324 (Assigned): Dir instance methods for relative path
-
06:46 PM Feature #2322 (Assigned): [PATCH] Add standard deviation function to Math Module
-
06:46 PM Bug #1792 (Assigned): Fixnum#& 等が、Rational などを受けつける
-
06:46 PM Feature #1586 (Assigned): Including a module already present in ancestors should not be ignored
-
06:46 PM Bug #953 (Assigned): 深い入れ子の配列の取り扱いで落ちる
-
06:46 PM Feature #6163 (Assigned): Remove syck YAML extension
-
06:46 PM Bug #6161 (Assigned): Document interpretation of backslashes in string transliterations
-
06:46 PM Bug #6147 (Assigned): should we check a result returned by fcntl?
-
06:46 PM Bug #6145 (Assigned): two possible bugs in Onigmo
-
06:46 PM Bug #6143 (Assigned): Onigmo allows broken regexp: /(?(x.)/
-
06:46 PM Bug #6141 (Assigned): rails-3.2.2+1.9.3p125 の環境で SEGV が発生
-
06:46 PM Bug #6131 (Assigned): Ctrl-C handler do not work from exec process (Windows)
-
06:46 PM Bug #6124 (Assigned): remove the "spec-only gems" in Ruby 1.9.3 (was What is the purpose of "fake" gems in Ruby)
-
06:46 PM Bug #6122 (Assigned): OpenSSL::PKCS7 verify
-
06:46 PM Bug #6120 (Assigned): Float and BigDecimal bug in remainder in corner cases
-
06:46 PM Bug #6119 (Assigned): Usage of CPPFLAGS during configure result in duplicated values for RbConfig CPPFLAGS information
-
06:46 PM Bug #6117 (Assigned): Transfers allowed into Fibers that have resumed into other fibers
-
06:46 PM Feature #6111 (Assigned): Request for making ruby multiarchable
-
06:46 PM Bug #6107 (Assigned): Documentation Abbrev (stdlib) confusing
-
06:46 PM Bug #6098 (Assigned): Re: GVL改善案
-
06:46 PM Bug #6094 (Assigned): [OpenSSL] wrong argument of rsa_generate()
-
06:46 PM Bug #6090 (Assigned): ruby-mode.el font-lock fails with some interpolated strings
-
06:46 PM Bug #6087 (Assigned): How should inherited methods deal with return values of their own subclass?
-
06:46 PM Bug #6086 (Assigned): Number of arguments and named parameters
-
06:46 PM Bug #6078 (Assigned): The name of a module nested in an anonymous module depends on how it was created
-
06:46 PM Bug #6067 (Assigned): Conditional assignment of a nested constant raises a SyntaxError
-
06:46 PM Bug #6066 (Assigned): Fix "control may reach end of non-void function" warnings for clang
-
06:46 PM Bug #6057 (Assigned): URI - Nonsensical Behavior
-
06:46 PM Feature #6056 (Assigned): Enhancements to OpenStruct
-
06:46 PM Bug #6039 (Assigned): lambda vs proc; #to_ary w/ splat bug
-
06:46 PM Bug #6038 (Assigned): #instance_eval bug
-
06:46 PM Bug #6030 (Assigned): Thread-local "leak" in rb_exec_recursive*
-
06:46 PM Bug #6029 (Assigned): Should OpenStruct implement #eql? and #hash?
-
06:46 PM Bug #6024 (Assigned): Failure to execute test_modify_expand_memory_leak under Windows (MinGW)
-
06:46 PM Feature #6023 (Assigned): Add "a ?= 2" support for meaning "a = a.nil? ? 2 : a"
-
06:46 PM Feature #6012 (Assigned): Proc#source_location also return the column
-
06:46 PM Bug #6011 (Assigned): ruby-1.9.3-p0/lib/webrick/utils.rb:184: [BUG] Segmentation fault
-
06:46 PM Bug #5993 (Assigned): Thread.new{ Fiber.new { Thread.exit }.resume }.join で例外
-
06:46 PM Bug #5985 (Assigned): miniruby skews "make benchmark" results
-
06:46 PM Bug #5954 (Assigned): IO.read_nonblock on IO.pipe generates Errno::EBADF (MinGW)
-
06:46 PM Bug #5932 (Assigned): gc_mark_children で SEGV が発生
-
06:46 PM Bug #5930 (Assigned): source_location of blocks incorrect
-
06:46 PM Bug #5912 (Assigned): Interpreter crashes when trying to invoke implicit block via Binding#eval
-
06:46 PM Feature #5896 (Assigned): object representation in rb_enc_vsprintf()
-
06:46 PM Bug #5882 (Assigned): segfault in miniruby in ruby1.9.3 crosscompile for ARM
-
06:46 PM Bug #5829 (Assigned): /dl/test_cptr.rb Segmentation fault on Ruby 1.9.3 P0
-
06:46 PM Bug #5828 (Assigned): Non anonymous classes can't be frozen, cloned and then inspected
-
06:46 PM Bug #5811 (Assigned): Ruby Process Deadlocks With Fork on Mac OS X Lion
-
06:46 PM Feature #5785 (Assigned): Readline に pre_input_hook, insert_text, redisplay を追加
-
06:46 PM Feature #5784 (Assigned): Readline.special_prefixes の追加
-
06:46 PM Bug #5780 (Assigned): test/fileutils/test_fileutils.rb:86: [BUG] Segmentation fault
-
06:46 PM Bug #5774 (Assigned): [PATCH] xmlrpc client handling cookies
-
06:46 PM Bug #5772 (Assigned): Segmentation Fault on Mac (crash)
-
06:46 PM Bug #5771 (Assigned): WIN32OLERuntimeError using 1.9.2
-
06:46 PM Bug #5761 (Assigned): Array#flatten(N) calls to_ary on the (N+1)-level objects
-
06:46 PM Bug #5759 (Assigned): flatten calls to_ary on everything
-
06:46 PM Bug #5750 (Assigned): Thread.current local-variables behavior
-
06:46 PM Bug #5747 (Assigned): Proc#curry doesn't always detect too many arguments
-
06:46 PM Bug #5746 (Assigned): Proc#curry too strict about lambda's arity.
-
06:46 PM Bug #5737 (Assigned): WEBrick doesn't support keep alive connections for 204 and 304 responses
-
06:46 PM Bug #5736 (Assigned): Numeric#quo should convert with #to_r
-
06:46 PM Bug #5719 (Assigned): Hash::[] can't handle 100000+ args
-
06:46 PM Bug #5715 (Assigned): +/-1 ** Bignum returns different results than +/-1 ** Fixnum
-
06:46 PM Bug #5713 (Assigned): Fixnum#** returns Infinity for 0 ** negative Bignum
-
06:46 PM Bug #5694 (Assigned): Proc#arity doesn't take optional arguments into account.
-
06:46 PM Bug #5686 (Assigned): compile error for ext/tk/tcltklib.c: ‘ruby_errinfo’ undeclared
-
06:46 PM Bug #5680 (Assigned): IPPROTO_GGP undeclared when compiling ext/socket/constants.c
-
06:46 PM Bug #5670 (Assigned): Emacs ruby-mode syntax highlighting issue
-
06:46 PM Bug #5648 (Assigned): irb does not handle recursive heredocs
-
06:46 PM Bug #5647 (Assigned): Possible use of uninitialized value in Init_bigdecimal
-
06:46 PM Feature #5630 (Assigned): Missing custom transfer modes in Net::FTP
-
06:46 PM Bug #5619 (Assigned): Segfault on OS X
-
06:46 PM Bug #5618 (Assigned): Exceptions cause DRb connection to be closed
-
06:46 PM Bug #5608 (Assigned): make -j 16 sometimes fail
-
06:46 PM Bug #5563 (Assigned): Fix bug in drb tests if hostname does not resolve to a local IP
-
06:46 PM Feature #5543 (Assigned): rb_thread_blocking_region() API is poorly designed
-
06:46 PM Bug #5538 (Assigned): ruby memory error running minitests
-
06:46 PM Bug #5515 (Assigned): Integer#quo(aFloat) の結果が Rational になる
-
06:46 PM Bug #5511 (Assigned): "make test" failure on HP-UX/PA
-
06:46 PM Bug #5510 (Assigned): "make test" failure on HP-UX/IA
-
06:46 PM Bug #5508 (Assigned): Is BigDecimal really not $SAFE?
-
06:46 PM Bug #5497 (Assigned): Math.log10(10_000) error on HP-UX/PA
-
06:46 PM Bug #5485 (Assigned): ERB html_escape should follow OWASP recommendations
-
06:46 PM Bug #5463 (Assigned): PTY or IO.select timing issue results in no EOF
-
06:46 PM Bug #5437 (Assigned): Using fibers leads to huge memory leak
-
06:46 PM Bug #5420 (Assigned): RubyGems misleading error message for "update -l"
-
06:46 PM Bug #5418 (Assigned): Some properties of WEBrick::HTTPRequest could be malformed
-
06:46 PM Bug #5368 (Assigned): ensure節でsleepするようなThreadがあるとインタプリタが終了しない
-
06:46 PM Bug #5358 (Assigned): YAML 中のタグの扱いについて
-
06:46 PM Bug #5355 (Assigned): Sync_mにBug #5195やBug #5258と同様のバグ
-
06:46 PM Bug #5330 (Assigned): Bug Report: wrong backtrace
-
06:46 PM Bug #5269 (Assigned): All ThreadError in PStore transaction will be caught and replaced with PStore::Error
-
06:46 PM Bug #5266 (Assigned): BigDecimal#sqrt で、大きな数の平方根の、要求する精度が低いある範囲のとき、結果がおかしい
-
06:46 PM Bug #5246 (Assigned): bootstraptest fails on ia64
-
06:46 PM Bug #5236 (Assigned): Including a module in a superclass after it has been included in a subclass leads to infinite recursion if the module uses `super`
-
06:46 PM Bug #5214 (Assigned): "not (true)" should not warn "(...) interpreted as grouped expression"
-
06:46 PM Bug #5199 (Assigned): ext/tk: RB_GC_GUARD seems to be needed in several places
-
06:46 PM Bug #5179 (Assigned): Complex#rationalize and to_r with approximate zeros
-
06:46 PM Feature #5174 (Assigned): Export ruby_init_prelude()
-
06:46 PM Feature #5138 (Assigned): Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
-
06:46 PM Feature #5133 (Assigned): Array#unzip as an alias of Array#transpose
-
06:42 PM Feature #4057: FileUtils.copy with FIFOs and Special Devices
- I feel following hang is bad behavior.
% mkfifo p
% ruby -v -rfileutils -e 'FileUtils.copy "p", "p2"'
ruby 2.0.0dev (2012-03-16 trunk 35049) [x86_64-linux]
...hang...
However cp also hangs.
% cp p p2
..hang...
... -
06:42 PM Feature #4095: C1 Coverage
- Contribution are welcomed...
-
06:36 PM Feature #4046 (Feedback): Saving C's **argv and cwd allows Ruby programs to reliably restart themselves
- argv[0] is not reliable on some environment.
see "#! - the Unix truth as far as I know it."
http://homepages.cwi.nl/~aeb/std/hashexclam.html
I tried to implement with vendor specific functions.
https://gist.github.com/1129437
... -
06:26 PM Feature #3995 (Rejected): Hash#update with Enumerable
-
06:11 PM Feature #3773 (Rejected): Module#parent
- I mark this Rejected since Matz rejected it. Sorry for not respecting your extra concern. It would be good to file this as a new issue.
-
06:10 PM Feature #3727 (Closed): rb_f_require_relative not included in Ruby API
- closing because no feedback..
-
06:05 PM Feature #3727: rb_f_require_relative not included in Ruby API
- I think it is difficult to determine the base directory of relative directory in C.
-
06:07 PM Feature #3897 (Rejected): Pathname sub_ext! method
- Pathname is immutable as commented.
-
06:07 PM Feature #3715 (Rejected): Enumerator#size and #size=
- As matz already rejeted I hereby close this issue. If you still need it, please open a new ticket with revisied AIPs. Thank you.
-
05:57 PM Feature #3688 (Assigned): redef keyword for method redefinition in Ruby 2.0
-
05:51 PM Feature #3619 (Rejected): \x{XXXX} as an escape sequence of string
-
05:46 PM Feature #3575: String#split is inconsistent with empty string and negative limit
- I think Ruby thinks "" has no fields, not one field which have empty string.
So, "".split(",", -1) should return [].
Documentation issue, maybe. -
05:39 PM Feature #3511 (Feedback): rb_path_to_class should call custom const_defined? methods
- Aaron, is this hook extension still needed for your usecase? (assuming Rails?)
Not bad but it would affect performance... -
05:23 PM Feature #6129: String#each_lineにおけるmemmem()の利用
- Nobuyoshi Nakada wrote:
>* パラグラフモードでも効果があるか
> ...
パラグラフモードでも効果があるかどうかについてですが、次のようなベンチマークを実行してみました。
require 'benchmark'
rs = "\n" * ARGV.first.to_i
str = "hoge#{rs}fuga" * 10_0000
Benchmark.bm do |x|
x.report do
str.ea... -
05:19 PM Feature #3447 (Feedback): argument delegation
- * このスレッドの現状をどなたか教えていただけませんか。
* この記法のユースケースをどなたか教えていただけませんか。 -
05:17 PM Feature #3429 (Closed): Integer#**(large) warns "in a**b, b may be too big" and return Infinity
- This issue was solved with changeset r35081.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (rb_big_pow): estimate result bit size more precisel... -
04:50 PM Feature #3429: Integer#**(large) warns "in a**b, b may be too big" and return Infinity
- mrkn, please handle this.
-
04:37 PM Feature #3427 (Rejected): instances of Dir class can't be compared
- Marked as Rejected since the original poster agreed that it's less likely to be needed.
-
04:34 PM Feature #3426 (Rejected): exec doesn't allow command lines which begin with an env variable assignment
- Mark as Rejected since Endoh-san said it's duplicated of #3321, and #3321 is rejected.
-
04:28 PM Feature #3388: regexp support for start_with? and end_with?
- I think we can cache regexp structure according to regexp source, options, encoding.
If regexp structure is cached, /\A#{pattern}/ and /#{pattern}\z/ is not slow for
second and successive dynamic regexp creation.
If it is not slo... -
04:25 PM Feature #3388: regexp support for start_with? and end_with?
- rindex(pattern) would fail to detect proper end_of_string index. It must be /{suffix}\Z/.
-
03:49 PM Feature #3300 (Feedback): onig_number_of_captures に相当するメソッド Regexp#ncapture
-
03:37 PM Feature #3001 (Feedback): Ruby stdlib: Benchmark::Tms #memberwise drops labels
-
03:36 PM Feature #2975 (Closed): Kernel.warn always writes despite $VERBOSE value
- I mark as Closed since it seems we already have it in docs.
Please file a new ticket for the proposed API change since it's dated... -
03:28 PM Feature #2824 (Closed): Backtrace from Singleton Classes is Unclear
- This issue was solved with changeset r35079.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c: typo fix by Run Paint Run Run.
[ruby-core:283... -
03:22 PM Feature #2715: Optimization to avoid spawning shell in Kernel#system call should check for failure conditions
- I feel the optimization (avoid shell when no meta characters) can be removed.
We have many ways to avoid shell such as system(command, arg1, arg2).
And recent computers are fast enough to run command via shell. - 03:21 PM Revision 27c53898 (git): * 2012-03-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:21 PM Revision f4aff7fe (git): num2ll and num2ull
- * ext/-test-/num2int/num2int.c (print_num2ll, print_num2ull): define
only if long long is available, and use long long printf modifier
checked by configure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35086 b2dd03c8-39d4-4d8f-... -
03:21 PM Revision bd377449 (git): volatile errinfo
- * eval_jump.c (rb_exec_end_proc): need volatile to prevent from
setjmp/longjmp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:05 PM Feature #2645: Have a method in StringScanner which returns the position in characters rather than in bytes
- gettalong wrote:
> I had a similar problem: I wanted to extract a part of a StringScanner-backed string.
> ...
You can use String#byteslice. -
02:50 PM Feature #2351 (Rejected): system() hardlinked to /bin/sh
- I close this as 'Rejected' since no update given long time.
-
02:21 PM Revision e30dbb36 (git): fix condition for free
- * gc.c (aligned_free): fix condition for free. memalign() and
posix_memalign() are not defined together normally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:05 PM Feature #1952: cannot stop with Ctrl+C
- 開発者会議で笹田さんなどと議論したところ、
以下のスクリプトで、2回め以降の ^C で 1 が表示されないのはバグであるという
結論になりました。
% ruby -ve '
Thread.new do
begin
begin
p 1
sleep
ensure
raise
end
rescue
retry
end
end... -
01:50 PM Feature #1952: cannot stop with Ctrl+C
- 現在の挙動。
% cat foo.rb
Thread.new do
begin
begin
p :sleep
sleep
ensure
p :raise
raise
end
rescue
p :retry
retry
end
end.join
% ruby foo.rb
:sleep
^C:raise
:retry
:sleep... -
01:38 PM Feature #3908 (Closed): private constant
- Closing as implemented at 1.9.3.
-
11:16 AM Bug #6168 (Assigned): Segfault in OpenSSL bindings
-
05:21 AM Bug #6168 (Third Party's Issue): Segfault in OpenSSL bindings
- Hello,
A few days ago I updated my Arch Linux server to OpenSSL 1.0.1-1 and Ruby 1.9.3_p125-2. Since then I have been experiencing an odd service failure where a Ruby TLS service of mine would disconnect users with "invalid MAC" excep... -
11:15 AM Revision 1d006f35 (git): * gc.c (aligned_malloc, aligned_free): added fallback implementations
- for platforms like OSX Leopard.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:06 AM Feature #5422: File.fnmatch != Dir.glob # {no,sets}
- Works for me if it works for the API.
-
10:45 AM Revision 3175fbf1 (git): * win32/Makefile.sub: put an empty line between stub and script.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:20 AM Bug #5544: Lookup scope for class variables in class_eval'd procs changed in 1.9.3
- I suppose so long as it is documented, the difference is ok. I think this can be closed in that case.
-
09:10 AM Feature #6166: Enumerator::Lazy#pinch
- Happy St. Patty's Day ;)
I don't seen any green on this site... *pinch* -
12:47 AM Feature #6166 (Rejected): Enumerator::Lazy#pinch
- In previous issue #6158 it has been determined that Enumerator::Lazy#take should be lazy. But an eager form of #take would still be useful.
To this end I'll suggest `Enumerator::Lazy#pinch`. Examples of usage:
e.lazy.pinch 1
... -
08:17 AM Revision ed4c5f38 (git): * bignum.c (rb_big_pow): estimate result bit size more precisely.
- [ruby-core:30735][Feature #3429]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision 2555f3f5 (git): * gc.c (free_method_entry_i): method entry may be in
- unlinked_method_entry_list. [ruby-core:43383][Bug #6171]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:53 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- I thought about that...it would still be better to add EWOULDBLOCKReadable,
etc, than to pay the .extend toll every time.
On Mar 17, 2012 10:28 AM, "Tanaka Akira" <akr@fsij.org> wrote:
> 2012/3/16 Charles Nutter <headius@headiu... -
06:28 AM Revision 7e78f6f5 (git): * compile.c: typo fix by Run Paint Run Run.
- [ruby-core:28368] [Bug #2824]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:09 AM Bug #6170 (Rejected): Compile error: "implicit declaration of function 'pthread_get_stackaddr_np'", "'pthread_get_stacksize_np'"
- =begin
When compiling Ruby 1.9.3 (I've tested 1.9.3p0 and 1.9.3p125), (({thread_pthread.c})) produces a compile error.
The following is the GCC output for the error:
compiling thread.c
In file included from thread.c:204:
thread... -
06:00 AM Bug #6169: Compile error "implicit declaration of function 'ruby_setreuid'", "'ruby_setregid'"
- =begin
This is fixed by removing lines 111-116 from (({process.c})), reproduced here:
#ifdef BROKEN_SETREUID
#define setreuid ruby_setreuid
#endif
#ifdef BROKEN_SETREGID
#define setregid ruby_setregid
#endif
Edit: forgot to menti... -
05:58 AM Bug #6169 (Closed): Compile error "implicit declaration of function 'ruby_setreuid'", "'ruby_setregid'"
- =begin
When compiling Ruby 1.9.3 (I've tested 1.9.3p0 and 1.9.3p125), process.c produces a compile error
The following is the GCC output for the error:
compiling process.c
process.c: In function 'p_sys_setreuid':
process.c:41... -
05:26 AM Revision 58f269d0 (git): merge revision(s) 34433: [Backport #6153]
- * encoding.c (rb_enc_compatible): return ASCII-8BIT even if 2nd string
is ascii only string. [ruby-core:42354] [Bug #5968]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:02 AM Bug #6167: String#count: wrong result for multiple complements of multi-byte characters
- Other incorrect results:
>> "\u0100\u0101".count("a", "\u0100")
=> 1
> ...
=> 1
Both should be 0. -
02:37 AM Bug #6167 (Closed): String#count: wrong result for multiple complements of multi-byte characters
- >> "\u0100\u0101".count("^\u0100", "^\u0101")
=> 2
Since multiple arguments are intersected, the expected result is 0. Compare:
> ...
=> 0
This takes a different path through tr_setup_table and returns the correct result.
An... - 01:03 AM Revision ef4ea58c (git): * 2012-03-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:03 AM Revision 42c18fe7 (git): * lib/profiler.rb: support calling singleton methods of
- an instance of BasicObject.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/17/2012
-
10:35 PM Bug #6158: Enumerator::Lazy#take: should it be lazy?
- matz:
> use #first. map! etc. do not conform other bang method naming convention.
Thank you for taking the decision.
Shugo:
I understand the use, so I also think it's worth having some form of lazy #take.
However, I think many... -
10:02 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
- use #first. map! etc. do not conform other bang method naming convention.
-
07:36 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
- =begin
Same for me - at first was thinking about having take evaluating makes sense.
But having ability to continue building the lazy chain looks more logical.
Having something like #pinch totally makes sense.
However I'm thinkin... -
12:55 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
- Both "takes" on this seem valid. Could there be a special method similar to take for de-lazying and taking a segment of the enumeration? e.g. maybe #pinch ?
e.lazy.pinch(3)
e.lazy.pinch(4..6)
e.lazy.pinch(2, 4)
-
05:59 PM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- On Fri, Mar 16, 2012 at 7:24 PM, Eric Wong <normalperson@yhbt.net> wrote:
>> The only cases that break are cases that check e.class == EAGAIN,
>> which is probably not a good pattern anyway.
>
> I also noticed some test failures wit... -
09:29 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- Charles Nutter <headius@headius.com> wrote:
> I should have mentioned that JRuby has been running this way for a
> while (on master) and we have had no reports of incompatibility. The
> concrete subclass is_a EAGAIN and is_a WaitR... -
10:23 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
- Hi,
In message "Re: [ruby-core:43357] [ruby-trunk - Bug #6155] Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each"
on Sat, 17 Mar 2012 06:42:22 +0900, Marc-Andre Lafortune <ruby-core@marc-... -
06:42 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
- Hi,
Shugo Maeda wrote:
> I doubt that this behavior of Enumerable#flat_map is reasonable.
> ...
I understand your point of view. This behavior was clearly intended in Matz's original commit, though (r25456). Changing this could also... -
12:48 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
- > > [1, 2, 3].flat_map { |n| n }.to_a
> ...
I was writing rubyspec for Enumerable::Lazy#flat_map had the same behaviour as Enumerable#flat_map (besides the obvious differences in return value). Here is what I was using as a basis: htt... -
10:23 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- Hi,
In message "Re: [ruby-core:43358] [ruby-trunk - Feature #5008] Equal rights for Hash (like Array, String, Integer, Float)"
on Sat, 17 Mar 2012 07:13:17 +0900, Marc-Andre Lafortune <ruby-core@marc-andre.ca> writes:
|E... -
10:08 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- > "Repeating myself, unlike other classes in the table, Hash does not have "natural" conversion from set of values, so that I don't think it's worth provide to_h method."
> ...
I see, you were referring to Enumerable#to_h and meant t... -
07:13 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- Hi,
Yukihiro Matsumoto wrote:
> Repeating myself, unlike other classes in the table, Hash does not
> ...
Thanks for taking the time to reply.
Even if you will not accept Enumerable#to_h, how about `to_h` for Hash, Struct, OpenSt... -
08:31 AM Feature #6163 (Closed): Remove syck YAML extension
- =begin
The syck extension should be removed for the following reasons:
Syck only supports YAML 1.0
Syck is not YAML 1.0 compliant.
Syck is not easy to maintain, and many of the bugs existing in it have not been fixed.
Psych ... -
04:24 AM Bug #6151: ArgumentError of lambda shows wrong location
- How can that be by design? What kind of design criteria says that "instance_eval should blow up if a lambda is passed to it"?
So you are saying that instance_eval passes the receiver into the Proc as an argument? Why would it do this... -
03:18 AM Bug #6151: ArgumentError of lambda shows wrong location
- Just the location was fixed. The error is "by design" -- as you discovered, you will need to use Proc.new (or lambda {|*| ... }).
-
03:16 AM Bug #6151: ArgumentError of lambda shows wrong location
- Just to be clear, where both issues fixed? i.e. the fact that an error was raised in this case at all, as well as the location of lambda errors?
-
02:19 AM Bug #6161 (Closed): Document interpretation of backslashes in string transliterations
- =begin
The transliteration string accepted by String#tr, #delete, #squeeze, and #count has its own backslash escape syntax (on top of that provided by string literals), but it isn't documented.
A backlash character escapes the subseq... -
01:49 AM Bug #6160 (Closed): '\\'.delete('\\') raise ArgumentError: empty string
- This issue was solved with changeset r35073.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (trnext): fix bug with string ending with '\\'.
... -
01:40 AM Bug #6160 (Closed): '\\'.delete('\\') raise ArgumentError: empty string
- r35069 の変更の影響でクリーンビルドすると
../tool/transcode-tblgen.rb:758:in `delete': empty string (ArgumentError)
で止まります。
再現条件を絞り込んだところ '\\'.delete('\\') で ArgumentError になりました。 -
12:35 AM Bug #6159: Enumerable::Lazy#inspect
- Benoit Daloze wrote:
> So something like: #<Enumerator::Lazy: 1..5:each> or #<Enumerator::Lazy: #<Enumerator: 1..5:each>>
> ...
I agree that It would be nice. However, unlike Enumerator, Enumerator::Lazy doesn't have enough informatio...