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. -
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... -
10:30 AM Feature #7091: Object#puts_to
- =begin
readlines.sort.map{...}.select{...}.display($stderr)
=end
-
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... -
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... -
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
-
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 -
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... -
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... -
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 でどうでしょうか.
何かしら,マクロで隠蔽して,実質こいつは呼ばない,となると,長い名前でも
良いのではないか,と思うのですが(別に長くてもいいか?).
... -
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...
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... -
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
-
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...
-
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
-
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... -
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:... -
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.... -
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... -
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, ... -
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... -
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のビルドでこけます。
> ...
なるほど、コミットしてください -
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... -
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. -
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" -
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(... -
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 -
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... -
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... - 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
- 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 - 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 -
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 - 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
-
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 -
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... -
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... -
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. -
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/...
-
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... -
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... -
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... -
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...
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' -
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 してしまう場合があるので、それだけでも直したいです。 -
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 のどちらかが発生するようです。
ええと,どうしたもんですかね.実装の都合でスタックオーバーフローするも
のは他にもありそうなので,これだけ頑張るべきか,よくわからないんですが....
これだけ取り出した理由はな... -
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
-
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... -
10:04 PM Bug #7083 (Third Party's Issue): Why I cannot pass the test?
-
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?
... -
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... -
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... -
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... -
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,... -
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.
... -
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:... -
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... -
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... -
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...
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... -
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... -
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...
-
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... -
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 ... -
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... - 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
-
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 -
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... -
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... -
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... -
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... -
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 -
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... -
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 -
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 -
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 -
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
-
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).
... -
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... - 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
-
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-... -
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/
... -
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...
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. -
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... -
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も手当てが必要と思いますがどうでしょう。 -
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... -
03:05 PM Feature #6242: Ruby should support lists
- even i guess so Ruby is a LISP
http://www.leatherfads.com/leather-jacket.aspx -
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 で参照する時は警告が出力されません。
同じように警告が出たほうがよいと考えますがどうでしょう。
-
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... - 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 -
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...
-
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... - 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
-
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
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... -
09:18 PM Feature #6972: 特化命令opt_emptyの追加
- ありがとうございました。
-
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... -
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... -
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.
-
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... -
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?
-
10:38 AM Bug #7065: Syslog::Logger should have a formatter
- I tested this in my application. Works as expected.
-
05:51 PM Feature #6528: Add Pathname#write and Pathname#binwrite
- > IO.read と対応する Pathname#read があるので
> ...
のところ、
> IO.read と対応する Pathname#read があるので
> ...
の誤りでしたので訂正します。
-
05:13 PM Feature #7067: IO#reopen should accept File::Constants
- Seems fine to me.
-
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... -
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... -
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 ;)
-
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 -
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... - 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
-
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
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. -
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:
# ... -
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... -
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... -
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... -
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 -
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?
... -
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... -
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... -
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)
-
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 ... -
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].
-
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. -
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! -
03:14 AM Bug #7062: Rdoc for String#=~
- Thank you stomar, I've discussed this with Eric and will be happy to commit it.
-
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-... -
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 -
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 -
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...