Activity
From 03/24/2012 to 03/30/2012
03/30/2012
-
11:49 PM Feature #5644: add Enumerable#exclude? antonym
- There really is no better term b/c all such terms are going to have the same connotations.
As with "include" if you add an "s" to the word then it reads more like typical English, i.e. "a excludes b ?". To use the singular form you ha... -
11:18 PM Feature #5644: add Enumerable#exclude? antonym
- The most common antonym is "exclude", but maybe we could use "omit" if you prefer:
http://www.synonym.com/antonym/include/
-
11:13 PM Feature #5644: add Enumerable#exclude? antonym
- I think I've misunderstood the question posed by Nikolai. I've just read it again but I think that the other meaning presented by him doesn't make any sense. "does the array contain the elements that should be excluded?". Really? I read ...
-
11:09 PM Feature #5644: add Enumerable#exclude? antonym
- At first I agreed with Nikolay, but then I changed my minded because the method is called "exclude?" with a question mark, not "exclude", so I don't think anyone would expect that it would actually remove some element.
-
11:02 PM Feature #5644: add Enumerable#exclude? antonym
- OK, you think negative for include? is special. Understood.
But as Nikolai pointed out, exclude? is not the best name for the function.
Any alternative?
Matz.
-
10:53 PM Revision 19762735 (git): * st.c (st_foreach_check): remove the entry by replacing with never
- when ST_DELETE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:50 PM Bug #6214: warnings on inspect for Enumerator objects if $VERBOSE
- これらのインスタンス変数はスクリプト側からは見えないので、
警告は出なくてもよいのではないですかね。そういう方向で
パッチとテストを書いてみたので、見ていただけるとありがたいです。
-
10:47 PM Revision d0380e2e (git): * hash.c (st_foreach_safe): since table is not for VALUE, Qundef is
- not special value, so use 0 instead. therefore this function can be
applied to only st_table which 0 is invalid as keys, e.g., IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:44 PM Revision 4fa32366 (git): * hash.c: Qundef cannot be passed from st_foreach_check().
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:40 PM Revision 4b3a1f77 (git): * hash.c, marshal.c, object.c, variable.c: fix callback argument types
- of iterators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 10:18 PM Revision db5ede22 (git): * 2012-03-31
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:18 PM Revision becc3000 (git): descriptive assertions
- * test/ruby/test_hash.rb: use more descriptive assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:18 PM Revision fc4e79e3 (git): join LocalBarrier
- * test/ruby/lbtest.rb: needs to join the local barrier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:11 PM Feature #4965: The problem of "print line if line = DATA.gets"
- Hi Matz, some people tried to with the argument that if you're reading a post-if/unless and they seem natural, using a variable assignment alongside with the post-if/unless would be just as natural.
-
03:15 PM Feature #4965 (Rejected): The problem of "print line if line = DATA.gets"
- The reason behind has been explained in #1141. If someone want to change the rule, he need to understand the rational first, then should try persuade me.
Matz.
-
08:32 PM Feature #6136 (Feedback): Add gpg signatures whenever releasing ruby source tarballs
- I'm not sure if I understand your problem correctly.
I guess gpg does not work for you.
Could you elaborate your situation, and explain how gpg solves your problem?
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:02 PM Feature #6198 (Assigned): public/protected/private with attr_*
- This issue is strongly related to #3753.
--
Yusuke Endoh <mame@tsg.ne.jp> -
05:55 PM Feature #6225: Hash#+
- shyouhei (Shyouhei Urabe) wrote:
> Anyway there has been a long discussion around `+`s in programming languages. For instance Perl uses dot to concatenate strings and avoid `+`s to concatenate strings and/or arrays. I see they are muc... -
04:55 PM Feature #6225: Hash#+
- I myself do not care whether + to be symmetric or not. I care about key conflict.
Since conflicting cause value lost, I am not positive about making + alias to #merge.
Matz.
-
03:02 PM Feature #6225: Hash#+
- In common sense, `*` is also commutative. But of course, for matrix multiplication, it's not.
Also, `+` is used in many fields of mathematics. I'm not a mathematician, but I very strongly doubt that it's commutative in all these cases... -
12:07 PM Feature #6225: Hash#+
- Sorry for my bad English, I didn't intend to attack you.
Anyway there has been a long discussion around `+`s in programming languages. For instance Perl uses dot to concatenate strings and avoid `+`s to concatenate strings and/or arr... -
11:46 AM Feature #6225: Hash#+
- > No binary operations shall be called `+` unless the operation is symmetric.
Why?
Also what do you mean by symmetric? Do you mean commutative? I point out that neither `Array#+` or `String#+` is really commutative either because o... -
11:42 AM Feature #6225: Hash#+
- In other words you don't like that `{a: 1} + {a: 2} != {a: 2} + {a: 1}`
But I really think programming is different from mathematics and I don't think that the fact that `a + b != b + a` would be enough reason for avoiding the conveni... -
11:30 AM Feature #6225: Hash#+
- I object. No binary operations shall be called `+` unless the operation is symmetric.
For historical reasons there are some asymmetric `+`s in Ruby, but that is not a indulgence for you to add more. -
09:39 AM Feature #6225: Hash#+
- This argument really doesn't buy me. Groovy allows: `[key1: 'value1', another: 1] + [key2: 'value2', another: 2] == [key1: 'value1', another: 2, key2: 'value2']`.
I think this is pretty readable as `+` is also used to denotate unions.... -
08:36 AM Feature #6225 (Assigned): Hash#+
- Both String#+ and Array#+ delete no information, but
Hash#merge deletes duplicate fields.
I have heard it is the reason, if I recall.
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:19 AM Feature #6225 (Rejected): Hash#+
- Strings and Arrays can be combined with #+. I don't see any reason not to allow Hashes to do so as well.
class Hash
alias :+ :merge
end
-
05:32 PM Feature #5809 (Feedback): Benchmark#bm: remove the label_width parameter
-
05:02 PM Feature #5970: Add Enumerable#join with same semantics as Array#join
- now (Nikolai Weibull) wrote:
> Currently, to join the elements of an Enumerable, you need to call #to_a on the Enumerable and then #join the result. With Enumerable#join one wouldn’t need need to create an intermediate Array.
Once E... -
12:46 AM Feature #5970 (Assigned): Add Enumerable#join with same semantics as Array#join
-
04:25 PM Feature #6201 (Rejected): do_something then return :special_case (include "then" operator)
- Both "then" and "++" could compatibility problem. Your "a then b" or "a ++ b" can be implemented by "(a; b)" without any addition to the language.
Matz.
-
04:25 PM Feature #6222 (Rejected): Use ++ to connect statements
- Both "then" and "++" could compatibility problem. Your "a then b" or "a ++ b" can be implemented by "(a; b)" without any addition to the language.
Matz.
-
08:23 AM Feature #6222: Use ++ to connect statements
- 'also' is worse than '++'.
Adding a new keyword causes significant compatibility issue.
def also
...
end
I guess such a method name might be actually used in DSLs.
It also might be used as a flag variable.
Well, ... -
08:11 AM Feature #6222: Use ++ to connect statements
- What's wrong with:
(do_this; do_that; return) if condition
or perhaps you meant
do_this; do_that; return if condition
-
06:59 AM Feature #6222: Use ++ to connect statements
- Please do any other name suggestions in the other ticket as suggested by Yusuke.
-
02:35 AM Feature #6222: Use ++ to connect statements
- I agree.
If 'then' or '++' does not work, what about 'also'? I'm not a native English speaker and not sure whether it sounds natural. Maybe someone can come up with something that fits well to this case.
do_this also do_that a... -
01:20 AM Feature #6222: Use ++ to connect statements
- He didn't say it was useful. He just stated that the argument for allowing it in Ruby 2.0 is not valid because it would also break compatibility just like 'then'. Also, he is advicing you to suggest new syntax to 'then' in that other tic...
-
01:01 AM Feature #6222: Use ++ to connect statements
- Sorry I didn't know this. I have never seen ++ in ruby code (except probably in books) and that made me think it is not valid syntax. Wonder what is the usefulness of '1 + +1' though.
-
12:15 AM Feature #6222 (Assigned): Use ++ to connect statements
- Hello,
I would be even happier if you respond that ticket instead
of adding a new one...
Of course, '++' also causes compatibility issue :-)
p 1 ++ 1 #=> 2
'++' may be confusing because it is used for string/list
concate... -
04:23 PM Feature #6150 (Rejected): add Enumerable#grep_v
- We are not going to add grep_v. There's possibility of adding :invert option to grep.
Matz. -
02:11 AM Feature #6150 (Assigned): add Enumerable#grep_v
-
04:20 PM Feature #5964 (Rejected): Make Symbols an Alternate Syntax for Strings
- In Ruby, Symbols annd Strings are different in both semantics and behavior (and implementation).
Unifying them cause a lot of problems. I guess it's not worth changing.
Matz.
-
12:45 AM Feature #5964 (Assigned): Make Symbols an Alternate Syntax for Strings
-
03:31 PM Feature #6088: Add Net::ReadTimeout to distinguish which operation failed
- You can commit it.
-
05:23 AM Feature #6088: Add Net::ReadTimeout to distinguish which operation failed
- I have updated all the documentation for OpenTimeout and ReadTimeout along with the addition of Net::ReadTimeout.
-
01:15 AM Feature #6088 (Assigned): Add Net::ReadTimeout to distinguish which operation failed
- Drbrain-san
Could you respond to Naruse's comment?
--
Yusuke Endoh <mame@tsg.ne.jp> -
03:15 PM Feature #6224 (Rejected): Make variables in if/unless conditions available to conditional statements
- The reason behind has been explained in #1141. If someone want to change the rule, he need to understand the rational first, then should try persuade me.
Matz.
-
08:37 AM Feature #6224 (Assigned): Make variables in if/unless conditions available to conditional statements
-
01:13 AM Feature #6224: Make variables in if/unless conditions available to conditional statements
- Exactly. Actually I didn't know about 1141, but I've read about 4965 recently.
-
11:23 AM Feature #5341: Add SSL session reuse to Net::HTTP - On Fri, Mar 30, 2012 at 08:49:36AM +0900, mame (Yusuke Endoh) wrote:
>
> Issue #5341 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to naruse (Yui NARUSE)
> Target version change... -
08:49 AM Feature #5341 (Assigned): Add SSL session reuse to Net::HTTP
- I tentatively assign this issue to Naruse-san because
he is running for the maintainer of net/http.
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:53 AM Feature #5196 (Rejected): true should be True.
- I believe this is hopeless.
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:52 AM Feature #4647 (Assigned): [PATCH] io/wait: add IO#wait_writable method
-
08:51 AM Feature #6073 (Assigned): Proposal of extending syntax of for loop
-
08:51 AM Feature #5922 (Assigned): Migrate equal? to identical?
-
08:50 AM Feature #5605 (Assigned): [PATCH] net/http: use IO.copy_stream for requests using body_stream
- I tentatively assign this issue to Naruse-san because
he is running for the maintainer of net/http.
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:49 AM Feature #5461 (Assigned): Add pipelining to Net::HTTP
- I tentatively assign this issue to Naruse-san because
he is running for the maintainer of net/http.
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:45 AM Feature #6218 (Assigned): struct.cのrb_struct_s_members_m()について
- なんで今そういう無駄なコードになっているか、というのを調べるといいです。
ひょっとしたら何か意味があるのかもしれないので。
この場合 r10847 を見ると、Struct#members が文字列からシンボルを返すように
変更したことで、こういうコードになったようです。
なので、昔は意味があったけれど今は本当にただの無駄だと思われます。
コミット権もらえたらやっといてください。
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:31 AM Feature #6082 (Feedback): io_binwrite()内でwritev()を使う
- あ、このチケットにだけベンチマークがないのか。他には執拗なくらいあるから勘違いしました。
パッチについてもそうですね。じゃあ、Glass_saga さん 2 点対応してみてもらえますか。
--
Yusuke Endoh <mame@tsg.ne.jp> -
04:20 AM Feature #6082: io_binwrite()内でwritev()を使う
- > なんとなく kosaki さんあたり、もしコメントあったらどうぞ。
関数のなかにでっかく#ifdefいれんな。というのが1つ。writevがない環境を考えると既存のコードを消せないので有為に速度向上することが提示されないと入れる意味が無いというのが1つ。そんぐらいかなあ -
01:01 AM Feature #6082 (Assigned): io_binwrite()内でwritev()を使う
- 分かってませんが挙動が変わるものでないなら取り込んじゃってよいのでは
ないでしょうかね。何かの環境で問題起きたら revert で。
なかださんお願いします。
なんとなく kosaki さんあたり、もしコメントあったらどうぞ。
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:29 AM Bug #6226: Star operator crashes when it using in irb on Fedora
- I cannot recreate this:
$ irb
irb(main):001:0> *a = 1
=> 1
irb(main):002:0> a
=> [1]
irb(main):003:0> # Ctrl-D pressed here
Just returns to prompt.
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
... -
08:19 AM Bug #6226 (Third Party's Issue): Star operator crashes when it using in irb on Fedora
- Segmentation fault raised when I pressed Ctrl+D.
Full log:
[newmen@blackbox ~]$ irb
1.9.3p125 :001 > *a = 1
=> 1
1.9.3p125 :002 > a
=> [1]
1.9.3p125 :003 >
/home/newmen/.rvm/scripts/irbrc.rb:32: [BUG] Segmentation fault
r... -
08:24 AM Feature #6176 (Rejected): Allow Enumerable#flatten to take a block
- Done. Thanks.
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:16 AM Feature #6176: Allow Enumerable#flatten to take a block
- Ok. I agree. Reject issue.
-
02:31 AM Feature #6176 (Assigned): Allow Enumerable#flatten to take a block
- #flatten is recursive by default. #flat_map is not.
So I don't think it is a good idea to extend #flatten.
Anyway, #flat_map is already included in 1.9.
We no longer need to extend #flatten, I think.
--
Yusuke Endoh <mame@tsg.... -
07:54 AM Feature #6133: SSLSocketをshutdownできない
- 長々ほったらかしてすいませんでした。もう少し教えてください。
> 送信の終わりを送れません。
ここで言う「送信の終わりを送る」についてもう少し教えてください。
1) ドキュメント等にある(はずの)、通常のRubyのSSLSocketの使い方における送信の終わり方
2) kikさんが想定されている送信の終わり方
を、教えてください。 -
07:50 AM Feature #6133: SSLSocketをshutdownできない
- Oops. Sorry for confusing(?) you. It's me who was asked this question on Twitter. I didn't understand the question so I asked to file an issue, but I keep it opening because I still couldn't understand the point.
Martin, I'll ask OP... -
07:38 AM Feature #6133: SSLSocketをshutdownできない
- mame (Yusuke Endoh) wrote:
> Hello, emboss-san
> ...
Hello Yusuke,
thank you for the effort of translating this for me! So the problem
is that we don't explicitly expose shutdown in Ruby's OpenSSL API
and the OP would like to have... -
02:06 AM Feature #6133 (Assigned): SSLSocketをshutdownできない
- Hello, emboss-san
This is a feature request for openssl.
OP wants a method to call SSL_shutdown to send the termination of a
transmission.
http://www.openssl.org/docs/ssl/SSL_shutdown.html
What do you think?
Note that there... -
07:48 AM Feature #6219: Return value of Hash#store
- nobu (Nobuyoshi Nakada) wrote:
> Calling default proc can be expensive. So I don't think it's good idea to call it always.
> ...
You are right, the default proc is a real "party pooper" here... Could something like Rodrigo
proposed ... -
01:29 AM Feature #6219: Return value of Hash#store
- Or Hash#store(new_value, return_nil_if_not_set: false)
-
01:27 AM Feature #6219: Return value of Hash#store
- How about hash.store(new_value, nil_value: :_default_)
This way, one could write "a = hash.store(1, nil_value: nil)", while the default :_default_ would call the default proc if it exists. -
01:09 AM Feature #6219: Return value of Hash#store
- rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> > And, what should be returned if the key wasn't set?
> ...
Also calling its default proc?
MartinBosslet (Martin Bosslet) wrote:
> Seems reasonable to me. To detect whether a key hasn't ... -
12:25 AM Feature #6219 (Assigned): Return value of Hash#store
- Hello,
I tentatively mark this as 3.0 issue because it changes the behavior.
But if matz accepts the change, 2.0 may be able to include it.
Personally, I'm neutral to the proposal itself.
--
Yusuke Endoh <mame@tsg.ne.jp> -
05:17 AM Revision 7d8e27a6 (git): merge revision(s) 35162,35167: [Backport #6220]
- * test/openssl/test_x509cert.rb: Exclude test that fails when issuing
a certificate with RSA signature and DSS1 digest for earlier
OpenSSL versions when used in conjunction with OpenSSL 1.0.1.
Thanks, Vit On... -
05:15 AM Revision 3e89498b (git): merge revision(s) 35146:
- * string.c (str_new_empty): should copy also the encoding as an
empty substring. [ruby-dev:45441][Bug #6206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:15 AM Revision d66248a7 (git): merge revision(s) 35002: [Backport #6135]
- * ext/date/date_core.c (datetime_s_now): [ruby-core:43256].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:13 AM Revision 9c0d9444 (git): merge revision(s) 35013:
- * numeric.c: fix flodivmod for cornercases [Bug #6044]
add ruby_float_mod
* insns.def (opt_mod): use ruby_float_mod
* internal.h: declare ruby_float_mod
* test/ruby/test_float.rb: tests for above
... -
02:36 AM Feature #6180 (Assigned): to_b for converting objects to a boolean value
-
02:33 AM Feature #6177 (Assigned): array.cのrb_ary_equal()の高速化
- 挙動が変わるわけでないならいいんじゃないですかね。
パッチ試してませんが見た感じいいような気がしました。
コミット権が貰えたら自分でどうぞ。#6173
もらえなかったら、どうしよう。
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:25 AM Feature #6173 (Assigned): re.cのrb_memsearch()におけるmemchr()の利用
- パッチは、まあいいんじゃないでしょうかね。
Glass_saga さんが登録したチケットで accept されそうなのが何個か
見当たるっぽいので、コミット権あげると楽な気がしますが、どんなもんでしょう。
ChangeLog には 8 回くらい名前が載ってるみたいです。
という意味で matz にアサイン。
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:17 AM Feature #6166 (Assigned): Enumerator::Lazy#pinch
- Hello,
If this kind of operations occur frequently, I think it is worth
to add a method. But I'm not sure because Lazy just entered trunk.
My current opinion. I like this style:
e.lazy.pinch(1, 2) == e.lazy.drop(1).first(... -
02:15 AM Feature #6130: inspect using to_s is pain
- Yep.
-
02:00 AM Feature #6130 (Assigned): inspect using to_s is pain
- Thomas, you meant:
class Foo
def to_s; "foo"; end
end
x = Foo.new
p "== #{ x } ==" #=> "== foo ==", as you want
p x #=> "foo", but you want: #<Foo:0xXXXX>
, right? If so I agree, though it may be difficult... -
01:55 AM Feature #6129 (Assigned): String#each_lineにおけるmemmem()の利用
- なかださん、更新されたパッチで問題ないと思います?
--
Yusuke Endoh <mame@tsg.ne.jp> -
01:54 AM Feature #6118 (Assigned): Hash#keys_of(values), returns related keys of given values
-
01:53 AM Feature #6096 (Rejected): Parser tweak - curly braces followed by a coma...
- I agree with Tom.
Considering Tom's code, it is apparently difficult to fix this issue.
--
Yusuke Endoh <mame@tsg.ne.jp> -
01:11 AM Feature #6083 (Assigned): Hide a Bignum definition
- ko1 wrote:
> I propose to move the struct RBignum definition from include/ruby/ruby.h to bignum.c. I believe no one use struct RBignum directly (except core).
Agreed.
I hope C API would be organized. This can be preliminary case.
... -
01:04 AM Feature #5531: deep_value for dealing with nested hashes
- What's the status of this issue? Good idea? Bad idea?
-
12:59 AM Feature #6074 (Assigned): Allow alias arguments to have a comma
- Sorry, I didn't know alias syntax accepts symbols as arguments!
Then I agree with this proposal.
Ruby always gives me a fresh surprise for me.
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:54 AM Feature #5980 (Feedback): Trying to Load File When Too Many Files Open Should Raise Something Other Than Plain LoadError
- Someone has to volunteer to write a patch.
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:52 AM Feature #5979 (Rejected): deprecate Thread#raise
- I agree with matz. Just deprecating Thread#raise does not make sense.
I close this ticket as Rejected.
FYI: Some committers discussed a design of controllable asynchronous
exception at developers' meeting in Akihabara. Ko1 wrote... -
12:44 AM Feature #5958 (Assigned): ThreadGroup#join
- Sasada-san, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:43 AM Feature #5903 (Assigned): Optimize st_table (take 2)
-
12:10 AM Bug #6168: Segfault in OpenSSL bindings
- Cool. Both of our segfault locations in ruby code suggest some kind of buffer sizing problem (mine segs on read, yours on write).
Looking at the two locations where the segfault occurs:
/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1....
03/29/2012
-
11:57 PM Feature #5778: Allow WEBrick::HTTPResponse to send IO-duck-typed bodies
- You have control.
--
Yusuke Endoh <mame@tsg.ne.jp> -
11:27 AM Feature #5778: Allow WEBrick::HTTPResponse to send IO-duck-typed bodies
- Yusuke, you may want to assign it to me (maintainer)
I think it's good to improve, but not yet checked the patch... -
01:31 AM Feature #5778 (Assigned): Allow WEBrick::HTTPResponse to send IO-duck-typed bodies
- It is trivial, and the patch looks good to me.
I'll commit it unless there is objection.
--
Yusuke Endoh <mame@tsg.ne.jp> -
11:54 PM Feature #6224: Make variables in if/unless conditions available to conditional statements
- I found this issue created 3 years ago. Matz explained the reason behind.
http://bugs.ruby-lang.org/issues/1141 -
11:38 PM Feature #6224: Make variables in if/unless conditions available to conditional statements
- I'm pretty sure this is already being discussed but I can't remember in what thread/issue.
-
11:13 PM Feature #6224 (Rejected): Make variables in if/unless conditions available to conditional statements
- I propose to make below code work
do_something(a) if a = condition
Above code should work exactly same as
if a = condition
do_something(a)
end
If there is a reason behind why the first case does not work, please l... -
11:53 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- On Thu, Mar 29, 2012 at 14:39, Alex Young <alex@blackkettle.org> wrote:
> Would you argue that this is wrong and should be removed?
>
> 1.9.3p125 :001 > nil.to_a
> => []
>
> If not, why not?
>
Perhaps I wasn't cle... -
11:23 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- Em 29-03-2012 10:28, Adam Prescott escreveu:
> On Thu, Mar 29, 2012 at 13:25, rosenfeld (Rodrigo Rosenfeld Rosas)
> <rr.rosas@gmail.com <mailto:rr.rosas@gmail.com>> wrote:
>
> Or for convenience we could allow nil to respon... -
10:53 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- On 29/03/12 14:28, Adam Prescott wrote:
> On Thu, Mar 29, 2012 at 13:25, rosenfeld (Rodrigo Rosenfeld Rosas)
> <rr.rosas@gmail.com <mailto:rr.rosas@gmail.com>> wrote:
>
> Or for convenience we could allow nil to respond to e... -
10:29 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- On Thu, Mar 29, 2012 at 13:25, rosenfeld (Rodrigo Rosenfeld Rosas) <
rr.rosas@gmail.com> wrote:
> Or for convenience we could allow nil to respond to each, like in Groovy:
>
> null.each {} // or eachWithIndex - doesn't throw ... -
09:25 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- Or for convenience we could allow nil to respond to each, like in Groovy:
null.each {} // or eachWithIndex - doesn't throw an exception -
08:36 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- In my mind, nil.to_h should exist for the same reason that
nil.to_a, nil.to_s, nil.to_i, and nil.to_f exist: convenience.
It allows me to write:
some_complicated_method.to_h.each { ... }
Instead of being forced to write:
... -
11:42 PM Feature #6219: Return value of Hash#store
- rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> nobu (Nobuyoshi Nakada) wrote:
> ...
Seems reasonable to me. To detect whether a key hasn't been set yet,
one would check for the presence of the default value. That
doesn't catch cases wh... -
11:32 PM Feature #6219: Return value of Hash#store
- nobu (Nobuyoshi Nakada) wrote:
> And, what should be returned if the key wasn't set?
Its default value?
h = Hash.new {[]}
h.store('key', [1, 2]) # => [] -
10:56 PM Feature #6219: Return value of Hash#store
- And, what should be returned if the key wasn't set?
-
09:33 PM Feature #6219: Return value of Hash#store
- Note however, that nobu changed st_update API[1] after I posted that. So it might not apply cleanly to the latest ruby trunk...
[1]: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=35170&view=revision -
08:38 PM Feature #6219: Return value of Hash#store
- shyouhei (Shyouhei Urabe) wrote:
> =begin
> ...
Awesome, thank you Shyouhei. I'll be happy to test this tonight!
-
11:44 AM Feature #6219: Return value of Hash#store
- =begin
Hmm, here you are a patch (not tested though).
From c55a9c9fab30d51be77821bce36054fe365b49af Mon Sep 17 00:00:00 2001
Message-Id: <c55a9c9fab30d51be77821bce36054fe365b49af.1332988729.git.shyouhei@ruby-lang.org>
From: UR... -
08:09 AM Feature #6219: Return value of Hash#store
- cjheath (Clifford Heath) wrote:
> On 29/03/2012, at 8:40 AM, MartinBosslet (Martin Bosslet) wrote:
> ...
Doing so in one pass is only possible on the C level. No use in composing it in
Ruby, this still means that the hash function is... -
07:24 AM Feature #6219: Return value of Hash#store
- On 29/03/2012, at 8:40 AM, MartinBosslet (Martin Bosslet) wrote:
> Right, good point. OK, then let me rephrase it for explicitly calling store.
...
> That way I can check for collisions in one pass without having to call has_key? fir... -
06:40 AM Feature #6219: Return value of Hash#store
- Right, good point. OK, then let me rephrase it for explicitly calling store. What I would prefer is:
h = { a: 1 }
h.store(:a, 2) # => 1
h.store(:b, 3) # => nil
That way I can check for collisions in one pass without having to cal... -
06:29 AM Feature #6219: Return value of Hash#store
- On Wed, Mar 28, 2012 at 22:18, Adam Prescott <adam@aprescott.com> wrote:
> Assignment always returns the right hand side, so this isn't quite an
> accurate demonstration of #store.
>
Although, I should also mention, this i... -
06:11 AM Feature #6219 (Feedback): Return value of Hash#store
- Hash#store returns the value that was just assigned, for example:
h[:a] = b # => b
Does anyone rely on this behavior, are there cases when this becomes handy?
If however the return value is discarded most of the time, I was th... -
11:29 PM Feature #6222: Use ++ to connect statements
- This seems like a workaround to me. But one that I don't like because Ruby will have to keep supporting this even if/after 'then' is accepted.
The problem is that while I find "then" readable to me, I don't think '++' is obvious to some... -
10:59 PM Feature #6222 (Rejected): Use ++ to connect statements
- I propose to use ++ to connect two or multiple statements, e.g.
do_this ++ do_that ++ do_something
It is equivalent to (do_this; do_that; do_something) but more readable.
It can be used to replace below idiom
do_something and... -
11:24 PM Bug #6223 (Feedback): Strange crash in GC while thread creation - 1.9.2 only
- It should be fixed in ruby 1.9.3p125.
Please try it. -
11:13 PM Bug #6223 (Closed): Strange crash in GC while thread creation - 1.9.2 only
- I use ruby-1.9.3-p0 and ruby-1.9.2-p290 via rvm. Here are installed gems:
$ gem list
*** LOCAL GEMS ***
avro (1.6.2)
bson (1.6.1)
bson_ext (1.6.1)
bundler (1.1.3)
cassandra (0.12.1)
citrus (2.4.1)
json (1.6.6)
mongo (1.6.1)... -
10:23 PM Feature #6150: add Enumerable#grep_v
- Oh, I see, I actually prefer this way so that I won't read code from others just passing "true". This is specially a big issue for boolean parameters as they don't mean anything by themselves.
-
09:57 PM Feature #6150: add Enumerable#grep_v
- Rodrigo Rosenfeld Rosas wrote:
> I'm sorry, Benoit, but I didn't get it. It seems to me that they do permit. What did you mean by "they do not permit this"?
> ...
With keyword arguments, you have to pass the keyword: `grep(matcher, i... -
09:39 PM Feature #6150: add Enumerable#grep_v
- Eregon (Benoit Daloze) wrote:
> Rodrigo Rosenfeld Rosas wrote:
> ...
I'm sorry, Benoit, but I didn't get it. It seems to me that they do permit. What did you mean by "they do not permit this"? -
09:21 PM Feature #6150: add Enumerable#grep_v
- Suraj wrote:
> it's uncommon for Ruby core API to accept options hash. [...]
> ...
You'll note most of these methods accept an options Hash (e.g.: rm_rf = rm_r list, options.merge(:force => true)).
Also, to add to what Thomas Sawyer... -
02:23 PM Feature #6150: add Enumerable#grep_v
- On Thu, Mar 29, 2012 at 01:14, sunaku (Suraj Kurapati) <sunaku@gmail.com> wrote:
>
> Issue #6150 has been updated by sunaku (Suraj Kurapati).
> it's uncommon for Ruby core API to accept options hash.
IO.new and IO.open now take ... -
12:49 PM Feature #6150: add Enumerable#grep_v
- If this were for FileUtils then I'd say `grep_v` is acceptable. But for Enumerable `grep_v` is not very acceptable. Option parameters are not something only Ruby 2 does. They are very common throughout all Ruby coding, which is why Ruby ...
-
08:14 AM Feature #6150: add Enumerable#grep_v
- I'd rather not wait 2+ years for this issue to be resolved by making this feature dependent on Ruby 2.0's named parameters feature. I'm also not fond of passing an options hash to grep() because, although you say it has nothing to do wi...
-
09:46 PM Feature #5809: Benchmark#bm: remove the label_width parameter
- @naruse: Sorry, I meant to answer to your reply much earlier, I just didn't make my mind at that time.
I understand the compatibility need, so I'll try to create a new method and refactor without changing existing API.
So my goal i... -
01:44 AM Feature #5809 (Assigned): Benchmark#bm: remove the label_width parameter
- Naruse-san, what does this ticket need? A better new name?
Could you please create a patch?
--
Yusuke Endoh <mame@tsg.ne.jp> -
06:54 PM Revision 7fe2c295 (git): Ignore generated file verconf.h
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:03 PM Revision 67d4eb32 (git): * 2012-03-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:03 PM Revision efd6f6b8 (git): * test/ruby/lbtest.rb: print at once including newlines.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:50 PM Revision 28cc4f75 (git): * st.c (st_update): pass pointer to key to the callback function.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:47 PM Bug #6089: Test suite fails with OpenSSL 1.0.1 - MartinBosslet (Martin Bosslet) wrote:
> bkabrda (Bohuslav Kabrda) wrote:
> ...
David, thank you very much. I opened the issue for drb: https://bugs.ruby-lang.org/issues/6221. -
09:32 AM Bug #6089 (Closed): Test suite fails with OpenSSL 1.0.1 - This issue was solved with changeset r35162.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/openssl/test_x509cert.rb: Exclude test that fails when issu... -
09:13 AM Bug #6089: Test suite fails with OpenSSL 1.0.1
- bkabrda (Bohuslav Kabrda) wrote:
> Hi Martin,
> ...
Sorry, I didn't respond clearly to your question. The only reason why DSS1 is not a match with RSA is that OpenSSL aliased SHA-1 as DSS1 and initially only allowed DSS1 to be used wit... -
02:46 PM Bug #6221 (Closed): OpenSSL 1.0.1 is breaking the drb test suite - Hi,
I'm having problem with running drb_ssl tests with Ruby 1.9.3.p125 and OpenSSL 1.0.1, originally reported at [1]. Martin Bosslet told me to open this new issue for drb_ssl. So here is the problem:
$ make test-all TESTS="test/drb/... -
02:29 PM Feature #5644: add Enumerable#exclude? antonym
- On Thu, Mar 29, 2012 at 01:26, sunaku (Suraj Kurapati) <sunaku@gmail.com> wrote:
> Issue #5644 has been updated by sunaku (Suraj Kurapati).
> The reason for #exclude? is for more "natural" boolean expressions
I don’t think #exc... -
12:41 PM Feature #5644: add Enumerable#exclude? antonym
- I'll throw my hat in with #exclude? too. There's been a number of times that I would have liked to have it. "not include?" is a rather common predication and it's nice when code can line up neatly.
-
08:26 AM Feature #5644: add Enumerable#exclude? antonym
- Hi Matz,
I didn't ask for antonmys for all predicates; only for #exclude?.
The reason for #exclude? is for more "natural" boolean expressions:
if File.exist? some_file and some_list.exclude? some_file
if File.exist? som... -
12:27 PM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
- marcandre (Marc-Andre Lafortune) wrote:
> I simply want to lighten the load for Matz; he has so many issues assigned to him or waiting on him already.
You must wait (or press) matz if a fix of an issue is clear and no other option of... -
11:11 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
- Hi,
naruse (Yui NARUSE) wrote:
> Is this a bug?
I'm very curious: how could it not be bug?
How would you explain that `values_at(2...42) != values_at(2..41)`?
I simply want to lighten the load for Matz; he has so many issues a... -
10:47 AM Bug #6203 (Assigned): Array#values_at does not handle ranges with end index past the end of the array
- Is this a bug?
-
05:22 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
- marcandre (Marc-Andre Lafortune) wrote:
> The patch from Mark Rada never made it through, but I concur that the problem is in rb_range_beg_len.
Hello Marc,
Sorry for not linking to the pull request here, though I did open a pull r... -
05:14 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
- The patch from Mark Rada never made it through, but I concur that the problem is in rb_range_beg_len.
I'll commit the fix below unless there's objection.
I've already fixed RubySpec:
https://github.com/rubyspec/rubyspec/commit/558a40e... -
01:57 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
- Moving back to "bug", as no explanation from Nobu.
-
10:51 AM Feature #4788: resolv.rb refactoring
- Here is a translation into English for the most recent message from Makoto:
The original problem is that 'lib/resolv.rb' had a fallback to TCP which was broken. There was a patch (#3835) which renamed ‘make_requester' to 'make_udp_req... -
10:40 AM Feature #6216: SystemStackError backtraces should not be reduced to one line
- Ruby 1.9.3:
~~~
/home/hal/.rvm/gems/ruby-1.9.3-p125/gems/dm-core-1.2.0/lib/dm-core/support/equalizer.rb:32: stack level too deep (SystemStackError)
~~~
JRuby 1.6.6:
~~~
SystemStackError: stack level too deep
... -
10:27 AM Bug #6134 (Closed): Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data - This issue was solved with changeset r35167.
Matt, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_pkcs7.c: fix crash when parsing garbage data.
... -
10:15 AM Bug #6098 (Closed): Re: GVL改善案
- This issue was solved with changeset r35163.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c (rb_threadptr_execute_interrupts_common): use defined... -
08:45 AM Feature #5741: Secure Erasure of Passwords
- nobu (Nobuyoshi Nakada) wrote:
> What kind of methods will be needed for "Secure Password", do you think?
> ...
Totally agreed. No, there's no reason that it has to be a String instance. As
you already stated, it's more like a "byte a... -
06:38 AM Feature #5741: Secure Erasure of Passwords
- What kind of methods will be needed for "Secure Password", do you think?
Is there any reason that it has to be real `String` instance?
For example, I guess it should be BINARY or US-ASCII always, so shouldn't have encode method.
sub... -
04:58 AM Feature #5741: Secure Erasure of Passwords
- mame (Yusuke Endoh) wrote:
> I think that adding a method to String requires matz's approval.
> ...
Sure - I would appreciate to have more opinions on how this can be
done best. I haven't really had the time to think it through yet,
... -
01:04 AM Feature #5741 (Assigned): Secure Erasure of Passwords
- I think that adding a method to String requires matz's approval.
If you propose to add a method to others, such as openssl, you
can do it at your discretion.
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:23 AM Feature #5456: kernel#syscall() should be removed.
- 2012/3/27 mame (Yusuke Endoh) <mame@tsg.ne.jp>:
>
> Issue #5456 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to matz (Yukihiro Matsumoto)
> Target version set to 3.0
>
... -
08:19 AM Bug #6168: Segfault in OpenSSL bindings
- Weird indeed, but thanks for your in-depth analysis and to Eric
for the hint with the debugger. I'll have a look at your example,
maybe I can find out why the seg fault happens in OpenSSL. But
good news that you at least know how to... -
07:10 AM Bug #6168: Segfault in OpenSSL bindings
- Ok, running that without the debugger gives a better error:
/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/net/imap.rb:1099:in `get_tagged_response': STORE attempt on READ-ONLY folder (Failure) (Net::IMAP::NoResponseError)
from... -
06:49 AM Bug #6168: Segfault in OpenSSL bindings
- Ok, I think I have a test case for you Martin... I was able to reproduce this again Google's IMAP server, so I created a dummy test account and a simple test case. Note: it only segfaults when in debug, I have no idea why? (is the debug...
-
06:38 AM Bug #6168: Segfault in OpenSSL bindings
- The second log uses ruby-debug and could be the cause of the second report. If this could be confirmed as another crash in sys write without use of ruby-debug that would be helpful.
-
04:26 AM Bug #6168: Segfault in OpenSSL bindings
- Hmm, the error logs don't really give away what happens. But it shouldn't segfault, that's for sure. What I would really appreciate is some code snippet that reliably reproduces the phenomenon on your side, Larry. Could you please try to...
-
03:37 AM Bug #6168: Segfault in OpenSSL bindings
- The error.log point to rb_check_funcall, not OpenSSL, so this may not be Martin's bug
-
08:08 AM Feature #5613: Signal.termsigname メソッドの追加
- 了解しました
-
07:53 AM Bug #6102 (Closed): Crash when calling OpenSSL::Integer#to_der with nil value - This issue was solved with changeset r35159.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_asn1.c: raise TypeError when trying to encod... -
07:38 AM Revision 6da92c3e (git): * lib/rdoc/task.rb: suppress overriding deprecated class warning.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:36 AM Revision 30cea657 (git): * st.c (st_update): add existing parameter to the callback function.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:35 AM Revision 95b30b0d (git): * lib/test/unit.rb (terminal_width, del_status_line, put_status):
- extract as methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:22 AM Feature #5106: Is MurmurHash overkill?
- With the recent changes since hashDoS I'm not sure whether
we should really aim for simplicity. It's quite easy to
become a target with a function that is algebraically as
simple as for example DJB33X. But speed on the other hand
cou... -
03:43 AM Bug #6215: print "#{RUBY_PATCHLEVEL.slice(2,3)}\n" results in crash
- According to the crash report, the crash occurs while textmate is handling the NoMethodError, perhaps while reformatting the backtrace.
-
01:46 AM Revision 0b81093a (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:45 AM Feature #5893 (Rejected): named return,next...
- I believe this is already solved. Closing.
--
Yusuke Endoh <mame@tsg.ne.jp> -
01:33 AM Feature #5798 (Assigned): Range#include? needs some optimization
-
01:32 AM Feature #5779 (Assigned): Ruby-FTP - allow easy way to find out whether a remote target is a file or a directory
- Maeda-san, please take a look at this.
--
Yusuke Endoh <mame@tsg.ne.jp> -
01:27 AM Revision aad347f5 (git): * ext/openssl/ossl_pkcs7.c: fix crash when parsing garbage data.
- * test/openssl/test_pkcs7.rb: assert correct behavior for it.
Thanks to Matt Venables for reporting the issue.
[ruby-core:43250][Bug #6134]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:27 AM Feature #5749 (Assigned): new method String#match_all needed
- 01:25 AM Revision e883637f (git): * 2012-03-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:25 AM Revision 7d984d76 (git): merge revision(s) 32578,33401,33403,33404,33531,33655,33679,33809,33900,33965,34067,34069,34087,34328,34330,34527,34772,34783,34839,34914,34953,34954,35153: [Backport #6212]
- * ext/psych/lib/psych.rb: updating version to match gem
* ext/psych/psych.gemspec: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing deprecation warning
* ext/psych/lib/psych.rb: define a new BadAlias error... - 01:17 AM Revision 8e601a20 (git): * thread_win32.c (TIME_QUANTUM_USEC): 10ms(= old setting) [experimental]
- cf. [Bug #6098]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:15 AM Revision fea7a74e (git): * thread.c (rb_threadptr_execute_interrupts_common): use defined
- TIME_QUANTUM_USEC instead of a magic number. there is no meanings
to use different values for checking interval of interruption and
thread switching limits.
cf. [Bug #6098]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35163... -
12:58 AM Bug #5887: The documentation of Module.constants is incorrect
- shugo (Shugo Maeda) wrote:
> > Actually, you can simply pass a parameter to `Module.constants` and the singleton method will call the instance method. The documentation should definitely reflect this too...
> ...
What do you think of ... -
12:57 AM Feature #5735 (Feedback): Extending the use of splat operator to when it is inside a hash
- Marc-Andre proposed a similar idea at [ruby-core:41772], and Matz commented a little at [ruby-core:41822].
It would be good to investigate how many use cases occur in real world.
matz wrote:
> I am still not sure if we need hash s... -
12:32 AM Revision 836af4e5 (git): * test/openssl/test_x509cert.rb: Exclude test that fails when issuing
- a certificate with RSA signature and DSS1 digest for earlier
OpenSSL versions when used in conjunction with OpenSSL 1.0.1.
Thanks, Vit Ondruch, for reporting the issue.
[ruby-core:42949][Bug #6089]
git-svn-id: svn+ssh://ci.ruby-...
03/28/2012
-
11:28 PM Revision 7d8a8956 (git): * NEWS: add note about unified behavior of encoding nil values in
- instances of OpenSSL::ASN1::ASN1Data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:09 PM Bug #6217 (Feedback): Bundle crash
- Looks to me to all the other bugs reported due OpenSSL library and extension failing.
Please recompile Ruby with proper OpenSSL support. If you use MacPorts, install OpenSSL and then do "rvm install 1.9.3 -C --with-opt-dir=/opt/local"... -
07:15 PM Bug #6217 (Rejected): Bundle crash
- I'm not sure if it's a problem with the ruby interpreter, but I searched on the web and I didn't find a solution for this problem.
The output I've got suggests that I "may have encountered a bug in the Ruby interpreter or extension libr... - 10:53 PM Revision 0443aeab (git): * 2012-03-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:53 PM Revision 5bef1c92 (git): * ext/openssl/ossl_asn1.c: raise TypeError when trying to encode nil
- values for Primitive instances.
* test/openssl/test_asn1.rb: Assert consistent behavior when
encoding nil values: Primitives raise TypeError, Constructives
raise NoMethodError.
Fixes [ruby-core:43009][Bug #6102]
-This line, and tho... -
10:24 PM Feature #6218 (Closed): struct.cのrb_struct_s_members_m()について
- 表題の関数ではrb_struct_s_members()で得たArrayの内容をwhile文で1要素ずつ新たなArrayにpushしていますが、
これはrb_ary_dup()で済ませられるのではないでしょうか。
パフォーマンス上のメリットもあります。
require 'benchmark'
sym = :a
s = Struct.new(*Array.new(100){ sym = sym.succ })
Benchmark.bm do |... -
07:39 PM Feature #4788: resolv.rb refactoring
- Hi, still having users with problems and no consistent way to solve it. Merging this patch would be a great addition. Let me know if you require any further support or have any questions.
-
07:27 PM Feature #6216 (Feedback): SystemStackError backtraces should not be reduced to one line
- Could you be more descriptive, please? Comparing outputs from Ruby and JRuby, for example.
Matz. -
04:16 PM Feature #6216 (Closed): SystemStackError backtraces should not be reduced to one line
- When debugging "SystemStackError: stack level too deep" exceptions, it is not helpful that the backtrace is reduced to one single line. Most of the time Ruby incorrectly identifies where cycles begin, resulting in an unrelated "file:line...
-
04:40 PM Feature #5610 (Closed): Allow strings as input for Process.uid=
- This issue was solved with changeset r35158.
markus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* process.c (obj2uid, obj2gid): allow strings as input user/gro... -
11:53 AM Feature #5610: Allow strings as input for Process.uid=
- =begin
Since (({Process.groups=})) already accepts strings, this proposal sounds reasonable.
=end
-
12:11 AM Feature #5610 (Assigned): Allow strings as input for Process.uid=
- Kosaki-san,
Are you interested in creating a patch?
--
Yusuke Endoh <mame@tsg.ne.jp> -
03:20 PM Bug #6209: Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError)
- Note that fast-stemmer doesn't seem to support 1.9 yet.
-
03:06 PM Bug #6209 (Closed): Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError)
- This issue was solved with changeset r35157.
Pierre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* marshal.c (r_symreal): default to ASCII-8BIT for non-ascii sy... -
02:19 PM Bug #6209: Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError)
- =begin
The minimal code would be:
Marshal.load(Marshal.dump("\xff".force_encoding("ascii-8bit").intern))
=end
-
01:04 AM Bug #6209 (Closed): Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError)
- =begin
= Description
A ruby object (generated with the Classifier gem) is Marshalled on the disk.
When reloaded, the ruby interpreter crashes with the following error:
test-case.rb:8:in `load': invalid encoding symbol (Encod... -
02:02 PM Bug #6215 (Feedback): print "#{RUBY_PATCHLEVEL.slice(2,3)}\n" results in crash
- =begin
Seems very strange.
(({RUBY_PATCHLEVEL})) is a (({Fixnum})) and has no (({slice})) method, so (({NoMethodError})) occurs on my machine.
What happens with just:
p RUBY_PATCHLEVEL
?
=end
-
12:51 PM Bug #6215 (Rejected): print "#{RUBY_PATCHLEVEL.slice(2,3)}\n" results in crash
- While using Ruby 1.9.3 and Textmate, I attempted to run the following code fragment:
print "#{RUBY_VERSION}\n"
print "#{RUBY_PLATFORM}\n"
print "#{RUBY_RELEASE_DATE}\n"
print "#{RUBY_PATCHLEVEL.slice(2,3)}\n"}
When executing t... -
01:53 PM Feature #5607: Inconsistent reaction in Range of String
- On 2012/03/28 0:10, mame (Yusuke Endoh) wrote:
>
> Issue #5607 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to duerst (Martin Dürst)
>
> Martin-sensei,
>
> I tentativ... -
12:10 AM Feature #5607 (Assigned): Inconsistent reaction in Range of String
- Martin-sensei,
I tentatively assign this ticket to you.
If you give up, please set the assignee to another person,
or let make it a blank. Take it easy.
--
Yusuke Endoh <mame@tsg.ne.jp> -
01:42 PM Bug #6213 (Third Party's Issue): Builder::XmlMarkup drops html_safe
- I guess it is the builder gem.
-
01:37 PM Bug #6213 (Feedback): Builder::XmlMarkup drops html_safe
- What is Builder::XmlMarkup?
-
08:21 AM Bug #6213 (Third Party's Issue): Builder::XmlMarkup drops html_safe
- A single line in Builder::XmlMarkup needs to be changed slightly,
to enable the builder to work with the html_safe flag that was introduced with rails3.
like
def method_missing(sym, *args, &block)
[...]
t... -
11:09 AM Bug #6214 (Closed): warnings on inspect for Enumerator objects if $VERBOSE
- Lazy なオブジェクトの inspect がわかりやすくなった反面、
$VERBOSE な時に警告が出るようです。
$ ruby -ve 'p "".bytes'
ruby 2.0.0dev (2012-03-28 trunk 35155) [x86_64-linux]
-e:1: warning: instance variable receiver not initialized
-e:1: warning: instance variable me... -
09:53 AM Feature #5707: temporary file creation without finalizer and delegate.
- 2012/3/28 mame (Yusuke Endoh) <mame@tsg.ne.jp>:
>
> Issue #5707 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to akr (Akira Tanaka)
>
> What's the status? How can we move... -
01:05 AM Feature #5707 (Assigned): temporary file creation without finalizer and delegate.
- What's the status? How can we move on?
The easiest way I think is to become the maintainer of tempfile
and to accept the ticket by yourself.
--
Yusuke Endoh <mame@tsg.ne.jp> -
07:56 AM Feature #5523 (Closed): Numeric#sign の追加
-
07:40 AM Revision 9bf9b3ef (git): * process.c (obj2uid, obj2gid): allow strings as input user/group id.
- [ruby-core:40923][Feature #5610]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:59 AM Feature #5458: DL should be removed - On Tue, Mar 27, 2012 at 10:50:41PM +0900, mame (Yusuke Endoh) wrote:
>
> Issue #5458 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to matz (Yukihiro Matsumoto)
>
> In principl... -
06:06 AM Revision 1521f933 (git): * marshal.c (r_symreal): default to ASCII-8BIT for non-ascii symbols,
- otherwise it should be converted to US-ASCII in rb_intern_str() if
possible. [ruby-core:43762][Bug #6209]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:05 AM Revision 113c6d58 (git): * marshal.c (r_symreal): no longer need volatile modifier, as using
- rb_intern_str() not rb_intern().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:51 AM Bug #6168: Segfault in OpenSSL bindings
- trying again pointing at openssl dir to see if that makes a difference:
$ rvm reinstall 1.9.2 --with-openssl-dir=/usr/include/openssl
nope, same seg fault. -
04:38 AM Bug #6168: Segfault in OpenSSL bindings
- This also happens in 1.9.2-p318:
While using the mail gem (http://rubygems.org/gems/mail) in a ruby-debug19 context:
85 emails = Mail.find(:mailbox => opts[:mailbox], :keys => ["ALL", "UNSEEN"], :count => 9999) do |email, ima... -
03:36 AM Feature #6210: load should provide a way to specify the top-level module
- Sounds partially like #5643?
-
02:57 AM Feature #6210 (Closed): load should provide a way to specify the top-level module
- load currently takes an optional second argument that allows you to load into an anonymous and new top-level Module. It would be nice if the second argument could also be a Module that would then be used as the top-level Module. That w...
-
03:25 AM Feature #5361: Lice?
- Or to get bit!
-
01:28 AM Feature #5361 (Rejected): Lice?
- Don't deny your potential to learn.
Matz.
-
02:58 AM Bug #6211 (Closed): Ripper lexes :on_rbrace when it should find :on_embexpr_end
- =begin
1.9.3-p125 :001 > require 'ripper'
=> true
1.9.3-p125 :002 > Ripper.lex %Q{`\#{cmd}`}
=> [[[1, 0], :on_backtick, "`"], [[1, 1], :on_embexpr_beg, "\#{"], [[1, 3], :on_ident, "cmd"], [[1, 6], :on_rbrace, "}"], [[1, 7],... -
01:43 AM Feature #5583 (Rejected): Optionally typing
- Although type notation as a comment a la Dart language is pretty interesting, I have to reject this proposal, since the proposed syntax is conflicting.
Matz.
-
01:35 AM Feature #6150: add Enumerable#grep_v
- Of course, after Ruby support named parameters this could be acceptable too and I would always use it by passing the named parameter instead of just "true".
-
01:33 AM Feature #6150: add Enumerable#grep_v
- "grep pattern, invert: true" is acceptable to me but "grep pattern, true" is not because the code becomes non readable and you'd have to check the API to understand what "true" means. This has nothing to do with Rails vs Ruby.
-
01:29 AM Feature #6150: add Enumerable#grep_v
- Alright, then let's simplify it further because passing {:invert=>true} seems more like Rails than Ruby:
def grep(pattern, invert=false)
...
end
["hello", "world"].grep(/h/, true) # => ["world"]
["hello", "world"].g... -
01:30 AM Feature #5372 (Rejected): Promote blank? to a core protocol
- Let it stay in ActiveSupport. Generally, string is string, array is array, in Ruby.
Matz.
-
01:28 AM Revision b95b56cc (git): * process.c: no cuddle up else's.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:25 AM Feature #5644 (Feedback): add Enumerable#exclude? antonym
- from that logic, don't we need to add antonyms to every predicate methods?
could you show us why include? is special?
Matz.
-
12:28 AM Feature #5644 (Assigned): add Enumerable#exclude? antonym
-
01:12 AM Feature #5574 (Rejected): Make arrays comparable
- Since arrays are not always compatible, I don't want to give wrong implication by making arrays comparable.
Adding <=> was a realistic compromise for me to allow array sorting.
Matz.
-
01:08 AM Feature #5555 (Rejected): rename #include? to #includes?
- The basic naming for methods in standard class libraries are:
* use basic form (include not includes)
* put question mark for predicates
* put bang mark for "dangerous" version of methods
"is_a" and "has_key" are exceptions. "is... -
01:07 AM Feature #5716 (Assigned): duplicated when clause is ignored -> Report which clause it is specifically.
-
01:03 AM Feature #5695 (Rejected): CoffeeScript "is" and "isnt" keywords
- I strongly believe that this proposal has no hope.
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:49 AM Feature #5673 (Assigned): undef_method probably doesn't need to raise an error
-
12:45 AM Feature #5669 (Assigned): Random thread scheduling based on a seed
- Ko1, kosaki, tarui-san, what do you think?
Looks almost impossible to me, though.
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:43 AM Feature #5666 (Assigned): Make rb_path2class public
- Aaron-san, could you answer Kosaki's comment?
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:41 AM Feature #5662 (Rejected): inject-accumulate, or Haskell's mapAccum*
- I think the answer to this original proposal is "use each_with_object".
That's all. Closing.
Please open another ticket for an alias of the method if needed.
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:34 AM Feature #5654 (Assigned): Introduce global lock to avoid concurrent require
- NaHi-san, could you facilitate the discussion?
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:33 AM Feature #5653 (Assigned): "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
- Hello, NaHi-san
Hiroshi Nakamura wrote:
> This ticket is for discussion about removing autoload from stdlib (or not)
It would be good to open tickets for each library that uses autoload.
And, what do you think about Stephen a... -
12:27 AM Feature #5643 (Assigned): require/load options and binding option
-
12:23 AM Feature #5632 (Assigned): Attempt to open included class shades it instead.
-
12:22 AM Feature #6088: Add Net::ReadTimeout to distinguish which operation failed
- I don't object the direction but it should have more document about the new Exception.
-
12:16 AM Feature #4906: rb_w32_add_socket / rb_w32_remove_socket
- > Is this planned to be included in 2.0.0?
Yes.
Thank you for your reminder. -
12:13 AM Feature #5613 (Assigned): Signal.termsigname メソッドの追加
- パッチ晒して「反対がなければコミットします」って言えばいいんじゃないかと思います。
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:07 AM Feature #5590 (Closed): Proposal for sustainable branch maintenance
- See also [ruby-dev:45183] and [ruby-core:42363]
-
12:07 AM Feature #5606 (Feedback): String#each_match(regexp)
- 遠藤です。
2011年11月10日17:19 Tomoaki Nishiyama <tomoakin@staff.kanazawa-u.ac.jp>:
> String#scan ではダメかというと
> ...
$~ を使うのが普通です。
longstring.scan(regex) do
...
puts "#{$~.begin(0)}-#{$~.end(0)-1} some other info"
end
「い...
03/27/2012
-
11:55 PM Feature #5583 (Assigned): Optionally typing
-
11:54 PM Feature #5460 (Closed): Improve "CONNECT" code in net/http. (patch inclulded)
- Committed in r34362.
-
11:54 PM Feature #5584 (Rejected): Array#sample!
- まつもとさんの意見に対して feedback がないので閉じます。
--
Yusuke Endoh <mame@tsg.ne.jp> -
11:52 PM Feature #5582 (Assigned): Allow clone of singleton methods on a BasicObject
-
11:49 PM Feature #4906: rb_w32_add_socket / rb_w32_remove_socket
- Is this planned to be included in 2.0.0?
- 11:45 PM Revision 4e380912 (git): * 2012-03-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:45 PM Revision a2c56d53 (git): * ext/psych/lib/psych.rb: updating version to match gem
- * ext/psych/psych.gemspec: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing deprecation warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:45 PM Feature #5574 (Assigned): Make arrays comparable
-
11:44 PM Feature #5558 (Assigned): String#% strange arity errors
- This behavior is certainly intended. See [ruby-core:5161].
There is another example that behavior changes whether it is
debug mode or not: Thread#abort_on_exception.
Thread.new { raise }
sleep 1
The above will termin... -
11:41 PM Feature #5180 (Rejected): net/http の接続時に用いる IP アドレスの指定
- これは reject します。
さておき、メンテナにはなりますかね。
まつもとさんの承認は必要だったような。 -
02:31 AM Feature #5180 (Assigned): net/http の接続時に用いる IP アドレスの指定
- 成瀬さん
微妙に反対意見が出てますが、net/http のメンテナの裁量で
好きにやっていい範囲だと思います。
しかし現在 net/http にはメンテナがいません。
成瀬さんがメンテナになりませんか?
おまけで、net/http 関係の issue が憑いてきます。
メンテナになるのってまつもとさんの了解が必要でしたっけ。
成瀬さんがメンテナやりたくないなら reject の方向で。
その場合は Eric Hodel あたりに声かけてみます... -
11:38 PM Feature #5555 (Feedback): rename #include? to #includes?
- Hello,
2011/11/13 Alexey Muranov <muranov@math.univ-toulouse.fr>:
> Good explanation. The method names can also me viewed as #(does_it_)include?
I'm not sure but the rule seems Lisp's name convention?
Maybe it also came from Lis... -
10:54 PM Feature #5534 (Assigned): Redefine Range class and introduce RelativeNumeric and RelativeRange
-
10:51 PM Feature #5531 (Assigned): deep_value for dealing with nested hashes
-
10:50 PM Feature #5458 (Assigned): DL should be removed
- In principle, nothing should be removed from 2.0 because of compatibility.
I cannot advocate DL and Syck, though...
--
Yusuke Endoh <mame@tsg.ne.jp> -
10:47 PM Feature #5456 (Assigned): kernel#syscall() should be removed.
- Kosaki-san,
In principle, nothing should be removed from 2.0 because of compatibility.
Do you think it should be removed from 2.0?
--
Yusuke Endoh <mame@tsg.ne.jp> -
10:45 PM Feature #5446 (Feedback): at_fork callback API
- Eric Wong,
Do you still want this feature?
If so, could you answer kosaki's comment?
OT: We noticed and surprised at your ID (normalperson) at the recent
developers' meeting in Akihabara. Clearly, you are greatperson :-)
--... -
10:38 PM Feature #5445 (Assigned): Need RUBYOPT -r before ARGV -r
-
10:25 PM Bug #5488 (Closed): autoconf failure on HP-UX/PA
-
05:48 PM Feature #6150: add Enumerable#grep_v
- trans (Thomas Sawyer) wrote:
> Can it be an option?
> ...
Agreed, adding another method seems overkill (not to mention it does not look right) for such change. -
04:04 AM Feature #6150: add Enumerable#grep_v
- Can it be an option?
grep(pattern, :invert=>true)
-
03:39 AM Feature #6150: add Enumerable#grep_v
- =begin
I think that this is a good idea.
=end
- 02:44 PM Revision 9073db5c (git): * io.c (io_unread): fixed memory leak. report by nagachika via IRC.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:44 PM Revision 61dc4a8d (git): * configure.in (verconf.h): separate load path specific stuff from
- config.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:43 PM Revision c2d7776f (git): * win32/Makefile.sub: fix config.h path to include.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:23 PM Revision c857c737 (git): merge revision(s) 33533: [Backport #6204]
- * configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as
shell variable name. based on the patch by The Written Word Inc. at
[ruby-core:40421]. [Bug #5488]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra... -
09:56 AM Feature #5064: HTTP user-agent class
- =begin
I hope this shortened version is simple enough:
New class named Net::HTTP::Agent with this API:
agent = Net::HTTP::Agent.new
Built in ways to make HTTP requests similar to Net::HTTP:
agent.head "http://example/som... -
09:09 AM Feature #5219: Array#pack should warn (or raise) if an invalid pack string is given
- I was helping someone else write a patch, but they have gone missing.
Can you check this patch? -
02:46 AM Feature #5219 (Assigned): Array#pack should warn (or raise) if an invalid pack string is given
- drbrain,
> Ruby should at least warn like printf when -w is active:
Agreed. Could you offer a patch?
I think you can commit it, unless there is objection.
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:27 AM Revision 35259b72 (git): * win32/win32.c (check_if_dir): fix memory leak.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:06 AM Revision 2434ad11 (git): fix typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:17 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
- Personally I think it's a ugly notation. Also methods aren't 1st class --you don't get the same method object each time. If we did, then I say it agree it would be important to have a concise syntax.
-
03:22 AM Feature #5364 (Assigned): How about new syntax: "object.\method" returns a Method instance?
- Anyone is interested in facilitating the discussion?
Personally, I believe this proposal is the right way.
I tentatively assign this to matz, but I don't think
this is going to end well.
--
Yusuke Endoh <mame@tsg.ne.jp> -
04:13 AM Revision ab9c982c (git): * string.c (str_new_empty): should copy also the encoding as an
- empty substring. [ruby-dev:45441][Bug #6206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:33 AM Feature #5394 (Feedback): Anonymous Symbols, Anonymous Methods
-
03:32 AM Feature #5392 (Assigned): Symbol GC
-
03:32 AM Feature #5389 (Assigned): New method Enumerator#iterate
-
03:27 AM Feature #5373 (Assigned): SMTP - new method
-
03:26 AM Feature #5372 (Assigned): Promote blank? to a core protocol
-
03:24 AM Feature #5371 (Rejected): add marshalling support for Mutex
- There is no feedback or revised proposal from OP.
I close this as Rejected.
--
Yusuke Endoh <mame@tsg.ne.jp> -
03:11 AM Revision 9052a8cd (git): * tool/make-snapshot (package): EXEEXT is now used in mkmf.rb.
- [ruby-core:43685]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:11 AM Revision be42c354 (git): * tool/make-snapshot (package): suppress constant overwritting warnings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:08 AM Feature #5361 (Assigned): Lice?
-
03:07 AM Feature #5352 (Assigned): How about using <> to represent Here Document?
-
03:06 AM Bug #5317 (Assigned): rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
- まあこれは何かしら対処すべきじゃないですかね。
#define off_t を入れたのはなかださんっぽい (r10720) ので、
なかださんお願いします。
--
Yusuke Endoh <mame@tsg.ne.jp> -
03:04 AM Feature #5310 (Assigned): Integral objects
- Hello, Mrkn-san
Could you tell me the status?
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:50 AM Feature #5281 (Assigned): Support for custom sitearch and vendorarch directories
- Nobu, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:49 AM Feature #5231 (Assigned): Allow to disable versioned paths
- Nobu, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:48 AM Feature #5220 (Rejected): NilClass#to_i should accept an argument to match String#to_i
- There is no feedback or revised proposal from OP.
I close this as Rejected.
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:43 AM Feature #5206 (Assigned): ruby -K should warn
- Naruse-san, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:42 AM Feature #3963 (Assigned): Map class in standard library
- Okay, thanks. I mark this ticket as matz's issue.
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:32 AM Feature #3963: Map class in standard library
- Not much difference, except perhaps for the more flexible #convert_key idea. I was just clarifying in this ticket b/c of some of the comments made about Map specifically.
The conversation referenced did not seem to have any kind of co... -
02:20 AM Feature #3963: Map class in standard library
- Did you read the thread Shyouhei said?
shyouhei wrote:
> FYI: There has been a Mash merge request about a year ago. Pleas take a look at
> ...
I don't remember it in detail, but a similar idea you are talking about
was discussed, I... -
01:49 AM Feature #3963: Map class in standard library
- Just to be sure, I think I should clarify.
I do not mean Ruby ought provide Ara's Map class specifically (though, for the most part it is probably a very good implementation which is why I reference it). But that Ruby provide at least... -
12:53 AM Feature #3963: Map class in standard library
- Hello,
2012/3/25, akr (Akira Tanaka) <akr@fsij.org>:
> I think no hope to add Map class as builtin.
I agree for two reasons.
The name "map" is not suitable. In computer science, "map" stands for
an abstract data stru... -
02:34 AM Feature #5185 (Assigned): Set#merge acts in place but Hash#merge does not
- I understand the problem, but I guess it is too late to fix it.
Anyway, I'm assigning this to knu, the maintainer of lib/set.rb.
--
Yusuke Endoh <mame@tsg.ne.jp> -
02:20 AM Bug #6205 (Closed): YAML Regexp in anchor gets converted to String
- Thanks for the bug report!
This was fixed in r33679. I'll make a request to backport the fix to the 1.9.3 branch. -
02:12 AM Feature #5145 (Feedback): Function extension of Array#transpose
- Interesting but do you have any use case?
--
Yusuke Endoh <mame@tsg.ne.jp> -
01:55 AM Feature #5129 (Assigned): Create a core class "FileArray" and make "ARGF" its instance
- Hello,
I like the idea, but it requires matz's approval.
> Now when I "p ARGF.class", I get "ARGF.class", so ARGF is an instance of ARGF.class, how meaningless it is.
FYI: In fact, it is meaningful. You can "exploit" it.
... -
01:44 AM Feature #6118: Hash#keys_of(values), returns related keys of given values
- Here is the updated patch
-
01:38 AM Feature #6118: Hash#keys_of(values), returns related keys of given values
- Here is the implementation for Hash#keys_of
-
01:44 AM Feature #5106 (Feedback): Is MurmurHash overkill?
- Hello,
> Simpler hash functions may be appropriate for hash tables, esp. small
> ...
Please make it quantitative when talking about performance.
Please show a benchmark first.
How slow is MurmurHash? How fast will st.c be if the... - 01:41 AM Revision f25efeb8 (git): * 2012-03-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:41 AM Revision e9e93e5d (git): * test/net/ftp/test_ftp.rb: property.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:36 AM Feature #5006 (Rejected): Allow ~> as a method
- Hello,
This syntax would bring ambiguity.
Consider "0.~>1". This can parse as:
0.send("~>", 1)
as well as:
0.send("~") > 1
. So I close this ticket as Rejected.
There are some incomplete or arguable points in th... -
01:29 AM Bug #6159: Enumerable::Lazy#inspect
- Hello,
2012/3/27 Yusuke Endoh <mame@tsg.ne.jp>:
>> So I prefer the current behavior.
>
> I agree with you, as a core team member.
> It is a simple and straightforward implementation.
> But I also agree with Benoit, as a u... -
12:29 AM Bug #6159: Enumerable::Lazy#inspect
- Hello,
2012/3/25, shugo (Shugo Maeda) <redmine@ruby-lang.org>:
> So I prefer the current behavior.
I agree with you, as a core team member.
It is a simple and straightforward implementation.
But I also agree with Benoit,... -
01:19 AM Feature #4967 (Rejected): dmalloc reported memory leaks in ruby
- Hello,
Thank you for introducing an analysis tool and providing the
result. But, please send such information as a mail, not open
a ticket. A ticket should be for each concrete problem.
I guess valgrind (with option --show-reac... -
01:05 AM Feature #4712 (Feedback): File.writable? inaccurate in windows
- Hello,
usa wrote:
> The problem is who/when/how does it...
We need contribution. I mark this ticket as Feedback.
--
Yusuke Endoh <mame@tsg.ne.jp> -
01:03 AM Feature #4601 (Closed): Re-ordering method parameters.
- Hello,
More or less, this problem is solved by keyword arguments, I guess.
So I close this ticket.
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:30 AM Feature #4057 (Rejected): FileUtils.copy with FIFOs and Special Devices
- Hello,
Runpaint, I think you meant FileUtils.copy_entry.
$ mkfifo fifo
$ ruby -rfileutils -e 'FileUtils.copy_entry("fifo", "lifo")'
...:in `copy': cannot handle FIFO (RuntimeError)
> So,
> ...
I object to replac... -
12:18 AM Feature #5903: Optimize st_table (take 2)
- Add couple of commits to pull request https://github.com/ruby/ruby/pull/107 :
1. Removal of ST_CHECK .
ST_CHECK were always returned instead of ST_CONTINUE inside of some st_foreach loops.
Now such calls to st_foreach are conv...
03/26/2012
-
11:28 PM Feature #6166: Enumerator::Lazy#pinch
- I like having a method myself b/c it reads better. I think "pinch" conveys the sort of "closing action" of the de-lazying.
Of course, #fetch would work as well, and that's a standard method, but it's interface only accepts an index, n... -
10:46 PM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
- Hi,
nobu (Nobuyoshi Nakada) wrote:
> It's definitely not a bug.
It's not?
How do you explain:
[1, 2, 3].values_at(2...42) # => [3]
[1, 2, 3].values_at(2..41) # => [3, nil]
I feel that both must return the same res... -
02:12 PM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
- It's definitely not a bug.
-
01:50 PM Bug #6203 (Closed): Array#values_at does not handle ranges with end index past the end of the array
- =begin
When I use Array#values_at I expect that it would be the same as successive calls to (({Array#[]})).
There is one case where this does not hold:
a = [0,1,2,3,4,5]
a[4..6] # => [4, 5]
a.values_at(4..6) # => [4,... -
09:36 PM Feature #6201: do_something then return :special_case (include "then" operator)
- Thank you for your feedback Yusuke. And yes, you understood it right. I actually tried to quickly find out first if "if ... then" was a valid syntax in Ruby, but I couldn't find it. It seems I didn't look hard enough...
I think my pro... -
09:21 PM Feature #6201 (Assigned): do_something then return :special_case (include "then" operator)
- Hello, Rodrigo
In short, you are proposing a syntactic sugar:
A then B
as
(A; B)
, so that you can rewrite the following idiom:
(render(...); return) if condition?
with:
render(...) then return if conditio... -
11:14 AM Feature #6201: do_something then return :special_case (include "then" operator)
- nobu (Nobuyoshi Nakada) wrote:
> =begin
> ...
Yes, Nobu, that is the other common idiom (the one I actually use), but I still don't find this readable. -
10:52 AM Feature #6201 (Feedback): do_something then return :special_case (include "then" operator)
-
10:51 AM Feature #6201: do_something then return :special_case (include "then" operator)
- =begin
(follow response['location']; return :redirected) if response.redirect?
=end
-
10:34 AM Feature #6201 (Rejected): do_something then return :special_case (include "then" operator)
- =begin
I've read several aproaches to deal with this case and this just feels like Ruby doesn't have a good idiom yet for the common use case.
You want to do some special action under certain conditions and then return the method.
... -
08:43 PM Bug #6205 (Closed): YAML Regexp in anchor gets converted to String
- I'll try to illustrate with code:
YAML:
---
hello: &allow-float
!ruby/regexp '/hello/'
bla: *allow-float
RUBY:
require 'yaml'
config = YAML.load_file('config.yaml')
puts config.inspect
puts config['hell... -
02:43 PM Revision bb314d33 (git): * lib/net/ftp.rb (parse227, parse228, parse229): don't use $~.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:39 PM Revision d68b3a38 (git): * lib/net/ftp.rb (parse227, parse228, parse229): don't use local
- variables defined by named capture for other Ruby implementations
such as Rubinius.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:39 PM Revision 422c8bae (git): * lib/net/ftp.rb (parse_pasv_port): refactored.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:22 PM Bug #6202 (Rejected): The 'rescue' modifier can not be used in 'require'
- 'rescue' modifier and 'rescue' clause with no exception classes catch only StandardError and its subclasses.
LoadError can't be caught. -
12:15 PM Bug #6202 (Rejected): The 'rescue' modifier can not be used in 'require'
- My Ruby version is: ruby 1.9.3p125 (2012-02-16) [i386-mingw32]
I found that the 'rescue' modifier can not be used in 'require', for example:
require 'not_exist' rescue require 'set' # this will raise a LoadError
I must write a... -
11:46 AM Feature #2408 (Closed): better error reporting in windows when you try to run a directory
- This issue was solved with changeset r35131.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ruby.c (load_file_internal): bail out if the script is a direc... -
10:52 AM Revision cae1d532 (git): * test/net/ftp/test_ftp.rb: add the test, which was forgotten in the
- previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:52 AM Revision 8c89d8ef (git): * lib/net/ftp.rb (parse227, parse228, parse229): refactored.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:52 AM Revision b9f67c41 (git): * enumerator.c (inspect_enumerator): show method arguments of
- lazy enumerators correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:33 AM Feature #1400: Please add a method to enumerate fields in OpenStruct
- Hi,
Peter Vandenabeele wrote:
> Is there a specified order for the enumeration? (I presume not, but
> ...
As the implementation uses a hash, it would be the same order, i.e. order in which they were set.
Thomas Sawyer wrote:
> ... -
05:08 AM Revision ddc7bcd6 (git): * win32/Makefile.sub (newline.c, miniprelude.c): search from source
- directory, not depending on VPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:51 AM Revision 7a0d81ea (git): * win32/win32.c (check_if_dir, check_if_wdir): fix for Visual C++
- not to use S_ISDIR(). [Feature #2408][ruby-core:26925]
* ruby.c (load_file_internal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:57 AM Revision 06fba523 (git): * tool/merger.rb (interactive): allow editing commit message.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:57 AM Revision 1b2a6075 (git): * tool/merger.rb (default_merge_branch): use IO.popen to invoke pager.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:46 AM Revision 764d5478 (git): * ruby.c (load_file_internal): bail out if the script is a directory.
- [Feature #2408][ruby-core:26925]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:41 AM Revision 8a57e0bf (git): * 2012-03-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:41 AM Revision b83ad31c (git): * win32/win32.c (rb_w32_open, rb_w32_wopen): check if the file is a
- directory when access denied, to set errno to EISDIR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:57 AM Revision c34b551c (git): merge revision(s) 33542,33543: [Backport #6200]
- * parse.y (parser_nextc): set encoding for the buffer of ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:07 AM Feature #4840: Allow returning from require
- I've had occasion to use this as well, especially for RUBY_VERSION specific code.
I wonder if it is okay to be embedded in other code though. Would this work?
~~~ruby
class Q
def foo
exit_script
end
end
...
03/25/2012
-
11:57 PM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- I'm trying to get used to the idea of eating a pizza taue, myself. :-)
This is the classic chicken and egg situation -- "We'll do it if it's popular", but "It won't get popular unless people do it".
I think Tau=2*Pi is a good idea.... -
04:29 PM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- We have discussed this at today's developers' meeting in Akihabara.
We highly doubt that there are many mathematicians, physicists, engineers, and so on, who use τ. Once τ is widely accepted in these communities, we might add it.
J... -
04:23 PM Feature #4897 (Feedback): Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
-
10:20 PM Feature #3346: __DIR__ revisted
- Ruby does not provide way to get root of app/lib, and current working directory is not always root of applicable app/lib, so that's not always helpful way.
Sometimes practical choice outweighs theoretical ideal. `File.dirname(__FILE__)`... -
02:27 PM Feature #3346: __DIR__ revisted
- UNIX style directory hierarchy prepare a directory to put everything relate to the app/lib. I hesitate to add a method/directive that encourage file system convention apparently against UNIX style.
-
01:57 PM Feature #3346 (Assigned): __DIR__ revisted
-
10:03 PM Feature #4247: New features for Array#sample, Array#choice
- Whatever happened to #pick and #pick! which picked one random element? The term #sample strongly suggests the return of a subset.
Anther consideration, maybe it would be more useful to use a random delegator.
enum.random.sample
... -
02:18 PM Feature #4247 (Assigned): New features for Array#sample, Array#choice
-
09:22 PM Feature #5064: HTTP user-agent class
- Comment, mostly to drbrain (Eric Hodel):
At the developers' meeting today in Akihabare, we assigned this issue to Matz to decide on the main direction, but we thought that it might help Matz to get a shorter summary of the proposal. -
05:17 PM Feature #5064 (Assigned): HTTP user-agent class
-
09:11 PM Bug #5536: String#start_with? and end_with? ignore arguments convertible to a String [PATCH]
- I have uploaded a new set of patchs to better respect the style in test/ruby/test_string.rb (use S(str) for strings).
Could we merge this? -
08:53 PM Feature #3388: regexp support for start_with? and end_with?
- > A patch is welcome.
I'm willing to give this a shot, but I think #5536 should be merged first. -
02:09 PM Feature #3388 (Feedback): regexp support for start_with? and end_with?
- A patch is welcome.
--
Yusuke Endoh <mame@tsg.ne.jp> -
06:20 PM Bug #6167 (Closed): String#count: wrong result for multiple complements of multi-byte characters
- This issue was solved with changeset r35127.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (tr_setup_table): fix multiple non latin argument for
... -
05:26 PM Feature #5120 (Assigned): String#split needs to be logical
-
05:23 PM Feature #5016: Kernel#caller with negative limit should limit result to N initial frames
- > Calling Kernel#caller with a negative limit should limit result to N initial frames. When using Kernel#caller you often only want the first element of the result to get the information of the immediate caller. Generating the whole b...
-
04:57 PM Feature #5016 (Assigned): Kernel#caller with negative limit should limit result to N initial frames
-
05:22 PM Feature #5106 (Assigned): Is MurmurHash overkill?
-
05:21 PM Feature #5088 (Assigned): Refactor and Document vm_method.c / method.h
-
05:15 PM Feature #5607: Inconsistent reaction in Range of String
- We have discussed this issue at today's developers' meeting in Akihabara.
We agreed that it would be desirable to fix this, but that it may not be easy to implement. To avoid endless loops, one has to be able to check whether the star... -
05:12 PM Feature #5607: Inconsistent reaction in Range of String
- I presented String#succ mechanism:
http:www.a-k-r.org/pub/string-succ-rejectkaigi2008.pdf
(in Japanese) -
05:15 PM Feature #5053 (Assigned): ruby コマンドと libruby の食い違いチェック
-
05:03 PM Feature #5044 (Assigned): #zip with block return mapped results
-
05:02 PM Feature #5044: #zip with block return mapped results
- Currently it can be implemented as follows.
% ruby -e 'p [1,2,3].zip([1,2,3]).map {|a,b| a + b }'
[2, 4, 6]
% ruby -e 'p [1,2,3].lazy.zip([1,2,3]).map {|a,b| a + b }.to_a'
[2, 4, 6]
-
04:54 PM Feature #5007 (Assigned): Proc#call_under: Unifying instance_eval and instance_exec
-
04:45 PM Feature #5006 (Assigned): Allow ~> as a method
-
04:44 PM Feature #4965: The problem of "print line if line = DATA.gets"
- Just for completeness, at today's developers' meeting in Akihabara, there were several people who were supportive of this proposal. Arguments given were that humans read code top-down, but not necessarily left-to-right character-by-chara...
-
04:38 PM Feature #4965 (Assigned): The problem of "print line if line = DATA.gets"
-
04:44 PM Feature #5005 (Assigned): Provide convenient access to original methods
-
04:43 PM Feature #4990 (Assigned): Proposal: Internal GC/memory subsystem API
-
04:41 PM Feature #4967 (Assigned): dmalloc reported memory leaks in ruby
-
04:35 PM Feature #4946 (Assigned): Building libruby-static.a with option nodynamic and --with-static-link-ext doesn't disable dlopen
-
04:32 PM Feature #4935 (Assigned): Quoted Label Form for 1.9 Hashes
-
04:30 PM Feature #4924 (Assigned): mkmf have_header fails with C++ headers
-
04:28 PM Feature #4910 (Assigned): Classes as factories
-
04:25 PM Feature #4907 (Assigned): enumerable#permutation and combination
-
04:20 PM Feature #4865 (Assigned): Documentation of FileUtils is very unclear on how errors are handled
-
04:18 PM Feature #4862 (Assigned): Struct#to_hash
-
04:12 PM Feature #4849 (Assigned): io/wait should have a way to avoid FIONREAD
-
04:10 PM Feature #4840 (Assigned): Allow returning from require
-
04:09 PM Feature #4822 (Rejected): String#capitalize improvements
- yeban (Anurag Priyam) wrote:
> > Hmm, how about this?
> ...
We have discussed this issue at today's developers' meeting in Akihabara.
This kind of processing is not only dependent on language, but even for a specific language needs ... -
04:06 PM Feature #4824 (Assigned): Provide method Kernel#executed?
-
04:03 PM Feature #4786 (Rejected): RCR new Feature: Numeric#grouped
- naruse (Yui NARUSE) wrote:
> Ruby doesn't include Locale depended features on current policy.
> ...
We have looked at this issue today at our Ruby developer meeting in Akihabara, and we agree with Yui. We have therefore rejected this i... -
03:59 PM Feature #4786 (Assigned): RCR new Feature: Numeric#grouped
-
04:02 PM Feature #4801 (Assigned): Shorthand Hash Syntax for Strings
-
03:55 PM Feature #4772 (Assigned): Hash#add_keys
-
03:53 PM Feature #4592: Tempfileを直接保存したい
- (2012/03/25 15:33), akr (Akira Tanaka) wrote:
> remove_finalizer とか、save とかよりももうちょっと長い名前がいいんじゃないかなぁ、と思います。
mv なり hardlink などして,File を返すインターフェースとかだと良かった
りしないでしょかね.「消されない」Tempfile ってのに違和感がありまして.
Tempfile#mv(filepath) #=> F... -
03:33 PM Feature #4592: Tempfileを直接保存したい
- remove_finalizer とか、save とかよりももうちょっと長い名前がいいんじゃないかなぁ、と思います。
-
03:33 PM Feature #4592 (Assigned): Tempfileを直接保存したい
-
03:48 PM Feature #4712 (Assigned): File.writable? inaccurate in windows
-
03:46 PM Feature #4646 (Assigned): [PATCH] io/wait: add IO#wait_writable method
-
03:44 PM Feature #4633 (Assigned): iterate method / extended version of for
-
03:39 PM Feature #4610 (Assigned): Proc#curry behavior is inconsistent with lambdas containing default argument values
-
03:38 PM Feature #4601 (Assigned): Re-ordering method parameters.
-
03:35 PM Feature #4598 (Assigned): Net::SMTP should raise more helpfully when mail can't send
-
03:20 PM Feature #4589 (Assigned): add Queue#each() method and include Enumerable
-
03:16 PM Feature #4560 (Assigned): [PATCH] lib/net/protocol.rb: avoid exceptions in rbuf_fill
-
03:15 PM Feature #4514 (Assigned): #deep_clone and #deep_dup for Objects
-
03:05 PM Feature #4477 (Assigned): Kernel:exec and backtick (`) don't work for certain system commands
-
03:04 PM Bug #4044: Regex matching errors when using \W character class and /i option
- Hello Yui,
We discussed this issue at today's developpers' meeting in Akihabara.
There was wide consensus among the attendees that it is very strange to have 'k' and 's' included in the set of non-word (\W) characters. Therefore we... -
02:41 PM Bug #4044: Regex matching errors when using \W character class and /i option
- Interesting example:
~~~
% ruby -ve '("a".."z").each {|ch| p(/[\W]/i.match(ch)) }'
ruby 2.0.0dev (2012-03-16 trunk 35049) [x86_64-linux]
-e:1: warning: character class has duplicated range: /[\W]/
nil
nil
nil
nil
nil
nil
nil... -
02:38 PM Bug #4044: Regex matching errors when using \W character class and /i option
- I think this is bug:
~~~
$ ruby -e "puts /[\W]|\u1234/i.match('k').inspect"
#<MatchData "k">
$ ruby -e "puts /[\W]|\u1234/.match('k').inspect"
nil
~~~
-
02:55 PM Feature #4265 (Assigned): Provide a core method Kernel#ruby for invoking a new Ruby instance
-
02:48 PM Feature #4264 (Assigned): General type coercion protocol for Ruby
-
02:46 PM Feature #4057 (Assigned): FileUtils.copy with FIFOs and Special Devices
-
02:27 PM Feature #4043 (Assigned): グローバル関数current_classの提案
-
02:24 PM Feature #3963 (Rejected): Map class in standard library
- I think no hope to add Map class as builtin.
-
02:24 PM Feature #3963 (Assigned): Map class in standard library
-
02:13 PM Feature #3591 (Assigned): Adding Numeric#divisor? (Have working implementation)
-
02:08 PM Feature #3356 (Feedback): Add GetShortPathName to ruby
- What do you mean by "canonical"?
It doesn't feel like "canonical" at all. -
02:06 PM Feature #3356 (Assigned): Add GetShortPathName to ruby
-
01:53 PM Feature #3330 (Assigned): mkmf (find|have)_cxx_header
-
09:20 AM Revision 73a184cc (git): * string.c (tr_setup_table): fix multiple non latin argument for
- non latin (over 256 characters) tr-like methods.
[ruby-core:43371] [Bug #6167]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:07 AM Feature #6199 (Closed): Organize gc.c a bit
- 1. Move immutable fields from struct heaps_slot and struct sorted_heaps_slot into struct heaps_header.
One exception is limit field, but it starts to be mutable just before freeing a heaps_header, so that it is not big issue.
2. Emb... -
06:37 AM Feature #5903: Optimize st_table (take 2)
- As far this ticket not closed, I'll post hash related patch here:
https://github.com/ruby/ruby/pull/107
https://github.com/ruby/ruby/pull/107.patch
1. remove some unused code from st.c and hash.c
2. change rb_hash_modify to rb_ha... -
05:05 AM Bug #6159: Enumerable::Lazy#inspect
- Right, thank you for the explanation.
-
02:07 AM Bug #6159: Enumerable::Lazy#inspect
- Eregon (Benoit Daloze) wrote:
> Your answer raises another question: Would it not be more readable if #inspect was closer to the code?
> ...
The former can distinguish the following lazy enumerators, but the latter can't:
p (1..10... -
01:24 AM Bug #6159: Enumerable::Lazy#inspect
- Awesome, thanks!
Your answer raises another question: Would it not be more readable if #inspect was closer to the code?
(1..10).lazy.select(&:odd?).map(&:to_s).cycle(2).inspect
Instead of
"#<Enumerator::Lazy: #<Enumerator... -
12:23 AM Bug #6159: Enumerable::Lazy#inspect
- Eregon (Benoit Daloze) wrote:
> > I agree that It would be nice. However, unlike Enumerator, Enumerator::Lazy doesn't have enough information, so it needs to have some information only for inspect.
> ...
I guess it wouldn't impact perf... -
12:17 AM Bug #6159 (Closed): Enumerable::Lazy#inspect
- This issue was solved with changeset r35124.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator (enumerator_inspect): include the original receive... -
02:58 AM Feature #6198 (Rejected): public/protected/private with attr_*
- I'd like to set visibility like this:
class X
protected attr_accessor :x, :y
end
attached patch(for 1.9.3-p125) is sample implementation (it seems to pass test-all)
- make attr_* to return array of method-symbols which a...
03/24/2012
-
10:22 PM Bug #6193 (Closed): Time.new does not accept seconds as a String
- This issue was solved with changeset r35122.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* time.c (time_init_1): Time.new will accept seconds as string or... -
06:48 AM Bug #6193: Time.new does not accept seconds as a String
- Here is the updated patch using obj2subsecx.
-
01:20 AM Bug #6193: Time.new does not accept seconds as a String
- I think you want to use the obj2subsecx helper, not obj2vint, so that fractional seconds are still supported.
-
09:56 PM Bug #6197 (Third Party's Issue): readline module doesn't work with ansi code
- The upstream of readline is not here.
And if you're using screen, try without it. -
09:36 PM Bug #6197 (Third Party's Issue): readline module doesn't work with ansi code
- Dear ruby community,
When escape is set no new line, it rewrite same line.
Have a look here : http://img11.hostingpics.net/pics/790780Sanstitre.png
This bug was published here : https://github.com/pry/pry/issues/493 -
08:19 PM Bug #6159: Enumerable::Lazy#inspect
- > I agree that It would be nice. However, unlike Enumerator, Enumerator::Lazy doesn't have enough information, so it needs to have some information only for inspect.
> ...
I'm not sure, but it would certainly be helpful when debugging.
... -
04:30 PM Bug #6184 (Third Party's Issue): [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
- This problem apparently still exists, so it should not be just rejected.
And if it's obviously caused by OpenSSL, should be stated as "Third Party's Issue". -
02:57 PM Bug #6184 (Rejected): [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
- I've seen many same problems and all same problems have "CFUNC :connect" at the first of ruby's error log :)
-
05:22 AM Bug #6184: [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0]
- It was openssl... I changed it as you said, and everything did go as expected.
I most likely used OS X's default openssl.
Here is the crash report.
Many thanks!
PS: To sorah, how did you understand that it was an openssl probl... -
03:53 PM Revision 0c9f66eb (git): * enumerator (lazy_initialize): set the instance variable "receiver"
- to include the receiver to the return value of inspect on a lazy
enumerator directly created by Enumerator::Lazy.new.
* enumerator (RETURN_LAZY): don't set the instance variable "receiver".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby... - 03:17 PM Revision fa288063 (git): * 2012-03-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:17 PM Revision 6b885f6e (git): * enumerator (enumerator_inspect): include the original receiver and
- method name of Enumerator::Lazy in the result of inspect.
[ruby-core:43345] [Bug #6159]
* enumerator (InitVM_Enumerator): don't use rb_define_alias for
some methods such as collect in order to make rb_frame_this_func()
return the ... - 01:22 PM Revision 576a69a5 (git): * 2012-03-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:22 PM Revision 28e48d3f (git): * time.c (time_init_1): Time.new will accept seconds as string or
- int. [ruby-core:43569][Bug #6193]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 AM Bug #6147: should we check a result returned by fcntl?
- 単に失敗したら死ねばいいんじゃないですかね。
- どうせ失敗しないだろう
- 失敗しても動くようなコードかけないだろう
の2つの意味で
時間見つけてやっときます