Activity
From 08/08/2012 to 08/14/2012
08/14/2012
-
09:53 PM Feature #5663: Combined map/select method - On Tue, Aug 14, 2012 at 1:25 PM, trans (Thomas Sawyer)
<transfire@gmail.com> wrote:
> Instead of thinking of it as a special type of #map, I suggest thinking about it as a special type of #select. The reason is that we could also use ... -
08:25 PM Feature #5663: Combined map/select method
- Instead of thinking of it as a special type of #map, I suggest thinking about it as a special type of #select. The reason is that we could also use the same type of behavior for #find. Which is why I suggest #select_yield and #find_yield...
-
06:24 PM Feature #5663: Combined map/select method
- +1 I also like filter_map
(My other favourite would be map_selected which I think is more expressive for non-lisp-brainwashed) -
09:39 PM Bug #6863: Class#initialize infinite loops when passed self - The problem with disabling Class.allocate is that we don't know if anyone is using it out in the wild. Detecting circular inheritance and throwing might be more ideal since it has a smaller breakage potential.
-
10:19 AM Bug #6863: Class#initialize infinite loops when passed self
- charliesome (Charlie Somerville) wrote:
> x = Class.allocate
Why on earth is this allowed? I have no idea how useful an non-initiaized class is.
So instead of checking circular inheritance, I would propose to simply disable C... -
08:44 PM Bug #6867 (Closed): super in a Mutex#synchronize block
- The following code:
require 'thread'
class Parent
def meth
end
end
class Child < Parent
def meth
Mutex.new.synchronize do
super
end
end
end
Child.new.meth
raises
bug_super.rb:13:in `block ... -
08:31 PM Feature #6693: Don't warn for unused variables starting with _
- alexeymuranov (Alexey Muranov) wrote:
> It this really necessary to treat the variable name `_` exceptionally at the interpreter's level? Why not to use the same rule for all variables, and for unused variables introduce a special plac... -
06:05 AM Feature #6693: Don't warn for unused variables starting with _
- drbrain (Eric Hodel) wrote:
> Why should we break compatibility with ruby 1.9?
> ...
I am sorry, was this about my proposal? I was not suggesting to raise an error, i just suggested that `_` be treated as any other variable, for exampl... -
03:47 AM Feature #6693: Don't warn for unused variables starting with _
- Why should we break compatibility with ruby 1.9?
RDoc uses double assignment to avoid the unused variable warning for use by ERb via a binding. The syntax error would break RDoc, so I dislike it. -
08:15 PM Feature #6130: inspect using to_s is pain
- Hi,
mame (Yusuke Endoh) wrote:
> I suggested giving Benoit a commit bit at the developer meeting (7/21),
> ...
I just committed as r36699 and I committed your PP patch as r36700.
Thank you for proposing it! -
07:20 PM Feature #6130 (Closed): inspect using to_s is pain
- This issue was solved with changeset r36699.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Kernel#inspect: improve consistency and do not call #to_s.
A c... -
08:03 PM Bug #6866 (Closed): DRb tests hang on OS X
- This seems due to r36456.
The two loops added just keep running. Commenting them seems to solve the problem.
`@there.inspect` is #<DRb::DRbObject:0x00000101059838 @uri="druby://me-myself:52746", @ref=nil>
I recently installed TunTap... -
05:12 PM Bug #6851: Result of File.stat("c:/...") is different from 1.9.3
- > Is this a bug or feature?
It's a bug, but...
Does anyone challenge to fix this? :) -
04:53 PM Bug #6851: Result of File.stat("c:/...") is different from 1.9.3
- Hi,
2012/8/14 usa (Usaku NAKAMURA) <usa@garbagecollect.jp>
>
>
> Issue #6851 has been updated by usa (Usaku NAKAMURA).
>
>
> Hopefully, fixed.
>
> I added some test cases.
> Please point out, if I have an oversigh... -
04:07 PM Bug #6851: Result of File.stat("c:/...") is different from 1.9.3
- Hopefully, fixed.
I added some test cases.
Please point out, if I have an oversight.
-
04:05 PM Bug #6851 (Closed): Result of File.stat("c:/...") is different from 1.9.3
- This issue was solved with changeset r36696.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/win32.c (check_valid_dir): reject "..." as directory na... -
10:10 AM Bug #6851 (Assigned): Result of File.stat("c:/...") is different from 1.9.3
- Oops...
[Bug #5819] said that File.stat for empty root directory fails.
Of course it was a bug.
"C:/..." problem is an unexpected side effect. -
03:13 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- shugo (Shugo Maeda) wrote:
> naruse (Yui NARUSE) wrote:
> ...
だと思います。 -
01:35 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- 前田です。
naruse (Yui NARUSE) wrote:
> 同感です。' の方がいいかな、1バイト短いし。
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.231_-_HTML_Escape_Before_Inserting_Untrusted_Data_into_HTML_Element_Content
... -
01:17 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- shugo (Shugo Maeda) wrote:
> xibbar (Takeyuki Fujioka) wrote:
> ...
同感です。' の方がいいかな、1バイト短いし。 -
01:01 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- 前田です。
xibbar (Takeyuki Fujioka) wrote:
> > cgi/htmlがHTML 3.2とHTML 4.01にしか対応していない現状では、むしろHTML4以前の
> ...
HTML5であればXHTMLでない時も'が使えるようですが、数値文字参照(')であればHTML4以前でも
XHTML/HTML5でも使えるので、数値文字参照にすべきだと思います。
Ruby 2.0では1.9との互換性を基本的に維持する... -
12:50 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- > cgi/htmlがHTML 3.2とHTML 4.01にしか対応していない現状では、むしろHTML4以前の
> ...
cgi/html は近いうちに HTML5 を入れる予定です。
そうなったときはescapeHTMLはどうしたら理想的だと思いますか? -
10:12 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- spastorino (Santiago Pastorino) wrote:
> Shugo I've already sent an issue for the ' thing.
> ...
I have known the issue. Thank you.
> and here https://github.com/ruby/ruby/pull/154 you have a pull request.
Thank you. I be... -
10:10 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- Aaron Patterson wrote:
> > I and SEKI have discussed it, and have agreed to use cgi/util.
> ...
I admit that the name CGI is wrong. However, despite its name, CGI provides various features for Web applications. For example, cgi/html... -
09:59 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- 匿名ユーザ wrote:
> escapeHTMLとはなんなのか?という問題に行き着くかと思います。
> ...
cgi/htmlがHTML 3.2とHTML 4.01にしか対応していない現状では、むしろHTML4以前の
規格に合わせるべきではないでしょうか。
また、互換性の確保が難しくないのであれば(今回の件は難しくないと考えています)、
CGI.escapeHTMLのような基本的な機能はなるべく広く利用できた方がよいのではないか
と思います。
>... -
01:04 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- Shugo I've already sent an issue for the ' thing.
https://bugs.ruby-lang.org/issues/6850
and here https://github.com/ruby/ruby/pull/154 you have a pull request.
Thanks. -
12:23 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes - On Mon, Aug 13, 2012 at 01:11:45PM +0900, shugo (Shugo Maeda) wrote:
>
> Issue #6861 has been updated by shugo (Shugo Maeda).
>
> Assignee set to shugo (Shugo Maeda)
>
> Hello,
>
> Thanks for your report.
>
> spastorino (... -
12:03 PM Bug #6850 (Closed): It's not recommended to escape ' to '
- This issue was solved with changeset r36692.
Santiago, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Tue Aug 14 11:55:37 2012 Takeyuki FUJIOKA <xibbar@ruby-lang... -
01:15 AM Bug #6850: It's not recommended to escape ' to '
- I've just updated the pull request to take in consideration https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/36687
-
10:36 AM Bug #6830 (Assigned): test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- (1) "is not a problem of platform but a hardcoded path on openssl."
Yes, I think so, too.
(2) "if you moved OpenSSL dlls to different directories and verified OpenSSL::Config::DEFAULT_CONFIG_FILE?"
Of course, it fails.
... -
10:21 AM Revision e1aa72d4 (git): update PP with recent Kernel#inspect change. Patch by Yusuke Endoh.
- * lib/pp.rb (class PP): do not call #to_s anymore, as #inspect no more does.
* test/test_pp.rb (class PPInspectTest): remove related assertion.
[ruby-core:43238][Feature #6130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36700 b... -
10:20 AM Revision 795c29dc (git): Kernel#inspect: improve consistency and do not call #to_s.
- A class can now benefit from the nice default #inspect even if it
defines #to_s. Also, there is no more unexpected change in #inspect
result. Internal structures have been adapted so they don't rely
on the removed behavior (#inspect call... -
09:49 AM Bug #5485 (Closed): ERB html_escape should follow OWASP recommendations
- fixed in r36687.
-
07:28 AM Revision f42a7c09 (git): * test/erb/test_erb.rb (test_html_escape): add assertions for the
- cases where the argument is not a String.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:28 AM Revision a2884195 (git): * ChangeLog: fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 07:05 AM Revision cb4e2b59 (git): * win32/win32.c (check_valid_dir): reject "..." as directory name.
- [Bug #6851]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:03 AM Revision 104b5c78 (git): * test/ruby/test_file_exhaustive.rb
- (TestFileExhaustive#test_stat_dotted_prefix): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:53 AM Bug #6849: Psych.load_file throws TypeError for empty file - On Tue, Aug 14, 2012 at 03:12:58AM +0900, Zachary Scott wrote:
> On ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
>
> I can reproduce this using Psych.load_file.
>
> However, when I try Psych#load as the implementatio... -
03:23 AM Bug #6849: Psych.load_file throws TypeError for empty file
- On ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
I can reproduce this using Psych.load_file.
However, when I try Psych#load as the implementation suggests[1]
leaving out the utf stuff "bom|utf-8"; it returns fals... -
06:52 AM Revision b3a4461d (git): Suppress warnings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:39 AM Revision 9933a601 (git): * test/ruby/test_file_exhaustive.rb
- (TestFileExhaustive#test_stat_drive_root): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:02 AM Bug #6865 (Closed): GC::Profiler.report might create a huge String and invoke a few GC cycles
- Hi,
In my use-case, GC::Profiler.report adds a few GC cycles to actually create the report, ending with these lines:
9317 26.279 185760 701760 17544 0.333000000001248... -
05:49 AM Bug #6531: Increase Racc runtime versions
- Looks like this was fixed by Aaron on github[1], please close this ticket
1: https://github.com/tenderlove/racc/commit/8ab708bb0cf1196e4fc2cfe8f33ea78dc87cd8c2 -
05:01 AM Bug #6864: bad value for range when using infinity with date or time
- And sometimes range behavior cant be understood - Range.new(Date.new(0), BigDecimal.new(9))
-
04:24 AM Bug #6864 (Closed): bad value for range when using infinity with date or time
- Steps to reproduce:
require 'date'
Range.new(Date.today, 1.0/0.0) # works
Range.new(-1.0/0.0, Date.today) # fails
Range.new(Time.now, 1.0/0.0) # fails
Range.new(-1.0/0.0, Time.now) # fails
Tested on 1.9.3 and trunk. I thin... -
03:48 AM Feature #6852: [].transpose should behave specially
- marcandre (Marc-Andre Lafortune) wrote:
>
> ...
I didn't understand this sentence.
Anyway, i just want to give another explanation why it is possible to assume that there is only one empty matrix. With this assumption the function of ... -
03:23 AM Feature #6852: [].transpose should behave specially - On Mon, Aug 13, 2012 at 3:15 PM, marcandre (Marc-Andre Lafortune)
<ruby-core@marc-andre.ca> wrote:
>> It would be interesting to see code that found returning [] to be
>> useful. As in, code that expected to operate on the trans... - 03:03 AM Revision 745ada86 (git): Tue Aug 14 11:55:37 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
- * lib/cgi/util.rb (CGI::escapeHTML): ' is not recommended. [Bug #6850]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:58 AM Feature #6857: bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
- Having fast exp() allows us to speed up BigMath.log(). Especially for calculations with large precision.
The area hyperbolic tangent power series performs better when the domain (x) of the function is closer to 1.
Additionally for x ... - 02:01 AM Revision 7fc28975 (git): * 2012-08-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:01 AM Revision e9969414 (git): * lib/erb.rb (ERB::Util.html_escape): fix r36687: call to_s before
- passing it to CGI.escapeHTML.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/13/2012
-
11:38 PM Bug #6862: BigMath.exp negative exponent
- BigMath.exp cannot handle floating point value too.
C:\Users\phasis>ruby -rbigdecimal -e 'p BigMath.exp(3.0,10)'
-e:1:in `exp': Float can't be coerced into BigDecimal without a precision (ArgumentError)
from -e:1:in `<main>'... -
05:58 PM Bug #6862 (Closed): BigMath.exp negative exponent
- Ruby 1.9.3 BigMath.exp accepts Fixnum for exponent but silently treats negative exponents as positive:
1.9.3p260 :009 > BigMath.exp(3, 10)
=> #<BigDecimal:9be2ce8,'0.2008553692E2',18(72)>
1.9.3p260 :010 > BigMath.exp(-3, 10)
=> #<... -
10:35 PM Bug #6863: Class#initialize infinite loops when passed self - I've attached a patch that raises a TypeError with the message "circular inheritance detected" when it detects a class either inheriting from itself, or a class inheriting from a subclass of itself.
-
10:12 PM Bug #6863 (Closed): Class#initialize infinite loops when passed self - =begin
The following code sends Ruby into an infinite loop:
x = Class.allocate
x.send :initialize, x
The problem appears to be in rb_class_initialize (object.c:1564) when Ruby attempts to call (({#inherited})) on the newl... -
10:14 PM Feature #6852: [].transpose should behave specially
- Anonymous wrote:
> > A 3x0 matrix corresponds to [[], [], []], but there is no correspondence for a 0x3 matrix. So strictly speaking, `[[], [], []].transpose` has no valid answer, but returning `[]` is more useful than raising I believe... -
09:23 PM Feature #6852: [].transpose should behave specially - > A 3x0 matrix corresponds to [[], [], []], but there is no correspondence for a 0x3 matrix. So strictly speaking, `[[], [], []].transpose` has no valid answer, but returning `[]` is more useful than raising I believe.
It would be ... -
09:12 PM Feature #6852: [].transpose should behave specially
- Hi,
alexeymuranov (Alexey Muranov) wrote:
> Then it is not possible to express in the same way a 3 x 0 matrix (or 0 x 3?) I think this was the reason for the original question.
A 3x0 matrix corresponds to [[], [], []], but there ... -
08:53 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes - 藤岡です。
> 2012年8月13日 12:35 fujioka <fuj@rabbix.jp>:
>>>> (a) エスケープすべき文字がこれで良いのか最近の事情がわからない
>>>> 'っていうのは件のパッチの中にないけど「'」のことですか?
>>>
>>> 'の話は、CGI.escapeHTMLの方で'を'に変換しているという話です。
>>> HTML4では'は使えないので数値文字... -
01:17 PM Bug #6861 (Closed): ERB::Util.escape_html is not escaping single quotes
- This issue was solved with changeset r36687.
Santiago, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/erb.rb (ERB::Util.html_escape): use CGI.escape to escap... -
01:11 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- Hello,
Thanks for your report.
spastorino (Santiago Pastorino) wrote:
> OWASP suggest escaping &, <, >, ", ' and /
> ...
Agreed.
> You have the right code in CGI.escapeHTML
> ...
I and SEKI have discussed it, and have agreed ... -
12:53 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- 前田です。
2012年8月13日 12:47 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>:
>> 2012年8月13日 10:59 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>:
>>> Rubyスクリプト的にはこんな感じで修正していいと思います。
>>> 私がわからないのは次の点でどなたか作業していただけませんか?
>>
>> とりあえず、私が引き取って対応し... -
12:53 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- 前田です。
2012年8月13日 12:35 fujioka <fuj@rabbix.jp>:
>>> (a) エスケープすべき文字がこれで良いのか最近の事情がわからない
>>> 'っていうのは件のパッチの中にないけど「'」のことですか?
>>
>> 'の話は、CGI.escapeHTMLの方で'を'に変換しているという話です。
>> HTML4では'は使えないので数値文字参照にした方がよ... -
12:53 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes - 咳といいます。
On 2012/08/13, at 11:38, Shugo Maeda <shugo@ruby-lang.org> wrote:
> 前田です。
>
> 2012年8月13日 10:59 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>:
>> Rubyスクリプト的にはこんな感じで修正していいと思います。
>> 私がわからないのは次の点でどなたか作業していただけませんか?
>
> とりあえ... -
12:53 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes - xibbarこと藤岡です。
> 2012年8月13日 11:38 Shugo Maeda <shugo@ruby-lang.org>:
>>> (a) エスケープすべき文字がこれで良いのか最近の事情がわからない
>
> <script>要素の中とかでは当然不十分だと思いますが、そういう特殊な
> 文脈以外ではこれくらいでいいのかなという気がします。
>
> https://www.owasp.org/index.php/XSS_%... -
12:53 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes - xibbarこと藤岡です。
>> (a) エスケープすべき文字がこれで良いのか最近の事情がわからない
>> 'っていうのは件のパッチの中にないけど「'」のことですか?
>
> 'の話は、CGI.escapeHTMLの方で'を'に変換しているという話です。
> HTML4では'は使えないので数値文字参照にした方がよいのではないか
> という話でした。
>
これは ' が... -
12:23 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- On 08/13/2012 12:03 PM, Shota Fukumori (sora_h) wrote:
> sora_h です
>
> 2012/8/13 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>:
>> (b) github経由のコミットしたことなくてpull requestを受け入れる手順がわからない
>> この機会に覚えるべきという話も...
>
> github は svn... -
12:23 PM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- sora_h です
2012/8/13 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>:
> (b) github経由のコミットしたことなくてpull requestを受け入れる手順がわからない
> この機会に覚えるべきという話も...
github は svn.r-l.o からの一方通行なので github 経由でコミットはできないはずです。
pull request の URL 末尾... -
11:53 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- 前田です。
一点コメントし忘れてました。
2012年8月13日 11:38 Shugo Maeda <shugo@ruby-lang.org>:
>> (a) エスケープすべき文字がこれで良いのか最近の事情がわからない
<script>要素の中とかでは当然不十分だと思いますが、そういう特殊な
文脈以外ではこれくらいでいいのかなという気がします。
https://www.owasp.org/index.php/XSS_%2... -
11:53 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- 前田です。
2012年8月13日 10:59 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>:
> Rubyスクリプト的にはこんな感じで修正していいと思います。
> 私がわからないのは次の点でどなたか作業していただけませんか?
とりあえず、私が引き取って対応しましょうか?
> (a) エスケープすべき文字がこれで良いのか最近の事情がわからない
> 'っていうのは件のパッチの... -
11:23 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes - 咳といいます。
On 2012/08/13, at 10:30, Shugo Maeda <shugo@ruby-lang.org> wrote:
>
> 以下のチケットが登録されています。
>
> HTMLではどの文字をエスケープすべきかは文脈によって異なるので、現状の動作は仕様
> だと思うのですが、利便性を考えると修正してもよいのかなと思いますが、どうでしょう。
>
> CGI.escapeHTMLの方はすでに修正されていますが、対応す... -
10:53 AM Bug #6861: ERB::Util.escape_html is not escaping single quotes
- 咳さん
前田です。
以下のチケットが登録されています。
HTMLではどの文字をエスケープすべきかは文脈によって異なるので、現状の動作は仕様
だと思うのですが、利便性を考えると修正してもよいのかなと思いますが、どうでしょう。
CGI.escapeHTMLの方はすでに修正されていますが、対応するなら'じゃなくて'
にすべきかなと思います。
2012/8/13 spastorino (Santiag... -
01:20 AM Bug #6861 (Closed): ERB::Util.escape_html is not escaping single quotes
- We just fixed this issue in Rails
https://groups.google.com/forum/#!msg/rubyonrails-security/kKGNeMrnmiY/r2yM7xy-G48J%5B1-25%5D
Ruby's ERB is not escaping single quotes and this could lead to
security issues like ...
<a href='<%=... -
12:53 PM Feature #6847: Hash#extract
- Oh my, what a disaster. I wonder who made the crazy decision that hash
slice would returned a slice of the hash and slice! would return... the
receiver and not the slice of the hash. Especially since Array slice and
slice! return ... -
08:06 AM Feature #6847: Hash#extract
- It important to understand the differences and to determine the best definition. ActiveSupport's #slice returns the same type of class, which I think is important, where as #extract! always returns a Hash. Also, #slice and #slice! are pr...
-
06:52 AM Feature #6847: Hash#extract
- claytrump (Clay Trump) wrote:
> There is no "extract!" in ActiveSupport, its "slice!" you mean.
http://apidock.com/rails/Hash/extract%21
# File activesupport/lib/active_support/core_ext/hash/slice.rb, line 35
def extract!(*key... -
01:23 AM Feature #6847: Hash#extract
- > It's definitely like extract! in ActiveSupport, just non-destructive.
There is no "extract!" in ActiveSupport, its "slice!" you mean.
So yeah, I've used that before, and would be nice in core. I think it
should be calle... -
06:39 AM Revision 4e75451a (git): * test/erb/test_erb.rb (test_html_escape): fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:17 AM Revision eac25eed (git): * 2012-08-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:17 AM Revision 4093598b (git): * lib/erb.rb (ERB::Util.html_escape): use CGI.escape to escape
- single quotes. [ruby-core:47138] [Bug #6861]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/12/2012
-
12:04 PM Bug #5832 (Closed): 意図しないブロック渡しが行われる
- This issue was solved with changeset r36685.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm.c (invoke_block_from_c): fix unintentional block passing.
... -
05:53 AM Bug #5670: Emacs ruby-mode syntax highlighting issue
- The above bug has some updates: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6286
-
04:04 AM Feature #4085: Refinements and nested methods
- trans (Thomas Sawyer) wrote:
> =begin
> ...
Yes, except you need to use `using` and not `include` in `module MyApp`. -
03:12 AM Feature #4085: Refinements and nested methods
- =begin
One question I have is how this would work with something like Facets, including its ability to cherry pick methods.
So lets say we have `facets/object/foo` and `facets/object/bar`.
# facets/object/foo.rb
module Facets... -
03:10 AM Revision a6321085 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:04 AM Revision 9564e9bd (git): * vm.c (invoke_block_from_c): fix unintentional block passing.
- [ruby-dev:45071] [Bug #5832]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/11/2012
-
11:55 PM Feature #6847: Hash#extract
- Ruby Facets has Hash#slice as well.
http://rdoc.info:8080/github/rubyworks/facets/master/Hash#slice-instance_method
+1 for its addition of Hash.
-
06:42 PM Feature #6847: Hash#extract
- claytrump (Clay Trump) wrote:
> Isn't that like the method slice in ActiveSupport?
It's definitely like extract! in ActiveSupport, just non-destructive. I still think this is useful enough to be in core though. I needed it repeatedly... -
11:48 PM Feature #6857: bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
- * algorithms ;)
-
11:46 PM Feature #6857 (Assigned): bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
- The algorythms to calculate E and exp programmed in BigMath module are the very straightforward interpretation of the series 1 + x + x^2/2! +
x^3/3! + ....
Therefore they are slow.
Try it yourself:
require 'bigdecimal/math... -
09:18 PM Bug #6830: test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- usa (Usaku NAKAMURA) wrote:
> On my Windows box, OpenSSL::Config::DEFAULT_CONFIG_FILE returns the right path.
> ...
Test is incorrect, it should check if default file exist and skip if doesn't.
On windows if you change location open... -
01:32 PM Bug #6830 (Feedback): test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- > On my Windows box, OpenSSL::Config::DEFAULT_CONFIG_FILE returns the right path.
Which path do your OpenSSL return? I'm ok that only Mac and MinGW skip this test.
-
08:23 PM Bug #6829: Failure using Win32ole (happens in 1.8.7 and 1.9
- Thank you for your reporting of the result and more information.
Could you try the following script using Ruby 1.9?
tlib = WIN32OLE_TYPELIB.new("(The folder of SMUI.TLIB)\SMUI.TLIB")
(or tlib = WIN32OLE_TYPELIB.new("(The... -
10:31 AM Bug #6829: Failure using Win32ole (happens in 1.8.7 and 1.9
- Thanks for looking into this.
Here is what I get.
irb(main):005:0> method = internet_postage.ole_method("PrintPostageEx")
RuntimeError: failed to GetTypeInfo
HRESULT error code:0x80029c4a
Error loading type library/DLL... -
06:57 PM Feature #6693: Don't warn for unused variables starting with _
- It this really necessary to treat the variable name `_` exceptionally at the interpreter's level? Why not to use the same rule for all variables, and for unused variables introduce a special placeholder, for example `-` not followed by ...
- 03:45 PM Revision 00468f21 (git): * 2012-08-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:45 PM Revision 99556813 (git): * benchmark/driver.rb: fix typos.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:18 AM Bug #6851 (Feedback): Result of File.stat("c:/...") is different from 1.9.3
- =begin
h.shirosaki (Hiroshi Shirosaki) wrote:
> The behavior is same (not raises exception) as before r36668.
> ...
I can confirm File.stat('C:/...') did not raised exception even before Hiroshi's change.
C:\Users\Luis>ruby -v -e ... -
08:05 AM Bug #6854 (Closed): ruby-mode.el has radical changes in `ruby-deep-indent-paren' logic
- The following commits make a non-backward compatible change in how `ruby-deep-indent-paren' works:
https://github.com/ruby/ruby/commit/85df40e9ab4559cd4ddde3f106ab56c76a808cc8
https://github.com/ruby/ruby/commit/6b0dc7fd81b25bc666815... - 08:02 AM Revision 50d85014 (git): * 2012-08-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:02 AM Revision 66a40ecc (git): remove trailing spaces
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:20 AM Feature #6852: [].transpose should behave specially
- marcandre (Marc-Andre Lafortune) wrote:
> Oups, I was not thinking straight. [] corresponds to a 0x0 matrix (i.e. Matrix[] or Matrix.empty(0,0)). It is its own transpose.
Then it is not possible to express in the same way a 3 x 0 matri... -
02:29 AM Feature #6852: [].transpose should behave specially
- Hi,
> boris_stitnicky (Boris Stitnicky) wrote:
> ...
Oups, I was not thinking straight. [] corresponds to a 0x0 matrix (i.e. Matrix[] or Matrix.empty(0,0)). It is its own transpose.
So the current behavior is correct.
What coul... -
01:57 AM Feature #6852: [].transpose should behave specially
- Hi,
alexeymuranov (Alexey Muranov) wrote:
> I think it can be agreed that all of the following represent the same "empty matrix": `[]`, `[[]]`, `[[], [], []]`. Otherwise they all would need to be treated exceptionally (how to expres... -
05:17 AM Feature #6373: public #self
- Why no answer for: "Why not just public #self"? Why add YAMS?
(YAM = Yet Another Method)
08/10/2012
-
11:54 PM Bug #5832: 意図しないブロック渡しが行われる
- レビューありがとうございました。
対応しておきます。 -
11:53 PM Feature #6373: public #self - On Fri, Aug 10, 2012 at 4:25 PM, matz (Yukihiro Matsumoto)
<m...@ruby-lang.org> wrote:
> `__id__` returns `object_id` number, identity here is supposed to return itself.
> I agree with introducing method to return self, but not fu... -
04:47 PM Feature #6373: public #self
- boris_stitnicky (Boris Stitnicky) wrote:
> matz (Yukihiro Matsumoto) wrote:
> ...
ID as an identifier or a piece of identification and Id as the *identity function* are two different meanings, as far as i understand. Also it does not ... -
02:22 PM Feature #6373: public #self - matz (Yukihiro Matsumoto) wrote:
> `__id__` returns `object_id` number, identity here is supposed to return itself.
> ...
I did some thinking, and there is hardly anything better than '`identity`'.
'`identity_function`' would be hyper... -
11:35 PM Bug #6839 (Feedback): 1.9.3p194 [BUG] Segmentation fault
- Could you try with recent version?
-
09:16 PM Feature #6852: [].transpose should behave specially
- I think it can be agreed that all of the following represent the same "empty matrix": `[]`, `[[]]`, `[[], [], []]`. Otherwise they all would need to be treated exceptionally (how to express the transposition of each of them?). After al...
-
08:36 PM Feature #6852 (Rejected): [].transpose should behave specially - ```ruby
p = [1, 2, 3]
q = [4, 5, 6]
[p, q].transpose
# => [[1, 4], [2, 5], [3, 6]]
```
As expected, 2 x 3 vector was converted into 3 x 2.
```ruby
[p].transpose
# => [[1], [2], [3]]
```
As expected, 1 x 3 => 3 x 1.
```rub... -
08:56 PM Bug #6851: Result of File.stat("c:/...") is different from 1.9.3
- The behavior is same (not raises exception) as before r36668.
C:\>ruby -ve "p File.stat('C:/...')"
ruby 2.0.0dev (2012-08-08 trunk 36657) [i386-mswin32_100]
#<File::Stat dev=0x2, ino=0, mode=040755, nlink=1, uid=0, gid=0, rdev=0x2... -
03:35 PM Bug #6851 (Assigned): Result of File.stat("c:/...") is different from 1.9.3
- It's bug.
-
03:22 PM Bug #6851 (Closed): Result of File.stat("c:/...") is different from 1.9.3
- What is the correct result of File.stat("c:/...") on Windows?
File#stat for path like "c:/..." succeeds on trunk 36676.
C:\>ruby -ve 'p File.stat("c:/...")'
ruby 2.0.0dev (2012-08-10 trunk 36676) [i386-mswin32_100]
#<File::Stat d... -
04:23 PM Feature #6763: Introduce Flonum technique to speedup floating computation on th 64bit environment
- 2012/7/25 ko1 (Koichi Sasada) <redmine@ruby-lang.org>:
>
>> How do you implement object_id for non integer immediate values?
>
> Good point. It will be considered.
>
> Akr-san proposed that object id of Flonum object shoul... -
03:55 PM Feature #6763: Introduce Flonum technique to speedup floating computation on th 64bit environment
- I attached my patch.
Before (32bit CPU):
3.times{
p ObjectSpace._id2ref(p (0.1+0.2).object_id)
}
#=>
20932740
0.30000000000000004
20932680
0.30000000000000004
20932630
0.30000000000000004
After (64bi... -
11:11 AM Bug #6848 (Feedback): bundle install fails
- It seems because openssl bundled with Mac OS X.
Ruby can't work with Mac bundled OpenSSL
http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/ -
02:27 AM Bug #6848 (Rejected): bundle install fails
- After installing ruby using rvm, on an OSX 10.6, bundle install fails.
This is my ruby:
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
This is how I get the error:
$ rails new abc
gives a long out... -
11:01 AM Bug #6850 (Assigned): It's not recommended to escape ' to '
-
08:32 AM Bug #6850 (Closed): It's not recommended to escape ' to '
- OWASP doesn't recommend it https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.231_-_HTML_Escape_Before_Inserting_Untrusted_Data_into_HTML_Element_Content
and ' is not a valid in HTML4 http://www.w3.o... -
10:53 AM Revision ccf911a0 (git): Refix r36678: switch with zlib and check content-encoding.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:51 AM Bug #6830: test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- On my Windows box, OpenSSL::Config::DEFAULT_CONFIG_FILE returns the right path.
So, this problem is not platform dependent but user's environment dependent.
Therefore, I can't agree r36666. -
09:23 AM Bug #5437 (Rejected): Using fibers leads to huge memory leak
- =begin
Your test does not illustrate any leak and is likely not capable of demonstrating a leak in a diagnosable way.
You seem to have some misconceptions about how malloc() and free() work and how ruby's GC works.
Finalizers are ... -
05:25 AM Revision 89c88eb5 (git): Suppress warnings: Net::HTTPResponse#header is obsolete
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:25 AM Revision 7391ae23 (git): Run automatic deflate decoding only if it has zlib.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:54 AM Bug #6849 (Closed): Psych.load_file throws TypeError for empty file
- When parsing an empty file via Psych.load_file:
TypeError: no implicit conversion from nil to integer
I would expect that an empty hash or array would be returned.
This, more directly, relates to parsing YAML documents using YAML.lo... -
02:53 AM Feature #6847: Hash#extract
- Isn't that like the method slice in ActiveSupport?
On Thu, Aug 9, 2012 at 1:01 PM, citizen428 (Michael Kohl) <
citizen428@gmail.com> wrote:
>
> Issue #6847 has been reported by citizen428 (Michael Kohl).
>
> ----------... -
02:01 AM Feature #6847 (Rejected): Hash#extract
- I often need a method to extract "subhashes" from hashes. I often monkey-patched this into hash and found "extract" to be a good name for the method. Afterwards I found out that there actually is a mutating method called "extract!" in Ac...
-
01:02 AM Feature #6844 (Feedback): Random.rand() requires pre-seeding in forked process
08/09/2012
-
11:42 PM Revision 33a63355 (git): * gc.c (gc_malloc_allocated_size): RDoc does not process macros, so
- mention this method is only available when ruby is built with
CALC_EXACT_MALLOC_SIZE
* gc.c (gc_malloc_allocations): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:38 PM Bug #5437: Using fibers leads to huge memory leak
- Yes the memory usage is stable but that does not change the fact that it is simply huge and never returned back. In real applications this leads to memory usage always as big as in the moment of biggest peak of used fibers. Even after fe...
-
06:23 AM Bug #5437: Using fibers leads to huge memory leak
- "rupert (Robert Pankowecki)" <robert.pankowecki@gmail.com> wrote:
> Any progress ? Looks like this is still a problem in Ruby2.0: https://gist.github.com/bf4b57d5bf419dbf56ae
> ----------------------------------------
> Bug #5437:... -
08:34 PM Feature #6845 (Closed): Optimize stat on Windows - This issue was solved with changeset r36668.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Optimize winnt_stat
* test/ruby/test_file_exhaustive.rb
(Te... -
09:05 AM Feature #6845 (Assigned): Optimize stat on Windows
- seems good.
commit it, please. -
07:46 AM Feature #6845 (Closed): Optimize stat on Windows
- `require` slowness on startup was pointed out and some improvements were done, but startup seems still slow especially on Windows.
I suggest a patch to optimize require(stat) performance on Windows.
https://gist.github.com/3285446#fi... -
07:56 PM Feature #6528: Add Pathname#write and Pathname#binwrite
- どうでしょうか?
何か引っかかっている所があれば指摘してもらえると嬉しいです. -
03:46 PM Revision bb979b86 (git): * sample/coverage.rb: fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:16 PM Revision 773c7e94 (git): * 2012-08-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:16 PM Revision 54f5d4ec (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:46 PM Revision 402edc56 (git): mkrunnable.rb: build_os
- * tool/mkrunnable.rb: see build_os instead of target arch for
cross-compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:46 PM Revision 50f3d3fe (git): configure.in: use real path
- * configure.in (MINIRUBY): use real path for include path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:46 PM Revision 1fcc1762 (git): fake.rb.in: remove duplications
- * template/fake.rb.in (builddir): remove duplications
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:37 PM Revision 2b648fb7 (git): * ChangeLog: fix a typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:49 PM Revision b8006774 (git): merge revision(s) 34972:
- * pack.c (pack_unpack): when unpack('M') occurs an illegal byte
sequence, output the "=" character and the following character in
the decoded data without any transformation.
[ruby-dev:44875] [Bug #5635]
g... -
12:42 PM Bug #6830 (Closed): test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- This issue was solved with changeset r36666.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/openssl/test_config.rb (OpenSSL#test_constants): skip ... -
11:10 AM Bug #6830: test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- Thanks for the detailed description! Luis has pointed out the issue on Windows to me already, and we agreed that this is probably a problem with OpenSSL itself. For quick relief, I will implement the check for the existence of the file a...
-
11:34 AM Revision dcd7f09b (git): Optimize winnt_stat
- * test/ruby/test_file_exhaustive.rb
(TestFileExhaustive#test_stat_special_file): add a test.
GetFileAttributesExW fails to get attributes of special files
such as pagefile.sys.
* win32/win32.c (check_valid_dir): for performance, c... -
09:33 AM Revision 0e92dc4b (git): ruby.c: show version only once
- * ruby.c (proc_options): show version only once even if -v and
--verbose are given together.
http://twitter.com/d6rkaiz/status/233491797085671424
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36667 b2dd03c8-39d4-4d8f-98ff-823fe... -
09:31 AM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- If we want lexical multiplicity to equal evaluation multiplicity...
Should:
obj.foo.bar[baz.daz] .= to_i
behave as?:
begin
temp1 = obj.foo.bar
temp2 = baz.daz
temp1[temp2] = temp1[temp2].to_i
end
... ... -
07:54 AM Bug #6836: Improve File.expand_path performance in Windows
- On Wed, Aug 8, 2012 at 9:42 PM, luislavena (Luis Lavena)
<luislavena@gmail.com> wrote:
>
> Issue #6836 has been updated by luislavena (Luis Lavena).
>
>
> h.shirosaki (Hiroshi Shirosaki) wrote:
>> usa (Usaku NAKAMURA) wrot... -
06:23 AM Feature #6844: Random.rand() requires pre-seeding in forked process
- "andrewhavens (Andrew Havens)" <email@andrewhavens.com> wrote:
> Feature #6844: Random.rand() requires pre-seeding in forked process
> https://bugs.ruby-lang.org/issues/6844
>
> Author: andrewhavens (Andrew Havens)
> Status: ... -
05:51 AM Feature #6844 (Rejected): Random.rand() requires pre-seeding in forked process
- I'm submitting this as a feature because I'm not sure if this implementation is intentional.
While using the delayed job gem and the daemons gem, I recently came across a segmentation fault. It was relatively hard to track down becaus... -
03:42 AM Revision f207f779 (git): * test/openssl/test_config.rb (OpenSSL#test_constants): skip this
- test if platform is Mac OS X or Windows. [Bug #6830]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:23 AM Feature #6840: YAML tag method - On Wed, Aug 08, 2012 at 09:52:15PM +0900, trans (Thomas Sawyer) wrote:
>
> Issue #6840 has been updated by trans (Thomas Sawyer).
>
>
> As I stated before, for my use case, I do *not* want users to use a support library. In fact...
08/08/2012
-
10:45 PM Bug #6789 (Closed): parse.y compilation error due not updated id.h
- This issue was solved with changeset r36661.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
common.mk: id.h dependency
* common.mk (.y.h): split from .y.c r... -
10:17 PM Bug #6653: 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections - I've hit a similar issue while using Chef with Ruby 1.9.3 on Ubuntu 12.04 x86_64. I've tried with both the Ubuntu 1.9.3 packages as well as the packages provided by Brightbox (ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]) a...
-
09:52 PM Feature #6840: YAML tag method
- As I stated before, for my use case, I do *not* want users to use a support library. In fact, it's not just want, its a requirement. This format must be inter-operable. It doesn't mater if the user is programming in Perl, Python, Javascr...
-
06:23 AM Feature #6840: YAML tag method - On Tue, Aug 07, 2012 at 09:30:51AM +0900, trans (Thomas Sawyer) wrote:
>
> Issue #6840 has been reported by trans (Thomas Sawyer).
>
> ----------------------------------------
> Feature #6840: YAML tag method
> https://bugs.ruby... -
06:19 AM Feature #6840 (Rejected): YAML tag method
-
09:42 PM Bug #6836: Improve File.expand_path performance in Windows
- h.shirosaki (Hiroshi Shirosaki) wrote:
> usa (Usaku NAKAMURA) wrote:
> ...
Hiroshi, how that compares with the original patch?
Thank you.
-
05:33 PM Bug #6836: Improve File.expand_path performance in Windows
- usa (Usaku NAKAMURA) wrote:
> If the performance problem is in 'require' and 'load', change only them
> ...
I think that might be possible, though changing that properly seems not easy.
I created an experimental patch for that. This... -
08:25 PM Bug #5637: warnings of shellescape
- As I documented, it's all up to how you use the resulted string.
If you are going to pass it to a shell that lacks support for the encoding of the string, then you should probably encode the original string in ASCII-8BIT before shell-... -
07:54 PM Bug #5437: Using fibers leads to huge memory leak
- Any progress ? Looks like this is still a problem in Ruby2.0: https://gist.github.com/bf4b57d5bf419dbf56ae
-
06:01 PM Bug #6838: class_eval and instance_eval do not scope class names the same as direct code
- I think constants are searched "half-dynamically", as, for example, inheritance hierarchy is searched, but only after the visual "indented" hierarchy. Is #6810 related?
-
01:09 PM Bug #6838 (Rejected): class_eval and instance_eval do not scope class names the same as direct code
- cpoirier (Chris Poirier) wrote:
> My expectation is that class_eval and instance_eval should map class names the same as code written directly in the class, as they do with function names.
The current behavior is intended.
From the ... -
05:49 PM Bug #6843 (Rejected): win32ole save shortcut fail on Windows XP
- Not a bug.
-
05:06 PM Bug #6843: win32ole save shortcut fail on Windows XP
- This is not a bug of ruby.
The error message OLE error code:80070003 means the target folder "#{USERPROFILE}\\Desktop" is not exist on your Windows XP.
I confirmed the folder "#{USERPROFILE}\\Desktop" is not exist on my Windows XP.
... -
02:59 PM Bug #6843 (Rejected): win32ole save shortcut fail on Windows XP
- The following program will success on Windows 7, but fail on Windows XP
=======================================================================
Error message:
(in OLE method `Save': )
OLE error code:80070003 in WshShortcut.Save
... - 05:03 PM Revision 507dc62a (git): * 2012-08-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:03 PM Revision b2fbb39a (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:52 PM Bug #4438 (Closed): rescue args type check omitted
- This issue was solved with changeset r36658.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c, insns.def (checkmatch):
remove checkincludearra... -
01:51 PM Revision 393ed5c9 (git): vm_eval.c: cref-scope hack
- * vm_eval.c (eval_under): singletons other than special constants
don't need cref-scope hack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:46 PM Revision 6b4ecb32 (git): use local variables
- * test/ruby/test_eval.rb: use local variables instead global variables
if possible.
* test/ruby/test_ifunless.rb: ditto.
* test/ruby/test_iterator.rb: ditto.
* test/ruby/test_stringchar.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.o... -
01:45 PM Revision 22e14514 (git): common.mk: id.h dependency
- * common.mk (.y.h): split from .y.c rule to manage dependency on
parse.h. [ruby-core:46741] [Bug #6789]
* common.mk (id.h): keep old file unless changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36661 b2dd03c8-39d4-4d8f-98f... -
01:43 PM Bug #6374: Acces to initialized class variable from included module
- mame (Yusuke Endoh) wrote:
> I guess this is where "the Standard" comes in.
> ...
The current behavior is conforming to ISO/IEC 30170.
In "11.5.4.5 Class variables" of ISO/IEC 30170:
A class-variable-identifier is evaluated as ... -
10:58 AM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- Yes, that's exactly how it would behave. To rewrite your example to make sure I understood it correctly:
obj.foo.bar.baz = obj.foo.bar.baz.to_i
becomes
obj.foo.bar.baz .= to_i -
07:19 AM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- I like the idea, iff:
obj.foo.bar.baz .= to_i
behaves as:
begin
temp = obj.foo.bar
temp.baz = temp.baz.to_i
end
-
10:51 AM Feature #6842: Add Optional Arguments to String#strip
- "<b>b" from the start of the string, and the "</b>" from the end. This is how I remember trim() from php behaved, which I found quite succinct, but maybe that's because defining arrays in PHP is fairly verbose. Ruby has the shorthand arr...
-
08:12 AM Revision dcfaf3e2 (git): * compile.c (ADD_INSNL): make ADD_INSNSL as alias of ADD_INSN1.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:11 AM Revision e2f5d4f9 (git): * bootstrap/test_exception.rb: fix a last committed test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:52 AM Revision 93b6f8d6 (git): * compile.c, insns.def (checkmatch):
- remove checkincludearray instruction and
add new instruction checkmatch.
This change is to solve
[Bug #4438] "rescue args type check omitted".
* iseq.c: increment ISEQ_MAJOR_VERSION because removal of
checkincludearray instructio... -
12:51 AM Feature #6802: String#scan should have equivalent yielding MatchData
- +1 to have a method to return MatchData.
This is related to (or duplicate of) #5749 and #5606.
Even with the simple implementation I think to establish a standard
name and specification.