Activity
From 04/29/2014 to 05/05/2014
05/05/2014
-
08:43 PM Feature #9804: File::CREATE as a synonym for File::CREAT
- I do not think this increases human overhead to learn: CREATE is an English word, CREAT is not. This would allow me to avoid writing in my code
File::CREATE = File::CREAT -
07:34 PM Feature #9804: File::CREATE as a synonym for File::CREAT
- alexey.muranov@gmail.com wrote:
> I would like to have `File::CREATE` as a synonym for `File::CREAT`.
At least give a reason for wanting this...
Fwiw, I am against adding more aliases/synonyms to core.
They increases human overh... -
04:53 PM Feature #9804 (Open): File::CREATE as a synonym for File::CREAT
- I would like to have `File::CREATE` as a synonym for `File::CREAT`.
-
08:11 PM Feature #9805 (Closed): Backtrace for SystemStackError
- The following code:
def a; a end
begin
a
rescue => e
puts e.backtrace.inspect
end
only returns a single line of backtrace like:
/tmp/scratch:3:in `a'
but this is not helpful when debugging.... - 07:38 PM Revision 08e0c31d (git): * file.c (rb_f_test): removed meaningless "case 'a'".
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:47 PM Feature #8459 (Feedback): Idiomatic method names for Socket
- I'm negative.
Such convention makes naming new method more difficult.
Naming is already very difficult.
I don't want to it more difficult. -
05:21 PM Bug #5463 (Rejected): PTY or IO.select timing issue results in no EOF
- I think this is not a problem of Ruby.
-
05:05 PM Bug #5487 (Rejected): popen3 + timeout regression in ruby 1.9
- Please avoid Timeout.
Even if it doesn't hang as Ruby 1.8, it doesn't clean child processes.
Thread#join's argument (timeout) is usable to implement to timeout.
```
Open3.popen3("sleep 100 && echo hi", :pgroup=>true) {|i, o, e, w... -
04:51 PM Bug #9685: psych-2.0.5 のバックポート
- r45453, r45455 and r45577 were backported into `ruby_2_1` at r45812.
See #9798 -
04:46 PM Misc #9803 (Rejected): document of Removed C API is missing in NEWS
- Sorry, I mistook NEWS in ruby_2_1 for trunk...
-
03:35 PM Misc #9803 (Feedback): document of Removed C API is missing in NEWS
- What's the version of NEWS you are seeing?
It is described since r44963.
```
% svn ann NEWS|egrep '9502|rb_check_safe_str'
44963 akr * Deprecated APIs removed. [Feature #9502]
44963 akr rb_check_safe_str -> S... -
02:56 PM Misc #9803 (Rejected): document of Removed C API is missing in NEWS
- I found that `rb_check_safe_str()` is removed in ruby-2.1 and trunk.
And I found #9502 and [CAPI\_obsolete\_definitions](https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/CAPI_obsolete_definitions) page, but these changes is not in NE... -
04:38 PM Revision 0c3d5131 (git): * lib/open-uri.rb (OpenURI.open_uri): Call StringIO#close only if
- the StringIO object is not closed yet.
Reported by Jordi Massaguer Pla. [ruby-core:42538] [Bug #6010]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:29 PM Revision 5ab5d921 (git): * ext/tk/lib/tkextlib/tkDND/tkdnd.rb: fix typo and missing definition.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:16 PM Revision de94db5d (git): merge revision(s) r45760: [Backport #9796]
- * gc.c (gc_after_sweep): suppress unnecessary expanding heap.
Tomb heap pages are freed pages here, so expanding heap is
not required.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45833 b2dd03c8-39d... -
04:11 PM Revision c47d59a0 (git): * benchmark/driver.rb: define File::NULL if not defiend and /dev/null
- is available to run benchmark driver on ruby 1.9.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:03 PM Feature #5677 (Rejected): IO C API
-
04:03 PM Feature #5677: IO C API
- I reject this issue because no one implement it until now.
It is too difficult to discuss concretely without implementation. -
03:17 PM Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
- It seems glibc-2.12 provides IP_TRANSPARENT.
So there is no problem to use it now. -
03:15 PM Feature #7476 (Closed): missing "IP_TRANSPARENT" constant for IP sockets.
- Applied in changeset r45830.
----------
* ext/socket/mkconstants.rb: Add IP_TRANSPARENT.
IP_TRANSPARENT is provieded since glibc-2.12.
Reported by Eliezer Croitoru. [ruby-core:50372] [Bug #7476] - 03:15 PM Revision da35e754 (git): * 2014-05-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:15 PM Revision 17a2f1ec (git): * ext/socket/mkconstants.rb: Add IP_TRANSPARENT.
- IP_TRANSPARENT is provieded since glibc-2.12.
Reported by Eliezer Croitoru. [ruby-core:50372] [Bug #7476]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:12 PM Revision 693703c3 (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:04 PM Bug #9089 (Rejected): rb_fix2uint no longer raises a RangeError when given negative values
- This issue is not acceptable because it is very inconsistent that only FIX2UINT on 64bit environment rejects negative numbers.
Changing the behavior of other functions, NUM2Uxxx and FIX2Uxxx, is too incompatible.
If people needs rigi... -
01:37 PM Feature #3348 (Closed): rubyspec: Kernel.spawn redirects both STDERR and STDOUT to the given name ERROR
- Applied in changeset r45828.
----------
* process.c (check_exec_redirect): Open the file in write mode for
redirect from [:out, :err].
Proposed and implemented by Yusuke Endoh.
[ruby-dev:41430] [Feature #3348] -
01:37 PM Revision 7a69a358 (git): * process.c (check_exec_redirect): Open the file in write mode for
- redirect from [:out, :err].
Proposed and implemented by Yusuke Endoh.
[ruby-dev:41430] [Feature #3348]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:10 PM Bug #9618 (Closed): Pathname#cleanpath creates mixed path separators
- Applied in changeset r45827.
----------
* ext/pathname/lib/pathname.rb (cleanpath_aggressive): make all
separators File::SEPARATOR from File::ALT_SEPARATOR.
Reported by Daniel Rikowski.
Fixed by Nobuyoshi Nakada. [Bug #9618]
* e... -
01:09 PM Revision edacb3a9 (git): * ext/pathname/lib/pathname.rb (cleanpath_aggressive): make all
- separators File::SEPARATOR from File::ALT_SEPARATOR.
Reported by Daniel Rikowski.
Fixed by Nobuyoshi Nakada. [Bug #9618]
* ext/pathname/lib/pathname.rb (cleanpath_conservative): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby... -
12:49 PM Feature #9625 (Closed): Define `Pathname#/` to append to the path
- Applied in changeset ruby-trunk:r45826.
----------
* ext/pathname/lib/pathname.rb (Pathname#/): Aliased to Pathname#+.
Suggested by Alexey Muranov. [ruby-core:61432] [Feature #9625] -
12:49 PM Revision 391fc2ee (git): * ext/pathname/lib/pathname.rb (Pathname#/): Aliased to Pathname#+.
- Suggested by Alexey Muranov. [ruby-core:61432] [Feature #9625]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:28 AM Revision a210f7c2 (git): * math.c (rb_math_sqrt): omitted exporting an unused function,
- anyway.
* internal.h: follows the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:33 AM Revision 78fa9672 (git): add a comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:45 AM Feature #9794 (Closed): DateTime.strptime() doesn't work correctly for '%s %z'
-
04:45 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
> どうダメなのかわからないのでなんともいいようがない、というのが私の正直な感想です。
俺にはもう関係ない事ですし、余計な事でした。
田中さんのほうで気になってなかったのなら別に構わないと思います。
-
03:02 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
> とりあえず、'%z' のみとかはダメらしいですから。
そうですね。
Time.strptime("+09:00", "%z") も受け付けていたので、原作者の意図するものではないということで変えてみました。
> ...
どうダメなのかわからないのでなんともいいようがない、というのが私の正直な感想です。
-
03:41 AM Feature #9549 (Feedback): Improvements to Time::strptime
- Erik Michaels-Ober wrote:
>
> ...
I'm not sure that is a good idea.
For example, -4712-01-01 is not a special date in Time.
> * Raise ArgumentError if time passed to `Time::strptime` is invalid. This fixes a Ruby bug and adds a te... -
02:47 AM Revision c2a87a1f (git): * lib/time.rb (Time.strptime): Raise ArgumentError if Date._strptime
- doesn't extract date information.
Reported by tadayoshi funaba. [ruby-core:62349]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/04/2014
-
11:54 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
> 変更しました。
ありがとうございます。
> ...
要らなくなることはないと思います。義務はないのでまた手伝ってください。
> 今後は横断的にちょっかいを出したり、
> ...
今後ともよろしくお願いします。 -
10:16 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Well, I still don't understand what was discussed here, but it seems we have a fix (r45822).
Thanks for doing the sensible thing :) -
09:10 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- 変更しました。
今すぐコミッターの活動を停止するわけではありませんが、
今日で date の担当は降ります。
現行の date の実装はこのまま使ってもいいし、要らなくなったら遠慮なく捨てて下さい。
今後は横断的にちょっかいを出したり、
行末の空白を削ったりして、のんびり余生を過そうと思います。
-
08:34 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
> 「対応しなかった」理由はなんとなくわかりましたし、実際の利用例がなく、単に一貫性のためとかだったらこのまま放置でよかったと思いますが。
git については過大評価じゃないかなと思います。
もうどうでもいいですが。
> ...
まつもとさんは大変だと思います (俺も原因になってるし)。
-
08:01 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
> Time.parse は現在時刻で補完するという仕様だったからです。
> ...
DateTime でも補完はしますけどね。
> Time.strptime('', '') もそうで、これはまつもとさんが書いた最初からですが、
> ...
とりあえず、'%z' のみとかはダメらしいですから。
ついでだけど、Time の変更がこのまま進むなら to_time とかも直したほうがいいよ。
元々無理のある仕様だったけど、もう完全にダメになりそう。
-
04:36 PM Feature #9794 (Open): DateTime.strptime() doesn't work correctly for '%s %z'
- 元々のリポートが「これはバグだ」、「当然対応すべきだ」という態度だったのは置いといて、実際に利便性があり、ほかに実害がない以上、機能拡張として対応したほうがいいと思います。
私が見落としてるのかもしれないけど、今までのふなばさんの主張で「対応すべきでない」理由はわかりませんでした。
「対応しなかった」理由はなんとなくわかりましたし、実際の利用例がなく、単に一貫性のためとかだったらこのまま放置でよかったと思いますが。
これを決定権がないとおっしゃるのであれば... -
04:23 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
> Time のほうは
> ...
Time.parse は現在時刻で補完するという仕様だったからです。
そういう仕様だったので、その仕様を変えるまでは、まったく時刻情報がなくても受け付けていました。
Time.strptime('', '') もそうで、これはまつもとさんが書いた最初からですが、
r8068 をみると、Time.parse のコードを複製したところがそのままだから、
という感じかなぁ... -
01:59 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- ずっと俺には何の決定権もないって言われ続けているような気がしたけど
今日は本当にそれを実感した。 -
01:44 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- 私もさすがに"%z"単体を許すべきとは思いません。それ日付でも時刻でもないから。
それはそれとして、"%s %z"はgitがコミット時間をログに記録するのに使ってるフォーマットなんだそうです。
たしかに、手元の .git/logs/HEAD とかに、すべてのコミットについてこの形式でチェックイン時間とタイムゾーンが記録されている。
これくらい実際に広く使われているツールで頻繁に使われているフォーマットであれば、曜日の場合のように矛盾する情報というわけで... -
01:23 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- なんか本質に近いところを突いたような気がしてきた。
DateTime は日付の核になる所から積み上げられないと、そこは無効になるんだけど、
Time にはそういうのがなくて、仮令、核が虚になってても関係ない。
俺の見方だと、そもそも Time は日付 (時刻) になってなくてもいいって事なんだと思う。
そう考えると納得出来るような気がする。
-
12:45 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
> そうすると、%s %z がなんでいけない理由はいまだに私にとって謎だなぁ。
少し違うかもしれないけど、
もっと基本的なパターンとして '%z' があって、
'%s %z' を受け入れる事になったら、次は '%z' だなって以前に思ったのを思い出した。
Felipe Contreras の主張だとこれも出来ないとバグでしょ。
彼は別に自分が困っててここに来てるわけじゃないからね。
DateTime.strptime ではこれは許さない事になって...-
12:00 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
>
> ...
関係あると思われないなら私の推測がまちがっていたのでしょう。
そうすると、%s %z がなんでいけない理由はいまだに私にとって謎だなぁ。
-
10:52 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- > ここで興味の対象は "%s %z" がなぜいけないのか、という点です。
> ...
質問の意図が理解しきれていないかもしれませんが、望ましくはないと思います。
ただ、それと俺の判断に関係があるのかな。
> 読み飛ばすという使い方については私には関係性が見出せませんでした。
Date.strptime('Sun May 4 00:00:00 2014', '%a %b %d %T %Y')
これは典型的な日付ですが、田中さんのいう点を打つには ... -
10:12 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
> Akira Tanaka wrote:
> ...
うぅむ。期待したものとは違う方向で回答されてしまった気がします。
ここで興味の対象は "%s %z" がなぜいけないのか、という点です。
私の思ったのは、もし、ふなばさんが DateTime.strptime に与えるフォーマットに時刻 (時間軸上の点) を
同定するのに関係しない要素は与えるべきでない、と感じるとすれば、
フォーマットに "%s ... -
09:03 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Nobuyoshi Nakada wrote:
> It doesn't seem there is absolute reason that you have to use `Time.strptime`.
Why wouldn't I? It does **exactly** what I want:
Time.strptime('0 +0100', '%s %z').strftime('%s %z')
=> "0 +0100"
... -
08:50 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Akira Tanaka wrote:
> tadayoshi funaba wrote:
> ...
極端な話、単に読み飛ばすだけでも意味があると思ってます。
`s = 'Sunday 4 May <unknown garbage> 2014; blob'
h = Date._strptime(s, '%a %d %b')
s2 = h[:leftover].gsub(/ *<.*> */, '')
h2 = Date._strptime(s2, ... -
08:06 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- It doesn't seem there is absolute reason that you have to use `Time.strptime`.
Particular methods feel more suitable, like `rfc2822`, `httpdate`, and `xml`.
~~~ruby
class Time
def self.git(s)
/\A(\d+)\s+([-+]\d\d)(\d\d)\z/ =... -
06:58 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
>
> ...
はい。Time や DateTime のインターフェースで hour がないとかは許しがたいので、
なにかを選ばざるを得ないと思います。
> %s %z は「今x秒です」「オレ %z の時差で生活してます」という感じで
> ...
ふむ。これは示唆的です。
もしかして、DateTime.strptime に与えるフォーマットに時刻 (時間軸上の点) を同定するのに関係しない要素は与える... -
03:25 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
> /* Gr. strptime is crap for this; it doesn't have a way to require RFC2822
> ...
This has already been agreed: many options in strptime() are not portable, but that includes '%s' as well. -
03:00 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- git は良く知らないんだけど、今、git-1.9.2 を見たところでは、
少なくとも現行の核で strptime は使ってないように見えます。
自前で解析して time_t 相当のものを組み立ててるようですね。
git-1.9.2/date.c から引用:
/* Gr. strptime is crap for this; it doesn't have a way to require RFC2822
(i.e. English) day/mon... -
02:54 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Akira Tanaka wrote:
> tadayoshi funaba wrote:
> ...
しかし、それは Time の場合は自明である地方時、DateTime では UTC という事になっているし、そういう形式なんで仕方がないと思います。
そういう積極的でない時間帯の選択は俺は勝手に「匿名」と読んで許容しています。厳密にはそういうのを別に識別する仕掛けがあるほうがいいのでしょうが。
%s %z は「今x秒です」「オレ %z の時差で生活して... -
01:48 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
>
> ...
ちゃんと定義すればそういうことも可能なんじゃないかと思います。
年月日時分秒が2つ出てくるのでわかりにくいとは思いますが。
> 俺は今、日本にいてUTCの時刻を扱っているとします。
> ...
後で出てくる時間軸の話でいえば、
ISO 8601 でいえば 2001-02-03T04:05:06Z という名前をもつ時間軸上の点に
2001-02-03T04:05:06 UTC (+0900... -
11:31 PM Bug #6634: Deadlock with join and ConditionVariable
- On Sat, May 3, 2014 at 8:45 AM, <nikkoara@hates.ms> wrote:
> Issue #6634 has been updated by L Nicoara.
>
>
> L Nicoara wrote:
>> nhm tanveeer hossain khan wrote:
>> > Hi there,
>> >
>> > I've faced similar problem with ruby 2.... - 08:56 PM Revision a72f9f34 (git): * ext/date/date_core.c (rt_rewrite_frags): a new feature (not a
- bug fix) of strptime. applies offset even if the given date is
not local time (%s and %Q). This is an exceptional feature and
I do NOT recommend to use this at all. Thank you git community.
git-svn-id: svn+ssh://... -
08:44 PM Feature #9799: change behavior of Math::atan2 if y and x are both Float::INFINITY
- Marcus Stollsteimer wrote:
> Wait, wait...
> ...
I don't consider it wrong for a programming language. Maybe these special cases make less sense than the other ones, but they exist in many other languages. Even in numerical ones. That ... -
04:05 PM Feature #9799: change behavior of Math::atan2 if y and x are both Float::INFINITY
- Wait, wait...
So you introduce mathematically wrong behaviour with the argument that there already is some other wrong behaviour??? -
02:14 AM Feature #9799: change behavior of Math::atan2 if y and x are both Float::INFINITY
- I've searched for a rationale. It can be found in <http://www.open-std.org/jtc1/sc22/wg14/www/C99RationaleV5.10.pdf> on the bottom of page 188 (or real page 181):
>The specification of `atan2(∞,∞)` as `π/4` indicates the reasonable quad... -
01:29 AM Feature #9799: change behavior of Math::atan2 if y and x are both Float::INFINITY
- Yusuke Endoh wrote:
> Interesting. I'm not against the change since the proposed behavior looks prevailing, but I wonder if it is useful that the following case returns pi/4.
Yes, I wondered it too
But `Float::INFINITY == Float::IN... -
01:23 AM Feature #9799 (Closed): change behavior of Math::atan2 if y and x are both Float::INFINITY
- Applied in changeset r45805.
----------
math.c: C99-like atan2
* math.c (math_atan2): return values like as expected by C99 if
both two arguments are infinity. based on the patch by cremno
phobia <cremno AT mail.ru> in [ruby-core:... -
12:55 AM Feature #9799: change behavior of Math::atan2 if y and x are both Float::INFINITY
- Interesting. I'm not against the change since the proposed behavior looks prevailing, but I wonder if it is useful that the following case returns pi/4.
~~~ruby
x = Float::INFINITY
Math.atan2(x, 2 * x) #=> Math::PI/4, not Math.atan... -
06:32 PM Feature #8667: Unable to set OpenSSL GCM iv_length in Ruby
- Alternate patch which makes iv length changes implicit in iv= when using GCM.
This issue currently requires me to require a patched ruby for my software to run. -
06:31 PM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
- Thanks chikanagasan and wanabesan!
-
03:56 PM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
- Thank you for notice this, wanabe san.
r45015 was backported into ruby_2_1 at r45815. -
05:45 PM Bug #9743: memory leak in openssl ossl_pkey_verify leaks memory
- r45595 was backported into ruby_2_1 at r45821.
-
05:44 PM Revision 01cf2127 (git): merge revision(s) r45595: [Backport #9743] [Backport #9745]
- * ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal()
finalizes only a copy of the digest context, the context must be
cleaned up after initialization by EVP_MD_CTX_cleanup() or a
memory leak wi... -
05:33 PM Bug #9599: Fiddle::Function#call leaks memory
- r45291, r45299, r45314 and r45325 were backported into ruby_2_1 at 45820.
-
05:32 PM Revision acd893d1 (git): merge revision(s) r45291,r45299,r45314,r45325: [Backport #9518]
- * ext/dl/cptr.c (dlptr_free), ext/dl/handle.c (dlhandle_free),
ext/fiddle/handle.c (fiddle_handle_free),
ext/fiddle/pointer.c (fiddle_ptr_free): fix memory leak.
based on the patch Heesob Park at [ruby-dev:4... -
05:19 PM Revision 647b55f6 (git): merge revision(s) r45298,r45311: [Backport #9518]
- test/ruby/envutil.rb: compare RSS to check memory leak
* test/ruby/envutil.rb (Test::Test#assert_no_memory_leak): compare
also RSS if available.
* test/ruby/memory_status.rb (Memory::Status.parse): read string
form ... -
04:28 PM Bug #9518: Objects in large arrays are leaked
- r45638 was backported into ruby_2_1 at r45818.
according to #9796 -
04:26 PM Revision cd705d11 (git): merge revision(s) r45638: [Backport #9518]
- * gc.c (rb_gc_writebarrier): drop special case for big hash/array
[Bug #9518]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:18 PM Bug #9687: Make a cap for malloc_limit adjustment
- r45468 was backported into ruby_2_1 branch at r45817.
-
04:17 PM Revision ac0f8d80 (git): merge revision(s) r45468: [Backport #9687]
- * gc.c (gc_before_sweep): cap `malloc_limit' to
gc_params.malloc_limit_max. It can grow and grow with such case:
`loop{"a" * (1024 ** 2)}'
[Bug #9687]
This issue is pointed by Tim Robertson.
... -
03:57 PM Revision d9087ffe (git): update a comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:55 PM Revision efae6ae3 (git): merge revision(s) r45015: [Backport #9657]
- * ext/bigdecimal/bigdecimal.c (BigDecimal_initialize): Insert GC guard.
* ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45815 b2dd03c8-39d4-4d8f-98ff-... - 03:51 PM Revision e1fefb28 (git): * 2014-05-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:51 PM Revision 0b53b86d (git): add comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:45 PM Revision 1dcdd256 (git): merge revision(s) r45453,r45455,r45577: [Backport #9798]
- * ext/psych/lib/psych.rb: Merge psych-2.0.5. bump version to
libyaml-0.1.6 for CVE-2014-2525.
* ext/psych/yaml/config.h: ditto.
* ext/psych/yaml/scanner.c: ditto.
* ext/psych/yaml/yaml_private.h: ditt... -
03:40 PM Revision 7c89c508 (git): merge revision(s) r45221: [Backport #9798]
- * ext/psych/lib/psych/visitors/yaml_tree.rb: support dumping Encoding
objects.
* ext/psych/lib/psych/visitors/to_ruby.rb: support loading Encoding
objects.
* test/psych/test_encoding.rb: add test
... -
03:17 PM Revision 71fdd26d (git): merge revision(s) r45393: [Backport #9668]
- * gc.c: Fix up default GC params by @csfrancis [fix GH-556]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:04 PM Revision 40c6eaf6 (git): vm.c: Init_vm_objects
- * vm.c (Init_vm_objects): initialize VM internal objects, after
heap initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:52 AM Revision fffbcf28 (git): * lib/time.rb (Time.force_zone!): Use usual local time if it has
- expected offset from UTC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:01 AM Revision a18177d5 (git): * lib/time.rb (Time.force_zone!): New private method.
- (Time.make_time): Use Time.force_zone!.
(Time.strptime): Ditto.
(Time.rfc2822): Ditto.
(Time.xmlschema): Ditto.
* lib/rss/rss.rb (Time.w3cdtf): Use Time.force_zone!.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45807 b2dd0... -
02:41 AM Revision d64eef15 (git): * math.c (math_atan2): remove the condition for test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:23 AM Revision 7a6ebecf (git): math.c: C99-like atan2
- * math.c (math_atan2): return values like as expected by C99 if
both two arguments are infinity. based on the patch by cremno
phobia <cremno AT mail.ru> in [ruby-core:62310]. [Feature #9799]
git-svn-id: svn+ssh://ci.ruby-lang.org/...
05/03/2014
-
11:41 PM Revision 6e342592 (git): test_math.rb: rename check as assert_float
- * test/ruby/test_math.rb (assert_float): rename with `assert_`
prefix so that the caller frame would appear in backtraces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:32 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- It don't understand the details of the discussion, but it seems to me Tadayoshi is arguing that dates cannot be represented correctly in "%s %z".
If that was the case why did Git chose it as the format to store dates? Shouldn't Git be... -
09:18 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Akira Tanaka wrote:
> tadayoshi funaba wrote:
> ...
問題があるとかでなく、別のものなってるという事です。
たとえば、可能性としては、UTCで書いた日付を地方時にという事も出来るという事ですよね。
今回 %s だけですが。
俺は今、日本にいてUTCの時刻を扱っているとします。
それを例えば以下のように記述する事にします。
与えられた時刻はUTCだけど、それを +09:00 で参照する事にします。
... -
01:00 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
>
> ...
はい。
> これの Sat を Fri 書き換えると間違った日付です。
はい。
"Fri May 3 00:00:00 2014" に書き換えると確かに間違っています。
> ...
曜日と年月日は独立ではないので、
片方を設定するともう一方も変化してしまう破壊的操作の列で設定を行うことをコマンド言語と表現しているのですよね。
これはわかります。
> 田中さんの説明からも... -
12:04 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Akira Tanaka wrote:
> tadayoshi funaba wrote:
> ...
伝わらないのでちょっと別の話をします。
Date.today.ctime #=> "Sat May 3 00:00:00 2014"
これは普通の日付ですよね。
これの Sat を Fri 書き換えると間違った日付です。
たしか、php のライブラリだったと思うけど、こういうのを入力すると
2014-05-02 とか 2014-05-0... -
11:34 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
>
> ...
%s に UTC からの時差の情報が入っていないことに同意します。
しかし、Time オブジェクトを作るには時差 (あるいは地方時、UTC) を選ばないといけないので、
%z の情報を使ってもいいと思います。
> 田中さんはそこにオブジェクトを見てるから不自然とは感じないという事ですかね。
「そこにオブジェクトを見てる」というのがどのような意味なのかわかりません。
> ...... -
10:29 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Akira Tanaka wrote:
> tadayoshi funaba wrote:
> ...
見慣れないという意味ではないです。ユリウス日のようなものも日付だと思ってますし、%s 単体では特に問題に思っていません。
全然理解できないのですが、%s に時差って意味ないですよね。
田中さんはそこにオブジェクトを見てるから不自然とは感じないという事ですかね。
> もしそうだとすると、私はそのようには考えていません。
> ...
やっぱりおかしいで... -
09:58 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
> 日付としておかしいからです。
おかしい、というのはどういう意味でしょう?
たしかに "%s %z" は人間が日常的に扱う形式ではありません。
でも、%s が過去から未来への流れの中の 1点を指定し、
%z がその 1点の表現方法を UTC からの offset という形でを指定する、
という時刻の形式だと解釈できると思います。
時刻の表現として、(閏秒の話を除いて) とくに問題があるとは... -
09:11 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- At some point it would be nice to have something in English so that the international community can comment on that.
-
09:06 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Akira Tanaka wrote:
> tadayoshi funaba wrote:
> ...
日付としておかしいからです。
> Ruby の strptime は struct tm じゃなくて DateTime や Time のオブジェクトを生成し、
> ...
主張の根拠になっているのがバグだから直せだからです。
ruby 側の都合の話ではありません。
> %s と %z に対応する値を s と z として、
> ...
このあたりは... -
08:37 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- tadayoshi funaba wrote:
> 言語の問題もあるんだろうけど、俺が英語に堪能でも Felipe Contreras に俺の考えを解らせるのは無理じゃないかという気がする。
私も "%s %z" がなんでそんなにいけないのか理解していません。
> ...
Ruby の strptime は struct tm じゃなくて DateTime や Time のオブジェクトを生成し、
DateTime や Time のオブジェクトは自分がどん... -
06:45 AM Feature #9794 (Rejected): DateTime.strptime() doesn't work correctly for '%s %z'
-
06:45 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- 言語の問題もあるんだろうけど、俺が英語に堪能でも Felipe Contreras に俺の考えを解らせるのは無理じゃないかという気がする。
誤解のないよう少し補足しておくと、strcut tm で %s や %z を表現できない、という直接的な問題でもない。
C の時刻関数群はオブジェクト指向では書かれてないけど、データや関数の集合によってどんなモノを表現しているのか
考えないと理解できない。C の時刻関数には、まず、地方時 (あるいは局所時) と世界時の区別... -
03:42 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Ryan Davis wrote:
> I'd like to see this escalated to a neutral 3rd party (matz? ko1?) that can evaluate Charlie's code and weigh it against tadf's Japanese argument. Regardless of any final outcome, adding an English explanation would ... -
06:47 PM Revision ca7c0fee (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:47 PM Revision 5de24423 (git): * lib/time.rb (Time.httpdate): Always return a UTC Time object.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:37 PM Misc #9801: Regexp documentation for Regexp::EXTENDED is incomplete
- I have submitted a pull request on GitHub to make this easier. (Before, I didn't know I could!)
https://github.com/ruby/ruby/pull/606 -
02:48 PM Misc #9801 (Closed): Regexp documentation for Regexp::EXTENDED is incomplete
- The documentation for Regexp::EXTENDED, i.e. the `x` flag says that when it is used, Regexp will ignore all whitespace in the pattern. This is not completely true.
All whitespace is ignored, except for whitespace which has been escape... -
06:27 PM Revision 7a39fcc1 (git): * lib/time.rb (Time.make_time): Refactored.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:11 PM Revision af56a2b6 (git): * lib/time.rb (Time.rfc2822): Fix year completion.
- Produce fixed-offset time object if appropriate.
(Time.xmlschema): Produce fixed-offset time object if appropriate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:01 PM Feature #9508 (Feedback): Add method coverage and branch coverage metrics
- Sorry for the very late response. I tried and read through your patch.
However, at first, I'd like to discuss the proposal itself.
## Demand
In fact, I think we can virtually implement this feature by using a Ruby code parser, ... -
03:35 PM Bug #5659: bug releasing a gem created with rails 3.1
- @vincius do you get this error on the latest release? I can't reproduce it on any of the machines I've got handy.
- 03:23 PM Revision f5c91e57 (git): * 2014-05-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:23 PM Revision c4f29a65 (git): * lib/time.rb (make_time): Produce fixed-offset time object if
- appropriate.
(Time.strptime): Use d[:zone] instead of d[:offset].
* lib/rss/rss.rb (Time.w3cdtf): Produce fixed-offset time object if
appropriate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45798 b2dd03c8-39d4-4d8f-98ff-82... -
01:09 PM Revision 0a76ec34 (git): add tests.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:45 PM Bug #6634: Deadlock with join and ConditionVariable
- L Nicoara wrote:
> nhm tanveeer hossain khan wrote:
> ...
For the record, the test case is malformed. Bummer. I think the one I based it on (from khan) is malformed as well. My apologies if you spent time on it. -
11:31 AM Revision 4de23866 (git): * lib/time.rb (Time.strptime): Use d[:offset] if d[:seconds] is not
- given.
Reported by tadayoshi funaba. [ruby-core:62322]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:07 AM Bug #9677: OpenSSL::PKey::EC#to_text causes a segmentation fault
- It's worth noting that this segfault happens on not only arch, but also OSX, debian, and fedora. That makes it seem like a generic issue which is not isolated to arch.
-
10:05 AM Bug #9677: OpenSSL::PKey::EC#to_text causes a segmentation fault
- Thanks for the report! I'm looking into this now.
-
05:56 AM Bug #9800 (Closed): Ship 2.1.2 with GC_HEAP_OLDOBJECT_LIMIT_FACTOR of 1.3
- Many users are complaining about memory bloat in 2.1 series of Ruby
As denoted in https://bugs.ruby-lang.org/issues/9607 there is an excellent plan by ko1 to address this.
In the mean time I suggest we reduce GC_HEAP_OLDOBJECT_LIM... -
05:28 AM Bug #9797 (Closed): Math::log - missing domain error check
- Applied in changeset r45795.
----------
math.c: check domain of base argument
* math.c (math_log): check domain of base argument too. raises
Math::DomainError instead of returning NaN if the base is less
than 0, and returns NaN in... -
02:40 AM Bug #9797 (Closed): Math::log - missing domain error check
- `Math::log` with a negative `base` should raise a `Math::DomainError`.
~~~ruby
Math.log(-1.0) # raises Math::DomainError
Math.log( 1.0, -1.0) # doesn't (but calls `log(-1.0)` internally!)
~~~ -
05:28 AM Revision 38656e24 (git): math.c: check domain of base argument
- * math.c (math_log): check domain of base argument too. raises
Math::DomainError instead of returning NaN if the base is less
than 0, and returns NaN instead of -infinity if both of two
arguments are 0. [ruby-core:62309] [Bug #97... -
05:28 AM Revision 1fd4c7f1 (git): math.c: adjust prototype of math_log
- * math.c (math_log): adjust prototype as method function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:16 AM Feature #9799 (Closed): change behavior of Math::atan2 if y and x are both Float::INFINITY
- The current behavior when y and x are either negative or positive infinity is:
~~~ruby
Math.atan2(Float::INFINITY, Float::INFINITY) # raises Math::DomainError
~~~
The attached diff changes it to:
~~~ruby
Math.atan2(Float::IN... -
12:54 AM Bug #9742: Error when trying to debug line with "startDate = Time.parse('2014-Apr-01 12:00:30')"
- Ask debugger gem developers.
05/02/2014
-
11:58 PM Feature #9772: IO#statfs and File::Statfs
- Yui NARUSE wrote:
> statfs では f_type の類がとれないからですね。[ruby-core:62150]
なるほど。
では、IO#statfs では f_type の類は必須で、
f_type の類が提供されない環境では statvfs があっても
IO#statfs は提供しないということでしょうか?
> ...
OpenBSD 5.5 が出たので記念にインストールして試してみたところ、コンパイルできない感じで... -
03:29 PM Feature #9772: IO#statfs and File::Statfs
- r45790 にて、File::Statfs#fstypename を AIX, HP-UX, Solaris でも使えるようにしてみました。(ただし動作確認は Solaris のみ。)
struct statvfs.f_basetype を struct statfs.f_fstypename の代替として使用しています。
-
11:27 PM Feature #9794 (Feedback): DateTime.strptime() doesn't work correctly for '%s %z'
- Felipe's rudeness, while not acceptable, is borne out of frustration. I suspect that frustration exists on both sides of this argument. Setting that aside for a moment, and evaluating only the **facts** stated (and not the tone) in [[htt...
-
09:55 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Felipe, your extreme rudeness has no place here.
The rejection reason is described in #7445 as linked.
Not every committer is proficient in English so Japanese is just fine.
I don't suspect you'll get a reason. -
08:32 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- English. This is an international project, isn't it?
Time.strptime('2001 -0900', '%Y %z')
This is clearly a red herring. If you want to fix '%Y %z', go ahead, that's no reason not to fix '%s %z'. -
11:53 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- 何回も言うけどCで自分の意図どおりに扱えてるっていうあんたの主張は間違ってる。
ある実装では構文的に解析出来てるかもしれないけど、意味を解釈する事は仕様上無理なんだよ。どう解釈しても。
あんたは都合よく仕様の話と実装の話をつなげて自分の主張にしてるだけなの。
俺はそれなりに妥当な解釈で拡張してるわけでバグだから直せと頭ごなしに言われる筋合いはない。
time に従えって言いたいのかもしれないけど、現状はこんなんなんだけど
~~~ruby
Time.s... -
11:14 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
- Tadayoshi you are so fucking ridiculous it's not even funny.
You reject a perfectly sensible patch that **EVERYBODY** agrees with for NO REASON AT ALL WHATSOEVER? At the very list give a reason.
I'm amazed that anybody would make y... -
10:59 AM Feature #9794 (Rejected): DateTime.strptime() doesn't work correctly for '%s %z'
- identical to 7445.
-
10:53 AM Feature #9794 (Assigned): DateTime.strptime() doesn't work correctly for '%s %z'
-
10:21 AM Feature #9794 (Closed): DateTime.strptime() doesn't work correctly for '%s %z'
- Time.strptime() works correctly:
Time.strptime('0 +0100', '%s %z').strftime('%s %z')
=> "0 +0100"
But DateTime.strptime() doesn't:
DateTime.strptime('0 +0100', '%s %z').strftime('%s %z')
=> "0 +0000"
In Rubi... -
11:15 PM Bug #9795 (Feedback): ruby-head breaks spreadsheet gem
- Symbol GC has been introduced at r45426, Mar 26, and just fixed some attrset ID bugs these days.
Try with the latest trunk. -
08:28 PM Bug #9795 (Closed): ruby-head breaks spreadsheet gem
- When Zeno commit a comment with https://github.com/zdavatz/spreadsheet/commit/9b08dceecf634139f819d1f9dcd0dbcdf10b4dbd on Wed Apr 2 19:00:32 2014 +0200
Our travis-ci build https://travis-ci.org/zdavatz/spreadsheet/builds/22119822 failed... -
07:21 PM Bug #9608 (Closed): [PATCH] avoid large alloca on Complex/Rational calls - Applied in changeset r45793.
----------
avoid large alloca on Complex/Rational calls
* complex.c (parse_comp): replace ALLOCA_N with ALLOCV_N/ALLOCV_END
[Bug #9608]
* rational.c (read_digits): ditto -
11:29 AM Bug #9608: [PATCH] avoid large alloca on Complex/Rational calls
- i'd like to try it; please commit it.
- 07:21 PM Revision a9befcdb (git): avoid large alloca on Complex/Rational calls
- * complex.c (parse_comp): replace ALLOCA_N with ALLOCV_N/ALLOCV_END
[Bug #9608]
* rational.c (read_digits): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:43 PM Revision 0989529f (git): time.c: fix underflow of unsigned integers
- * time.c (vtm_add_offset): get rid of underflow of unsigned
integers. fix up r45155.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:35 PM Misc #9741 (Assigned): Policy for Posting Security & General Announcements on www.ruby-lang.org
- I'm glad we settled on a clear policy for this, I'll draft up a wiki page which explains it.
-
06:59 AM Misc #9741 (Closed): Policy for Posting Security & General Announcements on www.ruby-lang.org
- We discussed this issue on https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20140418Japan .
* known issues: get consensus of github & w.r-l.o reviewers
* unknown issues: get consensus on ruby-core/security@ members + ... - 03:24 PM Revision 9621f8a9 (git): * 2014-05-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:24 PM Revision 09f51c56 (git): * file.c (HAVE_STRUCT_STATVFS_F_BASETYPE): File::Statfs#fstypename
- is supported on AIX, HP-UX, and Solaris, by using the value of
struct statvfs.f_basetype.
* configure.in (HAVE_STRUCT_STATVFS_F_BASETYPE): check struct
statvfs.f_basetype which is available on AIX, HP-UX, and Solaris.
git-svn-id: s... -
03:02 PM Feature #9781: Feature Proposal: Method#super_method
- Ryan, using `superclass` gets you really close, but doesn't handle extending object instances:
```ruby
class BigFoo
def bar
end
end
class Foo < BigFoo
def bar
super
end
end
class Object
def super_method na... -
08:47 AM Feature #9781: Feature Proposal: Method#super_method
- Maybe I'm still not getting something. If you can call it (or super to it) you can grab it:
~~~ruby
class BigFoo
def bar
end
end
class Middle1 < BigFoo; end
class Middle2 < Middle1; end
class Middle3 < Middle2; end
class... -
03:14 AM Feature #9781: Feature Proposal: Method#super_method
- I must be tired.
Nobu: Sorry, I was confused, there's no problem with `UnboundMethod#super_method` because we retain which class this method was accessed from.
Ryan: That's actually a good example, there is no api to get the "origi... -
03:03 AM Feature #9781: Feature Proposal: Method#super_method
- Nobuyoshi Nakada wrote:
> It's an ordinary `Method` (or `UnboundMethod`) instance, same as `SuperClass.instance_method(:foo).bind(obj)`.
Agreed for `Method`, but I'm not sure I understand how we could define `UnboundMethod#super_meth... -
02:43 AM Feature #9781: Feature Proposal: Method#super_method
- Hi,
Ryan Davis wrote:
> Maybe it is just me misunderstanding something... but this doesn't seem that complicated. I don't understand why you'd walk through the ancestors when you just just ask one level up:
For one level, with sim... -
01:35 PM Revision 1388beb1 (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:04 PM Revision b1520b74 (git): parse.y: fix wrong static symbol
- * parse.y (next_id): no reason to set ID_STATIC_SYM here, as ID
returned by rb_intern3 can be a dynamic symbol and the static
symbol flag is set otherwise. [Bug #9787]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45788 b2dd03c... -
11:32 AM Feature #9513 (Assigned): Hide Rational internal
- i'm ok.
-
07:40 AM Bug #9661 (Closed): CSV Header Conversion Causes NoMethodError For Empty Headers
- https://github.com/ruby/ruby/pull/575 is already closed.
-
07:34 AM Bug #9720 (Closed): [Doc] Proofreading of Net::IMAP docs
- Applied in changeset r45787.
----------
* lib/net/imap.rb: Proofreading docs. [ruby-core:61931][Bug #9720] -
07:34 AM Revision 3fb8542b (git): * lib/net/imap.rb: Proofreading docs. [ruby-core:61931][Bug #9720]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:25 AM Bug #9738 (Closed): A document fix for Rinda::TupleEntry#renew
- Applied in changeset r45786.
----------
* lib/rinda/tuplespace.rb: fix document. [ruby-core:62003][Bug #9738] -
07:25 AM Revision ba0002a9 (git): * lib/rinda/tuplespace.rb: fix document. [ruby-core:62003][Bug #9738]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:51 AM Bug #9742 (Closed): Error when trying to debug line with "startDate = Time.parse('2014-Apr-01 12:00:30')"
-
04:43 AM Bug #9792: Segmentation fault while running jekyll serve with ruby installed by homebrew
- You should ask `rvm` developers.
-
03:47 AM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
- And if you want to discard output from the child process:
~~~ruby
system(command, *args, chdir: dir, out: IO::NULL) # discard stdout only
system(command, *args, chdir: dir, out: IO::NULL, err: [:child, :out]) # also stderr
~~~ -
03:26 AM Revision 29a2fe12 (git): mkmf.rb: no messages unless needed
- * lib/mkmf.rb (create_makefile): no library scripts to install, no
installing messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:21 AM Bug #9789: Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
- このパッチで、テストが通るようになりました。
何らかの原因でseekに失敗した時に、Procが呼ばれ、Solarisでは Statfs#type がNotImplementedError となり、(Failureではなく) Errorになる可能性は残ってはいますが、その機能自体が Feature #9772 の議論対象のため、結論を待ちます。 -
02:33 AM Bug #9789 (Closed): Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
- Applied in changeset r45783.
----------
test_io.rb: defer f_type
* test/ruby/test_io.rb (test_seek, test_seek_symwhence): defer
File::Statfs#type call which may not be implemented, to mitigate
errors on platforms where SEEK_DATA is... -
03:20 AM Revision ff99fd4d (git): parse.y: hide anonymous id
- * parse.y (rb_id_attrset): should not reveal anonymous ID as an
instance variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:32 AM Revision d1c03755 (git): test_io.rb: defer f_type
- * test/ruby/test_io.rb (test_seek, test_seek_symwhence): defer
File::Statfs#type call which may not be implemented, to mitigate
errors on platforms where SEEK_DATA is available but f_type in
struct statfs is not. [ruby-dev:48154] ... -
01:37 AM Revision d42e0ea8 (git): parse.y: turn dynamically interned Symbol into an ID
- * parse.y (rb_id_attrset): turn dynamically interned Symbol into
an ID, since rb_str_dynamic_intern returns a Symbol but not an
ID. [ruby-core:62226] [Bug #9787]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45782 b2dd03c8-39d4... - 01:34 AM Revision 5c58bb9f (git): * 2014-05-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:34 AM Revision 38fd0dc6 (git): symbol/type.c: bug_pindown
- * ext/-test-/symbol/type.c (bug_pindown): method for debug, which
pins down the given symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:34 AM Revision a80b3004 (git): symbol/type.c: bug_static_p bug_dynamic_p
- * ext/-test-/symbol/type.c (bug_static_p, bug_dynamic_p): methods
for debug, which predicate the given symbol type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:56 AM Bug #9793 (Third Party's Issue): package "thread" is missed on http://www.ruby-doc.org/stdlib-2.1.1/ and also 2.1.0
- http://www.ruby-doc.org isn't our resources. Please contact ruby-doc.org maintainers.
05/01/2014
-
11:44 PM Feature #9711: Remove test-unit and minitest from stdlib.
- BTW, the patch looks fine to me. Should it not do deletes from lib/* ?
-
05:22 AM Feature #9711: Remove test-unit and minitest from stdlib.
- Ryan Davis wrote:
> Sorry it has taken me so long to respond. Sometimes I am slow at
> ...
Maybe slow, but I think you choose your words very well.
> I *AM* against shipping ruby without a testing library.
> ...
This is very well... -
12:46 AM Feature #9711: Remove test-unit and minitest from stdlib.
- Sorry it has taken me so long to respond. Sometimes I am slow at
choosing my words.
> We are hard to maintain test-unit and minitest for standard library.
> ...
I'm not against moving minitest & test-unit into test for the sake of
... -
11:10 PM Feature #9781: Feature Proposal: Method#super_method
- Maybe it is just me misunderstanding something... but this doesn't seem that complicated. I don't understand why you'd walk through the ancestors when you just just ask one level up:
~~~ruby
class BigFoo
def bar
end
end
cla... -
10:53 PM Bug #9790 (Assigned): Zlib::GzipReader only decompressed the first of concatenated files
-
10:01 PM Feature #9785 (Rejected): Feature Proposal: Dir.chdir Thread Safety
- :chdir option for spawn(), system() and IO.popen() is usable to specify the current directory of the child process without changing the current process of the parent process.
```
% pwd
/home/akr
% ruby -e 'system("pwd", :chdir => "... -
03:33 PM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
- I think maybe the `openat` and family of *`at` calls is close to my original proposal but does not help for executing a script inside of a `chdir` block: https://github.com/heroku/hatchet/commit/f882d8920525df6c1dda5fbd5494ce03aaa7c592#d...
-
09:52 PM Bug #6634: Deadlock with join and ConditionVariable
- nhm tanveeer hossain khan wrote:
> Hi there,
> ...
Hey, I have the same problem. I took the test case you posted, reduced it further, and fiddled with the numbers of threads, etc. See attached. It crashed reliably for me, always right ... -
03:50 PM Feature #9772: IO#statfs and File::Statfs
- Also, for reference see the sys-filesystem gem. :)
-
03:24 PM Bug #9592: Fix segfault with old OpenSSL
- r45271 was backported into `ruby_2_1` branch at r45778.
-
03:23 PM Revision 49fed341 (git): merge revision(s) r45271: [Backport #9592] [Backport #9671]
- * ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
error reasons with old OpenSSL, and insert a colon iff formatted
message is not empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@457... -
01:52 PM Revision 0e7a25bd (git): parse.y: abort at inappropriate symbol
- * parse.y (must_be_dynamic_symbol): abort if inappropriate symbol
is given, which should never happen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:25 PM Revision da0c358e (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:25 PM Revision a0a58364 (git): add indent
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:25 PM Revision 2957f88f (git): * file.c: Change AND condition to nested condition.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:00 PM Bug #9793 (Third Party's Issue): package "thread" is missed on http://www.ruby-doc.org/stdlib-2.1.1/ and also 2.1.0
- it seems not intended?
-
12:34 PM Bug #9792: Segmentation fault while running jekyll serve with ruby installed by homebrew
- Nobuyoshi Nakada wrote:
> Mixing 2.0.0 and 2.1.1 shared libraries.
I've already installed rbenv
How can i avoid this? -
12:08 PM Bug #9792 (Third Party's Issue): Segmentation fault while running jekyll serve with ruby installed by homebrew
- Mixing 2.0.0 and 2.1.1 shared libraries.
-
09:46 AM Bug #9792 (Third Party's Issue): Segmentation fault while running jekyll serve with ruby installed by homebrew
-
12:00 PM Bug #9702: r45488以降、SolarisStudioで ext/readline がコンパイルエラー(readline 6.2使用)
- r45518 was backported to ruby_2_1 branch at r45773.
-
11:59 AM Revision f2013ff8 (git): merge revision(s) r45518: [Backport #9578] [Backport #9630] [Backport #9702]
- * ext/readline/extconf.rb (rl_hook_func_t): check pointer type.
[ruby-dev:48089] [Bug #9702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:55 AM Revision ab58587f (git): merge revision(s) r45225,r45240,r45488: [Backport #9578] [Backport #9630]
- * ext/readline/readline.c (Init_readline): Use rl_hook_func_t instead
of Function to support readline-6.3. (rl_hook_func_t is available
since readline-4.2.)
Reported by Dmitry Medvinsky. [ruby-core:61141] ... -
10:53 AM Revision ad528e85 (git): parse.y: show symbol name
- * parse.y (must_be_dynamic_symbol): show the name if it is a
static symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:46 AM Bug #9791 (Closed): Segfault using gets() in IRB or with sqlite3 gem
- I built Ruby from the latest source, first with readline configured and installed. Windows 7, msys/mingw environment. Every time I'd press backspace, IRB and/or the cmd prompt would start deleting the second character back, and the cmd p...
-
03:07 AM Bug #9789: Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
>IO::SEEK_DATA自体はうごくんでしょうか。
~~~
% dd if=/dev/zero of=/var/tmp/test.dat bs=512 count=10 seek=16384
%
% ruby -e 'f = open("/var/tmp/test.dat"); f.seek(0, :DATA); p f.pos'
8388608
% ruby -e 'f = open("/var/tmp/test.dat"); f.seek(...
04/30/2014
-
08:56 PM Bug #9790 (Closed): Zlib::GzipReader only decompressed the first of concatenated files
- There is a similar old issue in Node that I came across that perfectly describes the situation in ruby:
https://github.com/joyent/node/issues/6032
In ruby given the following setup:
```
echo "1" > 1.txt
echo "2" > 2.txt
gzip ... -
05:25 PM Bug #9787: r45698 causes a segv in Rails tests
- @nobu the segv seems fixed, but now we get an error:
~~~
/Users/aaron/git/rails/activesupport/lib/active_support/dependencies.rb:247:in `require': wrong argument type Symbol (expected Symbol) (TypeError)
from /Users/aaron/git/rails... -
08:07 AM Bug #9787 (Closed): r45698 causes a segv in Rails tests
- Applied in changeset r45756.
----------
parse.y: pin down dynamic symbol only
* parse.y (rb_id_attrset): pin down dynamic symbol only. it is
possibe that attrset ID can be registered as a static symbol
after the corresponding attrg... -
02:19 AM Bug #9787 (Assigned): r45698 causes a segv in Rails tests
-
02:18 AM Bug #9787: r45698 causes a segv in Rails tests
- Aaron Patterson wrote:
> ~~~
> ...
`73328908` is `0x45ee90c`, so it is a static symbol.
> ~~~
> ...
Seems "new" ID with "=" was not actually new, but it has been interned in C level.
Does this fix it?
~~~diff
diff --git a/pa... -
05:11 PM Feature #9781: Feature Proposal: Method#super_method
- (2014/05/01 1:35), nobu@ruby-lang.org wrote:
>
> It's an ordinary `Method` (or `UnboundMethod`) instance, same as `SuperClass.instance_method(:foo).bind(obj)`.
Oh, OK. I misunderstood the spec of Method class.
--
// SASADA ... -
04:35 PM Feature #9781: Feature Proposal: Method#super_method
- It's an ordinary `Method` (or `UnboundMethod`) instance, same as `SuperClass.instance_method(:foo).bind(obj)`.
-
07:13 AM Feature #9781: Feature Proposal: Method#super_method
- What should happen on `#call` method with method objects returned from `super_method`?
-
04:45 PM Revision f7397d98 (git): win32.c: add linkage
- * win32/win32.c (ustatfs): need a linkage to get rid of conflict.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:44 PM Bug #9789: Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
- `IO::SEEK_DATA`自体はうごくんでしょうか。
~~~diff
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index d2abd9e..5ed2ddd 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1715,7 +1715,7 @@ class TestIO < Test::Unit::Te... -
04:26 PM Bug #9789 (Closed): Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
- File::Statfs#type が無い(NotImplementedErrorになる)環境にて、
TestIO#test_seek_symwhence と TestIO#test_seek がエラーになります。
Solaris 10 (64ビット)、r45760 (+ Bug #9788 のパッチ)にて確認しました。
~~~
52) Error:
TestIO#test_seek_symwhence:
NotImplementedError: ty... -
04:07 PM Revision d681a624 (git): win32.c: declare for old VC
- * win32/win32.c (ustatfs): declare GetVolumePathNameW for old VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:55 PM Bug #9788: TestFile#test_statfs = Bad System Call on Solaris
- > 過去のリリースでコンパイルしたバイナリでは動作するのかもしれません。
Bad System Call が出てエラーになったのは64ビットでコンパイルした場合で、32ビットでは未確認でした。32ビットでコンパイルしたら、SunOS時代のバイナリが今でも一応動くのがSolaris10の売りですし、動作する気がします。 -
03:38 PM Bug #9788 (Closed): TestFile#test_statfs = Bad System Call on Solaris
- Applied in changeset r45768.
----------
* file.c (FSTATFS): check availability of struct statfs and
struct statvfs in addition to fstatfs(2) and fstatvfs(2).
This fixes error in Solaris. [Bug #9788] [ruby-dev:48145] -
02:48 PM Bug #9788: TestFile#test_statfs = Bad System Call on Solaris
- In message <redmine.issue-9788.20140430140222.829abc7694e7af28@ruby-lang.org>
on Wed, 30 Apr 2014 14:02:22 +0000,
ngotogenome@gmail.com wrote:
> という記述があり、現在のSolaris10では、削除はされていないものの、呼ん
> でもSIGSYSかENOSYSを返してまともに動作しないようです。(または、未確
>... -
02:02 PM Bug #9788 (Closed): TestFile#test_statfs = Bad System Call on Solaris
- Solaris 10 にて、make test-all が以下のエラーで中断します。(r45759 で確認。)
~~~
TestFile#test_statfs = Bad System Call
make: *** [yes-test-all] Error 140
~~~
以下のように、statfsメソッド内にて呼んでいるfstatfsシステムコールがSIGSYSを発生させているようです。
~~~
% truss ruby -e 'f ... -
03:38 PM Revision 793d9c14 (git): * file.c (FSTATFS): check availability of struct statfs and
- struct statvfs in addition to fstatfs(2) and fstatvfs(2).
This fixes error in Solaris. [Bug #9788] [ruby-dev:48145]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:37 PM Revision 795a6b23 (git): parse.y: show name as possible
- * parse.y (rb_id_attrset): show the name of broken ID if it is
still registered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:25 PM Revision fba47c13 (git): parse.y: raise with numeric ID type
- * parse.y (rb_id_attrset): all valid ID types are handled
properly, raise with numeric ID type which may be broken for
GCed static symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:16 PM Revision 58fdffaa (git): * 2014-05-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:16 PM Revision 6b7ed604 (git): parse.y: use rb_id2str
- * parse.y (rb_id_attrset): use rb_id2str to get rid of method call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:16 PM Revision b5223355 (git): test_inadvertent_creation.rb: use Symbol.find
- * ext/-test-/symbol/intern.c: Symbol.find is available now.
* test/-ext-/symbol/test_inadvertent_creation.rb (noninterned_name):
use Symbol.find instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45763 b2dd03c8-39d4-4d8f-98ff... - 02:53 PM Revision d46cd5cf (git): missed at r45748.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:38 PM Feature #9772: IO#statfs and File::Statfs
- In message <redmine.journal-46331.20140426142125.1b2e3962cfe9fb0b@ruby-lang.org>
on Sat, 26 Apr 2014 14:21:25 +0000,
akr@fsij.org wrote:
> Issue #9772 has been updated by Akira Tanaka.
>
>
> Takahiro Kambe wrote:
>> 「NetBSD ... -
06:27 AM Feature #9772: IO#statfs and File::Statfs
- Akira Tanaka wrote:
> ruby-core:62137 で Eric Wong も尋ねていますが、なぜ POSIX で定義されている statvfs じゃなくて、statfs なのか、というのは私も最初に疑問に思いました。
> ...
statfs では f_type の類がとれないからですね。[ruby-core:62150]
> そして、その理由があったとしても、API としては statvfs という名前にして、
> ...
うーん... -
12:09 PM Revision 60375cd6 (git): parse.y: use rb_str_ellipsize
- * parse.y (next_id): use rb_str_ellipsize to preserve encoding and
get rid of incomplete multibyte sequence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:58 AM Revision ca319081 (git): * gc.c (gc_after_sweep): suppress unnecessary expanding heap.
- Tomb heap pages are freed pages here, so expanding heap is
not required.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:34 AM Bug #9759: [TracePoint API] return event missing when raising exception
- Thanks!! So happy that this got fixed!! I hope it'll be added to 2.1 too.
-
09:18 AM Bug #9759: [TracePoint API] return event missing when raising exception
- It can be reproduced by the following code:
```
class C9759
define_method(:foo){
raise
}
end
events = []
obj = C9759.new
TracePoint.new(:call, :return){|tp|
events << [tp.event, tp.method_id]
... -
09:08 AM Bug #9759 (Closed): [TracePoint API] return event missing when raising exception
- Applied in changeset r45758.
----------
* vm.c (invoke_block_from_c): add VM_FRAME_FLAG_BMETHOD to record
it is bmethod frame.
* vm.c (vm_exec): invoke RUBY_EVENT_RETURN event if rollbacked frame
is VM_FRAME_FLAG_BMETHOD.
[Bug #97... -
09:11 AM Revision 751a8dce (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:08 AM Revision ba6b0acd (git): * vm.c (invoke_block_from_c): add VM_FRAME_FLAG_BMETHOD to record
- it is bmethod frame.
* vm.c (vm_exec): invoke RUBY_EVENT_RETURN event if rollbacked frame
is VM_FRAME_FLAG_BMETHOD.
[Bug #9759]
* test/ruby/test_settracefunc.rb: add a test for TracePoint/set_trace_func.
* vm_core.h: renmae rb_thread... - 08:06 AM Revision 9873f990 (git): * 2014-04-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:06 AM Revision 48384bba (git): parse.y: pin down dynamic symbol only
- * parse.y (rb_id_attrset): pin down dynamic symbol only. it is
possibe that attrset ID can be registered as a static symbol
after the corresponding attrget ID has been registered as a
dynamic, and then the latter may be collected.
... -
07:50 AM Bug #9560: Backport fix for: "SimpleDelegator, a wrapped object with an open method and send" from 2.1 to 2.0
- oops, it's reverted on ruby_2_0_0 because of incompatibility...
-
06:33 AM Bug #9560: Backport fix for: "SimpleDelegator, a wrapped object with an open method and send" from 2.1 to 2.0
- backported r43682 (test), r43727 (test), r43752 and r43759 into ruby_2_0_0 at r45747.
# note: also implement assert_raise_with_message for these tests. - 07:45 AM Revision 03da71a9 (git): revert r45747 because it introduced severe incompatibility.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:40 AM Bug #9702: r45488以降、SolarisStudioで ext/readline がコンパイルエラー(readline 6.2使用)
- backported into ruby_2_0_0 at r45754.
- 07:39 AM Revision da20411b (git): merge revision(s) 45518: [Backport #9702]
- * ext/readline/extconf.rb (rl_hook_func_t): check pointer type.
[ruby-dev:48089] [Bug #9702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:38 AM Bug #9688: Ruby's child process inherits parent's sockets (mswin)
- backported into ruby_2_0_0 at r45753.
- 07:37 AM Revision e6c3b9cd (git): merge revision(s) 45471: [Backport #9688]
- * win32/win32.c (rb_w32_accept, open_ifs_socket, socketpair_internal):
reset inherit flag of socket to avoid unintentional inheritance of
socket. note that the return value of SetHandleInformation() is not
... -
07:35 AM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
- backported r45364, r45395, r45396, r45403 and r45406 into ruby_2_0_0 at r45752.
- 07:34 AM Revision fdec8bb0 (git): merge revision(s) 45364,45395,45396,45403,45406: [Backport #9652]
- * time.c (time_mload): freeze and preserve marshal-loaded time zone
* test/ruby/test_time.rb: add test for GC on loaded object
[Bug #9652]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45752 b2dd03c... -
07:30 AM Bug #9656: check for -fno-defer-pop option in ext/dl/extconf.rb
- backported into ruby_2_0_0 at r45751.
- 07:29 AM Revision 29fdecfe (git): merge revision(s) 45365: [Backport #9656]
- dl/extconf.rb: check for -fno-defer-pop option
* ext/dl/extconf.rb: check for -fno-defer-pop option, since clang
5.1 no longer support -fno-defer-pop option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@457... -
07:27 AM Bug #9475: Behavior change with include + super + alias_method between 1.9.x and 2.x
- backported r45367, r45387, r45388 and r45389 into ruby_2_0_0 at r45750.
- 07:26 AM Revision 0b9f0164 (git): merge revision(s) 45367,45387,45388,45389: [Backport #9475]
- * vm_method.c (rb_method_entry_get_without_cache): me->klass is 0
for a method aliased in a module. [ruby-core:61636] [Bug #9663]
* vm_method.c (rb_method_entry_get_without_cache): get rid of
infinite recursion at aliases in a subc... - 07:18 AM Revision 16a10e0a (git): missed at previous commit.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:10 AM Bug #9622: Extra method arguments are magically swallowed after first successful call, possible method cache bug
- backported into ruby_2_0_0 at r45748.
- 07:09 AM Revision 13ed57b4 (git): merge revision(s) 45320,45321: [Backport #9622]
- * vm_insnhelper.c (vm_callee_setup_arg): turn a macro into an
inline function.
* vm_insnhelper.c (vm_callee_setup_arg): disable fastpath if splat
argument, since argc may differ for each calls.
[rub... -
07:02 AM Bug #9525: Stuck with Socket.pack_sockaddr_in
- memo: related commits: 45046,45047,45063,45087,45150,45151,45152
- 06:32 AM Revision 20d4a375 (git): merge revision(s) 43682,43727,43752,43759: [Backport #9560]
- * lib/delegate.rb (Delegator#send): override to get rid of global function interference.
[Fixes GH-449]
* lib/delegate.rb (Delegator#send): separate from method_missing so
that super calls proper method.
... - 06:04 AM Revision a2542330 (git): merge revision(s) 45488: [Backport #9631]
- * ext/readline/extconf.rb: fix typo, `$defs` not `$DEFS`.
[ruby-core:61756] [Bug #9578]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:00 AM Bug #9763 (Third Party's Issue): Windows上のirbで「金」と入力できない
-
02:26 AM Bug #9763: Windows上のirbで「金」と入力できない
- This issue is not a bug of ruby or irb but a bug of rb-readline library.
I fixed this bug in https://github.com/phasis68/rb-readline.
You can try with https://github.com/phasis68/rb-readline/archive/master.zip
If you have issues a... -
04:19 AM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
- MVM branch has incomplete per-thread cwd, some methods are not implemented however, e.g., `File#rename`.
-
02:01 AM Feature #9786 (Rejected): refinement & map(&:refinement_method) does not work
- Refinements does affects to the current scope only.
And `Symbol#to_proc` is independent from the callers' context.
A block works as you expect:
~~~ruby
puts a.map {|x| x.add_z}
~~~
04/29/2014
-
10:27 PM Bug #9787 (Closed): r45698 causes a segv in Rails tests
- I haven't been able to reduce the reproduction code yet, but r45698 introduced a segv. If you need any other info than what I've provided below, please let me know!
Here is the backtrace from the debugger:
~~~
(lldb) bt
* thread... -
09:26 PM Bug #9592: Fix segfault with old OpenSSL
- Nobuyoshi Nakada wrote:
> I suspect it occurs only with very old version OpenSSL, I can't reproduce it on other platforms at least.
Yes, Heroku is running OpenSSL 0.9.8k 25 Mar 2009 on their Cedar stack.
(heroku run openssl version)... -
02:25 AM Bug #9592: Fix segfault with old OpenSSL
- I suspect it occurs only with very old version OpenSSL, I can't reproduce it on other platforms at least.
It is planned to backport to 2.1, and the next 2.1 will be 2.1.2.
-
07:10 PM Feature #9777: Feature Proposal: Proc#to_lambda
- I find that using `throw` is useful in the situation you describe. It gives a nice explicit message about what's going: it's like a multi-level return to the point where you want to `catch` it.
-
07:02 PM Feature #9777: Feature Proposal: Proc#to_lambda
- Andrew Vit wrote:
> Would it work to just wrap it inside a lambda to get the semantics you want?
Like `lambda &proc`? That would be fine. As Nobu mentioned Proc and lambda behave differently, sometimes I want control over the behavio... -
04:20 PM Feature #9777: Feature Proposal: Proc#to_lambda
- Would it work to just wrap it inside a lambda to get the semantics you want?
-
12:36 AM Feature #9777: Feature Proposal: Proc#to_lambda
- `return` in a proc exits the defined method, unless it has returned already.
Turning a proc into a lambda disappoints that expectation.
It doesn't feel a good idea. -
06:57 PM Feature #9786 (Rejected): refinement & map(&:refinement_method) does not work
- Greetings!
Thank you for your hard work on ruby, I love the language.
I encountered an oddity, in which, I expected a refinement to be available and it wasn't.
Here is the sample code using: ruby 2.1.1p76 (2014-02-24 revision 45... -
04:49 PM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
- richard.schneeman@gmail.com wrote:
> It's come to my attention that this is fairly hardcoded into the OS
> (changing CWD is a per-process operation rather than a per-thread
> one). I do not have a proposed implementation for how to c... -
03:38 PM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
- If forking is an option for you, it would allow you to use chdir blocks the way you want I think.
-
03:24 PM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
- It's come to my attention that this is fairly hardcoded into the OS (changing CWD is a per-process operation rather than a per-thread one). I do not have a proposed implementation for how to change directory within a thread, perhaps we c...
-
02:13 PM Feature #9785 (Rejected): Feature Proposal: Dir.chdir Thread Safety
- I am proposing that `Dir.chdir` with a block be local to the current thread and any threads that are created inside of that block. `FileUtils.cd` and `FileUtils.chdir` should also behave the same way.
Currently `Dir.chdir` will chang... -
02:06 PM Bug #9759: [TracePoint API] return event missing when raising exception
- Bump, @ko1?
-
01:27 PM Bug #9189: Build failure on Windows in case of nonascii TEMP environment.
- I still failed to build trunk.
~~~
C:\work\ruby-2.2.0-r45738>nmake
...
generating psych-x64-mswin64_120.def
compiling psych.c
psych.c
compiling psych_emitter.c
psych_emitter.c
compiling psych_parser.c
psych_parser.c
compilin... -
08:42 AM Revision b6d7233d (git): fix style of ChangeLog
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:29 AM Feature #9783: [PATCH] Add Method#curry
- Updated the patch with documentation. There's an interesting side effect to be considered. `Method#to_proc` returns a lambda that checks its arity. `Proc#curry` takes an optional `arity` argument. If this doesn't match the method's arity...
-
05:39 AM Feature #9783 (Closed): [PATCH] Add Method#curry
- There is already Proc#curry, but to curry a method you need to go through to_proc. This patch adds `Method#curry` which delegates to `method.to_proc.curry`.
Looking forward to seeing this discussed. -
05:42 AM Feature #9784 (Open): Alias URI#merge to URI#join
- To make Pathname and URI more consistent, it would be great to have a `join` instance method that behaves like `Pathname#join`. This could be a simple alias of `URI#merge`.
-
05:28 AM Bug #9782: Array#bsearch skip first match while using block with complex condition
- .
Understood. Thanks for explanation. -
05:14 AM Bug #9782 (Rejected): Array#bsearch skip first match while using block with complex condition
- Array#bsearch is binary search; it works correctly *only when* the array is sorted.
In other words, "ary.map { cond }" must return [false, false, ..., false, true, true, ..., true] if you want to use "ary.bsearch { cond }".
> [{a:1, ... -
04:19 AM Bug #9782: Array#bsearch skip first match while using block with complex condition
- More accurate description: Array#bsearch cannot find first match while using block with equality condition:
Example:
$ irb
2.1.1 :001 > [1, 2].bsearch{|x| x == 1}
=> nil
(WRONG, expected 1)
2.1.1 :002 > [1, 2].bsearch{|x| x > 0... -
04:09 AM Bug #9782 (Rejected): Array#bsearch skip first match while using block with complex condition
- Description: Array#bsearch cannot find first match when using block with condition by hash key.
Example:
$ irb
2.1.1 :001 > [{a:1, b:2}, {a:3, b:4}].bsearch{|x| x[:a] == 1}
=> nil
(WRONG, expected {a:1, b:2})
2.1.1 :002 > [{a:3... -
05:19 AM Revision 07f25637 (git): * (lib/tmpdir.rb): Rescue LoadError on etc.so for miniruby.
- Revert r45707, r45711, r45717.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:24 AM Feature #9781: Feature Proposal: Method#super_method - I would also find this feature very useful when debugging large code bases with complicated class/module hierarchies.
-
01:59 AM Feature #9781: Feature Proposal: Method#super_method
- A patch.
No tests yet.
~~~diff
diff --git a/proc.c b/proc.c
index 8153cc9..d1db478 100644
--- a/proc.c
+++ b/proc.c
@@ -1481,11 +1481,17 @@ method_owner(VALUE obj)
return defined_class;
}
-void
-rb_method_name_error... -
03:51 AM Revision 17a4a9b9 (git): * lib/fileutils.rb: Don't need to define fu_get_gid and fu_get_gid in
- rescue LoadError on 'etc'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:35 AM Revision cce5fe1a (git): * test/ruby/test_symbol.rb (TestSymbol#test_symbol_gc_1): fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:25 AM Revision 0f51db6a (git): * parse.y (symbols_i): like r45492, call rb_gc_resurrect().
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e