Activity
From 09/18/2012 to 09/24/2012
09/24/2012
-
11:58 PM Feature #7035 (Closed): defined? should return cached, frozen strings
- Thank you Yui NARUSE, r37026 solved the error.
Closing this now. -
08:47 PM Feature #7035 (Assigned): defined? should return cached, frozen strings
- =begin
Hello Nobu,
I'm seeing this failing on both i386-mingw32 and x86-mingw32:
2) Error:
test_defined_impl_specific(TestDefined):
ArgumentError: wrong number of arguments (1 for 0)
C:/Users/Worker/Jenkins/workspace/... -
05:36 PM Feature #7035 (Closed): defined? should return cached, frozen strings
- This issue was solved with changeset r37025.
Charles, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Feature #7035
* compile.c (defined_expr), insns.def (defined)... - 11:18 PM Revision 80440ed0 (git): * 2012-09-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:17 PM Revision 2eadff34 (git): * iseq.c (rb_iseq_defined_string): the index of defined_strings must
- be the value of type - 1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:10 PM Revision 418bbce8 (git): use assert_predicate for unary operator
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:30 AM Bug #7045 (Closed): DelegateClass array subtraction
- > I'm not sure that explains it. The first and third tests pass
Sorry, I didn't focus on the other tests. So the reason the first and third test pass is that Hash lookup uses `hash` and `eql?`, except that if the objects are the same ... -
09:53 AM Feature #7055 (Rejected): Allow `.foo=` as a synonym of `self.foo=`
- Closing this suggestion, as this would be a compatibility nightmare.
-
01:23 AM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
- I've thought a bit more about this, and in my opinion, using the "empty dot" to continue the previous line is a waste of notation.
-
09:33 AM Bug #7061 (Closed): Privacy issue: Please change the registration page to indicate 'Login Name' will be visible to all as in a 'User Name'
- > The registration form did not indicate that this would actually be my 'User Name' and visible to all.
Usually login name is not private information.
> ...
done. -
03:13 AM Bug #7061 (Closed): Privacy issue: Please change the registration page to indicate 'Login Name' will be visible to all as in a 'User Name'
- I just registered to report my first bug.
I registered my 'Login Name' as my email.
The registration form did not indicate that this would actually be my 'User Name' and visible to all.
There appears to be no place in 'My Acco... -
08:36 AM Revision 2314b80d (git): Feature #7035
- * compile.c (defined_expr), insns.def (defined): share single frozen
strings. [EXPERIMENTAL] [ruby-core:47558][Feature #7035]
* iseq.c (rb_iseq_defined_string): make expression strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru... -
07:34 AM Revision 0414c9b9 (git): merge revision(s) 36522: [Backport #7016]
- * include/ruby/win32.h (rb_w32_pow): add new function.
We use powl() instead of broken pow() for x64-mingw32. This workaround
fixes test failures related to floating point numeric.
[ruby-core:46686] [Bug #67... -
04:46 AM Bug #7062 (Closed): Rdoc for String#=~
- =begin
This patch clarifies the different behaviour for str =~ regexp and regexp =~ str regarding captured strings and assigning to local variables. (See also issue #7042.)
Added text:
Note: -
04:24 AM Bug #7042: String#=~ is not equal to Regexp#=~
- =begin
...and further down in the Regexp docs:
"This assignment is implemented in the Ruby parser. The parser detects ‘regexp-literal =~ expression’ for the assignment. The regexp must be a literal without interpolation and placed at... -
03:10 AM Feature #7060 (Open): Broaden support for chmod
- Currently file permission bit features in all Ruby versions include only chmod and (if supported by the target platform's C library) lchmod. lchmod is not supported by all platforms, but where it is not the Posix function fchmodat usuall...
-
03:03 AM Bug #7059 (Third Party's Issue): rb_name_err_mesg_new at shut down appears to cause: [BUG] object allocation during garbage collection phase
- On shut down of a long running app, a rb_name_err_mesg_new appears to be causing a "object allocation during garbage collection"
It pops up a Windows 7 crash window which says the error is in msvcrt-ruby.dll
I'm using WxRuby to cre... -
02:23 AM Revision 8ac52a95 (git): * tool/merger.rb: add --ticket option to add ticket number.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:39 AM Revision 5841efa3 (git): merge revision(s) 36508: [Backport #7015]
- * test/win32ole/test_win32ole_method.rb (is_ruby64?): Correct platform
used to identify mingw-w64 (x64-mingw32). Patch by Hiroshi Shirosaki.
[ruby-core:46651][Bug #6782]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/b... -
01:38 AM Revision e518f1dd (git): merge revision(s) 36247: [Backport #7014]
- * lib/test/unit/parallel.rb: workaround fix for rubygems.
RubyGems can't find rake if the source directory is not equal to
the directory which is running the test. [Bug #6604]
git-svn-id: svn+ssh://ci.ruby-lang.org/... -
01:18 AM Revision a7353f69 (git): enum.c: id_call
- * enum.c (enum_find): use id_call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:16 AM Revision 96e4afdb (git): * 2012-09-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:16 AM Revision 8a3856dc (git): enum.c: id_call
- * enum.c (id_call): intern first and share.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
09/23/2012
-
11:19 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
- ... although I guess there is no real use-case for the continuing dot with a method ending with "=", so it might be possible to distinguish them.
-
11:14 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
- alexeymuranov (Alexey Muranov) wrote:
> [...] it does not just use the previous statement value as the receiver, it in fact continues the previous line, which can also be done by leaving the dot on the previous line.
Yes, indeed, my wor... -
09:42 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
- Thanks, I didn't know about this!
However, this use of a beginning dot does not excite me: it does not just use the previous statement value as the receiver, it in fact continues the previous line, which can also be done by leaving t... -
08:06 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
- It would collide with existing notation:
h = {}
.default = 3
p h # => 3
A dot beginning a line in 1.9 uses the previous statement as a receiver. -
05:25 PM Feature #7055 (Rejected): Allow `.foo=` as a synonym of `self.foo=`
- =begin
I propose to make the use of `self` in method calls optional:
.foo = 'bar'
instead of
self.foo = 'bar'
This only matters of course for assignment methods, to distinguish a method call from creating or setting a lo... -
10:40 PM Bug #7042: String#=~ is not equal to Regexp#=~
- =begin
From the documentation for Regexp:
"When named capture groups are used with a literal regexp on the left-hand side of an expression and the =~ operator, the captured text is also assigned to local variables with corresponding ... -
09:52 PM Bug #7036 (Closed): Compiling extensions with Ruby in a path with spaces
- This issue was solved with changeset r37017.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
mkmf.rb: unspace
* lib/mkmf.rb (String#unspace): unescape with b... -
03:46 PM Feature #7051: Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
- also, lineno seems a bit of an odd name, should it be line_number?
-
03:43 PM Feature #7051 (Closed): Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
- The new caller_locations api allows one to get label, base_label, path, lineno, absolute_path.
I feel this API should be extended some what and cleaned up a bit.
1. I think there should be complete parity with caller and backtrac... -
12:52 PM Revision aed254f3 (git): mkmf.rb: unspace
- * lib/mkmf.rb (String#unspace): unescape with backslashes. normal
makes need to escape spaces with backslashes. nmake is not the
case. [Bug #7036]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37017 b2dd03c8-39d4-4d8f-98ff-82... -
12:48 PM Revision ba3d6005 (git): mkmf.rb: directory timestamp
- * lib/mkmf.rb (create_makefile): use timestamp file dependencies for
directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:46 PM Revision 9f4f1545 (git): mkmf.rb: unexpand macros
- * lib/mkmf.rb: unexpand macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:45 PM Revision 255e1b05 (git): mkmf.rb: library path quote
- * lib/mkmf.rb (LIBPATHFLAG): no needs to escape library path here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:44 PM Revision de9093ad (git): mkmf.rb: use internal path
- * lib/mkmf.rb (MakeMakefile#configuration): make prefix paths
internal to deal with in Makefile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:42 PM Revision 87fe2bfd (git): mkmf.rb: fallback mkintpath
- * lib/mkmf.rb (MakeMakefile#mkintpath): not a global function now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:09 AM Bug #7050: encoding of String#unpack for 'H', 'h', 'B' and 'b'
- I would of course also add Aaron's test for SecureRandom hexdigests if this is fine to be merged.
-
05:03 AM Bug #7050 (Closed): encoding of String#unpack for 'H', 'h', 'B' and 'b'
- Originally mentioned in #6799, I think the encoding of the resulting Strings for the 'H', 'h', 'B' and 'b' directives of String#unpack should be encoded in US-ASCII, because they will always contain 0-9a-f (0-1 for 'B','b') chars.
Th... -
02:58 AM Feature #6637: Add HTML5 support to CGI
- =begin
Hi Takeyuki,
have you come to any conclusions?
In case you consider support of all new HTML5 tags,
including <header>, I would be willing to provide
a new set of patches:
- first patch to rename `CGI#header` to `CGI#ht... -
01:12 AM
Bug #7045: DelegateClass array subtraction
- This seems like a duplicate of http://bugs.ruby-lang.org/issues/6408. Not sure how to close this, but it can be closed.
09/22/2012
-
08:59 PM Feature #5481: Gemifying Ruby standard library
- Thanks for your reply.
> I did the presentation at the last dev meeting and I think I/we need to clarify a part of the proposal for blessing from Matz.
OK. I'll wait for the answer of it.
There is another question. Could you show ... - 05:36 PM Revision ca7ffa34 (git): * 2012-09-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:36 PM Revision 63f6cda8 (git): * complex.c: Fix examples of r36993.
- Keep the simple definition, mathematics define the result.
Based on patch by Robin Dupret. Fixes #188 on github.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:45 PM Bug #6822: Race Condition with Fiber and Process
- ko1 (Koichi Sasada) wrote:
> No. You don't need Mutex at all.
> ...
Now I'm confused. How would I write the example code without getting the FiberErrors? Since I have no control over when a child process exits, I can't control when... -
02:29 PM Bug #6822: Race Condition with Fiber and Process
- (2012/09/21 22:14), MartinBosslet (Martin Bosslet) wrote:
>
> Issue #6822 has been updated by MartinBosslet (Martin Bosslet).
>
>
> ko1 (Koichi Sasada) wrote:
>> In general, you can sync with variables because Fibers are ... -
02:14 PM Bug #6822: Race Condition with Fiber and Process
- ko1 (Koichi Sasada) wrote:
> In general, you can sync with variables because Fibers are not changed automatically. In other words, you can completely control Fiber transition.
Thanks for looking into this. With your input, I found a... -
07:44 AM Bug #6822 (Closed): Race Condition with Fiber and Process
- In general, you can sync with variables because Fibers are not changed automatically. In other words, you can completely control Fiber transition.
-
02:57 PM Feature #7047 (Closed): Add new C API: rb_newobj_with
- nariです。
現在のCRubyではオブジェクトを割り当てる際に rb_newobj() という関数を利
用していますが、引数にtypeやklassがないため、たとえばT_STRINGだけ違うと
ころに割り当てるなどの特別な処理がやりづらくなっています。
そこで以下のC APIの追加を提案します。
* VALUE rb_newobj_with(VALUE, enum ruby_value_type);
* #define NEWOBJ_WIT... -
01:23 PM Bug #4911: timer_thread_function() が thead unsafe
- (2012/09/21 17:44), kosaki (Motohiro KOSAKI) wrote:
> で、Comment#4のパッチだと残念なことにタイマースレッドとスレッド解放ルートに共通のロックがないため、グローバル変数に代入してもメモリバリア的な意味でthread_free() からは可視にならなさそう
うーん,なるほど.
真面目に mutex で囲いますかねぇ.それ以外の冴えたやり方はないかなぁ.
別に,ここでオーバヘッドになること... -
09:44 AM Bug #4911: timer_thread_function() が thead unsafe
- で、Comment#4のパッチだと残念なことにタイマースレッドとスレッド解放ルートに共通のロックがないため、グローバル変数に代入してもメモリバリア的な意味でthread_free() からは可視にならなさそう
-
09:41 AM Bug #4911: timer_thread_function() が thead unsafe
- > 問題はわかったのですが,
> ...
あ、しまった。放置しすぎていてコンテキストスイッチだけを救うパッチを書いってしまった。本当に問題なのはスイッチ元のスレッドがfreeされていてメモリ破壊に至るケースなのでおっしゃるとおり考慮不足です
-
07:32 AM Bug #4911: timer_thread_function() が thead unsafe
- (2012/09/21 15:10), ko1 (Koichi Sasada) wrote:
> では,どうやって解決するかというと難しいですね.タイマスレッドが動いている間は free しない,とか,そういうのになりそうな感じ.
勘で書いてみたんですが,こんな感じでしょうか.再現が出来なさそうなので,
テストの書きようが無さそう.
Index: vm_core.h
================================... -
07:10 AM Bug #4911: timer_thread_function() が thead unsafe
- 問題はわかったのですが,
これがどうして解決するのかわかりません.
(結局,+ if (!vm->running_thread->yielding) の部分で running_thread を触っているように見える)
解説してもらえないでしょうか.
----
では,どうやって解決するかというと難しいですね.タイマスレッドが動いている間は free しない,とか,そういうのになりそうな感じ.
-
09:40 AM Bug #4559: Proc#== does not match the documented behaviour
- To solve this ticket, I only need to remove Proc#== from proc.c, isn't it?
-
09:23 AM Feature #4328 (Closed): export rb_thread_call_with_gvl()
- Now we have include/ruby/thread.h: void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1);
-
09:14 AM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
- I don't follow all of discussion about it, this is solved by [ruby-trunk - Feature #6762]?
-
09:05 AM Feature #4085: Refinements and nested methods
- Any problem now?
-
09:02 AM Feature #3944 (Feedback): Add Fiber#root? method
-
09:00 AM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
- ping.
-
08:54 AM Feature #2674: RubyVM::InstructionSequence to accept IOs
- 前も書いたけど特に意見はないのでてきとうに入れといてもらってもいいでしょうか.
-
07:22 AM
Bug #7045: DelegateClass array subtraction
- I'm not sure that explains it. The first and third tests pass, and all of them used to pass in 1.8.
-
03:41 AM Bug #7045: DelegateClass array subtraction
- The issue is that most classes' method `eql?` return false unless the object has the same class
require 'delegate'
o = SimpleDelegator.new(42)
o.eql?(o) # => false
# because the eql? is delegated, and
42.eql?(o... -
02:56 AM
Bug #7045: DelegateClass array subtraction
- The failing test is "test_nested_array_subtraction"
-
02:56 AM
Bug #7045 (Closed): DelegateClass array subtraction
- When I have an array that contains an array that contains a single instance of a class that inherits from DelegateClass, and I subtract from that array another array containing another array containing the same nested object, Ruby does n...
-
12:26 AM Bug #7044 (Closed): BigDecimal#power randomly raises coercion errors
- When running the following code:
require 'bigdecimal'
10000.times { BigDecimal.new('1001.10')**0.75; putc '.' }
The call to ** will sometimes (not always) raise the following trace:
..................................
09/21/2012
-
11:35 PM Feature #5481: Gemifying Ruby standard library
- Kou, thanks for the cooperation. We would need your help soon.
kou (Kouhei Sutou) wrote:
> NaHi, could you tell us status of this work?
I did the presentation at the last dev meeting and I think I/we need to clarify a part of the ... - 10:15 PM Revision f9ff1505 (git): * 2012-09-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:15 PM Revision e4ac8fa2 (git): * ext/ripper/lib/ripper.rb:
- Match sample output to Ripper.sexp from current trunk version.
[Bug #6929]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:12 PM Bug #7043: bug with Require
- hm, i found a difference "./"
ruby ./a/bins/bin.rb
OK
ruby a/bins/bin.rb
/home/kostya/.rvm/rubies/ruby-1.9.3-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- a/bins/../env (LoadEr... -
09:51 PM Bug #7043 (Rejected): bug with Require
- ~/projects/a/bins/bin.rb
~/projects/a/env.rb
cat ~/projects/a/bins/bin.rb
require File.join(File.dirname(__FILE__), %w{.. env})
cd ~/projects
ruby a/bins/bin.rb
/home/kostya/.rvm/rubies/ruby-1.9.3-head/lib/ruby/site_ruby/1.9.1... -
02:00 PM Bug #7042 (Rejected): String#=~ is not equal to Regexp#=~
- i found out that string =~ regexp is not equal to regexp =~ string
when you use named captures:
"6:15 PM" =~ /(?<hour>\d+):(?<minute>\d+) (?<pm>A|P)M/; p hour,minute,pm # works not
/(?<hour>\d+):(?<minute>\d+) (?<pm>A|P)M/ =~ "6:15 ... -
10:53 AM Revision 01865d5b (git): merge revision(s) 35485: [Backport #7013]
- * ext/dl/cfunc.c (rb_dlcfunc_call): should convert a Bignum value to
unsigned long long on Win64.
[ruby-core:44636][Bug #6364] reported by [email protected] (ray linn)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra... -
09:45 AM Revision a0a7608b (git): merge revision(s) 33989:["7012"]
- * include/ruby/win32.h: undef stat to silence mingw-w64 stat
redefinition warnings (GCC 4.6.3).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:55 AM Revision 9b6f7d38 (git): merge revision(s) 33830: [Backport #7011]
- * configure.in: add -Wall always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:29 AM Feature #7022: add event hook for garbage collection
- I looked into this on JRuby/JVM last night, and found that they have
recently added a nonstandard API for getting GC notifications as they
happen. And they happen *after* the GC has occurred. They're
informational.
Would be neat t... -
12:57 AM Bug #6929: Documentation for Ripper
- nagachika: That is correct. I just tried again on ruby-trunk, there are 6 +nil+s
-
12:45 AM Bug #6929: Documentation for Ripper
- Hello,
In r36992, sample output from Ripper.sexp seems not from current trunk version. doesn't it?
-# [:params, [[:@ident, "world", [1, 10]]], nil, nil, nil, nil]],
+# [:params, [[:@ident, "world", [1, 10]]... - 12:35 AM Revision 523290ac (git): * 2012-09-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:35 AM Revision ecc80b3c (git): mkmf.rb: untabify
- * lib/mkmf.rb: untabify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
09/20/2012
-
11:16 PM Bug #7041 (Closed): Memory leak in Mutex
- This issue was solved with changeset r37001.
Stanislav, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread_pthread.c (native_cond_initialize): destroy condatt... -
10:54 PM Bug #7041: Memory leak in Mutex
- good catch.
-
04:28 PM Bug #7041 (Assigned): Memory leak in Mutex
-
04:22 PM Bug #7041: Memory leak in Mutex
- Ruby does not destroy pthread condattr structure after allocating and using it in pthread_thread.c:native_cond_initialize().
This causes a memory leak that can be demonstrated by the following snipplet:
loop do
Mutex.new
... -
04:20 PM Bug #7041 (Closed): Memory leak in Mutex
- =begin
Ruby does not destroy pthread condattr structure after allocating and using it in pthread_thread.c:native_cond_initialize().
This causes a memory leak that can be demonstrated by the following snipplet:
loop do
M... -
03:26 PM Bug #7036: Compiling extensions with Ruby in a path with spaces
- Nobu,
Looking at some of the changes you did couldn't understand entirely, but understood that $extmk gets set only when building from extmk.rb, which gave me the idea of the new patch I'm attaching.
This new patch set LIBPATHFLAG ... -
02:22 PM Bug #7036: Compiling extensions with Ruby in a path with spaces
- =begin
nobu (Nobuyoshi Nakada) wrote:
> Now trying: https://github.com/ruby/ruby/pull/185
Thank you Nobu, but the patch to mkmf do not solve quote of $ruby:
V:\User Name\json-1.7.5\ext\json\ext\generator>make
generating genera... -
01:38 AM Bug #7036: Compiling extensions with Ruby in a path with spaces
- Now trying: https://github.com/ruby/ruby/pull/185
-
01:25 AM Bug #7036: Compiling extensions with Ruby in a path with spaces
- nobu (Nobuyoshi Nakada) wrote:
> Does your patch work to compile an extension library after installing in a directory with spaces?
Yes, the patch attached solves the linking issue.
By quoting $ruby after installing in mkmf also so... -
12:48 AM Bug #7036: Compiling extensions with Ruby in a path with spaces
- Does your patch work to compile an extension library after installing in a directory with spaces?
-
02:34 PM Revision 3ae3c424 (git): * thread_pthread.c (native_cond_initialize): destroy condattr
- after using it. Patch by Stanislav Sedov. Thank you.
[Bug #7041] [ruby-core:47619]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:33 PM Bug #6246 (Closed): 1.9.3-p125 intermittent segfault
- Hi!
I think ruby-1.9.3-p194 fixed this bug.
if you see the crash with ruby-1.9.3-p194, please reopen this ticket.
Thanks. -
02:16 PM Revision d9dfe2e5 (git): * thread_pthread.c (native_cond_initialize): destroy condattr
- after using it. Patch by Stanislav Sedov. Thank you.
[Bug #7041] [ruby-core:47619]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:15 PM Revision 187d2bc1 (git): * thread_pthread.c (native_cond_initialize): clean up #ifdef condition.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:06 PM Bug #6441 (Rejected): IO.pipe on ENFILE
- 私の環境でも調べて見ましたが、近永さんからご報告いただいたいのと同じ状況で、ゴミ参照が残っていて ulimit で絞り過ぎると落ちるみたいでした。
これは仕方ないかなぁと思います。
追加の情報などがあればreopenをお願いします。 -
11:57 AM Bug #7040: gem install で特定の gem がインストールできない
- Hello,
I'd like to switch to ruby-core, but I don't know how to do it on redmine...
Anyway, I've found that zstream_run_func() leaks Z_BUF_ERROR because inflate() could return Z_BUF_ERROR even when z->stream.avail_out > 0.
My tiny patc... -
10:29 AM Bug #7040 (Closed): gem install で特定の gem がインストールできない
- trunk で特定の gem(例えば libv8等)をインストールしようとすると必ず失敗してしまいます。
% gem i libv8
ERROR: While executing gem ... (Zlib::BufError)
buffer error
Twitter 上で nagachika さんから Zlib の GVL 対応?が原因ではないかとコメントを頂きましたが、上記のエラー表示以降は調査しきれていません。
-
11:38 AM Bug #7037: float formatting inconsistently rounds half to even
- I would agree with leaving this behavior unspecified. Our behavior also matches underlying platform.
-
10:55 AM Bug #7037 (Assigned): float formatting inconsistently rounds half to even
- Anyway I'm assigning this to matz, as it turned out to be a spec issue. How do you feel matz?
-
10:52 AM Bug #7037: float formatting inconsistently rounds half to even
- It seems Ruby is just following C here.
zsh % cat tmp.c
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("%1.1f\n", 1.05);
printf("%1.1f\n", 1.15);
printf("%1.1f\n", 1.25);
printf("%1.1f\n", 1.35)... -
10:18 AM Bug #7037: float formatting inconsistently rounds half to even
- Oh, and if we agree that rounding for float formatting is implementation-defined (like rounding for arithmetic, according to the spec), then JRuby and MRI differ on the rounding results of 1.15, 1.25, 1.45, 1.65, and 1.95 would fail to m...
-
10:15 AM Bug #7037: float formatting inconsistently rounds half to even
- The only definition I could find is a sideways use of "processor" to mean "Ruby processor", as in a Ruby language processor, i.e. a Ruby implementation. So... "the underlying platform of a conforming processor" would be the JVM, so it's ...
-
09:58 AM Bug #7037: float formatting inconsistently rounds half to even
- If we want to go by the letter of the spec (and I may have an older copy...please confirm), it says "if the underlying platform of a conforming processor supports IEC 60559:1989" the representation shall be that representation. I need to...
-
07:56 AM Bug #7037: float formatting inconsistently rounds half to even
- headius (Charles Nutter) wrote:
> * Is strict IEEE 754 floating-point precision a specified behavior of Ruby?
ISO Ruby says floating point should follow ISO/IEC/IEEE 60559 (IEEE 754).
Anyway, did you see https://github.com/jruby/j... -
01:04 AM Bug #7037: float formatting inconsistently rounds half to even
- Ok, I can buy the precision argument, and it fits if I expand my example to all values of 1.x5:
irb(main):002:0> "%1.1f" % 1.05
=> "1.1"
irb(main):003:0> "%1.1f" % 1.15
=> "1.1"
irb(main):004:0> "%1.1f" % 1.25
=> "1.2"
irb(main)... -
10:45 AM Feature #6530 (Closed): Improve Racc documentation coverage
- Closing in favor of github pull request for racc:
https://github.com/tenderlove/racc/pull/10 -
10:32 AM Bug #7027: Tempfile#inspect is Confusing
- In my opinion, Tempfile should not use Delegator at all.
In JRuby, Tempfile actually is a File.
irb(main):001:0> require 'tempfile'
=> true
irb(main):002:0> t = Tempfile.new('blah')
=> #<Tempfile:/var/folders/9j/yc18czps1x7cbsz7... -
12:51 AM Bug #7027: Tempfile#inspect is Confusing
- in my opinion Delegator should be improved
so it shows that its a Tempfile, but is_a? should also show that its a File or IO -
10:21 AM Feature #6648: Provide a standard API for retrieving all command-line flags passed to Ruby
- I was mistaken...it is ARGF, not ARGV that is a special class. ARGV is a normal array.
Another option: ENV, which is a special Hash-like class. ENV.vm_args, ENV.script, and ENV.script_args aren't bad. -
08:05 AM Revision 025a2479 (git): * lib/drb/ssl.rb (DRb::DRbSSLSocket::SSLConfig::DEFAULT): add
- SSLTmpDhCallback for configuration option.
* lib/drb/ssl.rb (setup_ssl_context): copy the value of tmp_dh_callback.
* test/drb/ut_array_drbssl.rb: set tmp_dh_callback to suppress warning.
* test/drb/ut_drb_drbssl.rb: ditto.
git-svn-i... -
08:05 AM Revision 796700ac (git): check @there if it is nil to prevent infinite loop
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:14 AM Revision 4e195e0f (git): Revert r36994 "* lib/find.rb: Error in documentation example"
- * lib/find.rb: revert wrong example.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:07 AM Bug #6880 (Closed): csv: nodoc native classes Object, String and Array
- This issue was solved with changeset r36991.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/csv.rb (Object#CSV, Array#to_csv, String#parse_csv):
... -
07:06 AM Revision 2b64e10f (git): remove garbages.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:29 AM Feature #7019: allow `private` and `protected` keywords to take blocks
- Probably not much, but it is possible. Could be "`protected`" instead as well. Also, other helpers can be created besides `attr`. My point is only that it needs to accept an array should the helper return multiple methods/symbols.
Or ... -
05:10 AM Feature #7019: allow `private` and `protected` keywords to take blocks
- Excuse me Thomas, what's the point in a "`private attribute accessor`"?
- 01:59 AM Revision a9fefe75 (git): * test/drb/ut_drb.rb: revert a part of r36987, and get rid of a warning
- with another method. if the substitution is removed, the ExtSrv
object will be GC'ed and some tests will be blocked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:32 AM Revision 2a50ceca (git): * lib/find.rb: Error in documentation example
- Found by Herwin Weststrate, thank you!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:42 AM Bug #7038 (Closed): Array#zip に配列以外のオブジェクトを指定した場合の例外がわかり辛い
- This issue was solved with changeset r36989.
Sho, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
array.c, enum.c: TypeError in zip
* array.c (take_items), enum.c ...
09/19/2012
-
11:47 PM Feature #7019: allow `private` and `protected` keywords to take blocks
- Would need to accept array of those too (whether its a method or symbol) for things like:
~~~ruby
private attr_accessor :foo
~~~ -
11:43 PM Feature #6669: A method like Hash#map but returns hash
- > * mash
> ...
I think when no other choices suffice one is left with two options, either created word or long explanatory term, e.g. #mash or #map_hash, respectively.
OTOH, recently I have been looking at new API related to this tha... -
04:15 PM Feature #6669: A method like Hash#map but returns hash
- Please ignore my previous comment; I see that you want a new Hash rather than replacing the keys/values of the existing Hash. I guess you want a more efficient alternative to:
max_score = Hash[score.map {|k,v| [k, v.max]}]
Since y... -
03:09 PM Feature #6669: A method like Hash#map but returns hash
- What about #map! (or are bang methods frowned upon these days)?
-
02:30 PM Feature #6669: A method like Hash#map but returns hash
- What about #remap
#select and #reject only change the number of k/v pairs and do not change the mapping.
Compared to that, here we want to have certain keys to map to different values, so #remap clearly infers such purpose to me.
Rega... -
11:32 PM Bug #6441: IO.pipe on ENFILE
- どこから mark されてるんだろうかと追跡してみたところ
mark_current_machine_context() の rb_gc_mark_locations() から、つまり machine stack からでした。
また optflags=-O0 をつけるとすぐに回収されていて ulimit -n 7 でも動き続けることができたので、少なくともわたしの手元の環境ではマシンスタックにゴミ参照が残っていて回収されないだけのようでした。参考まで。 -
09:25 PM Bug #6441: IO.pipe on ENFILE
- どうも IO.pipe で最後に開いた IO 2つは GC.start で手動で GC を実行しても回収されないみたいです。
$ ruby -ve 'GC.start;loop{IO.pipe.tap{|i|p i}.clear;GC.start}'"
ruby 2.0.0dev (2012-08-08 trunk 36663) [x86_64-darwin10.8.0]
[#<IO:fd 5>, #<IO:fd 6>]
[#<IO:fd 7>, #... -
05:53 PM Bug #6441: IO.pipe on ENFILE
- shyouhei (Shyouhei Urabe) wrote:
> authorNari (Narihiro Nakamura) wrote:
> ...
ENFILEのときに呼び出されるrb_gc()はlazy sweepしないように作っていて、そ
ういうことが起きないようになっているはずなのですが、実際に問題が発生し
ているということは何かおかしそうですね。
> > > これは、lazy sweep が上記の目的のため T_FILE の場合は直ちに ... -
10:46 PM Bug #7038 (Closed): Array#zip に配列以外のオブジェクトを指定した場合の例外がわかり辛い
- =begin
1.9 以降でArray#zip に配列以外のオブジェクトを指定した場合の例外が NoMethodError ではわかり辛いのではないかと思います。
$ ruby -ve 'p [1,2,3].zip(1)'
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
-e:1:in `zip': undefined method `each' for 1:Fixnum (No... -
10:23 PM Revision 7c4d0468 (git): * complex.c: Examples for Complex Documentation.
- Patch by Robin Dupret.
Fixes #184 on github.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:17 PM Revision cca61daf (git): * ext/ripper/lib/ripper.rb: Documentation for Ripper.
- +:void_stmt+ is meaningless
[Bug #6929] [ruby-core:47507]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:07 PM Revision 0503756f (git): * lib/csv.rb (Object#CSV, Array#to_csv, String#parse_csv):
- Examples and documentation for CSV.
[Bug #6880] [ruby-core:47218]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:08 PM Bug #7037: float formatting inconsistently rounds half to even
- Sorry, it's my bad.
Indeed, "half even" not "half up".
-
06:05 PM Bug #7037: float formatting inconsistently rounds half to even
- I can't under stand what @nobu says so I did this myself.
@headius mixed two points.
* 1.15 for instance is not exactly representable in floating point number. So tie-breaking is not the case.
* 1.25 for instance is exact. This,... -
05:13 PM Bug #7037 (Closed): float formatting inconsistently rounds half to even
- =begin
Just formats the value with full precision and "rounds half up" the next char.
(gdb) printf "%.17f\n", 1.05
1.05000000000000004
(gdb) printf "%.17f\n", 1.15
1.14999999999999991
(gdb) printf "%.17f\n", 1.25
1.2500000... -
04:05 PM Bug #7037 (Closed): float formatting inconsistently rounds half to even
- MRI does not appear to consistently round half to even. I'm not sure what rounding strategy this is, but it rounds xx05 and xx15 to odd for xxx, and other values to even:
irb(main):001:0> "%1.1f" % 1.05
=> "1.1"
irb(main):002:0> "%1... -
07:53 PM Feature #6668: Multiple assignment should not return an Array object
- (2012/09/19 0:08), headius (Charles Nutter) wrote:
> This is an artifact of MRI's implementation, since multiple assignment was traditionally implemented by taking the array node on the right-hand side, standing it up as a full Ruby A... -
04:08 PM Feature #6668: Multiple assignment should not return an Array object
- Ping!
-
06:35 PM Bug #7031: Date::mjd_to_jd disappeared
- thanks for your lecture.
foolish man who doesn't know details
make me irritated. -
01:36 PM Bug #7031: Date::mjd_to_jd disappeared
- Well, what's done is done. One cannot put the toothpaste back in the tube. It looks like "wew" (William Webber, I presume) documented all of the non-private lib/date.rb methods in 2003 (see r4435). Prior to that it appears all undocu...
-
07:49 AM Bug #7031: Date::mjd_to_jd disappeared
- the latest 1.8 documentation is by William Webber.
he wanted to describe nearly all even private.
he should have respected my original documentation. -
02:57 AM Bug #7031: Date::mjd_to_jd disappeared
- Removing undocumented methods that have "escaped into the wild" is reasonable, but since these well documented methods escaped into the wild before Ruby 1.9, it would have been nice (IMHO) to grandfather them into Ruby 1.9. I guess it's...
-
04:36 PM Feature #905: Add String.new(fixnum) to preallocate large buffer
- Just a technical comment, not for the feature itself:
headius (Charles Nutter) wrote:
> to by ptr, realloc() creates a new allocation, copies as much of the old data
This "copy" is done by mremap(2) system call, which just re... -
04:17 PM Feature #905: Add String.new(fixnum) to preallocate large buffer
- Trying to wake this beast up...
mame: I don't think we can say it would not help MRI without testing an implementation, can we? I misunderstood realloc in my comment from two years (!!!) ago According to realloc docs:
The real... -
04:09 PM Feature #6648: Provide a standard API for retrieving all command-line flags passed to Ruby
- ARGV is a special class; perhaps ARGV could have the methods?
-
04:07 PM Bug #6994: yield plus splat unwraps too much
- Ok, I accept the explanation. We will support the MRI behavior in JRuby.
- 03:42 PM Revision f205ac49 (git): * 2012-09-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:42 PM Revision abeedb08 (git): array.c, enum.c: TypeError in zip
- * array.c (take_items), enum.c (enum_zip): raise TypeError at
non-enumerable objects, not NoMethodError. [ruby-dev:46145]
[Bug #7038]
* vm_eval.c (rb_check_block_call): check_funcall variant with block
function.
git-svn-id: svn+s... - 02:49 PM Revision b70f99d1 (git): * 2012-09-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:49 PM Revision 18181542 (git): suppress warnings
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
09/18/2012
-
11:47 PM Feature #7019: allow `private` and `protected` keywords to take blocks
- headius (Charles Nutter) wrote:
> +1 for "`private def foo`". I have never seen a good justification for why visibility is better as a value on the current frame, nor for why it's better to set a method's visibility after declaration ra... -
11:38 PM Feature #7019: allow `private` and `protected` keywords to take blocks
- +1 for "`private def foo`". I have never seen a good justification for why visibility is better as a value on the current frame, nor for why it's better to set a method's visibility after declaration rather than along with the declaratio...
-
11:50 AM Feature #7019: allow `private` and `protected` keywords to take blocks
- I don't know why you would expect this to work, `private`, `public`, etc. are methods on `Module` and your context is not a subclass of `Module`.
Why should we pollute every object with a new methods `privately`, `publicly` and `prote... -
04:36 AM Feature #7019: allow `private` and `protected` keywords to take blocks
- Here is a usecase i have made up. The following does not work now:
~~~ruby
class C
def f
def g
#
end
private
def h
#
end
end
end
c = C.new
c.f # => NameError: undefined local variab... -
11:04 PM Bug #7036: Compiling extensions with Ruby in a path with spaces
- usa (Usaku NAKAMURA) wrote:
> Building something with the path containing spaces is not recommended, IMO.
> ...
And I completely agree.
However, while README, RubyInstaller and Wiki instructions RubyInstaller project clearly state t... -
03:32 PM Bug #7036 (Assigned): Compiling extensions with Ruby in a path with spaces
- Building something with the path containing spaces is not recommended, IMO.
(see the end of win32/README.win32)
Of course, we should treat it if it's possible in low cost.
I'll consider it. -
07:18 AM Bug #7036 (Closed): Compiling extensions with Ruby in a path with spaces
- =begin
Hello,
This has been reported several times to RubyInstaller: inability to install gems when Ruby has been installed in a path with spaces (e.g. (({C:\Program Files})))
Since this is presented to the user as (({gem install}... -
08:24 PM Bug #7031 (Rejected): Date::mjd_to_jd disappeared
- is just for internal use and debugging.
try the following code.
class Date
MJD_EPOCH_IN_CJD = 2400001
def self.mjd_to_jd(mjd) mjd + MJD_EPOCH_IN_CJD end
end
Date.jd(Date::mjd_to_jd(Date.today.mjd))
-
03:23 PM Feature #5481: Gemifying Ruby standard library
- NaHi, could you tell us status of this work?
If you doesn't have a time to implement it, I'll implement it.
NOTE: I have another merit by this. If this feature is implemented, test-unit gem can be used without "gem 'test-unit'". So I... -
10:18 AM Bug #6441: IO.pipe on ENFILE
- authorNari (Narihiro Nakamura) wrote:
> naruse (Yui NARUSE) wrote:
> ...
パイプがたくさんゴミになっている状況を考えてください。
本来であれば、GCされれば、それらのゴミパイプ(=fd)は回収されるはずです。
さて、そのような状況下であらたにIO.pipeを呼んだところ、ENFILEになったとしましょう。
この場合、fdが開放されることを期待してGCが走ります。
しかしながら現在のr... - 08:52 AM Revision aab70ee3 (git): * 2012-09-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:52 AM Revision e8854f8c (git): * ext/openssl/ossl_ssl.c (ossl_sslctx_attrs): add npn_select_db to
- suppress warning: instance variable @npn_select_cb not initialized
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:06 AM Feature #7035: defined? should return cached, frozen strings
- > I like the idea.
I like it too. -
04:00 AM Feature #7035: defined? should return cached, frozen strings
- =begin
I like the idea.
Considering recent changes like (({respond_to?})) and protected methods, I think this change is not introducing a big backward incompatible change. Most of the code out in the wild uses (({defined?})) to check... -
03:22 AM Feature #7035: defined? should return cached, frozen strings
- IMO, I think it should be fine for `defined?` to return a symbol in Ruby 2.0.0, if that really going to fix the allocation issue. Simple fix.
This is a major release, and I think it's fine to break backward compatibility just a little... -
02:57 AM Feature #7035 (Closed): defined? should return cached, frozen strings
- Yehuda and I have been looking into allocation rates in Rails under both MRI and JRuby, and one of the big standouts is defined? logic returning a new String every time (for success cases). We could think of no reason why defined? needs ...