Project

General

Profile

Activity

From 04/06/2013 to 04/12/2013

04/12/2013

11:27 PM Feature #8181: New flag for strftime that supports adding ordinal suffixes to numbers
naruse (Yui NARUSE) wrote:
> tkellen (Tyler Kellen) wrote:
> ...
Thanks naruse, I did not know that. Could you explain what you mean by being careful?
tkellen (Tyler Kellen)
10:49 PM Feature #8181: New flag for strftime that supports adding ordinal suffixes to numbers
duerst (Martin Dürst) wrote:
> On 2013/04/12 9:07, tkellen (Tyler Kellen) wrote:
> ...
Does strftime support AM/PM for different languages?
tkellen (Tyler Kellen)
05:53 PM Feature #8181: New flag for strftime that supports adding ordinal suffixes to numbers
On 2013/04/12 9:07, tkellen (Tyler Kellen) wrote:

> -∞ for ActiveSupport.
>
> I don't need or want to require that giant for this simple feature. I can (and have) written a simple ordinalize method which I am currently using.

D...
duerst (Martin Dürst)
10:49 AM Feature #8181: New flag for strftime that supports adding ordinal suffixes to numbers
tkellen (Tyler Kellen) wrote:
> strftime currently supports several flags for formatting the time output, why not this one?
Ruby's strftime is derived from a C function standardized by ISO C90/POSIX/SUV.
So it must be careful with a...
naruse (Yui NARUSE)
09:07 AM Feature #8181: New flag for strftime that supports adding ordinal suffixes to numbers
zzak (Zachary Scott) wrote:
> ActiveSupport has ordinalize, maybe you want to use that instead.
-∞ for ActiveSupport.
I don't need or want to require that giant for this simple feature. I can (and have) written a simple ordinaliz...
tkellen (Tyler Kellen)
10:54 PM Bug #8261 (Rejected): module_function for methods of same name
This affects all versions from 1.8 to 2.0 I have tested.
I'd expect all three examples below to have the same output, but not only does the example with module_function end up with a private instance method, it also has the wrong one....
manveru (Michael Fellinger)
06:42 PM Bug #8256 (Closed): dependency to include/ruby/version.h
This issue was solved with changeset r40261.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* common.mk: version.o depends on $(srcdir)/include/ruby/version...
akr (Akira Tanaka)
12:45 AM Bug #8256: dependency to include/ruby/version.h
もうちょっと考えたら、common.mk で単に {$(VPATH)}version.h を
$(srcdir)/include/ruby/version.h に変えればいいような気がしてきました。
そうすべきでない理由はあるでしょうか?
akr (Akira Tanaka)
12:19 AM Bug #8256 (Closed): dependency to include/ruby/version.h
気がついたのですが、in-place で ruby を build した場合に
include/ruby/version.h を更新して make しても version.o が更新されません。
以下では、include/ruby/version.h を更新して、
更新時刻が version.o よりも include/ruby/version.h のほうが新しくなっていますが、
make version.o としても、結局、
gmake: `vers...
akr (Akira Tanaka)
05:43 PM Feature #8259 (Open): Atomic attributes accessors
Motivated by this gist ((<URL:https://gist.github.com/jstorimer/5298581>)) and atomic gem
I propose Class.attr_atomic which will add methods for atomic swap and CAS:
```ruby
class MyNode
attr_accessor :item
attr_atomic...
funny_falcon (Yura Sokolov)
05:03 PM Revision 00a1a0e4 (git): merge revision(s) 40250:
fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:45 PM Feature #8110: Regex methods not changing global variables
Crazy idea: what if in the future you needed to set $~ to nil in order for it to be settable by downstream calls (e.g. regexp match)? It would eliminate a great deal of magic and treat those calls the same way we treat closures: if the v... headius (Charles Nutter)
01:53 PM Feature #8110: Regex methods not changing global variables
=begin
sam.saffron (Sam Saffron) wrote:
> sorry, I really did not mean to say the language should ship a crazy _G
> macro it was just a simple polyfill in the app. even with the polyfill
> it is way verbose.
>
> #app code n...
phluid61 (Matthew Kerwin)
01:40 PM Feature #8110: Regex methods not changing global variables
sorry, I really did not mean to say the language should ship a crazy _G macro it was just a simple polyfill in the app. even with the polyfill it is way verbose.
#app code not ruby
def _G(re)
Regexp.new(re.to_s, re.options | def...
sam.saffron (Sam Saffron)
01:23 PM Feature #8110: Regex methods not changing global variables
=begin
sam.saffron (Sam Saffron) wrote:
> Has anyone given any thought at how to make this friendly with older
> versions of Ruby ... say I have
>
> def is_foo?(val)
> val =~ /foo/
> end
>
> And now I want this code...
phluid61 (Matthew Kerwin)
12:06 PM Feature #8110: Regex methods not changing global variables
Has anyone given any thought at how to make this friendly with older versions of Ruby ... say I have
```ruby
def is_foo?(val)
val =~ /foo/
end
```
And now I want this code to work in both 1.9.3 and master.
```ruby
# ugl...
sam.saffron (Sam Saffron)
03:23 PM Revision 6e9c0251 (git): * ext/etc/etc.c: fix struct name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:16 PM Revision 1657cbab (git): * 2013-04-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:16 PM Revision 1e4b2f9b (git): etc.c: Etc namespace
* ext/etc/etc.c (Init_etc): move Passwd and Group under Etc namespace
as primary names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:07 PM Revision 3033b3ae (git): * common.mk: pack.o depends on internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:01 PM Revision 16a2acca (git): * bignum.c (ones): Use __builtin_popcountl if available.
* internal.h (GCC_VERSION_SINCE): Macro moved from pack.c.
* pack.c: Include internal.h for GCC_VERSION_SINCE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:21 AM Bug #8203: Rinda: recycled object
再現しないと書きましたが、実は DRb.here? の誤判定は起きていて _id2ref でたまたま同じ object_id のオブジェクトがあったのでエラーにならず、また TupleSpace#write の戻り値を利用していないので問題が起きていないだけみたいでした。
やっぱり DRb.current_server で Thread.current["DRb"]["server"] に親プロセスの DRbServer が入ってしまっているようです。
nagachika (Tomoyuki Chikanaga)
10:55 AM Bug #8203: Rinda: recycled object
おそらくですが、DRb.here? が誤判定していてリモートのオブジェクト(TupleEntry)の参照をカレントプロセス(子プロセス)のオブジェクトと思って object_id から ObjectSpace._id2ref でオブジェクト参照にしようとしてエラーになっているのではないかと。
DRb.here? の誤判定は一度親プロセスで DRb.start_service してから fork しているからかなって気がしますが、再現していないので確認できてないです。m...
nagachika (Tomoyuki Chikanaga)
10:05 AM Feature #8258 (Feedback): Dir#escape_glob
This is inspired by https://github.com/rails/rails/issues/6010.
Basically, if you do a Dir.glob in a directory whose name contains a glob character, things break. It would be nice to have a method which would escape the input so that ...
steveklabnik (Steve Klabnik)
09:42 AM Revision 3da83480 (git): * common.mk: version.o depends on $(srcdir)/include/ruby/version.h
instead of {$(VPATH)}version.h to avoid confusion by VPATH between
top level version.h and include/ruby/version.h for build in-place.
[ruby-dev:47249] [Bug #8256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40261 b2dd03c8-39...
akr (Akira Tanaka)
06:21 AM Revision 2674f9a8 (git): vm_insnhelper.c: non-symbol key
* vm_insnhelper.c (vm_callee_setup_keyword_arg): non-symbol key is not
a keyword argument, keep it as an positional argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:02 AM Feature #8229: extend Hash.include?
As a feature that affects all Ruby implementations, this should probably move to CommonRuby: https://bugs.ruby-lang.org/projects/common-ruby headius (Charles Nutter)
05:01 AM Feature #8237: Logical method chaining via inferred receiver
As a feature that affects all Ruby implementations, this should probably move to CommonRuby: https://bugs.ruby-lang.org/projects/common-ruby headius (Charles Nutter)
05:00 AM Feature #8246: Hash#traverse
As a feature that affects all Ruby implementations, this should probably move to CommonRuby: https://bugs.ruby-lang.org/projects/common-ruby headius (Charles Nutter)
04:59 AM Feature #7604: Make === comparison operator ability to delegate comparison to an argument
As a feature that affects all Ruby implementations, this should probably move to CommonRuby: https://bugs.ruby-lang.org/projects/common-ruby headius (Charles Nutter)
01:38 AM Feature #7604: Make === comparison operator ability to delegate comparison to an argument
I'have started working on it (first I have to handle switch to 2.0 on my machine). Anonymous
04:53 AM Feature #8168: Feature request: support for (single) statement lambda syntax/definition
As a feature that affects all Ruby implementations, this should probably move to CommonRuby: https://bugs.ruby-lang.org/projects/common-ruby headius (Charles Nutter)
04:11 AM Feature #8168: Feature request: support for (single) statement lambda syntax/definition
Oops except then they are symbols. Darn, too much to worry about... garysweaver (Gary Weaver)
04:11 AM Feature #8168: Feature request: support for (single) statement lambda syntax/definition
Thinking about it a bit more, I guess it would have to be context sensitive. Just some character that is parsed when the block is being parsed that indicates that the following statement is a block. So maybe the best that could be done w... garysweaver (Gary Weaver)
03:47 AM Feature #8168: Feature request: support for (single) statement lambda syntax/definition
@matz, You know best. :) !! I know that this request varies a bit when you consider that stab is a function call, but the goal is to de-uglify code that we are starting to have like:
some_method :some, :args, :here, -> {the block make...
garysweaver (Gary Weaver)
04:48 AM Feature #8257: Exception#cause to carry originating exception along with new one
Links to implementation of "cause" rendering and Kernel#raise logic from Rubinius:
"cause" rendering: https://github.com/rubinius/rubinius/blob/master/kernel/common/exception.rb#L72
Kernel#raise: https://github.com/rubinius/rubiniu...
headius (Charles Nutter)
01:40 AM Feature #8257 (Closed): Exception#cause to carry originating exception along with new one
Often when a lower-level API raises an exception, we would like to re-raise a different exception specific to our API or library. Currently in Ruby, only our new exception is ever seen by users; the original exception is lost forever, un... headius (Charles Nutter)
02:59 AM Revision 9ef4e134 (git): * array.c: Document synonymous methods, by windwiny [GH-277]
* bignum.c: ditto
* complex.c: ditto
* dir.c: ditto
* encoding.c: ditto
* enumerator.c: ditto
* numeric.c: ditto
* proc.c: ditto
* re.c: ditto
* string.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40259 b2dd03c8-39d4-4d8f...
zzak (zzak _)
01:52 AM Bug #8255: File#each_line omits last byte (==\0) if encoding is utf-16
Just FYI, you can propose transparent treatment along UTF-16 series ;-) naruse (Yui NARUSE)
01:21 AM Bug #8255 (Closed): File#each_line omits last byte (==\0) if encoding is utf-16
Sorry, I've only changed 'rb:utf-16le' when I wrote above comments.
It's running fine if I chaned 'wb:utf-16le' when writing out the file.
arton (Akio Tajima)
01:15 AM Bug #8255: File#each_line omits last byte (==\0) if encoding is utf-16
Attachment is the fixed version of test I'd expected the behaviour. arton (Akio Tajima)
01:13 AM Bug #8255: File#each_line omits last byte (==\0) if encoding is utf-16
OK, I've fixed my test code. It had some bugs and change the 2nd arg of File#open to 'rb:UTF-16LE'.
Invoking String#rstrip is OK, but can't encode to another encoding from UTF-16LE.
First, I tried to encode utf-16le line to utf-8 u...
arton (Akio Tajima)
12:11 AM Bug #8255: File#each_line omits last byte (==\0) if encoding is utf-16
This is because
* UTF-16 is dummy encoding; you must use UTF-16BE, UTF-16LE, or BOM|UTF-* specifier; OR some other treatment is needed on Ruby.
* default line separator is ASCII \n, not UTF-16 \n. you must explicitly specify UTF-16(BE|...
naruse (Yui NARUSE)
12:32 AM Revision c37d5e7c (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)

04/11/2013

10:59 PM Feature #8239: Inline rescue bug
I'd also vote for a bug to fix. I do not find it a feature request to implement.
There is nowhere in the documentation confirming the current behaviour to be correct.
jasonw (Jason Woodard)
10:23 PM Bug #8252 (Closed): cgiのHTML tag makerに未定義の属性を渡した場合の挙動
This issue was solved with changeset r40242.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/cgi/html.rb: fix tagmaker because attributes should recogniz...
xibbar (Takeyuki FUJIOKA)
10:20 PM Bug #8252: cgiのHTML tag makerに未定義の属性を渡した場合の挙動
いえ、考慮不足です。
修正します。
xibbar (Takeyuki FUJIOKA)
07:58 PM Bug #8252 (Closed): cgiのHTML tag makerに未定義の属性を渡した場合の挙動
r40237 で以下の通り、定義されていない属性を渡したときの挙動が変化しているのですが意図していますか
+ <n>)
+CGI::HtmlExtension#html when passed a Hash returns an 'html'-element using the passed Hash for attributes FAILED
+Expected "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\"...
naruse (Yui NARUSE)
10:11 PM Bug #8255 (Closed): File#each_line omits last byte (==\0) if encoding is utf-16
If File#each_line was given utf-16 encoded file with 'rb:utf-16', each line lacks the last one byte.
For example if the line is "a\0\r\0\n\0" in binary, the read line contains "a\0\r\0\r".
See the attchement.
This issue is appear bo...
arton (Akio Tajima)
09:36 PM Bug #8254: Ruby segfaults on second SystemStackError from parser
=begin
It seems to happen with any stack overflow from C:
#include <ruby/ruby.h>
VALUE f() {
f();
}

Init_x() {
rb_define_global_function("f", f, 0);
}
When (({f})) is called the se...
Anonymous
09:06 PM Bug #8254 (Closed): Ruby segfaults on second SystemStackError from parser
=begin
When the parser overflows the stack, it raises SystemStackError.
The second time this happens, Ruby segfaults.
Code sample:
n = 10_000 # adjust for your platform
begin
eval "1+" * n + "1"
rescue Syst...
Anonymous
09:18 PM Bug #953: 深い入れ子の配列の取り扱いで落ちる
SystemStackError になることを確認しました
% ./ruby -v nest.rb
ruby 2.1.0dev (2013-04-11 trunk 40238) [x86_64-freebsd9.1]
nest.rb:5: stack level too deep (SystemStackError)
naruse (Yui NARUSE)
07:23 PM Revision 71208c02 (git): merge revision(s) 39860: [Backport #8150]
* marshal.c (marshal_dump, marshal_load): workaround for segv on
Intel Solaris compiled with Oracle SolarisStudio 12.3.
Partly revert r38174. [ruby-core:52042] [Bug #7805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
nagachika (Tomoyuki Chikanaga)
07:13 PM Revision 1392882f (git): merge revision(s) 39822,39856: [Backport #8141]
* string.c (rb_str_conv_enc_opts): convert with one converter, instead
of re-creating converters for each buffer expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40256 b2dd03c8-39d4-4d8f-98ff-823fe69...
nagachika (Tomoyuki Chikanaga)
07:10 PM Bug #7915 (Assigned): Rubygems stub shebang is wrongly expanded
I couldn't reproduce the issue, since there is this patch applied in Fedora:
http://pkgs.fedoraproject.org/cgit/ruby.git/tree/ruby-2.0.0-revert-unexpand-exec-prefix.patch
So this is still relevant. Sorry for the noise :/
vo.x (Vit Ondruch)
04:33 PM Bug #7915 (Closed): Rubygems stub shebang is wrongly expanded
I cannot reproduce it with -p0, so it was probably fixed in the meantime. vo.x (Vit Ondruch)
07:07 PM Revision 2babe834 (git): merge revision(s) 39842: [Backport #8130]
* lib/mkmf.rb (find_library): fix to format message.
[ruby-core:53568] [Bug #8130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
06:47 PM Revision 44212576 (git): merge revision(s) 39905,39919,39925,39945: [Backport #8163]
* test/ruby/envutil.rb (assert_ruby_status): include stderr output. unlinked method entry. [Bug #8100] [ruby-core:53439]
* proc.c (bm_free): need to clean up the mark flag of a free and
git-svn-id: svn+ssh://ci.ruby-lang...
nagachika (Tomoyuki Chikanaga)
05:33 PM Revision 35cc23f4 (git): merge revision(s) 39866,39887,39921,40161,40170: [Backport #8144] [Backport #8227]
* addr2line.c (rb_dump_backtrace_with_lines): output line at once.
* addr2line.c (kprintf): added from FreeBSD libstand's printf.
this is consided as async signal safe function.
* addr2line.c (rb_dump_backtrac...
nagachika (Tomoyuki Chikanaga)
05:19 PM Revision 047b5539 (git): merge revision(s) 39742,39743: [Backport #8005]
assertions.rb: private flag
* lib/test/unit/assertions.rb (assert_respond_to): accept optional
include-private flag.
* vm_method.c (rb_export_method): directly override the flag of method
defined in prependin...
nagachika (Tomoyuki Chikanaga)
05:00 PM Revision a5d40b28 (git): merge revision(s) 39544,39546: [Backport #7992]
* lib/fileutils.rb: Revert r34669 which altered the way
metaprogramming in FileUtils occurred. [ruby-trunk - Bug #7958]
* test/fileutils/visibility_tests.rb: Refactored tests of FileUtils
options modules t...
nagachika (Tomoyuki Chikanaga)
04:47 PM Revision af4c2b3b (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:47 PM Revision a7256d7a (git): merge revision(s) 39697,39701,39716,39740,39751: [Backport #8069]
* win32/file.c (rb_file_expand_path_internal): Expand home directory when
used as second parameter (dir_string). [ruby-core:53168] [Bug #8034]
* test/ruby/test_file_exhaustive.rb: add test to verify.
* win32...
nagachika (Tomoyuki Chikanaga)
03:52 PM Revision 4a1b95ca (git): * 2013-04-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:52 PM Revision 89bda514 (git): Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:27 PM Bug #8249: Move minitest/pride.rb out into a gem
minitest/pride is fine to stay in the stdlib imo, but the global constants should really be namespaced. Anonymous
10:57 AM Bug #8249 (Rejected): Move minitest/pride.rb out into a gem
Ruby has plenty of stuff that isn't necessary.
minitest/pride doesn't introduce any global constants if you don't load it.
It is already shipped in a gem.
You know all this, yet here this bug is... hrm.
Closing.
zenspider (Ryan Davis)
10:13 AM Bug #8249 (Rejected): Move minitest/pride.rb out into a gem
minitest/pride.rb is not essential for running minitest and introduced two global constants (PrideIO and PrideLOL). This file should be moved out of Ruby stdlib and into a gem. postmodern (Hal Brodigan)
02:42 PM Revision 96d811ef (git): * common.mk: Add dependencies for include/ruby.h
* tool/update-deps: Use "make -p all miniruby ruby golf" to extract
deendencies in makefiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:27 PM Revision 656abe39 (git): * lib/cgi/html.rb: remove 'super {yield}' which is for old version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Takeyuki FUJIOKA
02:27 PM Revision ce100d36 (git): * lib/cgi/html.rb: fix indent. delete unnecessary code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Takeyuki FUJIOKA
02:22 PM Revision 639356ea (git): * tool/update-deps: Use "make -p all golf" to extract deendencies in
makefiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:53 PM Bug #7829: Rounding error in Ruby Time
So is this a documentation bug? I haven't read the entire discussion

On Tue, Apr 9, 2013 at 2:24 AM, David MacMahon
<davidm@astro.berkeley.edu> wrote:
>
> On Apr 5, 2013, at 3:34 PM, Tanaka Akira wrote:
>
>> 57563.232824357045 i...
zzak (zzak _)
01:51 PM Bug #8245: Segfault installing gems on Linux PowerPC with Ruby 2.0.0p0
Thanks James, could you try this with trunk? zzak (zzak _)
05:57 AM Bug #8245 (Closed): Segfault installing gems on Linux PowerPC with Ruby 2.0.0p0
When attempting to install bundler on a freshly installed Ruby 2.0.0p0 (installed via rvm) on Ubuntu 12.10 running on a G4 PowerPC I receive the following segfault:
[08:51][jnh@cube]~$ gem install bundler
Fetching: bundler-1.3.5.gem ...
jamesotron (James Harton)
01:23 PM Revision bf4739ff (git): * lib/cgi/html.rb: fix tagmaker because attributes should recognize.
[Bug #8252]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA
01:22 PM Revision 3e84b220 (git): * test/ruby/test_regexp.rb: use require_relative to require local library
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Takeyuki FUJIOKA
01:21 PM Bug #8251 (Closed): Windowsにおいて、drbのテストでteardown時のkillに失敗することがある
This issue was solved with changeset r40232.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/drb/drbtest.rb (Drb{Core,Ary}#teardown): retry Process.ki...
usa (Usaku NAKAMURA)
01:19 PM Bug #8251 (Closed): Windowsにおいて、drbのテストでteardown時のkillに失敗することがある
=begin
どうもタイミング依存のようです。
こんな感じで、出たり出なかったり。
1) Error:
test_03_redo(TestDRbAry):
Errno::EPERM: Operation not permitted
C:/Users/usa/ruby/test/drb/drbtest.rb:300:in `kill'
C:/Users/usa/ruby/test/drb/drbtest.rb:300:in ...
usa (Usaku NAKAMURA)
12:03 PM Revision 28c8e57c (git): * common.mk: Dependency updated.
* tool/update-deps: Rewritten.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:03 AM Revision c0c86b55 (git): * common.mk: partially revert r40183, which breaks building on
other than source directory. (its commit log also says the same
thing, but such failure is not reproducible on my environment
and the commit breaks build on my environment)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40239 b2d...
naruse (Yui NARUSE)
09:32 AM Revision 91d5cda2 (git): Fix return value in example by @rkh [fix GH-284]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
08:46 AM Feature #8246: Hash#traverse
Marking as duplicate of #5531.
It's also related to #8237 because one could envision something like:
hash[:level1]??.[:level2]??.[:non_existent_key] || 5
marcandre (Marc-Andre Lafortune)
08:03 AM Feature #8246 (Closed): Hash#traverse
=begin
From ((<GH-275|URL:https://github.com/ruby/ruby/pull/275>))
Traverses the given levels of a hash and returns the value associated with the
last key provided. Allows for concise access for deeply nested hashes - often encounte...
zzak (zzak _)
08:04 AM Revision f75da76f (git): * lib/cgi/{core,html}.rb : Update define tagmaker
because to delete eval.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA
07:53 AM Revision 3ae53e49 (git): Fix if-end
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:51 AM Revision 83e951d8 (git): * test/dl/test_base.rb: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:10 AM Revision cddd37aa (git): * ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): define 0 on
Mac OS X and Linux [Bug #3371]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:35 AM Revision 91fe36e9 (git): Experimental fix for ffi_closure_free causes dumping core/SEGV
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20130411T041301Z.log.html.gz#test%2F-ext-
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:21 AM Revision 13fb747c (git): * test/drb/drbtest.rb (Drb{Core,Ary}#teardown): retry Process.kill
if it fails with Errno::EPERM on Windows (workaround).
[ruby-dev:47245] [Bug #8251]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:31 AM Revision 588c1397 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:28 AM Revision dbab4565 (git): merge revision(s) 39299,39300: [Backport #7477]
* lib/ipaddr.rb (IPAddr#in6_addr): Fix the parser so that it can
recognize IPv6 addresses with only one edge 16-bit piece
compressed, like [::2:3:4:5:6:7:8] or [1:2:3:4:5:6:7::].
[Bug #7477]
* lib/i...
U.Nakamura
02:22 AM Revision d8cf72f4 (git): merge revision(s) 34270: [Backport #5858]
* string.c (rb_str_concat): set array element after definition
to fix compile error with Fujitsu C Compiler 5.6 on Solaris 10
on Sparc. [Bug #5878] [ruby-dev:45123]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branc...
U.Nakamura
02:21 AM Revision ccb84f7b (git): merge revision(s) 34022: [Backport #5753]
* parse.y (parser_magic_comment): should pass the proper value.
[ruby-dev:44984][Bug #5753]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:19 AM Revision 116843c6 (git): merge revision(s) 39475: [Backport #7868]
* ext/date/date_core.c: [ruby-core:52303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:12 AM Revision 43c93dbd (git): * dir.c: Fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
01:40 AM Revision c0e0a684 (git): * ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): add missing case:
RUBY_LIBFFI_MODVERSION is not defined (usually on Windows).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:11 AM Revision 09d4be59 (git): mkmf.rb: suppress warnings
* lib/mkmf.rb (try_func, try_var, scalar_ptr_type, scalar_type):
suppress implicit-function-declaration warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:27 AM Revision 0daf538a (git): * dir.c (file_s_fnmatch): Document File::FNM_EXTGLOB flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:18 AM Revision af869274 (git): * README: Fix typo by Benjamin Winkler [Fixes GH-281]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:16 AM Bug #8115 (Assigned): make install DESTDIR=/my/install/path fails
I backported the patch for Ruby 2.0.0-p0, but I can't see any difference. I might be doing something wrong, but I am afraid that the patch does not fixes our issues. Please see the attached Makefile. Thank you. vo.x (Vit Ondruch)

04/10/2013

09:59 PM Revision dad98e57 (git): Explictly flush stdio
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:16 PM Revision 29f347af (git): * regint.h: fix typo: _M_AMD86 -> _M_AMD64.
* siphash.c: ditto.
* st.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:15 PM Revision a0f7f292 (git): * ext/fiddle/extconf.rb: define RUBY_LIBFFI_MODVERSION macro.
* ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): define 0 or 1
with platform and libffi's version. [Bug #3371]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:15 PM Revision c607493e (git): * lib/mkmf.rb (pkg_config): Add optional argument "option".
If it is given, it returns the result of
`pkg-config --<option> <pkgname>`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:04 PM Feature #6752: Replacing ill-formed subsequencce
といわけで、[ruby-dev:47241] の通り patch を更新し、提案を以下の通り更新しましたので、まつもとさんコメントいただけませんか。
= 不正なバイト列なStringを綺麗にするやつ
== ここまでのあらすじ
趣旨は認められつつも、String#encode を使う API 案と独自名の API 案が出てまとまらなかった。
== 本提案の概要
* API は String#encoode を用いるものと新メソッドの2つを提供する
...
naruse (Yui NARUSE)
06:44 PM Feature #8239: Inline rescue bug
Hi,
any explanation why marked as a feature (request) instead of bug (of Ruby parser) ?
Thanks.
dunric (David Unric)
04:06 PM Feature #8239: Inline rescue bug
nobu (Nobuyoshi Nakada) wrote:
> =begin
> ...
I can confirm this behaviour. This is another example parsing of expression with inline rescue is broken.
I would like to see at least _one_ real world example relying on this inconsiste...
dunric (David Unric)
06:35 PM Revision e79d4b36 (git): * 2013-04-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:35 PM Revision 2570f838 (git): * ext/fiddle/closure.c (initialize): check mprotect's return value.
If mprotect is failed because of PaX or something, its function call
will cause SEGV.
http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20130401T210301Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40216 b2dd03c8-39...
naruse (Yui NARUSE)
01:35 PM Bug #8243 (Rejected): ruby-debug-base fails because a function is no longer exported
nobu (Nobuyoshi Nakada)
07:07 AM Bug #8243: ruby-debug-base fails because a function is no longer exported
Hey Eric -
@ko1 updated it to use the new Ruby 2 debugging API!
See the debugger2 branch: https://github.com/cldwalker/debugger/compare/master...debugger2
bitsweat (Jeremy Daer)
06:17 AM Bug #8243: ruby-debug-base fails because a function is no longer exported
This patch reinstates the RUBY_FUNC_EXPORTED declaration, including
the comment from 1.9.3 stating that a better interface would be used
in the next version. I don't know of any such interface in the 2.0 code.
ericp (Eric Promislow)
06:15 AM Bug #8243 (Rejected): ruby-debug-base fails because a function is no longer exported
The ruby-debug-base project (now at https://github.com/cldwalker/debugger )
fails with 2.0 giving an error message like
dyld: lazy symbol binding failed: Symbol not found: _rb_vm_get_sourceline
Referenced from: /usr/local/rvm/gems...
ericp (Eric Promislow)
08:39 AM Revision 3f9e0e43 (git): * ext/bigdecimal/bigdecimal.c (VpCtoV): Initialize a local variable
even when overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
05:31 AM Feature #8237: Logical method chaining via inferred receiver
Tom, I can't point you any references from the top of my head but I'm almost sure about reading Matz himself saying that he likes to see feature requests born from real code needs. He prefers reading real-world code before deciding if th... rosenfeld (Rodrigo Rosenfeld Rosas)
03:34 AM Revision fa9b5bf2 (git): * bignum.c (rb_ll2big): Don't overflow on signed integer negation.
* ext/bigdecimal/bigdecimal.c (MUL_OVERFLOW_SIGNED_VALUE_P): New
macro.
(AddExponent): Don't overflow on signed integer multiplication.
(VpCtoV): Don't overflow on signed integer arithmetic.
(VpCtoV): Don't overflow on signed int...
akr (Akira Tanaka)
02:38 AM Revision ea16ec56 (git): parse.y: mrhs_arg
* parse.y (mrhs_arg): reduce duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:10 AM Revision 5cbf827a (git): fix a typo and indent with tab instead of spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:21 AM Bug #8242: Fix rdoc of Range#bsearch
I understood "sorted" as a synonym of "monotone". The important part is "with respect to the block".
A range can be "sorted with respect to the block", in the same way an array can.
Note that although [-1, 0, 1] is sorted (with res...
marcandre (Marc-Andre Lafortune)
01:17 AM Feature #8229: extend Hash.include?
Could you elaborate on why this is needed and in which cases one would need this?
Moreover, I would not write `h.include?(key) && h[key] == value`. In most cases `h[key] == value` is sufficient (unless value can be nil or there's a de...
marcandre (Marc-Andre Lafortune)
12:07 AM Bug #8241: If uri host-part has underscore ( '_' ), 'URI#parse' raise 'URI::InvalidURIError'
naruse (Yui NARUSE) wrote:
> neocoin (Sangmin Ryu) wrote:
> ...
Yes, you are right. I checked rfc2396 (published in Aug 1998) too through commented 'uri/common.rb'.
That document is URI general syntax starting point.
And in January...
neocoin (Sangmin Ryu)

04/09/2013

11:35 PM Bug #8242 (Closed): Fix rdoc of Range#bsearch
rdoc of Range#bsearch states "the elements must be sorted", but it does not make sense for Range.
Patch:
diff --git a/range.c b/range.c
index 1e4347e..fab0718 100644
--- a/range.c
+++ b/range.c
@@ -512,11 +512,10 @@ is_integer_...
yhara (Yutaka HARA)
10:47 PM Revision 1acc9062 (git): Refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:17 PM Bug #8241: If uri host-part has underscore ( '_' ), 'URI#parse' raise 'URI::InvalidURIError'
neocoin (Sangmin Ryu) wrote:
> naruse (Yui NARUSE) wrote:
> ...
Oops, it is RFC 2396. http://www.ietf.org/rfc/rfc2396.txt
And on RFC 2396, host of http scheme is defined on 3.2.2. Server-based Naming Authority.
It says
ser...
naruse (Yui NARUSE)
09:32 PM Bug #8241: If uri host-part has underscore ( '_' ), 'URI#parse' raise 'URI::InvalidURIError'
naruse (Yui NARUSE) wrote:
> uri.rb is currently based on RFC 2373, and planning fix based on URL spec.
> ...
Thank for feedback.
'rfc2373' is just ip v6 addressing part. This doen't include whole URI definition.
( http://tools.ie...
neocoin (Sangmin Ryu)
09:08 PM Bug #8241: If uri host-part has underscore ( '_' ), 'URI#parse' raise 'URI::InvalidURIError'
uri.rb is currently based on RFC 2373, and planning fix based on URL spec.
http://url.spec.whatwg.org/
naruse (Yui NARUSE)
09:02 PM Bug #8241 (Closed): If uri host-part has underscore ( '_' ), 'URI#parse' raise 'URI::InvalidURIError'
First of all,
I say 'I am sorry', if this issue making activity is rude.
I don't know, where do I put this simple and critical issue.
This problem was found a long time ago (1 or 2 years ).
But problem is very clear and solution ...
neocoin (Sangmin Ryu)
09:37 PM Revision 164e04ba (git): * 2013-04-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:37 PM Revision e699df95 (git): * internal.h (MUL_OVERFLOW_INT_P): New macro.
* sprintf.c (GETNUM): Don't overflow on signed integer multiplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:53 PM Bug #4964 (Closed): open-uri failed to handle multiple "Set-Cookie" headers
This issue was solved with changeset r40207.
ren, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/open-uri.rb: Support multiple fields with same field
name ...
akr (Akira Tanaka)
06:26 PM Bug #8159: Build failure introduced by Rinda changes
I've updated a patch which includes API change. Users can specify network interface by optional arguments. But I'm not sure about API spec.
If #8075 is applied, we will be able to specify an interface for IPv6 by name.
h.shirosaki (Hiroshi Shirosaki)
06:24 PM Feature #6752: Replacing ill-formed subsequencce
I wrote a updated patch which include String#scrub and String#encode with extension.
String#scrub allows replacement as both argument or block.
diff --git a/string.c b/string.c
index 8b85739..bc973dc 100644
--- a/string.c
+++ b/string.c...
naruse (Yui NARUSE)
04:38 AM Feature #6752: Replacing ill-formed subsequencce
duerst (Martin Dürst) wrote:
> I have thought about this a bit. Yui's patch to string treats this as a problem separat from transcoding. I think it is preferable to use the transcoding logic to implement this. The advantage is that exac...
naruse (Yui NARUSE)
05:58 PM Feature #8237: Logical method chaining via inferred receiver
=begin
Don't pick apart the trivial examples too much Henry. There's often situations where the return value may be nil or false, but which when truthy, you want to do some kind of operation on; the long method chain is just one example....
wardrop (Tom Wardrop)
02:29 PM Feature #8237: Logical method chaining via inferred receiver

I don't support this because inferred or implicit variables are a 'Perlism' that we should avoid. It makes programs difficult to understand and it is easy to add subtle bugs that are hard to track down.
The sample usages are poor co...
henry.maddocks (Henry Maddocks)
11:04 AM Feature #8237: Logical method chaining via inferred receiver
=begin
@phluid61 In your example...
"abc"
foo = lambda { .upcase }
"def"
foo.call
I would imagine that to either produce an error along the lines of "could not infer receiver" or "inferred receivers must be preceded ...
wardrop (Tom Wardrop)
05:57 AM Feature #8237: Logical method chaining via inferred receiver
=begin
As long as you always "resolve" it should be okay. This is untested, but it's going to be something along the lines of:
class AndAnd < BasicObject
def initialize(receiver)
@receiver = receiver
@cal...
trans (Thomas Sawyer)
12:59 AM Feature #8237: Logical method chaining via inferred receiver
Em 08-04-2013 11:50, Trans escreveu:
> There are at least three other ways to approach this:
>
> user.try.profile.try.website.try.thumbnail
>
> user.trying{ |u| u.profile.website.thumbnail }
>
> user.tryi...
rosenfeld (Rodrigo Rosenfeld Rosas)
05:10 PM Feature #8239: Inline rescue bug
Hanmac (Hans Mackowiak) wrote:
> its because its parsed as
> ...
I think this explanation is not valid. Let's see on an example:
bar = foo rescue [3,4]
If it would be parsed as you've described it would be equivalent to
(bar = fo...
dunric (David Unric)
03:36 PM Feature #8239: Inline rescue bug
=begin
Not only this case, some assignments can't include (({rescue})) modifier, e.g.:
x = 1
x += raise rescue 2
makes ((|x|)) (({3})), while
x = [1]
x[0] += raise rescue 2
doesn't change ((|x|)).
It would be possible to mak...
nobu (Nobuyoshi Nakada)
02:01 PM Feature #8239: Inline rescue bug
its because its parsed as
(bar, baz = foo) rescue [3,4]
i try
bar, baz = (foo rescue [3,4])
and this works
Hanmac (Hans Mackowiak)
07:58 AM Feature #8239 (Closed): Inline rescue bug
There is a possible bug in parsing of inline rescue.
When an inline rescue is a part of multiple assignment and exception is raised, the assignment is silently ignored.
def foo
raise "error"
end
bar, baz = 1,2 # bar == 1, b...
dunric (David Unric)
04:37 PM Feature #8229: extend Hash.include?
One ticket, one feature, please. nobu (Nobuyoshi Nakada)
04:33 PM Feature #8215: Support accessing Fiber-locals and backtraces for a Fiber
One ticket, one issue, please. nobu (Nobuyoshi Nakada)
03:29 PM Bug #7829: Rounding error in Ruby Time
On Apr 5, 2013, at 3:34 PM, Tanaka Akira wrote:

> 57563.232824357045 is not representable as a Float.

Sorry, poor wording on my part. What I meant was that the Float created from the floating point literal 57563.232824357045 is d...
david_macmahon (David MacMahon)
11:39 AM Revision 712c7168 (git): * internal.h (MUL_OVERFLOW_SIGNED_INTEGER_P): New macro.
(MUL_OVERFLOW_FIXNUM_P): Ditto.
(MUL_OVERFLOW_LONG_P): Ditto.
* array.c (rb_ary_product): Don't overflow on signed integer
multiplication.
* numeric.c (fix_mul): Ditto.
(int_pow): Ditto.
* rational.c (f_imul): Ditto.
* insns.de...
akr (Akira Tanaka)
10:53 AM Revision 4329b14c (git): * lib/open-uri.rb: Support multiple fields with same field
name (like Set-Cookie).
(OpenURI::Meta#metas): New accessor to obtain fields as a Hash from
field name (string) to field values (array of strings).
[ruby-core:37734] [Bug #4964] reported by ren li.
git-svn-id: svn+ssh://ci.ruby-...
akr (Akira Tanaka)
09:28 AM Feature #8191: Short-hand syntax for duck-typing
Maybe a more convenient syntax that makes use of #respond_to? would promote the use of #respond_to_missing. In that case, maybe the double question mark or question mark prefix can remain on the table. I'm still personally for it as I wo... wardrop (Tom Wardrop)
02:41 AM Feature #8191: Short-hand syntax for duck-typing
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> Sorry, I'm a bit outdated, since I never really felt the need for method_missing in my own code :)
How different people can be! Programming without #method_missing would be maddening like
...
Anonymous
12:47 AM Feature #8191: Short-hand syntax for duck-typing
Sorry, I'm a bit outdated, since I never really felt the need for method_missing in my own code :) rosenfeld (Rodrigo Rosenfeld Rosas)
12:37 AM Feature #8191: Short-hand syntax for duck-typing
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> The best-practices states that you should override responds_to? when you override method_missing. That way, calling responds_to? should be enough.
Actually, since 1.9 the best practice is ...
marcandre (Marc-Andre Lafortune)
07:21 AM Revision 56486e00 (git): test_{env,hash}.rb: descriptive assertions
* test/ruby/test_{env,hash}.rb: use descriptive assertions than plain
assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:26 AM Revision f4c52b48 (git): compile.c: append keyword hash to splat
* compile.c (iseq_compile_each): append keyword hash to argument array
to splat if needed. [ruby-core:54094] [Bug #8236]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:58 AM Feature #6154 (Closed): Eliminate extending WaitReadable/Writable at runtime
This issue was solved with changeset r40195.
Charles, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Fix #6154 by introducing new EAGAIN/EWOULDBLOCK/EINPROGRESS
su...
headius (Charles Nutter)
03:42 AM Feature #8223: Make Matrix more omnivorous.
marcandre (Marc-Andre Lafortune) wrote:
>
> ...
I'll take a look at that Scalar, thanks.
> Still, if you want to be serious about your library, 0 + 42.some_unit should work, and this is what you should focus on.
I want to be serious ...
Anonymous
12:35 AM Feature #8223: Make Matrix more omnivorous.
boris_stitnicky (Boris Stitnicky) wrote:
> @Marc-Andre:
> ...
If you stick with Metre class, like in this example, then coerce 0/1 to a homemade Scalar class (like Matrix does).
If you go for the more generic MagnitudeWithUnit, then c...
marcandre (Marc-Andre Lafortune)
12:23 AM Feature #8223: Make Matrix more omnivorous.
@Marc-Andre:
> Summary: I could consider injecting nothing instead of 0,
> ...
I tried that in desperation long ago, but it fails: Due to 0 + 1.m, 0 has to
be treated specially also in #coerce. But 1.m.coerce( 0 ) can't return
[0.m, 1.m...
Anonymous
02:22 AM Bug #8226 (Closed): incorrect timezone offset under Solaris 11 x64
naruse (Yui NARUSE)
02:22 AM Feature #8181 (Rejected): New flag for strftime that supports adding ordinal suffixes to numbers
At least, it is not the function of strftime. naruse (Yui NARUSE)
01:47 AM Feature #8232: Rudiments of abstract algebra in Ruby
steakknife (Barry Allard) wrote:
> MRI built-in numeric types are implemented in C, which means they are difficult to modify at runtime. Subclassing would be painfully messy to use.
> ...
Yes, that's it.
Anonymous
01:41 AM Feature #8232: Rudiments of abstract algebra in Ruby
> -1. I can't see how this would help most Rubyists.
I think that I have to come clean, that Hermes, not Apollo inspired me to raise this issue.
In some quarters, abstract algebra is considered cool. If we have #additive_idenity (ali...
Anonymous
01:02 AM Revision 0a4ed024 (git): mkmf.rb: timestamp directory
* lib/mkmf.rb (timestamp_file): gather timestamp files in one
directory from each extension directories, with considering
target_prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:42 AM Revision 74ba9c24 (git): io.c: define EWOULDBLOCK
* io.c (Init_IO): define EWOULDBLOCK alway as it is needed always.
and turn runtime branch into preprocessor condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:29 AM Revision e0b523d1 (git): Finish docs for URI::FTP by @darkhelmet [fix GH-274]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:26 AM Revision 43a16296 (git): Fix documentation by @jc00ke [fix GH-278]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:24 AM Revision 66aa6aa5 (git): Fixed comment typo by @qqshfox [fix GH-279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

04/08/2013

11:53 PM Feature #8237: Logical method chaining via inferred receiver
There are at least three other ways to approach this:

user.try.profile.try.website.try.thumbnail

user.trying{ |u| u.profile.website.thumbnail }

user.trying.profile.website.thumbnail.resolve

It occur...
trans (Thomas Sawyer)
11:45 PM Feature #8237: Logical method chaining via inferred receiver
There are at least three other ways to approach this:
user.try.profile.try.website.try.thumbnail
user.trying{ |u| u.profile.website.thumbnail }
user.trying.profile.website.thumbnail.resolve
It occurs to me t...
trans (Thomas Sawyer)
10:23 PM Feature #8237: Logical method chaining via inferred receiver
Em 08-04-2013 10:07, Matthew Kerwin escreveu:
>
> On Apr 8, 2013 10:39 PM, "rosenfeld (Rodrigo Rosenfeld Rosas)"
> <rr.rosas@gmail.com <mailto:rr.rosas@gmail.com>> wrote:
> >
> > I really believe it would be better to isolate...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:23 PM Feature #8237: Logical method chaining via inferred receiver
On Apr 8, 2013 10:39 PM, "rosenfeld (Rodrigo Rosenfeld Rosas)" <
rr.rosas@gmail.com> wrote:
>
> I really believe it would be better to isolate each wanted feature in a
separate ticket instead of mixing several ideas in the same ...
phluid61 (Matthew Kerwin)
09:53 PM Feature #8237: Logical method chaining via inferred receiver
On Apr 8, 2013 3:10 PM, "wardrop (Tom Wardrop)" <tom@tomwardrop.com> wrote:
>
> This is a feature suggestion that was raised while discussing issue
#8191. The feature suggestion is to introduce some form of logical method
chaini...
phluid61 (Matthew Kerwin)
09:51 PM Feature #8237: Logical method chaining via inferred receiver
By the way, I'm also -1 for using an inferred receiver as the last result as it leads to less readable code and disallows other future language improvements requests that otherwise could be impossible to accept due to backward compatibil... rosenfeld (Rodrigo Rosenfeld Rosas)
09:39 PM Feature #8237: Logical method chaining via inferred receiver
I really believe it would be better to isolate each wanted feature in a separate ticket instead of mixing several ideas in the same ticket. Also, I guess you should state clearly that a&&.b&&.c should mean (tmp1 = a; tmp1 && (tmp2 = tmp1... rosenfeld (Rodrigo Rosenfeld Rosas)
02:10 PM Feature #8237 (Closed): Logical method chaining via inferred receiver
=begin
This is a feature suggestion that was raised while discussing issue #8191. The feature suggestion is to introduce some form of logical method chaining to address this reasonably common pattern:
user && user.profile && user...
wardrop (Tom Wardrop)
09:57 PM Bug #8226: incorrect timezone offset under Solaris 11 x64
phasis68 (Heesob Park) wrote:
> This bug is a duplicate of bug #7868.
> ...
Thanks!
John
groenveld@acm.org
groenveld@acm.org (John Groenveld)
09:44 PM Feature #8191: Short-hand syntax for duck-typing
The best-practices states that you should override responds_to? when you override method_missing. That way, calling responds_to? should be enough. rosenfeld (Rodrigo Rosenfeld Rosas)
02:32 PM Feature #8191: Short-hand syntax for duck-typing
I guess we've determined that Ruby doesn't provide any fool proof means of detecting whether an object will or should respond to a method; any attempt to do so currently results in unreliable and potentially hazardous chicken-typing. Thi... wardrop (Tom Wardrop)
08:51 PM Revision fc7c2faa (git): Revert r40194 "mkmf.rb: timestamp directory"
It breaks build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:27 PM Revision d5279a51 (git): * 2013-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:27 PM Revision 3b0faabb (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:27 PM Revision cc702e01 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:27 PM Revision fa93be2f (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:58 PM Revision 0626d9b9 (git): Fix #6154 by introducing new EAGAIN/EWOULDBLOCK/EINPROGRESS
subclasses that include WaitReadable or WaitWritable rather than
extending them into the exception object each time.
* error.c: Capture EGAIN, EWOULDBLOCK, EINPROGRESS exceptions and
export them for use in WaitReadable/Writable except...
headius (Charles Nutter)
06:10 PM Revision 46eddae1 (git): mkmf.rb: timestamp directory
* lib/mkmf.rb (timestamp_file): gather timestamp files in one
directory from each extension directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:44 PM Revision 53fdb9e1 (git): socket/extconf.rb: add -D
* ext/socket/extconf.rb: $defs needs -D or -U. nothing is added
otherwize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:42 PM Revision f12df1a7 (git): socket/extconf.rb: check struct in_addr6
* ext/socket/extconf.rb: check struct in_addr6, which is defined in
VC6 instead of in6_addr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:40 PM Revision 99ad10df (git): option.c: fix macro name
* ext/socket/option.c (optname_to_sym): fix macro name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:28 PM Revision 72524b60 (git): * 2013-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:28 PM Revision 65adaded (git): constants.c: fix macro name
* ext/socket/constants.c (rsock_cmsg_type_arg): fix macro name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:57 PM Revision f507cce0 (git): object.c: extract common code
* object.c (id_for_setter): extract common code from const, class
variable, instance variable setters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:56 PM Revision a4365402 (git): ext/depend: fix dependency for nmake
* ext/depend (ENCOBJS, TRANSOBJS): use explicit path to ruby.h for
nmake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:09 PM Revision 1d42889c (git): ext/depend: fix dependency
* ext/depend (ENCOBJS, TRANSOBJS): fix header dependency, VPATH has
$(srcdir)/include/ruby but not $(srcdir)/include, so cannot find out
ruby/ruby.h. use ruby.h instead and ../ruby for include/ruby.h.
git-svn-id: svn+ssh://ci.ruby-...
nobu (Nobuyoshi Nakada)
01:14 PM Feature #8232: Rudiments of abstract algebra in Ruby
boris_stitnicky (Boris Stitnicky) wrote:
> ... I noticed that rings and fields in Ruby do not know their additive identity. Eg. there is no method Float#zero or Rational#zero... I therefore propose that:
-1. I can't see how this woul...
marcandre (Marc-Andre Lafortune)
07:00 AM Feature #8232: Rudiments of abstract algebra in Ruby
MRI built-in numeric types are implemented in C, which means they are difficult to modify at runtime. Subclassing would be painfully messy to use.
https://gist.github.com/5332699
To potential implementer/s: consider tradeoffs for more...
steakknife (Barry Allard)
12:21 PM Feature #8223: Make Matrix more omnivorous.
Summary: I could consider injecting nothing instead of 0, but can not consider a generic `SomeClass.zero`. I don't feel your example is a good justification of a need of not injecting 0.
boris_stitnicky (Boris Stitnicky) wrote:
> Let...
marcandre (Marc-Andre Lafortune)
05:53 AM Feature #8223: Make Matrix more omnivorous.
Hi Boris, I think it takes too long to read through all of your
messages, so best to define a smaller proposal with exact details for
each feature you want.

On Sat, Apr 6, 2013 at 4:33 PM, boris_stitnicky (Boris Stitnicky)
<boris@...
zzak (zzak _)
11:31 AM Revision 4fe59003 (git): * ext/depend (ENCOBJS, TRANSOBJS): Add missing dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yugui (Yuki Sonoda)
08:19 AM Revision 311960cd (git): win32ole.c: check arity
* ext/win32ole/win32ole.c (fole_missing): should check actual argument
count before accessing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:10 AM Revision 418b8e12 (git): Fixes a build failure of ext/ripper/ripper.c on building out of place.
* common.mk (id.h, id.c): Always generated in $(srcdir).
(ext/ripper/ripper.c): Passes $(PATH_SEPARATOR) too to the sub make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
05:33 AM Feature #8181: New flag for strftime that supports adding ordinal suffixes to numbers
+1 for ActiveSupport
http://stackoverflow.com/questions/165170/in-ruby-on-rails-how-do-i-format-a-date-with-the-th-suffix-as-in-sun-oct-5
steakknife (Barry Allard)
05:22 AM Bug #8067: Checking a network connection in a loop never succeeds even if the connection is available.
Modified a bit for interactive looping:
#!/usr/bin/env ruby
require 'net/http'
loop do
sleep 1
begin
uri = URI.parse 'http://www.example.com'
resp = Net::HTTP.get uri
puts 'It works!'
rescue SocketEr...
steakknife (Barry Allard)
05:12 AM Revision 6779f24e (git): test_curses.rb: add sentinel
* test/test_curses.rb (TestCurses#run_curses): add sentinel to get rid
of read pty output after the child process terminated, which causes
EIO on Linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40182 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)
04:06 AM Revision 5865e760 (git): * lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character.
[Bug #8183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA
03:08 AM Revision a48f99ce (git): Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:05 AM Revision 0851b4c0 (git): * 2013-04-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 AM Revision ae13ab24 (git): * object.c (rb_obj_ivar_set): call to_str for string only once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

04/07/2013

11:53 PM Bug #8185: Thread/fork issue
2013/4/7 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:

> Also, Process.exit! escape to run at_exit handler. I think exit! is too drastic.
> it help many situation than flushing, but also makes much side effect. I suspect
> "fork...
akr (Akira Tanaka)
11:29 PM Bug #8185: Thread/fork issue
> On second thought, I feel exit! is more essential solution.
>
> Because there may be other objects which behaves as "flush at finalization",
> flushing IO objects is not enough.
>
> The problem is finalization is occur twice...
kosaki (Motohiro KOSAKI)
10:23 AM Bug #8185: Thread/fork issue
2013/4/3 Tanaka Akira <akr@fsij.org>:
> 2013/4/3 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:
>>
>> I believe fork() should flush all IO objects automatically. 1) Why user
>> should know how ruby beffering? 2) fork() is not comm...
akr (Akira Tanaka)
10:40 PM Feature #4270 (Closed): Resolv does not handle UTF8 domain names.
It seems this feature is provided by a gem.
So I close this issue now.
akr (Akira Tanaka)
08:27 PM Feature #4270: Resolv does not handle UTF8 domain names.
For now, I've rolled up some code into a gem: resolv-idn
steakknife (Barry Allard)
05:39 PM Feature #4270: Resolv does not handle UTF8 domain names.
That was a rough suggestion that works right now, it's definitely not perfect. It makes sense for someone to create an autotools patch that detects libidn, setup lib and include paths and refactor ruby glue code to eliminate idn-ruby de... steakknife (Barry Allard)
02:44 PM Feature #4270: Resolv does not handle UTF8 domain names.
It is not appropriate to use external library from bundled library such as resolv.rb. akr (Akira Tanaka)
11:33 AM Feature #4270: Resolv does not handle UTF8 domain names.
We've been using a monkey patch based on gnu libidn's functions for rfcs 3490, 3491 & 3492.
Here's an extract of the critical functions (toASCII and toUNICODE), please feel free to hack/fork/comment/etc: https://gist.github.com/5328637...
steakknife (Barry Allard)
09:42 PM Bug #5463 (Feedback): PTY or IO.select timing issue results in no EOF
I tried to reproduce the problem on Debian GNU/Linux and FreeBSD. (I don't have Mac OS X.)
It is possible but very rare.
However the problem is occur more frequently if I run different heavy task on the host.
So, I guess the prob...
akr (Akira Tanaka)
07:13 PM Feature #8215: Support accessing Fiber-locals and backtraces for a Fiber
Yup, I am sorry if that was not clear!
I also am very interested in being able to get the backtrace of a `Fiber` too.
Should I open a new issue for `Fiber#backtrace`?
halorgium (Tim Carey-Smith)
06:25 PM Feature #8232 (Assigned): Rudiments of abstract algebra in Ruby
I have recently been struggling with Matrix class to make it accept physical magnitudes for matrix multiplication, and at that opportunity (http://bugs.ruby-lang.org/issues/8223), I noticed that rings and fields in Ruby do not know their... Anonymous
03:11 PM Bug #8226: incorrect timezone offset under Solaris 11 x64
This bug is a duplicate of bug #7868.
It was already fixed and backported to 2.0.0.
phasis68 (Heesob Park)
07:26 AM Bug #8226: incorrect timezone offset under Solaris 11 x64
I cannot reproduce with 2.1.0dev from Git.
$ /opt/apache2/ruby-2.1.0/bin/ruby -v
ruby 2.1.0dev (2013-04-07 trunk 40170) [x86_64-solaris2.11]
$ env TZ=US/Eastern /opt/apache2/ruby-2.1.0/bin/ruby date.rb
Sat Apr 6 18:25:07 -0400 2013
...
groenveld@acm.org (John Groenveld)
03:11 PM Revision 8e4d69ad (git): merge revision(s) 39810: [Backport #8145]
* gc.c: Fix unlimited memory growth with large values of
RUBY_FREE_MIN. patched by tmm1(Aman Gupta).
[Bug #8095] [ruby-core:53405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40177 b2dd03c8-39d4-...
nagachika (Tomoyuki Chikanaga)
01:34 PM Revision 28221e35 (git): merge revision(s) 39811: [Backport #8146]
* gc.c: Avoid unnecessary heap growth. patched by tmm1(Aman Gupta).
[Bug #8093] [ruby-core:53393]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:14 PM Bug #8230: Segmentation fault: at_exit
I couldn't reproduce on trunk r40172 and ruby 1.9.3p392. Glass_saga (Masaki Matsushita)
11:32 AM Bug #8230: Segmentation fault: at_exit
At least i couldn't reproduce on trunk.
% build/ruby-trunk --disable-gems -v -r ./at_exit.rb -e "q"
ruby 2.1.0dev (2013-04-07 trunk 40172) [x86_64-darwin12.3.0]
/Users/kosaki/ruby/git/at_exit.rb:4: warning: unused literal ignored
/...
kosaki (Motohiro KOSAKI)
08:57 AM Bug #8230: Segmentation fault: at_exit
(gdb) bt
#0 0x00007fff8c484212 in __pthread_kill ()
#1 0x00007fff8578fb54 in pthread_kill ()
#2 0x00007fff857d3dce in abort ()
#3 0x0000000108970ac9 in rb_bug ()
#4 0x0000000108a15d7f in sigsegv ()
#5 <signal handler called>
...
gojpeg (Peter Leonov)
08:51 AM Bug #8230: Segmentation fault: at_exit
~/Library/Logs/CrashReporter/ is empty, and /Library/Logs/CrashReporter/ doesn't exist. gojpeg (Peter Leonov)
08:43 AM Bug #8230 (Rejected): Segmentation fault: at_exit
Got segfault usin TextMate run script window. Thought it up to TextMate and started to digg.
Ended up with heisenbug in at_exit.
STEPS:
Download two files:
* at_exit.rb
* big_file.rb
save these to some dir, chdir there and ru...
gojpeg (Peter Leonov)
12:28 PM Revision 6cb682a4 (git): * object.c (rb_mod_const_set): call to_str for string only once.
to_str was called from rb_is_const_name and rb_to_id before.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:18 PM Revision d9ff5c22 (git): * object.c (rb_mod_cvar_set): call to_str for string only once.
to_str was called from rb_is_class_name and rb_to_id before.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:07 AM Feature #5677 (Feedback): IO C API
It seems no one design/implement seriously on such an IO framework.
akr (Akira Tanaka)
08:14 AM Feature #8229 (Assigned): extend Hash.include?
I'd like to suggest to extend the Hash.include? method.
Currently Hash.include? can only be used to ask for a key,
I believe it should be extended to ask for a (key value) pair.
I believe this extension can be done without breakin...
eike.rb (Eike Dierks)
05:33 AM Feature #8223: Make Matrix more omnivorous.
So with another apology, I will use this space to write down a few more remarks so that I do not forget about them. My line of thinking was as follows: The first step to the systematic solution of this problem would be to generalize zero... Anonymous
04:48 AM Feature #8223: Make Matrix more omnivorous.
Ahh, I remembered now, initial zero has to be provided to make empty collections work.
My suggested patch breaks empty matrix multiplication. I hope Marc-Andre will appear
here soon.
Anonymous
04:30 AM Feature #8223: Make Matrix more omnivorous.
For starters, I propose changing the existing Matrix#* method to the following:
class Matrix
# Matrix multiplication.
#
def * arg # arg is matrix or vector or number
case arg
when Numeric
rows = @rows.map { |...
Anonymous
05:11 AM Revision 875bba3f (git): Regexp.escape(RUBY_PLATFORM)
* test/ruby/test_require.rb (TestRequire#test_require_nonascii_path):
RUBY_PLATFORM should escape as Regexp,
because RUBY_PLATFORM may contain '.'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40173 b2dd03c8-39d4-4d8f-98ff-823f...
znz (Kazuhiro NISHIYAMA)
02:00 AM Revision 1f32d095 (git): * include/ruby/defines.h: Simplify the logic to include sys/select.h.
This fixes a compilation error on Haiku (gcc2 and gcc4).
* configure.in: Use shared linker as $(CC) for Haiku.
This fixes a build error on Haiku (gcc2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40172 b2dd03c8-39d4-4d8f-98f...
akr (Akira Tanaka)
01:42 AM Revision 672490d0 (git): * lib/resolv.rb (MDNSOneShot#sender): Delete an unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:14 AM Feature #3348: rubyspec: Kernel.spawn redirects both STDERR and STDOUT to the given name ERROR
>この機能ですが、Ruby 2.1 で minor incompatibilities を許容するならそろそろ入れてもいいんじゃないでしょうか。
わたしも入れていいと思います。
kosaki (Motohiro KOSAKI)
12:01 AM Feature #3348: rubyspec: Kernel.spawn redirects both STDERR and STDOUT to the given name ERROR
この機能ですが、Ruby 2.1 で minor incompatibilities を許容するならそろそろ入れてもいいんじゃないでしょうか。 akr (Akira Tanaka)
01:02 AM Bug #6247 (Closed): Range not checked for day of year
This issue was solved with changeset r40165.
Ruby, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* strftime.c (rb_strftime_with_timespec): Test yday range.
[rub...
akr (Akira Tanaka)
12:53 AM Feature #8191: Short-hand syntax for duck-typing
On Apr 6, 2013 9:12 PM, "rosenfeld (Rodrigo Rosenfeld Rosas)" <
rr.rosas@gmail.com> wrote:
>
> Matthew, if you have tried to provide a real use case you'd understand
what I meant. For user.profile.website.thumbnail, for instance, do...
phluid61 (Matthew Kerwin)

04/06/2013

11:52 PM Feature #1436 (Closed): Please consider this addition to resolv.rb which adds methods for resolving LOC resources
This issue was solved with changeset r40162.
JB, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/resolv.rb: Support LOC resources.
[ruby-core:23361] [Featur...
akr (Akira Tanaka)
11:32 PM Feature #8089 (Closed): Add one-shot multicast DNS support to Resolv
This issue was solved with changeset r40160.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/resolv.rb: Add one-shot multicast DNS support.
[ruby-core...
akr (Akira Tanaka)
11:11 PM Bug #6456 (Third Party's Issue): [readline] Readline.point when history edited
Readline.pointの実体はGNU readlineの変数rl_pointですが、次のようなコードで検証したところ
#include <stdlib.h>
#include <stdio.h>
#include <readline/readline.h>
#include <readline/history.h>
int
main() {
const char *prompt = "> ";
char *line = N...
Glass_saga (Masaki Matsushita)
10:16 PM Feature #4788 (Closed): resolv.rb refactoring
This issue was solved with changeset r40159.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/resolv.rb (Resolv::DNS.fetch_resource): New method to obt...
akr (Akira Tanaka)
08:11 PM Feature #8191: Short-hand syntax for duck-typing
Matthew, if you have tried to provide a real use case you'd understand what I meant. For user.profile.website.thumbnail, for instance, don't you agree that neither user, profile or website are expected to be possibly "false" values? You'... rosenfeld (Rodrigo Rosenfeld Rosas)
01:36 PM Feature #8191: Short-hand syntax for duck-typing
=begin
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> Matthew, I'm curious. What method would you call over "false"?
Sorry, I don't quite understand what you're asking. What method would I call on false? None, which is why it makes...
phluid61 (Matthew Kerwin)
11:11 AM Feature #8191: Short-hand syntax for duck-typing
Matthew, I'm curious. What method would you call over "false"? It would help if could provide a real-world use case showing how 2 could be useful.
With regards to the "abort on", please disregard any concrete meaning for it. I just ke...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:01 AM Feature #8191: Short-hand syntax for duck-typing
=begin
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> 1. Abort on nil
> 2. Abort on falsey
> 3. Abort when respond_to? is false
> 4. Abort on NoMethodError
I agree about 3 and 4, it's too chicken-typey and covers up legitimate ...
phluid61 (Matthew Kerwin)
09:19 AM Feature #8191: Short-hand syntax for duck-typing
I forgot to state why I believe 2 shouldn't be accepted. It doesn't make sense in any of the real-world software I've worked with to call any method on "false", so what is the point of 2? rosenfeld (Rodrigo Rosenfeld Rosas)
09:18 AM Feature #8191: Short-hand syntax for duck-typing
Matthew, I agree this is off-topic and I've already read about why it's hard to support that in another issue... Sorry to bring that to this discussion. Let's ignore it from now on.
Just to be clear, I'm +1 only for a??.b meaning (a.n...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:58 AM Feature #8191: Short-hand syntax for duck-typing
=begin
To clarify, there's no single official proposal here. My original post and subsequents posts touch on various syntactical and behavioural possibilities. Ignoring syntax for the moment, there seems to be 3 potential behaviours we c...
wardrop (Tom Wardrop)
08:53 AM Feature #8191: Short-hand syntax for duck-typing
On Apr 5, 2013 11:20 PM, "rosenfeld (Rodrigo Rosenfeld Rosas)" <
rr.rosas@gmail.com> wrote:
>
>
> Issue #8191 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas).
>
>
> phluid61 (Matthew Kerwin) wrote:
> > ==== Incidentally
...
phluid61 (Matthew Kerwin)
07:27 PM Revision c73c876d (git): * addr2line.c: use more generic type:
* u_char -> unsigned char
* u_short -> unsigned short
* u_int -> unsigned int
* u_long -> unsigned long
* quad_t -> int64_t
* u_quad_t -> uint64_t
* addr2line.c (imax): inline is defined by configure.
git-svn-id: svn+ssh://ci...
naruse (Yui NARUSE)
06:34 PM Bug #8159: Build failure introduced by Rinda changes
h.shirosaki (Hiroshi Shirosaki) wrote:
> I created a patch to fix test errors.
> ...
Yeah, I think it is correct.
But your patch doesn't specify what multicast group the socket join.
Current make_socket's argument is only one and it ...
naruse (Yui NARUSE)
06:15 PM Bug #8159: Build failure introduced by Rinda changes
I created a patch to fix test errors.
It seems a socket should be binded to another non multicast address and join a multicast group.
I got it from the following examples.
http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/exampl...
h.shirosaki (Hiroshi Shirosaki)
06:07 PM Revision 6c0822f0 (git): merge revision(s) 39858: [Backport #8135]
* parse.y (simple_re_meta): escape all closing characters, not only
round parenthesis. [ruby-core:53578] [Bug #8133]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:57 PM Revision 03e6d4ea (git): merge revision(s) 39812: [Backport #8147]
* gc.c: Improve accuracy of objspace_live_num() and
allocated/freed counters. patched by tmm1(Aman Gupta).
[Bug #8092] [ruby-core:53392]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40168 b2dd03c8...
nagachika (Tomoyuki Chikanaga)
05:51 PM Revision ff1bd2ba (git): merge revision(s) 39785: [Backport #8108]
* array.c: fix rdoc. [ruby-core:53485] [ruby-trunk - Bug #8108]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:43 PM Revision 59eacb45 (git): Improve ruby-electric-mode.
* misc/ruby-electric.el (ruby-electric-hash): New electric
function that expands a hash sign inside a string or regexp to
"#{}".
* misc/ruby-electric.el (ruby-electric-curlies): Do not insert
spaces inside when the curly brace is ...
Akinori MUSHA
04:02 PM Revision 14e72b1c (git): * strftime.c (rb_strftime_with_timespec): Test yday range.
[ruby-core:44088] [Bug #6247] reported by Ruby Submit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:00 PM Revision 387b4205 (git): * 2013-04-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision f70a7cd2 (git): * configure.in (AC_CHECK_HEADERS): atomic.h for Solaris atomic_ops.
* ruby_atomic.h: Skip using Solaris10 atomic_ops on Solaris 9 or earlier if atomic.h is not available. [ruby-dev:47229] [Bug #8228]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
02:52 PM Revision c4d8cc4e (git): * lib/resolv.rb: Support LOC resources.
[ruby-core:23361] [Feature #1436] by JB Smith.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:45 PM Revision 5427a5df (git): * addr2line.c: quad_t and u_quad_t is not available on Solaris.
__inline is not available with old compilers on Solaris.
[ruby-dev:47229] [Bug #8227]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
02:32 PM Revision 97913535 (git): * lib/resolv.rb: Add one-shot multicast DNS support.
[ruby-core:53387] [Feature #8089] by Eric Hodel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:16 PM Revision 4c1e9722 (git): * lib/resolv.rb (Resolv::DNS.fetch_resource): New method to obtain
full result.
[ruby-dev:43587] [Feature #4788] proposed by Makoto Kishimoto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:56 PM Feature #7396 (Rejected): encode location header
URI.encode is almost always wrong.
For example, URI.encode encodes "%" as "%25".
So, a valid URI which contains "%" is modified by the patch.
It means a valid URI will be misinterpreted.
akr (Akira Tanaka)
12:44 PM Bug #2008: test_io.rb: test 2 fails on FreeBSD
Oops. I forgot to note what ruby I tested.
% ./ruby -v
ruby 2.1.0dev (2013-04-06 trunk 40143) [x86_64-kfreebsd8.1-gnu]
% lsb_release -idrc
Distributor ID: Debian
Description: Debian GNU 6.0.7 (squeeze)
Release: 6.0.7
Codename: ...
akr (Akira Tanaka)
10:04 AM Bug #2008 (Closed): test_io.rb: test 2 fails on FreeBSD
Finally I installed Debian GNU/kFreeBSD 6.0.7 (squeeze) and
Debian GNU/kFreeBSD 7.0 (wheezy) and tested test_io.rb.
But I couldn't reproduce the problem.
So I close this issue.
akr (Akira Tanaka)
12:21 PM Bug #8226 (Closed): incorrect timezone offset under Solaris 11 x64
US/Eastern is GMT-4, not GMT+4.
DateTime has it back asswards.
I can reproduce with ruby-2.0.0 as well.
$ env PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin ruby -v
ruby 1.9.3p392 (2013-...
groenveld@acm.org (John Groenveld)
11:39 AM Feature #6583 (Closed): Improve socket exception message when bind() fails
This issue was solved with changeset r40149.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/socket: Improve socket exception message to show socket add...
akr (Akira Tanaka)
11:21 AM Revision d818a6ab (git): * ext/socket/socket.c (rsock_sys_fail_raddrinfo): Renamed from
rsock_sys_fail_addrinfo.
(rsock_sys_fail_raddrinfo_or_sockaddr): Renamed from
rsock_sys_fail_addrinfo_or_sockaddr.
* ext/socket/rubysocket.h: Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40158 b2dd03...
akr (Akira Tanaka)
11:04 AM Revision 67fe038d (git): * ext/socket/socket.c (rsock_sys_fail_sockaddr): Takes struct sockaddr
and socklen_t instead of String object.
(rsock_sys_fail_addrinfo_or_sockaddr): Follow the above change.
* ext/socket/rubysocket.h (rsock_sys_fail_sockaddr): Follow the above
change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru...
akr (Akira Tanaka)
07:58 AM Revision c7135ddd (git): socket/extconf.rb: RSTRING_SOCKLEN
* ext/socket/extconf.rb (RSTRING_SOCKLEN): macro to cast RSTRING_LEN
to socklen_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:58 AM Revision 7e4a95cd (git): socket.c: suppress warnings
* ext/socket/socket.c (rsock_sys_fail_sockaddr): cast down explicitly
to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:53 AM Bug #7829: Rounding error in Ruby Time
2013/4/6 David MacMahon <davidm@astro.berkeley.edu>:

> I understand that the Float returned by Rational#to_f has limited precision and often will only approximate but not equal the value represented by the Rational. But in the examp...
akr (Akira Tanaka)
04:29 AM Bug #7829: Rounding error in Ruby Time
On Apr 4, 2013, at 7:02 PM, Tanaka Akira wrote:

> It is expected that Rational#to_f can error because Float has only
> 53bit mantissa but Rational can hold more digits.
> (Ruby uses double type in C and it is usally IEEE 754 double...
david_macmahon (David MacMahon)
05:50 AM Revision cb302bf3 (git): * ext/socket/rubysocket.h (SockAddrStringValueWithAddrinfo): New macro.
(rsock_sockaddr_string_value_with_addrinfo): New declaration.
(rsock_addrinfo_inspect_sockaddr): Ditto.
(rsock_sys_fail_addrinfo): Ditto.
(rsock_sys_fail_sockaddr_or_addrinfo): Ditto.
* ext/socket/raddrinfo.c (rsock_addrinfo_inspe...
akr (Akira Tanaka)
04:35 AM Revision b1fd376c (git): * ext/socket/socket.c (rsock_sys_fail_sockaddr): Delete 2nd argument.
* ext/socket/rubysocket.h (rsock_sys_fail_sockaddr): Follow above
change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
04:14 AM Revision 8c6c7374 (git): * ext/socket/socket.c (rsock_sys_fail_path): Use rb_str_inspect only
for String to avoid SEGV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:41 AM Revision 24ee6971 (git): * ext/socket/rubysocket.h (rsock_sys_fail_host_port) Wrap by NORETURN.
(rsock_sys_fail_path): Ditto.
(rsock_sys_fail_sockaddr): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:50 AM Revision 11a9d772 (git): * ext/socket/socket.c (rsock_sys_fail_path): Use rb_str_inspect if the
path contains a NUL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:39 AM Revision d933fb22 (git): * ext/socket: Improve socket exception message to show socket address.
[ruby-core:45617] [Feature #6583] proposed Eric Hodel.
* ext/socket/rubysocket.h (rsock_sys_fail_host_port): Declared.
(rsock_sys_fail_path): Ditto.
(rsock_sys_fail_sockaddr): Ditto.
* ext/socket/udpsocket.c (udp_connect): Use rsoc...
akr (Akira Tanaka)
02:30 AM Revision e4283fd3 (git): * test/ruby/test_require.rb (TestRequire#test_require_nonascii_path):
fix load path for encoding to run the test as stand-alone.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
02:30 AM Bug #8224 (Closed): defined?(()) and defined? () are inconsistent
This issue was solved with changeset r40138.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
parse.y: "nil" for defined? with empty expression
* parse.y (...
nobu (Nobuyoshi Nakada)
12:59 AM Revision 8ee121d0 (git): * test/dtrace/helper.rb (DTrace::TestCase#trap_probe): needs to pass
some paths by environment variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:56 AM Revision 8483e9bd (git): * ChangeLog: remove duplicated entry due to git-svn conflict.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:54 AM Revision c3fcd1b8 (git): pack.c: fix definition order
* pack.c (NATINT_LEN): fix definition order, must be after
NATINT_PACK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:44 AM Bug #8225: Missing RI file for Kernel.open
I know about invoking documentation for instance methods. It's about `open` is listed & linked in Kernel's class methods. It either has to be removed or the missing ri for Kernel::open added.
dunric (David Unric)
12:10 AM Revision 37872dbf (git): add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
 

Also available in: Atom