Project

General

Profile

Activity

From 09/25/2012 to 10/01/2012

10/01/2012

06:43 PM Feature #7091: Object#puts_to
nobu (Nobuyoshi Nakada) wrote:
> =begin
> ...
Thank you, Nobu. Hadn't seen this before. I wish to have similar syntax for output in file by filename, but this is also good enough.
prijutme4ty (Ilya Vorontsov)
06:31 PM Feature #7091: Object#puts_to
Don't you feel that mixing function call and method-chain is ugly? This was the main reason why I proposed this method, not inability to do this.
In case that expression is full of curl-braces and so on, additional level of "brace-deepn...
prijutme4ty (Ilya Vorontsov)
10:30 AM Feature #7091: Object#puts_to
=begin
readlines.sort.map{...}.select{...}.display($stderr)
=end
nobu (Nobuyoshi Nakada)
12:54 AM Feature #7091 (Rejected): Object#puts_to
=begin
There are several ways to do this just as easily:
Write to $stdout:
puts(*readlines.sort.map{...}.select{...})
Write to $stderr:
$stderr.puts(*readlines.sort.map{...}.select{...})
Write to 'file.txt':
File...
drbrain (Eric Hodel)
06:38 PM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
kosaki (Motohiro KOSAKI) wrote:
> monitor is based on Java monitor semantics.
My Java knowledge is rusted, but monitor is not based on Java monitor semantics, at least when it was designed. Java's monitor mechanism mixes a mutex and...
shugo (Shugo Maeda)
02:52 PM Revision 39ef471e (git): * ChangeLog: fix typos of r37064.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
01:56 PM Revision e56eb1b1 (git): * eval.c (identify_hash_new): new function to create a new identity
hash.
* eval.c (rb_overlay_module, rb_mod_using, rb_mod_refine): use
identify_hash_new().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
01:29 PM Feature #7047: Add new C API: rb_newobj_with
(2012/10/01 13:15), authorNari (Narihiro Nakamura) wrote:
> with_flagsでもいいと思うんだけど、引数としてはflagsもklassも、どちらも
> 何かしらのタイプを受け取るので、 rb_newobj_of(xxx) がいいのじゃないか、
> とおっしゃってました。new obj of class みたいな意味で。
>
> * rb_newobj_of(klass, VALU...
ko1 (Koichi Sasada)
01:15 PM Feature #7047: Add new C API: rb_newobj_with
ko1 (Koichi Sasada) wrote:
> (2012/09/26 22:22), authorNari (Narihiro Nakamura) wrote:
> ...
まつもとさんに直接意見を聞いてみました。
with_flagsでもいいと思うんだけど、引数としてはflagsもklassも、どちらも
何かしらのタイプを受け取るので、 rb_newobj_of(xxx) がいいのじゃないか、
とおっしゃってました。new obj of clas...
authorNari (Narihiro Nakamura)
07:59 AM Feature #7047: Add new C API: rb_newobj_with
(2012/09/26 22:22), authorNari (Narihiro Nakamura) wrote:
> rb_newobj_with(klass, VALUE flags) でパッチを修正しました。

flags を取るようにしたので,rb_newobj_with_flags でどうでしょうか.
何かしら,マクロで隠蔽して,実質こいつは呼ばない,となると,長い名前でも
良いのではないか,と思うのですが(別に長くてもいいか?).
...
ko1 (Koichi Sasada)
06:38 AM Bug #7092 (Rejected): StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives
To reproduce:
>> require 'strscan'
>> ss = StringScanner.new("ab")
>> ss.scan(/./)
=> "a"
>> ss.scan(/^./) # expecting nil, since the head is in the middle of a line
=> "b"
As a workaround-that-didn't-w...
jayferd (Jay Adkisson)

09/30/2012

11:40 PM Feature #7091 (Rejected): Object#puts_to
I suggest a new method Object#puts_to(io_or_filename) (or BasicObject#puts_to)
It's usual that one-two-three-line scripts have big chains like
readlines.sort.map{...}.select{...} and so on and after you wrote such a monstruous expres...
prijutme4ty (Ilya Vorontsov)
11:40 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
=begin
A single dot is very unobtrusive. So I just think that `.foo` and `foo` resp. `@.foo` and `@foo` would look too similar to be easily distinguished, especially when browsing through larger pieces of code.
=end
=end
stomar (Marcus Stollsteimer)
06:07 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
@stomar, maybe you are right that `self.foo =` is more readable than `@.foo =` or `.foo =`, especially for someone who would see it for the first time. However, then it seems to me that `bar = self.foo()` is also more readable than just... alexeymuranov (Alexey Muranov)
02:57 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
=begin
I think that would decrease readability of the code quite a lot (even more so for the first suggestion) and I don't see ((*any*)) benefit. It's only four characters.
=end
stomar (Marcus Stollsteimer)
09:53 PM Bug #7085: Subversion → GitHub gateway stops.
Hi, I guess you use a fixed SSH_AUTH_SOCK ? Then it's OK as long as you carefully
restrict the socket's permission. Anyone can read form the socket can fake you.
Anyway that's a normal security (not colo-specific). So go ahead, w...
shyouhei (Shyouhei Urabe)
04:23 PM Bug #7085: Subversion → GitHub gateway stops.
Yes, it is possible. If you're comfortable with this, I can set it up as soon as I have the gateway code.

- Evan // via iPhone


On Sep 29, 2012, at 6:27 PM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

> On 09/30/2012 02:...
evanphx (Evan Phoenix)
10:29 AM Bug #7085: Subversion → GitHub gateway stops.
On 09/30/2012 02:33 AM, Evan Phoenix wrote:
> Hello shyouhei,
>
> I would be happy to have RubyCentral run the gateway but I'd like to run it in colocation. I can guarantee security of the keys by using passphrases and ssh-agent....
shyouhei (Shyouhei Urabe)
10:29 AM Bug #7085: Subversion → GitHub gateway stops.
Hello.

On 09/30/2012 02:21 AM, Luis Lavena wrote:
> Thank you Shyouhei Urabe,
>
> Wouldn't be possible setup the bridge on same subversion server so it doesn't require ssh keys to push?

Yes, SSH key business is not need...
shyouhei (Shyouhei Urabe)
02:53 AM Bug #7085: Subversion → GitHub gateway stops.
Hello shyouhei,

I would be happy to have RubyCentral run the gateway but I'd like to run it in colocation. I can guarantee security of the keys by using passphrases and ssh-agent. The machine in question will only run the gateway, ...
evanphx (Evan Phoenix)
02:23 AM Bug #7085: Subversion → GitHub gateway stops.
Thank you Shyouhei Urabe,

Wouldn't be possible setup the bridge on same subversion server so it
doesn't require ssh keys to push?

The idea is: subversion repository is local, so is git repository.

We expose git repo too...
luislavena (Luis Lavena)
09:38 PM Bug #6900: execinfo ライブラリ(およびそのヘッダ)の探索に --with-opt-dir の指定が利かない
knu (Akinori MUSHA) wrote:
> 手元のFreeBSD 9.1-PRERELEASE/amd64環境では、 --with-opt-dir=/usr/local を付けてもLIBRUBY_SOのビルドでこけます。
> ...
なるほど、コミットしてください
naruse (Yui NARUSE)
09:20 PM Bug #7090 (Closed): UTF-16LE String#<< append 0x0 for certain codepoints
This issue was solved with changeset r37058.
Stefan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_concat): use memcpy to copy a string which c...
naruse (Yui NARUSE)
08:34 PM Bug #7090: UTF-16LE String#<< append 0x0 for certain codepoints
With older Ruby version: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
the string correctly contains 0x20, 0x300 for UTF-8, UTF-16LE and UTF-16BE.
stefan (Stefan Lang)
08:30 PM Bug #7090: UTF-16LE String#<< append 0x0 for certain codepoints
UTF-16BE
irb(main):003:0> s = "".force_encoding('utf-16be')
=> ""
irb(main):004:0> s << 0x20
=> "\u0000"
irb(main):005:0> s << 0x300
=> "\u0000\u0300"
stefan (Stefan Lang)
08:18 PM Bug #7090 (Closed): UTF-16LE String#<< append 0x0 for certain codepoints
$ irb193 -r unicode_utils/u
irb(main):001:0> RUBY_VERSION
=> "1.9.3"
irb(main):002:0> s1 = "".force_encoding('utf-16le')
=> ""
irb(main):003:0> s1 << 0x20
=> " "
irb(main):004:0> s1 << 0x300
=> " \u0000"
irb(...
stefan (Stefan Lang)
08:23 PM Bug #7084: RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
(2012/09/29 23:11), mrkn (Kenta Murata) wrote:
>
> ulimit -s の値に依存して SEGV してしまう場合があるので、それだけでも直したいです。

 ulimit -s の値に依存せず SEGV するのはもっと嫌な気がしますが,それはと
もかく,直るのなら大変結構なことだと思います.よろしくお願いします.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
08:22 PM Bug #7089 (Feedback): Rails server refuses to start
Is pg_ext.bundle compiled for the version of Ruby you have? (1.9.3-p194 x86_64-darwin11.4.2)
A segfault from your vendor/bundle most likely is coming from a extension that wasn't compiled for that particular version of Ruby.
Can yo...
luislavena (Luis Lavena)
06:13 PM Bug #7089 (Closed): Rails server refuses to start
denis:questicker/ (master✗) $ rs [13:11:25]
/Users/denis/code/questicker/vendor/bundle/gems/pg-0.14...
sadfuzzy (Denis Savitsky)
05:36 PM Revision a0f43fad (git): * 2012-10-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:36 PM Revision 1d695c36 (git): * configure.in (--with-opt-dir): Make this also work on DLDFLAGS
so LIBRUBY_SO links fine with libexecinfo installed in a
non-system directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
02:34 PM Revision 0d3cd411 (git): * vm_dump.c (rb_vm_bugreport): add /Library/Logs/DiagnosticReports
in the list of locations of crash reports.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
12:32 PM Revision 173aacf9 (git): * test/ruby/test_enumerator.rb (enum_test, test_inspect): remove unused
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
12:20 PM Revision ab5545ee (git): * 2012-09-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:20 PM Revision 64989fa5 (git): * string.c (rb_str_concat): use memcpy to copy a string which contains
NUL characters. [ruby-core:47751] [Bug #7090]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:44 AM Feature #7086: ConditionVariable#wait has meaningless return value
kosaki (Motohiro KOSAKI) wrote:
> I think Java API spec is crazy and buggy.
:-)
> ...
There is some truth in what you write. In the usual case you certainly need to check your condition. But I think nevertheless that the Java wa...
rklemme (Robert Klemme)
12:47 AM Feature #7086: ConditionVariable#wait has meaningless return value
I think Java API spec is crazy and buggy. It explicitly says:
http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/Condition.html#await(long,%20java.util.concurrent.TimeUnit)
> When waiting upon a Condition, a "spu...
kosaki (Motohiro KOSAKI)
12:21 AM Feature #7086: ConditionVariable#wait has meaningless return value
rklemme (Robert Klemme) wrote:
> There's another issue exhibited through the script but I will create a separate ticket for this.
That is bug #7087 now.
rklemme (Robert Klemme)
12:14 AM Feature #7086 (Assigned): ConditionVariable#wait has meaningless return value
I consider this an API bug: when invoked with a timeout value the caller cannot distinguish from the return value whether the condition has been signaled or the time has run out. Consider how Java does it: http://docs.oracle.com/javase/... rklemme (Robert Klemme)
01:32 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
kosaki (Motohiro KOSAKI) wrote:
> At least, this is intentional. condtion variable and monitor have different inspiration source.
> ...
For me the difference between Mutex and Monitor is only reentrancy. Other than that I'd have expec...
rklemme (Robert Klemme)
12:52 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
At least, this is intentional. condtion variable and monitor have different inspiration source.
condition variable is based on POSIX CV and monitor is based on Java monitor semantics. To be
honest, I'm not familiar Java's conditon vari...
kosaki (Motohiro KOSAKI)
12:19 AM Feature #7087 (Assigned): ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
See program attached to bug #7086: timeout_4 always throws:
ERROR: method "timeout_4": #<NoMethodError: private method `sleep' called for #<Monitor:0x87e49f8>>
$ irb19 -r monitor
irb(main):001:0> Monitor.new.method(:sleep)
=> #<M...
rklemme (Robert Klemme)
01:00 AM Bug #7088 (Closed): Documentation of Timeout::timeout is wrong about which thread executes the block
See http://rubydoc.info/stdlib/timeout/Timeout#timeout-class_method - it reads "The block will be executed on another thread and will be given one argument: sec." If you make the source code visible or look into the file timeout.rb in t... rklemme (Robert Klemme)

09/29/2012

11:27 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
Maybe then `@` instead of `self`?
@.foo = 'bar'
instead of
self.foo = 'bar'
alexeymuranov (Alexey Muranov)
11:11 PM Bug #7084: RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
"1+"*10000 + "1" は YAPC::Asia の LT で見かけたネタです。
ulimit -s の値に依存して SEGV してしまう場合があるので、それだけでも直したいです。
mrkn (Kenta Murata)
07:53 PM Bug #7084: RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
(2012/09/29 18:27), mrkn (Kenta Murata) wrote:
> 以下のように ulimit -s の値に応じて stack level too deep と Segmentation Fault のどちらかが発生するようです。

 ええと,どうしたもんですかね.実装の都合でスタックオーバーフローするも
のは他にもありそうなので,これだけ頑張るべきか,よくわからないんですが....

 これだけ取り出した理由はな...
ko1 (Koichi Sasada)
06:29 PM Bug #7084: RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
gdb で採取したバックとレースを gist に上げました。ulimit -s 8192 の場合です。参考までに。
https://gist.github.com/3803540
mrkn (Kenta Murata)
06:27 PM Bug #7084 (Closed): RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
以下のように ulimit -s の値に応じて stack level too deep と Segmentation Fault のどちらかが発生するようです。
$ .prefix/bin/ruby -v
ruby 2.0.0dev (2012-09-29 trunk 37053) [x86_64-darwin12.1.0]
$ ulimit -s
8192
$ .prefix/bin/ruby -e 'p RubyVM::InstructionSequ...
mrkn (Kenta Murata)
10:04 PM Bug #7083 (Third Party's Issue): Why I cannot pass the test?
nobu (Nobuyoshi Nakada)
04:53 PM Bug #7083: Why I cannot pass the test?
On 29 September 2012 16:55, mghomn (Justin Peal) <yujianbin@huawei.com> wrote:
>
> Issue #7083 has been reported by mghomn (Justin Peal).
>
> ----------------------------------------
> Bug #7083: Why I cannot pass the test?
...
phluid61 (Matthew Kerwin)
03:54 PM Bug #7083 (Third Party's Issue): Why I cannot pass the test?
=== Program ===
#!/usr/bin/env ruby -w
# encoding: utf-8
require 'test/unit'
class Currency
attr_reader :currency, :decimal_digits
def initialize currency, decimal_digits
@currency, @decimal_digits = currency, decima...
mghomn (Justin Peal)
09:40 PM Bug #7085: Subversion → GitHub gateway stops.
Memo: how to reboot the svn->git gateway
Prerequisite
1. You need be a ruby core committer; you'll have to access the ruby's
canonical svn repo.
2. You need have a valid github account. Let me (shyouhei) know your
githu...
shyouhei (Shyouhei Urabe)
09:40 PM Bug #7085 (Closed): Subversion → GitHub gateway stops.
Abstract: Sorry for your inconvenience. Due to my resigning job
at netlab.jp, the Subversion to GitHub gateway stops now. The
gateway was located there, maintained by me.
Biggest problem to reboot the gateway is its ssh priv...
shyouhei (Shyouhei Urabe)
08:53 PM Bug #7076: TestUnicodeEscape#test_basic failure on Windows
On Fri, Sep 28, 2012 at 9:49 AM, U.Nakamura <usa@garbagecollect.jp> wrote:
> Hello,
>
> In message "[ruby-core:47709] [ruby-trunk - Bug #7076][Open] TestUnicodeEscape#test_basic failure on Windows"
> on Sep.27,2012 21:44:25,...
h.shirosaki (Hiroshi Shirosaki)
11:19 AM Revision 4d4800a5 (git): envutil.rb: kill child process when timeout
* test/ruby/envutil.rb (EnvUtil#invoke_ruby): kill child process
before Timeout::Error is raised. rmdir of mktmpdir fails with
EACCES if child process is alive on Windows.
* test/thread/test_queue.rb (TestQueue): increase timeout.
...
h.shirosaki (Hiroshi Shirosaki)
11:19 AM Revision e453cc71 (git): test_http.rb: clear environment variables
* test/net/http/test_http.rb (TestNetHTTP#test_proxy_address):
clear environment variables. If http_proxy environment variable was
set, the test failed.
* test/net/http/test_http.rb (TestNetHTTP#test_proxy_port): ditto.
git-svn-id:...
h.shirosaki (Hiroshi Shirosaki)
11:19 AM Revision d0df0547 (git): drbtest.rb: use :KILL on Windows
* test/drb/drbtest.rb (DRbCore#teardown):
Use Process.kill :KILL on Windows because Process.kill :INT silently
fails on Windows 7 and raises EINVAL on Windows XP for spawned
process with new_pgroup: false.
* test/drb/drbtest.rb (D...
h.shirosaki (Hiroshi Shirosaki)
11:18 AM Revision 6d1220b0 (git): test_unicode_escape.rb: set script encoding
* test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic):
set script encoding to work with LANG=C. It would work on both
Windows and Unix. Refix of r37051.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37054 b2dd03c8-39...
h.shirosaki (Hiroshi Shirosaki)
02:21 AM Revision 09546078 (git): * vm_insnhelper.c (rb_vm_using_modules): use using_modules before
klass to fix method lookup order, and use klass even if klass is
not a module to make refinements in class_eval invoked on classes
work.
* eval.c (rb_using_module): accept a class as the second argument.
* eval.c (rb_mod_using, f_u...
shugo (Shugo Maeda)

09/28/2012

10:43 PM Bug #7076 (Closed): TestUnicodeEscape#test_basic failure on Windows
This issue was solved with changeset r37050.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
test_unicode_escape.rb: fix test for Windows
* test/ruby/test...
Anonymous
09:53 AM Bug #7076: TestUnicodeEscape#test_basic failure on Windows
Hello,

In message "[ruby-core:47709] [ruby-trunk - Bug #7076][Open] TestUnicodeEscape#test_basic failure on Windows"
on Sep.27,2012 21:44:25, <h.shirosaki@gmail.com> wrote:
> This patch works fine with chcp 437, 1252 and 65...
usa (Usaku NAKAMURA)
05:45 PM Bug #7070: sometimes backticks can fail to return data
yes in the few limited tests I've tried (I still need to try a c-based popen that also spawn a new cmd shell IIRC) I am not able to get it to fail if I just capture "ffmpeg.exe 2>&1", only with that exact command line does it fail. Inte... rogerdpack (Roger Pack)
10:33 AM Bug #7070: sometimes backticks can fail to return data
While I'm interested in discovering root cause on this, ffmpeg enumerates directshow devices like
http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavdevice/dshow.c;h=120ddd9a64ddfb0eaeaa128eee5600e88d42efb0;hb=HEAD#l252
Looks like...
jonforums (Jon Forums)
06:15 AM Bug #7070: sometimes backticks can fail to return data
Given your CRT `popen` and Java `Process` experiments, does a more verbose `IO.popen` (non-shell) snippet reliably work?
It's clever that you're parsing ffmpeg's stderr to enum dshow devices, but is the stderr redirect to stdout plus ...
jonforums (Jon Forums)
04:01 AM Bug #7070: sometimes backticks can fail to return data
While I can repro with this snippet on Win7 32bit, your ffmpeg command (nonexistent 'dummy' input file?) appears to be causing the problem.
# file: backtick_loop.rb
CYCLES = (ENV['BT_TEST_CYCLES'] ||= '200').to_i

puts 'backticki...
jonforums (Jon Forums)
05:32 PM Revision 039e2a35 (git): * 2012-09-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:32 PM Revision 93731ef2 (git): * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic):
Use ruby only on Windows since the test fails on Unix with LANG=C.
[ruby-core:47709] [Bug #7076]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
04:43 PM Feature #7082: Process.kill 0 in windows can return spurious success
I see that the current way in windows somewhat mimic's how it operates in Unix (process is a zombie, so still responds to signals). If so, perhaps it would be nice to create a new method
Process.alive?(pid)
that would be useful i...
rogerdpack (Roger Pack)
04:29 PM Feature #7082 (Open): Process.kill 0 in windows can return spurious success
>> a = IO.popen('ls "."', 'w')
=> #<IO:fd 4>
> ...
=> 2104
>> Process.kill 0, 2104
=> 1 # should raise an exception since that process is dead now, shouldn't it? [it can be checked with GetExitCodeProcess != STILL_ACTIVE) ?
Thanks...
rogerdpack (Roger Pack)
01:43 PM Revision b5de8fcd (git): test_unicode_escape.rb: fix test for Windows
* test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic):
echo command doesn't work properly against non-ascii character on
Windows with chcp 437. Instead we use ruby.
[ruby-core:47709] [Bug #7076]
git-svn-id: svn+ssh://c...
h.shirosaki (Hiroshi Shirosaki)
10:40 AM Feature #7067 (Closed): IO#reopen should accept File::Constants
This issue was solved with changeset r37041.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io.c: IO#reopen int mode
* io.c (rb_io_reopen): accept File::C...
nobu (Nobuyoshi Nakada)
08:58 AM Revision 2adb9fd4 (git): * vm_insnhelper.c (vm_setup_method): refactoring.
Remove src_argc and use iseq->arg_size directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:29 AM Revision 948169c5 (git): * lib/rubygems/installer.rb (check_that_user_bin_dir_is_in_path):
test_generate_bin_bindir_with_user_install_warning(TestGemInstaller)
fails on Windows with msys bash. It makes comparing paths
case-insensitive.
pick from upstream to fix a failure of test-all [ruby-core:47711]
https://github.com...
naruse (Yui NARUSE)
08:11 AM Revision 82491a4f (git): vm_insnhelper.c: fix types
* vm_insnhelper.c (vm_setup_method): fix -Wshorten-64-to-32.
* vm_insnhelper.c (vm_base_ptr): fix -Wformat
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:48 AM Revision de14055d (git): * vm_method.c (search_method): copy refinement iclasses to search
superclasses correctly.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
06:44 AM Revision e3990633 (git): * insns.def (opt_checkenv): remove unused instruction `opt_checkenv'.
* compile.c (iseq_compile_each): ditto.
* node.h: remove unused node `NODE_OPTBLOCK'.
* ext/objspace/objspace.c, gc.c (gc_mark_children): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
04:16 AM Revision 64f5b6ae (git): * vm_core.h: now VM_DEBUG_BP_CHECK should be 1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
04:05 AM Revision d50483df (git): * vm_core.h: remove rb_control_frame_t::bp (bp: base pointer).
`bp' can be calculate by `sp' (stack pointer) of previous frame.
Now, `bp_check' field is remained for debug. You can eliminate
this field by setting VM_DEBUG_BP_CHECK as 0.
* vm_insnhelper.c (vm_base_ptr): add `vm_base_ptr(cfp).
...
ko1 (Koichi Sasada)
03:57 AM Bug #7081 (Closed): GServer orphaned threads lead to resource exhaustion
Hi,
I believe I have located another underlying flaw in GServer: I have observed server threads becoming orphaned, leading to resource allocation (when @connections.size > @@maxConnections).
The cause is that the new service thread i...
stevegoobermanhill (stephen gooberman-hill)
01:41 AM Revision 8124d679 (git): * 2012-09-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:40 AM Revision 4a3c049c (git): io.c: IO#reopen int mode
* io.c (rb_io_reopen): accept File::Constants as well as mode string.
based on the patch by Glass_saga (Masaki Matsushita) in
[ruby-core:47694]. [Feature #7067]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37041 b2dd03c8-39d4-...
nobu (Nobuyoshi Nakada)
01:16 AM Bug #7080 (Feedback): Segmentation Fault (sometimes) when running script
Seems you're using the binary version of mysql gem, which requires an *exact* version of libmysql.dll in your system.
Please read this:
http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/
...
luislavena (Luis Lavena)
01:06 AM Bug #7080 (Third Party's Issue): Segmentation Fault (sometimes) when running script
When I run the Ruby script in cmd line in Windows 7, most of the time I get this 'Segmentation fault'. Maybe one time in 20 a fault is not returned. Additionally one time I received more detailed Segmentation fault details, which I've pa... scnissen (Sam Nissen)

09/27/2012

11:34 PM Feature #7067: IO#reopen should accept File::Constants
Sorry, I made a mistake.
The patch is untabified code.
I have attached tabified one.
Glass_saga (Masaki Matsushita)
09:42 PM Bug #7076 (Closed): TestUnicodeEscape#test_basic failure on Windows
=begin
This was originally reported at rubyinstaller-list by Jon.
With chcp 437, TestUnicodeEscape#test_basic fails with invalid byte sequence in UTF-8.
http://pastie.org/4688083
I got the following test failure with chcp 437...
h.shirosaki (Hiroshi Shirosaki)
07:27 PM Bug #6900 (Open): execinfo ライブラリ(およびそのヘッダ)の探索に --with-opt-dir の指定が利かない
手元のFreeBSD 9.1-PRERELEASE/amd64環境では、 --with-opt-dir=/usr/local を付けてもLIBRUBY_SOのビルドでこけます。
(...)
linking shared-library libruby.so.20
/usr/bin/ld: cannot find -lexecinfo
DLDFLAGSも手当てが必要と思いますがどうでしょう。
knu (Akinori MUSHA)
06:21 PM Bug #7065 (Closed): Syslog::Logger should have a formatter
This issue was solved with changeset r37039.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/syslog/lib/syslog/logger.rb: add a formatter to the
Sysl...
knu (Akinori MUSHA)
03:05 PM Feature #6242: Ruby should support lists
even i guess so Ruby is a LISP
http://www.leatherfads.com/leather-jacket.aspx
jamesw (James Owen)
01:51 PM Feature #7075 (Rejected): const_get でトップレベルの定数を参照する時に警告
class C; end
A = 42
C::A # => warning: toplevel constant A referenced by C::A
C.const_get(:A)
のように C::A でトップレベルの(Object直下の)定数を参照する時には警告メッセージが
出力されますが、Module#const_get で参照する時は警告が出力されません。
同じように警告が出たほうがよいと考えますがどうでしょう。
nagachika (Tomoyuki Chikanaga)
09:53 AM Revision 8940e372 (git): * eval.c (rb_overlay_module, rb_mod_refine): accept a module as the
argument of Module#refine.
* vm_method.c (search_method): if klass is an iclass, lookup the
original module of the iclass in omod in order to allow
refinements of modules.
* test/ruby/test_refinement.rb: add tests for the above cha...
shugo (Shugo Maeda)
09:20 AM Revision e0bff650 (git): * ext/syslog/lib/syslog/logger.rb: add a formatter to the
Syslog::Logger object. [Bug #7065]
* test/syslog/test_syslog_logger.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
09:10 AM Bug #7074 (Rejected): OpenSSL::PKey::RSA.new(public_key) fails if public_key doesn't have -----BEGIN PUBLIC KEY-----
public_key2 is not a valid PEM format (the one in public_key1). It's valid Base64, true, but that's not what OpenSSL expects. It can deal with either DER- or PEM-encoded data. In my eyes, there's nothing wrong here, or did you mean somet... MartinBosslet (Martin Bosslet)
08:24 AM Bug #7074 (Rejected): OpenSSL::PKey::RSA.new(public_key) fails if public_key doesn't have -----BEGIN PUBLIC KEY-----
=begin
public_key1 = <<KEY
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfW7fNVCLBii/Ky/H97w9BAL6H
ifRM9sJkxo1dqCzvYHLk/89OmYMoDJ2+OgHRaoRpP+CSHiTkxQR1G+UbHLiQpZMo
CbcHAN6nDVET5ulgA8xywOAuIEgsJ5CmhWG79rZGq...
dlee (David Lee)
02:36 AM Revision 015af597 (git): * 2012-09-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:36 AM Revision 454d3935 (git): eval.c: invariant IDs
* eval.c (rb_mod_include, rb_obj_extend): move invariant IDs to
outside of loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/26/2012

10:22 PM Feature #7047: Add new C API: rb_newobj_with
レビューありがとうございます。
rb_newobj_with(klass, VALUE flags) でパッチを修正しました。
https://github.com/authorNari/ruby/compare/trunk...rb_newobj2
flagsさえ引数にとればenum ruby_value_type相当の情報は取れるはずなので問
題ないのかなと思います。
また名前の候補を考えたり、教えていただいたりしていました。
* r...
authorNari (Narihiro Nakamura)
09:18 PM Feature #6972: 特化命令opt_emptyの追加
ありがとうございました。 Glass_saga (Masaki Matsushita)
06:53 PM Feature #6972: 特化命令opt_emptyの追加
遅くなってすみません.
コミットしました.


(2012/09/05 22:07), Glass_saga (Masaki Matsushita) wrote:
>
> Issue #6972 has been updated by Glass_saga (Masaki Matsushita).
>
> File patch2.diff added
>
> ささださんからご指摘頂いた点ですが、特化命令の名前をopt_em...
ko1 (Koichi Sasada)
06:34 PM Feature #6972 (Closed): 特化命令opt_emptyの追加
This issue was solved with changeset r37036.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* insns.def: add new instruction `opt_empty_p' for optimize `em...
ko1 (Koichi Sasada)
07:40 PM Bug #7065 (Assigned): Syslog::Logger should have a formatter
Eregon (Benoit Daloze) wrote:
>
> ...
You're correct, I should stop responding to issues after 10pm.
luislavena (Luis Lavena)
06:50 PM Bug #7065: Syslog::Logger should have a formatter
luislavena (Luis Lavena) wrote:
> How about moving ansi regexp as constant so regexp object doesn't get allocated on every formatter.call?
If I'm not mistaken this is unnecessary, as "static" (without #{...}) Regexps are created only...
Eregon (Benoit Daloze)
10:42 AM Bug #7065: Syslog::Logger should have a formatter
How about moving ansi regexp as constant so regexp object doesn't get allocated on every formatter.call? luislavena (Luis Lavena)
10:38 AM Bug #7065: Syslog::Logger should have a formatter
I tested this in my application. Works as expected. bitsweat (Jeremy Daer)
05:51 PM Feature #6528: Add Pathname#write and Pathname#binwrite
> IO.read と対応する Pathname#read があるので
> ...
のところ、
> IO.read と対応する Pathname#read があるので
> ...
の誤りでしたので訂正します。
niku (niku _)
05:13 PM Feature #7067: IO#reopen should accept File::Constants
Seems fine to me. nobu (Nobuyoshi Nakada)
09:34 AM Revision 1bebb22c (git): * insns.def: add new instruction `opt_empty_p' for optimize `empty?'
method. Apply a patch proposed at [ruby-dev:46120]
[ruby-trunk - Feature #6972] by Glass_saga (Masaki Matsushita).
* compile.c (iseq_specialized_instruction), vm.c, vm_insnhelper.h:
ditto.
* id.c, template/id.h.tmpl: ditto.
* test/r...
ko1 (Koichi Sasada)
08:09 AM Bug #7070 (Third Party's Issue): sometimes backticks can fail to return data
Basically, if you have ffmpeg for windows, ex: http://ffmpeg.zeranoe.com/builds
Then run it like this:
enum = `ffmpeg.exe -list_devices true -f dshow -i dummy 2>&1`
"every so often" the value returned is "" (presumably in err...
rogerdpack (Roger Pack)
07:04 AM Bug #6822: Race Condition with Fiber and Process
ko1 (Koichi Sasada) wrote:
> Now, I understand your issue. This is not a Fiber problem, but
> ...
Thanks for the advice, I will do that! Thanks for bearing with me ;)
MartinBosslet (Martin Bosslet)
04:03 AM Revision 24793ac3 (git): Revert "Darwin 12 (OS X Mountain Lion) also has Bug #6692"
This reverts commit r37033.
darwin12 seems to use an address started with fe80.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:51 AM Feature #7068 (Rejected): ability to deactivate Hash#compare_by_identity()
Hello,
I am using ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux].
There is no way to deactivate a Hash's compare by identity behavior:
h = Hash.new
h.compare_by_identity
h.compare_by_identity? #=> true
h.co...
sunaku (Suraj Kurapati)
01:26 AM Revision 8432fda6 (git): * 2012-09-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:26 AM Revision 6fc41b02 (git): Darwin 12 (OS X Mountain Lion) also has Bug #6692
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

09/25/2012

11:58 PM Feature #7067 (Closed): IO#reopen should accept File::Constants
Hello,
I think IO#reopen should accept File::Constants because it is difficult to get mode string from File::Constants.
I have attached a patch.
Glass_saga (Masaki Matsushita)
09:06 PM Feature #6682: Add a method to return an instance attached by a singleton class
=begin
There is a problem in the original proposal. It is that we can't determine whether a given class is singleton or not by checking an object returned from (({Class#singleton_instance})) in some cases. Consider this exapmle:
# ...
ryoqun (Ryo Onodera)
06:50 PM Bug #7066 (Closed): test_segv_test(TestRubyOptions) が F になる
手元の環境で test_segv_test(TestRubyOptions) が、以下のように F になっています
1) Failure:
test_segv_test(TestRubyOptions) [/home/ksmakoto/ruby-working/ruby-trunk/ruby-git/test/ruby/test_rubyoptions.rb:457]:
Expected /\A
-e:(?:1:)?\s\[BUG\]\sSe...
metanest (Makoto Kishimoto)
04:59 PM Feature #7047: Add new C API: rb_newobj_with
ささだです.
1点気になるのが, rb_newobj_with(VALUE, enum ruby_value_type) が flag 取らなくてもいいんかな,という点でして.いや,NEWOBJ_WITH() だと,問答無用で enum ruby_value_type じゃなくて,flag を渡しているようなんですが.その辺が整理出来ていない気がしています.
rb_newobj_with(klass, enum ruby_value_type type, V...
ko1 (Koichi Sasada)
04:53 PM Bug #6822: Race Condition with Fiber and Process
(2012/09/22 15:45), MartinBosslet (Martin Bosslet) wrote:
>> > No. You don't need Mutex at all.
>> > You only need to use variables (such as global variables).
> Now I'm confused. How would I write the example code without gett...
ko1 (Koichi Sasada)
04:53 PM Feature #7051: Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
(2012/09/25 16:02), ko1 (Koichi Sasada) wrote:
> Summery: I want to discuss about 1 and 4. Other points should be discuss on other ticket.

Ah, Summer was gone.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
04:02 PM Feature #7051: Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
Hi,
Thank you for your interest about this API.
Summery: I want to discuss about 1 and 4. Other points should be discuss on other ticket.
> 1. I think there should be complete parity with caller and backtrace APIs. Any idea?
...
ko1 (Koichi Sasada)
11:14 AM Bug #6673 (Closed): No longer able to run tests in parallel (-j2)
This issue was solved with changeset r37032.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
test_gem_installer.rb: restore ARGV
* test/rubygems/test_gem_ins...
nobu (Nobuyoshi Nakada)
07:58 AM Bug #6673: No longer able to run tests in parallel (-j2)
=begin
I was able to reproduce this with mingw ruby.
ruby 2.0.0dev (2012-09-24 trunk 37025) [x64-mingw32]
If test_gem_installer.rb and test_err_in_callback.rb run in same process, this error seems to occur.
$ make test-all TES...
h.shirosaki (Hiroshi Shirosaki)
10:58 AM Bug #7050: encoding of String#unpack for 'H', 'h', 'B' and 'b'
I would really like this to be added! (Thank you for writing the patch) tenderlovemaking (Aaron Patterson)
09:59 AM Bug #7064 (Closed): super from at_exit will segv
This issue was solved with changeset r37030.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
insns.def: super from at_exit
* insns.def (invokesuper): klass ...
nobu (Nobuyoshi Nakada)
06:27 AM Bug #7064: super from at_exit will segv
This did not happen with ruby 2.0.0dev (2012-07-15 trunk 36395) [x86_64-darwin10.8.0].
Eregon (Benoit Daloze)
05:42 AM Bug #7064 (Closed): super from at_exit will segv
Calling super inside at_exit will segv. For example:
$ ruby -e'at_exit { super }'
I'm not sure what super *should* do inside the at_exit block, but it probably shouldn't segv.
tenderlovemaking (Aaron Patterson)
07:14 AM Bug #7065 (Closed): Syslog::Logger should have a formatter
Hi, Syslog::Logger should have a formatter so that it can behave similar to the regular Logger class. I've attached a patch with tests to implement the formatter.
Thanks!
tenderlovemaking (Aaron Patterson)
03:14 AM Bug #7062: Rdoc for String#=~
Thank you stomar, I've discussed this with Eric and will be happy to commit it. zzak (zzak _)
02:14 AM Revision 2301f983 (git): test_gem_installer.rb: restore ARGV
* test/rubygems/test_gem_installer.rb
(TestGemInstaller#test_install_creates_binstub_that_dont_trust_encoding):
restore ARGV properly, non-ascii strings in different encodings are
not equal. [ruby-core:45975] [Bug #6673]
git-svn-...
nobu (Nobuyoshi Nakada)
01:10 AM Revision 26df05b2 (git): test_super.rb: super from BEGIN
* test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN):
for BEGIN. [ruby-core:47680] [Bug #7064]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:59 AM Revision 1e565489 (git): insns.def: super from at_exit
* insns.def (invokesuper): klass in cfp is not valid in at_exit and
END blocks. [ruby-core:47680] [Bug #7064]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:30 AM Revision 6249dac0 (git): merge revision(s) 36544: [Backport #7017]
* win32/mkexports.rb: should not export DllMain().
reported by luis at [ruby-core:46743] [Bug #6790], solved by
Heesob Park, and confirmed by nobu.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@370...
naruse (Yui NARUSE)
 

Also available in: Atom