Activity
From 04/12/2012 to 04/18/2012
04/18/2012
-
11:59 PM Revision 6878e597 (git): * ext/curses/curses.c (window_nodelay): Fixed call-seq of nodelay to
- include the '='.
Improved description window.nodelay=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:48 PM Revision ab0eb272 (git): * io.c (io_readpartial): Document the output buffer parameter is
- overwritten with the read contents even when non-empty.
Patch by yu nobuoka. [ruby-trunk - Bug #6285]
* io.c (io_read_nonblock): ditto.
* io.c (io_read): ditto.
* io.c (rb_io_sysread): ditto.
* io.c (argf_read): ditto.
* io.c (arg... -
11:40 PM Bug #6318 (Closed): TestTimeTZ failures
- fixed at r35377.
-
11:12 PM Bug #6318 (Closed): TestTimeTZ failures
- Testing with Fedora Rawhide, I got these two errors:
2) Failure:
test_gen_Europe_Lisbon_112(TestTimeTZ) [/builddir/build/BUILD/ruby-2.0.0-r35368/test/ruby/test_time_tz.rb:246]:
TZ=Europe/Lisbon Time.local(1911, 12, 31, 23, 59, 59)... -
11:18 PM Bug #6319 (Closed): TestWEBrickHTTPRequest and WEBrick::TestFileHandler fail
- Hi, testing on Fedora Rawhide, I observe several test fails in TestWEBrickHTTPRequest and WEBrick::TestFileHandler. This seems to be the same errors as in #4110, however I am not sure it they are related.
4) Error:
test_parse_09(Te... - 11:14 PM Revision aa883f84 (git): * 2012-04-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:14 PM Revision 61c1fb70 (git): Use mock of Gem::Security::OPT[:trust_dir]
- Gem::Security::OPT[:trust_dir] depends Gem.user_home but doesn't reset
on setup/teardown.
NOTE: Gem.user_home won't be recovered now, so teardown doesn't work.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35389 b2dd03c8-39d4-4d8f-9... -
08:51 PM Feature #6317 (Assigned): Range#cover?の引数としてRangeインスタンスを受けられるようにして欲しい
- 青柳と申します。
以下のように、Range#cover?の引数としてRangeインスタンスを
受けられるようにして欲しいです。
(1..4).cover?(2..3) # => true
(1..4).cover?(0..3) # => false
取り敢えず実装してみましたので、添付いたします。
-
04:49 PM Bug #6195: String#[] に逆順の Range を渡した場合の挙動
- 文字列のスライスが(Rangeの始点さえ範囲内なら)nilを返さないという現仕様は利便性にフォーカスしていて合理的だと思っています。
たとえば、
if s.start_with?(prefix)
logger.info "message body is " + s[prefix.length..-1]
end
のようなコードは私の手元にもたくさんありますし、Rubyのソースツリーで grep -rF ..-1 lib し... -
02:09 PM Revision 24620aaf (git): merge revision(s) 35387:
- * configure.in (DOT, DOXYGEN): use AC_CHECK_PROGS instead of
AC_CHECK_PROG which needs the third argument. [ruby-core:44433]
[Bug #6316]
* configure.in (PKG_CONFIG): fix condition to skip older version
... -
01:59 PM Revision 7cfc4be2 (git): * configure.in (DOT, DOXYGEN): use AC_CHECK_PROGS instead of
- AC_CHECK_PROG which needs the third argument. [ruby-core:44433]
[Bug #6316]
* configure.in (PKG_CONFIG): fix condition to skip older version
of pkg-config. continue in backticks does not affect outside.
git-svn-id: svn+ssh://ci.ru... -
01:23 PM Feature #6315 (Feedback): handler to trace output of each line of code executed
- using a similar mechanism to set_trace_func, I would like a way to get the line number and return value of each line. This would allow me to create a live debugger, much like light table from chris granger and/or bret victor's javascrip...
-
12:59 PM Feature #6276 (Closed): to_h as explicit conversion to Hash
- This issue was solved with changeset r35383.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Revert r35339-35343 because of no tests.
* hash.c: Alias E... -
10:41 AM Feature #5632: Attempt to open included class shades it instead.
- Basically it is just alternative appearance of:
```ruby
class A
A = 22
end
class B < A
end
p B::A
class B
A = 42
end
p B::A
```
Current Ruby does not warn you. If you want to warn cla... -
12:23 AM Feature #5632: Attempt to open included class shades it instead.
- Hello, Matz
Do you think how should it be fixed? Suggestion 1?
I think Suggestion 2 (just warning) can be included in 2.0.
--
Yusuke Endoh <mame@tsg.ne.jp> -
07:10 AM Revision 336cf575 (git): * test/ruby/test_time_tz.rb (TestTimeTZ): run TZ tests on Mac OS X,
- except for "right" timezonez.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:50 AM Revision ab649ef3 (git): * win32/file.c (INVALID_FILE_ATTRIBUTES): commit miss of r35384.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:00 AM Revision ff19b1d8 (git): * win32/file.c (INVALID_FILE_ATTRIBUTES): define for old SDK.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:46 AM Feature #6310: add EC_POINT_mul and EC_POINTs_mul to the ruby openssl ec wrapper
- Here is the pull request https://github.com/ruby/ruby/pull/121
-
03:59 AM Revision 62c9ecfa (git): Revert r35339-35343 because of no tests.
- * hash.c: Alias ENV.to_h to ENV.to_hash [ref #6276]
* lib/ostruct.rb: Add OpenStruct#to_h [Feature #6276]
* struct.c: Add Struct#to_h [Feature #6276]
* object.c: Add NilClass#to_h [Feature #6276]
* hash.c: Add Hash#to_h [Feature #627... -
03:38 AM Revision cc6ab53f (git): Run separate process this GC.stress test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:31 AM Revision 8de83c51 (git): Disable GC for slow this test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:16 AM Bug #6313 (Closed): [rdoc] clarify that srand(number) is not default 0
- Since srand(0) is not the default, attempt to clarify that.
-
01:58 AM Revision 9d96fc17 (git): split method definitions
- * test/ruby/test_time_tz.rb (TestTimeTZ#with_tz, TestTimeTZ#time_to_s):
split method definitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:58 AM Revision 62885f1e (git): update .gitignore
- * .gitignore: removed duplicate entry and obsolete entries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:46 AM Revision 085ae60a (git): Removed ChangeLog entry from reverted r35370
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:43 AM Feature #6308: Eliminate delegation from WeakRef
- Perhaps under the GC module. Seems better than under ObjectSpace
I also think WeakMap should perhaps be moved under GC.
GC::WeakRef
GC::WeakMap
GC::ReferenceQueue
The top-level WeakRef library should probably be deprecated, th... -
01:26 AM Bug #6312 (Closed): Psych needlessly noisy parsing string node starting with number-ish string
- For example:
$ ruby -d -rpsych -e 'Psych.load("4 weddings")' 2>&1 | tail -n 2
Exception `ArgumentError' at /Users/riffraff/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/psych/scalar_scanner.rb:99 - invalid value for Integer():... -
01:23 AM Revision 442fefc7 (git): * strftime.c (rb_strftime_with_timespec): add an interim digit for
- the timezone offset which is less than an hour.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:08 AM Revision 9e56e14f (git): Run separate process if the test uses GC.stress.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:58 AM Revision 5383ccd9 (git): * lib/rubygems/version.rb: Fixed init_with warning by calling into
- yaml_initialize (for syck) from psych's init_with
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:25 AM Bug #6228 (Assigned): [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
- > Who should be the responsible for GC?
Nari-san.
--
Yusuke Endoh <mame@tsg.ne.jp> -
12:04 AM Revision 6c1da63b (git): * lib/rubygems: Update to RubyGems 1.8.22 plus r33517 and r35337 which
- were ported to the rubygems git repository.
See https://github.com/rubygems/rubygems/blob/1.8/History.txt for
changes since 1.8.11.
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35374 b2dd03c8-39d4-4d8...
04/17/2012
-
11:47 PM Bug #6228: [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
- I found that this issue is related with the auto-close flag of IO.
The following code fails with Errno::EBADF
f = open("test_file", "w")
IO.for_fd(f.fileno).autoclose = true # default value
GC.start
f.close
But, the followi... -
10:27 PM Bug #6228 (Open): [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
- Who should be the responsible for GC? Seems to me that open file descriptor shouldn't be garbage collected while still open.
-
10:14 PM Bug #6228: [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
- I tried to create simplified test case of this issue.
> cat gc_io_test.rb
f = open("test_file", "w")
p f.fileno
IO.for_fd(f.fileno).close
f = open("test_file", "w")
p f.fileno
GC.start # trigger GC
begin
f.close # => r... -
07:23 AM Bug #6228: [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
- This issue seems to be related to GC finalizer.
GC is triggered just before Errno::EBADF occurs, and finalizer closes the fd of make_tempfile. Errno::EBADF is raised for trying to close again the closed fd of make_tempfile.
This seem... -
11:32 PM Feature #6311 (Closed): memmem()によるrb_memsearch()の高速化
- [Feature #6129][ruby-dev:45344]と類似していますが、memmem()によるre.cのrb_memsearch()の高速化を試みました。
次のベンチマークを実行したところ以下の結果となり、有意な性能向上がみられました。
require 'benchmark'
str = "hoge" * 10000 + "fugafuga"
Benchmark.bm do |x|
x.report do
1000.ti... -
10:52 PM Feature #5007: Proc#call_under: Unifying instance_eval and instance_exec
- Hello,
I made a proof-of-concept patch.
Not tested yet. Please try it and find a bug.
It (and some related functions) seem to need some refactoring work
because it calls directly invoke_block_from_c which is very internal
functio... -
04:08 AM Feature #5007: Proc#call_under: Unifying instance_eval and instance_exec
- I don't see how this solves the case presented in #6298.
Given:
```ruby
class BlockCollection
def initialize(*procs)
@procs = procs
end
def to_proc
procs = @procs
Proc.new{ |*a| procs.each{ |p... -
10:18 PM Bug #4458 (Closed): Time#strftime で %z 指定子での結果への空白を詰めかたが正しくない
- This issue was solved with changeset r35366.
tadayoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* strftime.c (rb_strftime_with_timespec): fix padding of tim... -
12:41 AM Bug #4458: Time#strftime で %z 指定子での結果への空白を詰めかたが正しくない
- 何度もすみません。
出すべきpatchはこちらでした。 -
12:29 AM Bug #4458: Time#strftime で %z 指定子での結果への空白を詰めかたが正しくない
- 空白以外のpaddingを指定した時に正しく動かないので修正しました。
-
10:06 PM Bug #6266 (Closed): encoding related exception with recent integrated psych
- Okay, closing. Thanks!
--
Yusuke Endoh <mame@tsg.ne.jp> -
09:58 PM Bug #6266: encoding related exception with recent integrated psych
- r35245 fixed this issue, and r35251 backported to ruby_1_9_3
-
09:19 PM Bug #6266 (Assigned): encoding related exception with recent integrated psych
-
09:21 PM Revision 5ab11990 (git): Ignore files generated by extconf.rb
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:20 PM Bug #6301 (Assigned): irb 起動後に conf.debug_level を変更するとエラーになる
-
09:20 PM Bug #6302 (Assigned): irb で math-mode 中でも conf.math_mode に nil を代入すると math-mode を抜ける事ができる
-
09:19 PM Bug #6278 (Assigned): in `join': deadlock detected (fatal)
-
09:19 PM Bug #6252 (Assigned): OpenSSL - ECDSA signature reliability
-
09:18 PM Bug #6227 (Assigned): [mingw] openssl backport causing test error
-
09:18 PM Bug #6221 (Assigned): OpenSSL 1.0.1 is breaking the drb test suite
-
09:18 PM Bug #6195 (Assigned): String#[] に逆順の Range を渡した場合の挙動
-
09:17 PM Bug #6181 (Assigned): Ruby crash when trying to send a mail (tls/gmail)
-
09:17 PM Revision 0ebe38ee (git): Revert r35370 due to bad source branch
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:00 PM Bug #6246 (Assigned): 1.9.3-p125 intermittent segfault
- Hello,
Perhaps I could reproduce this issue with small example:
class Foo
def Foo.shutdown(*args)
p Bar.inspect.size
end
Bar = (0..300).map do |x|
x = x.to_s
ObjectSpace.define_finalizer(x, Foo... - 08:50 PM Revision 02dc9ae7 (git): * 2012-04-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:50 PM Revision 22d9456b (git): * lib/rubygems: Update to RubyGems 1.8.22 plus r33517 and r35337 which
- were ported to the rubygems git repository.
See https://github.com/rubygems/rubygems/blob/1.8/History.txt for
changes since 1.8.11.
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35370 b2dd03c8-39d4-4d8... -
08:30 PM Bug #3128 (Assigned): Randomness specs
- Marc-Andre, do you need discussion about this?
--
Yusuke Endoh <mame@tsg.ne.jp> -
08:29 PM Feature #6310 (Assigned): add EC_POINT_mul and EC_POINTs_mul to the ruby openssl ec wrapper
-
08:05 PM Feature #6310 (Closed): add EC_POINT_mul and EC_POINTs_mul to the ruby openssl ec wrapper
- The ruby openssl wrapper currently does not interface with either of these, which are required for those who wish to generate a public key with a provided private key. Please consider adding this functionality.
-
08:02 PM Bug #6066 (Closed): Fix "control may reach end of non-void function" warnings for clang
-
08:01 PM Feature #6308: Eliminate delegation from WeakRef
- It should be another new class, I think.
-
05:02 PM Feature #6308 (Assigned): Eliminate delegation from WeakRef
- WeakRef's delegation features are a really awful pattern that should not be allowed in future versions of Ruby.
WeakRef makes no guarantees as to the liveness of its contained object. It can be collected at any time if there are no st... -
06:09 PM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
- A video of Bob Lee explaining the various JVM references, and why using finalizers is bad: http://www.youtube.com/watch?v=KTC0g14ImPc
-
05:25 PM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
- The implementation looks fine to me.
I still believe that most interesting uses of WeakRef would be more efficient with support for a reference queue. I filed a bug to add reference queues to Ruby here: https://bugs.ruby-lang.org/issu... -
05:10 PM Feature #6309 (Assigned): Add a reference queue for weak references
- Most interesting uses of WeakRef are much harder to do efficiently without a reference queue.
A reference queue, as implemented by the JVM, is basically a queue into which weak references are placed some time after the object they ref... -
02:22 PM Revision 5468593e (git): merge revision(s) 35368:
- * ext/-test-/win32/dln/extconf.rb: fix for mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:21 PM Revision 22263729 (git): * ext/-test-/win32/dln/extconf.rb: fix for mingw.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:35 PM Revision 902084a6 (git): * common.mk (REVISION_H): create temporary file in cwd so that it
- works if srcdir is not writable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:18 PM Revision 43dbbefb (git): * strftime.c (rb_strftime_with_timespec): fix padding of time zone
- offset. [ruby-dev:43287][Bug #4458]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:11 PM Bug #6303 (Closed): dln_load and rb_w32_check_imported cause segfault in Ruby 1.9.3 for some extension
- This issue was solved with changeset r35354.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* dln.c (rb_w32_check_imported): skip ordinal entries. based on ... -
12:41 PM Feature #6305 (Feedback): Lazy
- Explain why a gem does not work for you.
--
Yusuke Endoh <mame@tsg.ne.jp> -
04:39 AM Feature #6305 (Rejected): Lazy
- I believe we discussed before but I couldn't find the issue, so I'll just bring it up again.
Might MenTaLguY's Lazy library make it's way into Ruby proper?
http://moonbase.rydia.net/software/lazy.rb/
https://github.com/menta... -
12:38 PM Bug #6306 (Rejected): Ripper lexes :on_kw when it should find :on_ident
- Hello,
2012/4/17, turboladen (Steve Loveless) <steve.loveless@gmail.com>:
> I'd expect (({[[1, 1], :on_kw, "def"]})) to be (({[[1, 1], :on_ident,
> ...
Not a bug. That is exactly what is happenning in the Ruby lexer internal.
I ... -
05:33 AM Bug #6306 (Rejected): Ripper lexes :on_kw when it should find :on_ident
- =begin
1.9.3-p125 :001 > require 'ripper'
=> true
1.9.3-p125 :002 > Ripper.lex %Q{:def}
=> [[[1, 0], :on_symbeg, ":"], [[1, 1], :on_kw, "def"]]
I'd expect (({[[1, 1], :on_kw, "def"]})) to be (({[[1, 1], :on_ident, "def]})... -
12:36 PM Revision 4f043961 (git): merge revision(s) 34419: [Backport #6307]
- * lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb:
fix the default xml namespace URI validation.
[ruby-dev:45169] [Bug #5956]
Reported by Miho Hiramatsu. Thanks!!!
git-svn-id: svn+ssh://ci.ru... -
11:36 AM Revision e1a08e41 (git): merge revision(s) 35363:
- win32/dln is only for win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:14 AM Revision 77321aee (git): win32/dln is only for win32.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:27 AM Bug #5925: Lazy initialization is not thread safe.
- Thanks Aaron
http://remotedatabackuptips.posterous.com/ -
05:27 AM Revision a940590a (git): merge revision(s) 35354,35356,35357,35361:
- * dln.c (rb_w32_check_imported): skip ordinal entries. based on a
patch by phasis68 (Heesob Park) at [ruby-core:44381].
[ruby-core:44371][Bug #6303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@3... -
05:12 AM Revision f5659a91 (git): * ext/-test-/win32/dln/extconf.rb: add to cleanfiles iff cleanobjs is set.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:55 AM Revision 0a706449 (git): * Makefile.in (reconfig, config.status): not depend on
- $(srcdir)/version.h to get rid of daily reconfiguration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:55 AM Revision 561e61a4 (git): * configure.in (RUBY_SO_NAME): expand version numbers in Makefile.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:55 AM Revision 485f88e6 (git): * reduce UNREACHABLE.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:55 AM Revision 854a6e47 (git): * ext/-test-/win32/dln/extconf.rb: add test dll files to cleanfiles.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:17 AM Revision 68bf3099 (git): * ext/-test-/win32/dln/extconf.rb: remove unnecessary local variable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:11 AM Revision cc433788 (git): * 2012-04-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:11 AM Revision dad31f6e (git): * dln.c (rb_w32_check_imported): skip ordinal entries. based on a
- patch by phasis68 (Heesob Park) at [ruby-core:44381].
[ruby-core:44371][Bug #6303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:59 AM Feature #6183: Enumerator::Lazy performance issue - > It's a 'proof of concept' patch (only map and select added) - let me know if it makes sense.
> I believe that using this approach and with your help lazy enumerator performance can be improved significantly.
That would be aweso... -
12:59 AM Bug #6274: Float addition incorrect - > Issue #6274 has been updated by marcandre (Marc-Andre Lafortune).
>
> Status changed from Open to Rejected
>
> This is due to the fact that floats are approximate. The results follow the IEEE standard. Try it in Javascript, yo... -
12:29 AM Feature #6293: new queue / blocking queues - On Mon, Apr 16, 2012 at 06:25:59PM +0900, SASADA Koichi wrote:
> Hi,
>
> Just an idea.
>
> (2012/04/14 11:25), Aaron Patterson wrote:
> > I could, but I think the changes I want would add too much
> > complexity to the traditio...
04/16/2012
-
11:38 PM Bug #6301: irb 起動後に conf.debug_level を変更するとエラーになる
- すみません。昨日は気づきませんでしたが、conf.debug_level は irb の起動後に再度代入するまでは効いていないようでした。
$ irb
> RubyLex.debug_level
=> 0
> ...
=> 1
> conf.debug_level = 1
NoMethodError: undefined method `debug_level=' for IRB::SLex:Class
from /home/sho-h/.rvm... -
01:44 AM Bug #6301 (Closed): irb 起動後に conf.debug_level を変更するとエラーになる
- $ irb --irb_debug <数字> などでは問題ありませんが、irb の起動後に conf.debug_level を設定するとエラーになるようです。(1.9.3-p125 で確認しましたが、trunk でも同様のようです)
> conf.debug_level = "1"
NoMethodError: undefined method `debug_level=' for IRB::SLex:Class
from /home/sho-h/.rvm... -
10:43 PM Bug #4458: Time#strftime で %z 指定子での結果への空白を詰めかたが正しくない
- patchを作りました。
-
10:34 PM Bug #6303 (Assigned): dln_load and rb_w32_check_imported cause segfault in Ruby 1.9.3 for some extension
-
10:27 PM Bug #6303: dln_load and rb_w32_check_imported cause segfault in Ruby 1.9.3 for some extension
- The changeset r35352 is not same to my patch and the bug #6303 is not fixed.
After applying r35352,
require 'mswin32/ibm_db'
falls into infinite loop and runs forever.
The line
if (IMAGE_SNAP_BY_ORDINAL(pint->u1.Ordinal)) cont... -
09:25 PM Bug #6303 (Closed): dln_load and rb_w32_check_imported cause segfault in Ruby 1.9.3 for some extension
- This issue was solved with changeset r35352.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* dln.c (rb_w32_check_imported): skip ordinal entries. patched b... -
03:34 PM Bug #6303: dln_load and rb_w32_check_imported cause segfault in Ruby 1.9.3 for some extension
- The segfault is due to the invalid pointer reference in getting PIMAGE_IMPORT_BY_NAME pointer like this:
PIMAGE_IMPORT_BY_NAME pii = (PIMAGE_IMPORT_BY_NAME)((char *)ext + (size_t)pint->u1.AddressOfData);
Consider the following imp... -
09:27 AM Bug #6303 (Closed): dln_load and rb_w32_check_imported cause segfault in Ruby 1.9.3 for some extension
- Hello,
NOTE: Reporting this here since bugs.ruby-lang.org seems to be down.
Recently a user reported to RubyInstaller project issues when loading
a Ruby 1.9.2 compiled extension under Ruby 1.9.3:
https://groups.google.c... -
10:23 PM Bug #6288: Change error message for thread block to be less misleading
- Hello,
2012/4/16 rklemme (Robert Klemme) <shortcutter@googlemail.com>:
>> If so, you should write "sleep" simply. If not, your code is
>> actually "deadlocked", in a common sense.
>
> There is no deadlock because there are no tw... -
09:07 PM Bug #6288: Change error message for thread block to be less misleading
- mame (Yusuke Endoh) wrote:
> Hello,
> ...
Great, thank you!
> >> Please elaborate "a more complex scenario" with small example.
> ...
I am not sure what you mean. The real code was more complex and the exception was thrown from an... -
09:02 PM Feature #6276: to_h as explicit conversion to Hash
- +1 to Naruse-san. Apparently test in the same repository is a must.
-
02:24 PM Feature #6276 (Assigned): to_h as explicit conversion to Hash
- You didn't add tests for test-all.
If you won't add them, I'll revert them. -
12:15 PM Feature #6276 (Closed): to_h as explicit conversion to Hash
- This issue was solved with changeset r35339.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* hash.c: Add Hash#to_h [Feature #6276]
[rubyspec:84b7fe3... -
08:57 PM Feature #6286: Add Exception#format method
- Yet I'm not sure whether it's worth, made a patch.
-
06:29 PM Feature #6293: new queue / blocking queues
- Hi,
Just an idea.
(2012/04/14 11:25), Aaron Patterson wrote:
> I could, but I think the changes I want would add too much
> complexity to the traditional Queue class. We have to add
> branching code for every method tha... -
01:28 PM Bug #5973 (Closed): Bus Error in simple project requiring YARD
-
01:28 PM Bug #4651: Bus Error using continuation on x86_64-darwin11.0.0 (Lion)
- mbleigh (Michael Bleigh) wrote:
> I'm sorry, but I'm not sure what the resolution of this is for it to be closed. I've just run into the same error with 1.9.2-head (works in 1.9.3-head) on RVM. Is this a fix that is going to be applied ... -
01:25 PM Bug #5701 (Rejected): Compilation under Lion with clang 2.1 fails
- Try ruby 1.9.3-p125.
-
12:37 PM Feature #6298 (Rejected): Proc#+
- Hello,
I think you have valid concern. AFAIK, there is no way to do this.
But #5007 (Proc#call_under) is apparently a more general solution
for this issue.
You will be able to write BlockCollection with Proc#call_under:
def t... -
12:26 PM Revision 1ca2a6d7 (git): merge revision(s) 35352:
- * dln.c (rb_w32_check_imported): skip ordinal entries. patched by
phasis68 (Heesob Park) at [ruby-core:44381]. [Bug #6303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35353 b2dd03c8-39d4-4d8f-98ff-823fe6... -
12:25 PM Revision 6655667d (git): * dln.c (rb_w32_check_imported): skip ordinal entries. patched by
- phasis68 (Heesob Park) at [ruby-core:44381]. [Bug #6303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:17 PM Bug #6290 (Closed): Matrix#hermitian? fails to check diagonal elements
- This issue was solved with changeset r35344.
George, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/matrix.rb (hermitian?): Bug fix, patch by George Koehler
... -
11:59 AM Feature #6284: Add composition for procs
- alexeymuranov (Alexey Muranov) wrote:
>
> ...
I was going to say the same thing. Having both `#*` and `#|` is redundant and also a bit confusing, since `#|` doesn't really feel to be the opposite operation of `#*` at any context. We s... - 11:15 AM Revision ec9ccb52 (git): * 2012-04-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:15 AM Revision 34c1a169 (git): Merge eacb6564c05ff7428bcbb3c34f72655b1b5d6ca3.
- [Backport #6304]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:23 AM Revision e0e479fb (git): * spec/default.mspec: expand relative path for ruby_exe which uses
- them with Dir.chdir; it breaks relative paths, for example
core/kernel/exec_spec.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:22 AM Revision f2979f31 (git): * win32/win32.c (gmtime_r, localtime_r): POSIX compliant reentrant
- versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:08 AM Revision 72fffe5c (git): * configure.in (RUBY_MSVCRT_VERSION): define on mingw too.
- * win32/Makefile.sub (config.h): prefix RT_VER with RUBY and make
more descriptive to get rid of potential conflict.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:19 AM Revision 8b25f420 (git): * configure.in (NO_RUBY_VENDOR_LIB): fix missing comma.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:22 AM Revision 7d84f55f (git): * ChangeLog: typos.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:21 AM Feature #5455: $SAFE should be removed
- My plan at the moment (in rough form) is to break out the individual restrictions the SAFE levels are intended to govern and allow controlling them via Java security policies. I already implemented one as a prototype, to permit evauation...
- 03:17 AM Revision b62792e5 (git): * lib/matrix.rb (hermitian?): Bug fix, patch by George Koehler
- [Bug #6290] [rubyspec:4b9573d7613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:16 AM Revision fc7676fc (git): * hash.c: Alias ENV.to_h to ENV.to_hash [ref #6276]
- [rubyspec:6587eead7cd1]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:16 AM Revision db66739c (git): * lib/ostruct.rb: Add OpenStruct#to_h [Feature #6276]
- [ref #1400] [rubyspec:9e0250b2fc6f]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:16 AM Revision 1dbe0f06 (git): * struct.c: Add Struct#to_h [Feature #6276]
- [ref #4862] [rubyspec:2082ef46d46e]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:15 AM Revision 33399fe8 (git): * object.c: Add NilClass#to_h [Feature #6276]
- [ref #5008] [rubyspec:dc5ecddbd608]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:15 AM Revision f92be2c0 (git): * hash.c: Add Hash#to_h [Feature #6276]
- [rubyspec:84b7fe3f24d2]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:54 AM Bug #6302 (Closed): irb で math-mode 中でも conf.math_mode に nil を代入すると math-mode を抜ける事ができる
- irb では、一度 math-mode になった場合は抜ける事ができない仕様だと思いますが、conf.math_mode に nil を代入すると math-mode を抜ける事ができてしまうようです。(1.9.3-p125 で確認しましたが、trunk でも同様のようです)
> conf.math_mode = true
=> true
> ...
=> nil
> conf.math_mode = false
=> false
> ...
=> t... - 12:44 AM Revision 0c7163ae (git): * 2012-04-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:44 AM Revision e6882349 (git): * lib/rubygems/remote_fetcher.rb (Gem::RemoteFetcher#download): should
- use File.identical? to chech the identicality of the files.
this fixed an error of a test on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:22 AM Misc #6299 (Closed): Adding PATCH to Net::HTTP
- This uses the semantics from #post to implement #patch.
04/15/2012
-
09:07 PM Bug #953: 深い入れ子の配列の取り扱いで落ちる
- ulimit -s 4096とすることで、Ubuntu {10.04,11.10} {x86,x64}で再現できましたが
どうでしょうか。
-
11:57 AM Bug #953: 深い入れ子の配列の取り扱いで落ちる
- 手元のUbuntu 10.04 x64ではr35333でも再現しました。
ですが、一からOSをインストールし直した環境では正常に動作しているので
正確な再現条件は不明です。 -
05:31 PM Feature #6298 (Rejected): Proc#+
- =begin
Maybe there is another way to do this, and if so please enlighten me.
I have a case where collection of blocks need to be handled as if a single block, e.g.
class BlockCollection
def initialize(*procs)
@procs ... -
05:10 PM Feature #6284: Add composition for procs
- I agree, `#*` is appropriate for composition.
-
07:37 AM Revision 164ced04 (git): Add debug prints to inspect TC_JSONGenerate#test_gc's timeout issue.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:57 AM Revision 89d7ac80 (git): merge revision(s) 34106:
- * test/test_pty.rb (test_pty_check_default): call PTY.check until
"cat" command is finished.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:54 AM Revision ef46ac50 (git): merge revision(s) 32799:
- * test/ruby/test_process.rb (TestProcess#windows?): new method.
* test/ruby/test_process.rb (TestProcess#*): use above method.
* test/ruby/test_process.rb (TestProcess#test_execopts_redirect):
windows doesn't ... -
12:06 AM Revision 57fb2199 (git): * reduce UNREACHABLE.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/14/2012
-
09:47 PM Revision 97d00bcd (git): merge revision(s) 35249,35250: [Backport #6296]
- * include/ruby/win32.h (rb_w32_aspawn_flags): add the declaration of
new function.
* process.c (enum): add EXEC_OPTION_PGROUP and move the position
above for the usage in proc_spawn_n().
* process.c ... -
07:36 PM Revision 72012911 (git): merge revision(s) 35296: [Backport #6295]
- * io.c (rb_io_eof): use eof() instead of io_fillbuf(). It's because
io_unread() doesn't work properly when reading CRLF with read(length)
and mode 'r'.
[ruby-core:44189][Bug #6271]
* test/ruby/test_... - 06:56 PM Revision b8601446 (git): * 2012-04-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:56 PM Revision 05af801f (git): Adds another timeouts.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:02 PM Revision 0e84de2b (git): merge revision(s) 34785,35095,35098,35111,35152: [Backport #6294]
- * io.c (set_binary_mode_with_seek_cur): reorder function qualifiers.
* test/ruby/test_io.rb (TestIO#test_pos_with_getc): added.
see [Bug #6179][ruby-core:43518]
* test/ruby/test_io.rb (TestIO#test_pos_with_getc... -
02:16 PM Bug #6066 (Assigned): Fix "control may reach end of non-void function" warnings for clang
- Thank you for the commit, and found r35322 let older compilers and non-gcc compilers warn unreachable code.
UNREACHABLE should not replace those `return's, but be appended, I think. -
09:38 AM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
- r35322 is also part of this bug, but I forgot to mention it in my commit message.
-
08:45 AM Bug #6066 (Closed): Fix "control may reach end of non-void function" warnings for clang
- This issue was solved with changeset r35321.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* encoding.c (rb_enc_codepoint_len): Use UNREACHABLE to avoid "c... -
12:42 PM Bug #6292: Incorrect GC cleanup order with C extension classes
- I understand the concern. At least I'm clear on the behavior.
matz (Yukihiro Matsumoto) wrote:
> The GC sweeper does not keep the reference dependency. If it does, the GC will be far slower, or will consume too much memory.
> ...
-
09:16 AM Bug #6292 (Rejected): Incorrect GC cleanup order with C extension classes
- The GC sweeper does not keep the reference dependency. If it does, the GC will be far slower, or will consume too much memory.
I am sorry but I have to reject this bug report. It's spec.
Every deallocator should not reference other... -
06:16 AM Bug #6292 (Rejected): Incorrect GC cleanup order with C extension classes
- I have two classes as C extensions. One (the child) holds a reference to the other (parent). The child references parent via rb_ivar_set(). Further, child also registers mark function to mark parent. Despite this, parent is still GC'd be...
-
11:30 AM Feature #6236 (Closed): WEBrick::HTTPServer swallows Exception
- This issue was solved with changeset r35323.
Alex, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/webrick/server.rb (WEBrick::GenericServer#start):
partial... -
11:21 AM Feature #6236 (Assigned): WEBrick::HTTPServer swallows Exception
- regularfry (Alex Young) wrote:
> On 13/04/12 09:01, naruse (Yui NARUSE) wrote:
> ...
Oh sorry, I missed it and now I agree.
I'll revert it.
> Sending SIGINT to $$ raises an exception in the main thread (the test thread) not the WEB... -
07:50 AM Feature #6236: WEBrick::HTTPServer swallows Exception
- Since process-management libraries use other signals than SIGINT to terminate processes, such as SIGTERM, I think WEBrick should rescue and exit on any signal, not just Interrupt, so SignalException is better. See the attached patch.
... -
11:29 AM Feature #6293: new queue / blocking queues - On Sat, Apr 14, 2012 at 10:58:12AM +0900, mame (Yusuke Endoh) wrote:
>
> Issue #6293 has been updated by mame (Yusuke Endoh).
>
> Status changed from Open to Assigned
> Assignee set to matz (Yukihiro Matsumoto)
>
> Hello,
>
... -
11:23 AM Feature #6293: new queue / blocking queues - On Sat, Apr 14, 2012 at 10:23:56AM +0900, Eric Wong wrote:
> "tenderlovemaking (Aaron Patterson)" <aaron@tenderlovemaking.com> wrote:
> > Whenever I use queues, I either use them in a blocking or non-blocking
> > manner only, so I ha... -
10:57 AM Feature #6293 (Assigned): new queue / blocking queues
- Hello,
2012/4/14 tenderlovemaking (Aaron Patterson) <aaron@tenderlovemaking.com>:
> I'd like to add new Queue objects to ruby.
I bet matz does not accept it because there is no good reason.
Why don't you extend the traditional Qu... -
10:29 AM Feature #6293: new queue / blocking queues
- "tenderlovemaking (Aaron Patterson)" <aaron@tenderlovemaking.com> wrote:
> Whenever I use queues, I either use them in a blocking or non-blocking
> manner only, so I have separated them in to two classes Thread::Queue,
> and Threa... -
08:28 AM Feature #6293 (Assigned): new queue / blocking queues
- Hi,
I'd like to add new Queue objects to ruby. Whenever I use queues, I either use them in a blocking or non-blocking manner only, so I have separated them in to two classes Thread::Queue, and Thread::BlockingQueue.
Other notable ... -
09:52 AM Revision 698d21a2 (git): merge revision(s) 35325:
- * bignum.c (rb_big2str0): prevent working clone from
GC. [exerb-dev:0578]. patched by MURASE Masamitsu
<masamitsu.murase AT gmail.com> at [exerb-dev:0580]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1... -
09:12 AM Bug #6288 (Assigned): Change error message for thread block to be less misleading
- Hello,
2012/4/14 rklemme (Robert Klemme) <shortcutter@googlemail.com>:
> mame (Yusuke Endoh) wrote:
> ...
Looks reasonable to me. I'll commit unless there is no objection.
>> Please elaborate "a more complex scenario" with sma... -
12:10 AM Bug #6288: Change error message for thread block to be less misleading
- Hi,
thanks for looking into this!
mame (Yusuke Endoh) wrote:
> Is "possible deadlock detected" better?
If I understand properly what the deadlock check does (see also #5258) it merely verifies that there is at least one thread ... - 09:01 AM Revision fa9f734f (git): * 2012-04-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@35326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:01 AM Revision 52cd11a3 (git): * bignum.c (rb_big2str0): prevent working clone from
- GC. [exerb-dev:0578]. patched by MURASE Masamitsu
<masamitsu.murase AT gmail.com> at [exerb-dev:0580]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@35325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:50 AM Feature #6289 (Closed): メソッドのインライン化について
- Feature request は決意表明の場とは違うので,とりあえず閉じます.
頑張って下さい.
ちなみに,Rubinius という実装が LLVM で JIT compiler を実装しており,inline 化もやっていると思います.
以下,コメントです.
- 「インライン化できるメソッドの条件」は間違い
- 「四則演算や配列操作は明らかにクラス定義、メソッド定義を呼ばないので、インライン化できます」は間違い(厳密には説明が面倒なので略)
- 「... -
01:24 AM Feature #6289 (Closed): メソッドのインライン化について
- Rubyはメソッド呼び出しが重いです。
一方でC++などはmov数個とcall一個で終わりますね?
そこでインライン化を考えてみようと思ったのですが、C++と違って動的なクラス定義が許されている言語なので安易にインライン化はできません。
----------------------------
安全にインライン化するためには
インライン化できるメソッドの条件
・インライン化されるメソッドはクラス定義、メソッド定義を呼ばない
・インライン化できる... -
04:50 AM Bug #6291 (Closed): Backtrace printout halts for an extremely long time when large amounts of data are allocated
- =begin
When large amounts of data are allocated, it can take an eternity for the backtrace printout to complete. Here's a simple example:
class SomeClass
def initialize
@a = Array.new(100000, "just some random str... -
03:55 AM Revision d2e2b309 (git): * configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code
- if -O3 is given.
* win32/win32.c (child_result): dropped colon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:53 AM Bug #6290 (Assigned): Matrix#hermitian? fails to check diagonal elements
-
03:48 AM Bug #6290 (Closed): Matrix#hermitian? fails to check diagonal elements
- =begin
A Hermitian matrix is equal to its own conjugate transpose.
matrix == matrix.conj.t
The bug is that Matrix#hermitian? fails to check the diagonal elements of the matrix. For example, the matrix in the next script is ((*not... -
02:30 AM Revision c26ea74a (git): * lib/webrick/server.rb (WEBrick::GenericServer#start):
- partially revert r35315.
* test/webrick/test_server.rb (test_start_exception):
received signal is delivered to the main thread, so it is needed to
emulate it. patched by Eric Hodel. [ruby-core:44348] [Feature #6236]
git-svn-id: svn... -
12:59 AM Feature #6287: nested method should only be visible by nesting/enclosing method
- On Fri, 2012-04-13 at 22:58 +0900, mame (Yusnuke Endoh) wrote:
> In the same manner, a "nested" method definition you said:
>
> def define_foo
> def foo
> end
> end
>
> should define a method named "define_... -
12:36 AM Revision e95f7ea8 (git): * variable.c (trace_ev): Removed "not reached" comment as this line is
- reached.
* variable.c (rb_obj_remove_instance_variable): Replaced "not reached"
comment with the UNREACHABLE macro.
* variable.c (rb_mod_const_missing): ditto.
* variable.c (rb_mod_remove_cvar): ditto.
* enum.c (first_i): ditto.
* ...
04/13/2012
-
11:45 PM Revision da39d32f (git): * encoding.c (rb_enc_codepoint_len): Use UNREACHABLE to avoid "control
- reaches end of non-void function" warnings. [ruby-trunk - Bug #6066]
* re.c (name_to_backref_number): ditto.
* object.c (rb_Float): ditto.
* io.c (io_readpartial): ditto.
* io.c (io_read_nonblock): ditto.
* pack.c (rb_uv_to_utf8): ... -
11:07 PM Bug #6288 (Feedback): Change error message for thread block to be less misleading
- Is "possible deadlock detected" better?
Please elaborate "a more complex scenario" with small example.
--
Yusuke Endoh <mame@tsg.ne.jp> -
06:51 PM Bug #6288 (Closed): Change error message for thread block to be less misleading
- Test case:
11:50:07 ~$ ruby19 -r thread -e 'q=SizedQueue.new 10;1_000_000.times {|i| p i;q.enq i}'
0
1
2
3
4
5
6
7
8
9
10
/opt/lib/ruby/1.9.1/thread.rb:301:in `sleep': deadlock detected (fatal)
from /opt/lib/ruby/... -
10:58 PM Feature #6287 (Assigned): nested method should only be visible by nesting/enclosing method
- Hello,
There is a similar proposal #4085 based on more general idea.
Below is my personal opinion.
Ruby's def statement is not a static definition, but a dynamic
execution that defines a method in the context. This design
a... -
05:34 PM Feature #6287: nested method should only be visible by nesting/enclosing method
- I know what you mean, but I think this is a limitation of Ruby's OOP nature. In Ruby, everything belongs to an object. So a method must belong to an object, not another method.
-
04:55 PM Feature #6287 (Closed): nested method should only be visible by nesting/enclosing method
- > def test1
def test2
p "i am test2"
end
test2
end
> ...
"i am test2" # ok
> test2
"i am test2" # not ok (imho), this should fail; ie test2 should only be visible by test1, not by outside.
-
08:51 PM Feature #5663: Combined map/select method
- +1
-
11:21 AM Feature #5663: Combined map/select method
- matz (Yukihiro Matsumoto) wrote:
> I am OK with the original map_select behavior, but I don't like the name #map_select.
> ...
I think filter should be a simple alias of select.
# Otherwise, we can't complain about Scala's collect:p
... -
05:58 PM Feature #6286: Add Exception#format method
- It is actually surprising that the formatting of exception is not provided by the Exception class. I realise that it is probably due to some historic reasons, but once the Exception has its #format method, it could be used in place of er...
-
05:40 PM Feature #6286: Add Exception#format method
- nobu (Nobuyoshi Nakada) wrote:
> Why and how would it be nice?
I'm trying to develop Ruby support for ABRT [1]. The idea is, that I will provide at_exit handler and in this handler, I need to report the backtrace. I'd like to repor... -
05:10 PM Feature #6286 (Feedback): Add Exception#format method
- vo.x (Vit Ondruch) wrote:
> It would be nice if Exception class could be extended by #format method (or method with some more suitable name), which would provide the same formatting as is standard output of Ruby exception, e.g.
Why ... -
04:53 PM Feature #6286 (Closed): Add Exception#format method
- It would be nice if Exception class could be extended by #format method (or method with some more suitable name), which would provide the same formatting as is standard output of Ruby exception, e.g.
boomtest.rb:18:in `go': boom (Run... -
05:53 PM Feature #6236: WEBrick::HTTPServer swallows Exception
- On 13/04/12 09:01, naruse (Yui NARUSE) wrote:
>
> Issue #6236 has been updated by naruse (Yui NARUSE).
>
> Status changed from Assigned to Closed
>
> This ticket looks intended to allow ^C shutting down the server.
> So current c... -
05:01 PM Feature #6236 (Closed): WEBrick::HTTPServer swallows Exception
- This ticket looks intended to allow ^C shutting down the server.
So current change to shutdown other than StandardError is too wide, it should be only Interrupt.
drbrain (Eric Hodel) wrote:
> I misunderstood the intended use of star... -
05:25 AM Feature #6236: WEBrick::HTTPServer swallows Exception
- =begin
I misunderstood the intended use of start/stop/shutdown, so I think your patch should be applied.
I assumed you could start the server again after stopping it like:
start -> stop -> start -> stop -> shutdown
since sto... - 03:34 PM Revision d377a6ff (git): * 2012-04-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:34 PM Revision 24476c0c (git): * eval_error.c (error_print): use RB_TYPE_P instead of TYPE.
- * error.c (rb_check_backtrace): ditto.
* error.c (name_err_mesg_to_str): compare immediate values
directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:56 PM Feature #6284: Add composition for procs
- What about `#*` for composing traditionally (right to left) and `#|` for piping (left to right)? In mathematics, depending of the area and the subject, both ways are used, and some argue that "piping" is more natural than "precomposing"....
-
08:59 AM Feature #6284: Add composition for procs
- aprescott (Adam Prescott) wrote:
> See also: http://web.archive.org/web/20101228224741/http://drmcawesome.com/FunctionCompositionInRuby
Maybe `#|` could be a possibility. (Without implementing `#>` or `#<`).
But I find the artic... -
07:53 AM Feature #6284 (Assigned): Add composition for procs
-
06:53 AM Feature #6284: Add composition for procs
- See also:
http://web.archive.org/web/20101228224741/http://drmcawesome.com/FunctionCompositionInRuby -
06:26 AM Feature #6284: Add composition for procs
- I would vote for `#*`. I think `#<<` is usually changing the left argument (in place).
-
02:02 AM Feature #6284: Add composition for procs
- trans (Thomas Sawyer) wrote:
> Also, I think `#+` is better.
I saw facets has some similar feature that uses `#*` instead, maybe because it looks a bit closer to Haskell's composition syntax. Nevertheless, I still like `#<<` better, ... -
11:30 AM Revision 723bfaba (git): * hash.c (no_new_key): moved test to raise outside.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:57 AM Bug #6283: Segmentation fault pg_ext.bundle
- This ticket has roughly the same stack trace as #6281
-
09:25 AM Feature #4969 (Rejected): Subtle issue with require
- If you still need this, please make the issue clear and refine the proposal, then reopen this or file a new ticket.
-
08:39 AM Revision 99d38f82 (git): * hash.c (inspect_i): keep string's coderange.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:54 AM Feature #6277 (Assigned): Hash#convert_key
-
06:26 AM Revision 2d74f3e6 (git): * hash.c (rb_hash_aset, rb_hash_update, rb_hash_update_by): use
- st_update() to reduce evaluation of hash values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:21 AM Revision deb0519a (git): * lib/webrick/server.rb (WEBrick::GenericServer#stop): fix r35303;
- this method is to deny new connections, not shutdown yet.
* lib/webrick/server.rb (WEBrick::GenericServer#start):
re-raise exception only when the exception is Interrupt (^C).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35315 b... -
06:03 AM Bug #6285 (Assigned): Documents of IO#read, IO#readpartial, etc. should describe how they are executed when second argument is not empty String
-
02:47 AM Bug #6285 (Closed): Documents of IO#read, IO#readpartial, etc. should describe how they are executed when second argument is not empty String
- IO#read, IO#readpartial, IO#read_nonblock, and IO#sysread methods can receive a String object as second argument ((|outbuf|)). If it is present, it will receive the data. This is documented.
So, when I pass the empty String object t... -
05:27 AM Feature #6225: Hash#+
- How about `Hash#|` for `Hash#reverse_merge`, and `Hash#|=` for `Hash#reverse_merge!` from *Rails*? (Instead of `#+` for `#merge`.)
I would like to give an algebraic counterpart to Matz's objection: `#merge` is not *injective* in the... -
04:00 AM Feature #6225: Hash#+
- Martin, _in math_, it is common to use `*` for both commutative and non-commutative operations but `+` for only commutative.
But i am more in favor of Matz's argument, because i didn't bother myself about the fact that string addition... - 02:51 AM Revision d2e69f85 (git): * 2012-04-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:51 AM Revision bb844620 (git): * gc.c (obj_free): show entire flags too.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:10 AM Bug #6282: strptime and fractions of seconds
- Great!. Thanks.
-
12:27 AM Bug #6282: strptime and fractions of seconds
- lparra (Luis Parravicini) wrote:
> I know, but where on the docs say so?
r35312 adds the doc.
04/12/2012
-
11:36 PM Feature #6225: Hash#+
- @jacksonwillis `#<<` makes sense as an alias for `#update`, not `#merge`. However I use `Hash#<<` with this meaning:
~~~ruby
def <<(array)
raise if array.size != 2
self[array.first] = array.last
end
~~~
There are historica... -
11:28 PM Feature #6284: Add composition for procs
- Also, I think `#+` is better.
-
11:25 PM Feature #6284: Add composition for procs
- Or
```ruby
format_as_title = ->{ |val| add_header[to_camel[val.strip]] }
```
-
03:21 PM Feature #6284 (Closed): Add composition for procs
- It would be nice to be able to compose procs like functions in functional programming languages:
```ruby
to_camel = :capitalize.to_proc
add_header = ->val {"Title: " + val}
format_as_title = add_header << to_camel << :strip
```
... -
08:48 PM Bug #6282: strptime and fractions of seconds
- I know, but where on the docs say so?
-
07:35 PM Bug #6282 (Rejected): strptime and fractions of seconds
- strptime does not support such an extension.
-
10:12 AM Bug #6282 (Assigned): strptime and fractions of seconds
-
05:57 AM Bug #6282 (Rejected): strptime and fractions of seconds
- =begin
DateTime::strptime refers us to #strftime to check the format to use.
DateTime#strftime says fractions of seconds can be specified with %N, %3N, %6N, %9N and %12N but strptime only recognizes %N.
> d = DateTime.strptime("... -
07:00 PM Bug #982: stack level too deep for long Array initialization
- 前田です。
ko1 (Koichi Sasada) wrote:
> なおしました.
> ...
内容はぜんぜん追っていないのですが、r35306のcommitから以下のような警告が出るようになっているようです。
compile.c: 関数 ‘iseq_compile_each’ 内:
compile.c:4363:8: 警告: 変数 ‘size’ が設定されましたが使用されていません [-Wunused-but-set-variable]
... -
10:51 AM Bug #982 (Closed): stack level too deep for long Array initialization
- なおしました.
命令をいじるのではなく,core メソッドを呼ぶようにしてみました.
ちょっと,余計な配列が増えちゃうのが良くないかも....
誰か性能評価してくれると助かります.
-
06:23 PM Feature #6236: WEBrick::HTTPServer swallows Exception
- On 11/04/12 21:31, drbrain (Eric Hodel) wrote:
>
> Issue #6236 has been updated by drbrain (Eric Hodel).
>
> Target version set to 2.0.0
>
> I extended Alex's patch to include safe shutdown and to allow ^C to work from withi... -
10:53 AM Feature #6236 (Assigned): WEBrick::HTTPServer swallows Exception
- r35303 looks buggy.
WERBrick::GenericServer#stop's is a method to deny a new connection.
Even if the method is called, the server is still alive.
To kill the server, calling shutdown is required.
In other words, the status of a s... -
07:53 AM Feature #6236: WEBrick::HTTPServer swallows Exception
- Oops, sorry. Nahi-san, could you please review drbrain's commit (r35303) ?
2012/4/12 nahi (Hiroshi Nakamura) <nakahiro@gmail.com>:
>
> Issue #6236 has been updated by nahi (Hiroshi Nakamura).
>
> Assignee changed from d... -
06:00 AM Feature #6236: WEBrick::HTTPServer swallows Exception
- WEBrick has a maintainer now :)
-
05:31 AM Feature #6236: WEBrick::HTTPServer swallows Exception
- I extended Alex's patch to include safe shutdown and to allow ^C to work from within accept_client.
Since each connection is handled in a separate thread, my concern about exception-tollerance was not founded. -
05:28 AM Feature #6236 (Closed): WEBrick::HTTPServer swallows Exception
- This issue was solved with changeset r35303.
Alex, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/webrick/server.rb (module WEBrick::GenericServer): A serve... -
04:49 PM Bug #5258: SizedQueueにBug #5195と同様のバグ
- Hi again,
mame (Yusuke Endoh) wrote:
> 2012/4/11 rklemme (Robert Klemme) <shortcutter@googlemail.com>:
> ...
I was lucky because I was just sensitized by Eric's recent article about signal handling in Ruby. :-)
> But I'm not en... -
12:29 AM Bug #5258: SizedQueueにBug #5195と同様のバグ
- Hello,
2012/4/11 rklemme (Robert Klemme) <shortcutter@googlemail.com>:
> nobu (Nobuyoshi Nakada) wrote:
>> It seems natural because the only thread is about to sleep.
>
> I would expect the thread to block indefinitely. Signallin... -
02:36 PM Bug #6283 (Feedback): Segmentation fault pg_ext.bundle
- What is "a Rails project" ?
Anyway it seems Third Party's Issue. -
01:42 PM Bug #6283 (Closed): Segmentation fault pg_ext.bundle
- *Steps to reproduce:*
1. rvm reinstall 1.9.3 --with-openssl-dir=/usr/local
2. Install a Rails project that uses 1.9.3
3. rake -T
*Result of ruby -v:*
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]
*Expecte... -
11:19 AM Bug #6281 (Feedback): 1.9.3-p125 crashes when using therubyracer 0.9.10
- I can't reproduce it.
I think you should reinstall therubyracer.
Anyone can do? -
12:52 AM Bug #6281 (Rejected): 1.9.3-p125 crashes when using therubyracer 0.9.10
- I'm on Mac OS X 10.7.3, and I'm unable to run 1.9.3-p125 when I require therubyracer 0.9.10. Note that ruby 1.9.3-p0 works just fine.
Reproducing code:
#!/home/directory/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
require 'v8'
puts... - 10:52 AM Revision 3a71da58 (git): * ext/date/date_core.c: added some notes.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:42 AM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
- Feel free.
-
06:35 AM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
- Nobu, may I commit this?
-
07:16 AM Revision 2417bd10 (git): * test/ruby/test_autoload.rb: clear autoloaded paths.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:11 AM Feature #4551 (Closed): uri.set_scheme should downcase schemes
- This issue was solved with changeset r35305.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/uri/generic.rb (module URI): URI now downcases the scheme ... -
06:20 AM Feature #6088 (Closed): Add Net::ReadTimeout to distinguish which operation failed
- This issue was solved with changeset r35304.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/protocol.rb (module Net): Added ReadTimeout to match
... -
06:10 AM Revision 871cd27c (git): * gc.c (GET_HEAP_HEADER, NUM_IN_SLOT): parenthesise macro parameters.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:10 AM Revision e2aaf978 (git): * hash.c: use RHASH_ITER_LEV(), not iter_leve directly.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:28 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
- naruse (Yui NARUSE) wrote:
> marcandre (Marc-Andre Lafortune) wrote:
> ...
It has been 2 weeks since the last update. Has this issue been forgotten? -
02:51 AM Revision 1d6d4d24 (git): r35304 changes the exception.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:47 AM Revision 45b3509c (git): Add a ticket number for last commit.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:33 AM Revision ee7f8d48 (git): * compile.c (compile_array, compile_array_):
- Divide big array (or hash) literals into several blocks and
concatetene them. There was a problem that a big array (hash)
literal causes SystemStackError exception (stack overflow)
because VM push all contents of the literal onto ...