Project

General

Profile

Activity

From 04/11/2013 to 04/17/2013

04/17/2013

11:21 PM Revision 2446c965 (git): * 2013-04-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:21 PM Revision 97dae8b0 (git): * common.mk (clean-ext): remove timestamps.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:37 PM Bug #8148: [patch] reduce allocations due to __FILE__ and {class,module}_eval
ko1-san, do you have any opinion on this patch? Is there a simpler solution instead of adding NODE_FILE?
I converted all eval functions inside the VM to use VALUE filename instead of char *filename, so it is easier to re-use existing ...
tmm1 (Aman Karmani)
07:38 PM Feature #8110: Regex methods not changing global variables
@naruse @charlie should this be moved to ruby common? sam.saffron (Sam Saffron)
02:26 PM Revision a66491ef (git): merge revision(s) 40327:
fix typo by @zsalzbank [fix GH-289]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:08 PM Revision 80e4d412 (git): * ext/socket/rubysocket.h (SOCKLEN_MAX): Expression simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:29 PM Bug #8208: Raise cached exceptions for nonblocking IO to avoid allocation/stack-copying costs
Charles Nutter <headius@headius.com> wrote:
> Which issue is tracking an exceptionless nonblocking API? Maybe we can
> nudge it forward.

https://bugs.ruby-lang.org/issues/5138

Now that CommonRuby exists, it should probably...
normalperson (Eric Wong)
11:53 AM Bug #8208: Raise cached exceptions for nonblocking IO to avoid allocation/stack-copying costs
On Apr 16, 2013, at 8:42 PM, Eric Wong <normalperson@yhbt.net> wrote:
> How does this compare to an implementation which returns symbols
> like :wait_*able instead of raising exceptions?

It will be more expensive, but mostly becaus...
headius (Charles Nutter)
10:53 AM Bug #8208: Raise cached exceptions for nonblocking IO to avoid allocation/stack-copying costs
"headius (Charles Nutter)" <headius@headius.com> wrote:
> Perf change for an implementation of this in JRuby:

How does this compare to an implementation which returns symbols
like :wait_*able instead of raising exceptions?

...
normalperson (Eric Wong)
12:33 AM Bug #8208: Raise cached exceptions for nonblocking IO to avoid allocation/stack-copying costs
No comments?
Perf change for an implementation of this in JRuby:
Before:
$ jruby -rbenchmark -rsocket -e "s = TCPSocket.new('google.com', 80); 10.times { puts Benchmark.measure { 100_000.times { begin; s.read_nonblock(1000); res...
headius (Charles Nutter)
11:43 AM Revision aebb6889 (git): Oops, I forgot to use JST in the ChangeLog entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tmm1 (Aman Karmani)
11:20 AM Revision cbd8b099 (git): iseq: reduce array allocations for simple sequences
* compile.c (iseq_add_mark_object): Use new rb_iseq_add_mark_object().
* insns.def (setinlinecache): Ditto.
* iseq.c (rb_iseq_add_mark_object): New function to allocate
iseq->mark_ary on demand. [Bug #8142]
* iseq.h (rb_iseq_add_mar...
tmm1 (Aman Karmani)
11:01 AM Revision ce6db8f2 (git): * ext/socket/rubysocket.h (SOCKLEN_MAX): Defined.
* ext/socket/raddrinfo.c (ext/socket/raddrinfo.c): Reject too long
Linux abstract socket name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:55 AM Revision cef6a377 (git): iseq.c: remove duplicated strings for file paths
* iseq.c (iseq_location_setup): re-use existing string when iseq has
the same path and absolute_path. [Bug #8149]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tmm1 (Aman Karmani)
10:04 AM Feature #8273 (Rejected): Make it possible to treat objects as falsy in order to make NullObjects more convenient
Rejected for the same reason as #6180.
Matz.
matz (Yukihiro Matsumoto)
03:50 AM Feature #8273: Make it possible to treat objects as falsy in order to make NullObjects more convenient
@headius
I understand your oppositions. IMO, NullObject should be a kind of immutable/singleton object so that object couldn't change its truthiness unless method is redefined. (but in ruby there're already many ways to shoot own leg)
...
prijutme4ty (Ilya Vorontsov)
07:32 AM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
I think that was tossed around on IRC or somewhere. It would certainly work, but it feels a little too hacky to me.
You'd also never be able to rely on the String objects from #backtrace actually being Location-like, since set_backtra...
headius (Charles Nutter)
04:59 AM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
Has anyone talked about .backtrace returning a subclass of String (or singleton) which duck-types to the same methods as Location? It is arguably hacky and would not work for === but it would still allow them to be used in a compatible ... enebo (Thomas Enebo)
02:54 AM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
What's the next step here? Do we need a patch to proceed? It seems like this feature is universally liked. headius (Charles Nutter)
06:39 AM Revision 626235a6 (git): test_curses.rb: default TERM
* test/test_curses.rb (TestCurses#run_curses): default TERM
environment variable which is needed by ncurses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:20 AM Revision 385de15d (git): test_readline.rb: try UTF-8
* test/readline/test_readline.rb (test_completion_encoding),
(test_input_metachar_multibyte): try to run under UTF-8 locale,
before skipping.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:20 AM Revision a24b6d3f (git): envutil.rb: env hash
* test/ruby/envutil.rb (assert_separately): keep environment hash
first if exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:57 AM Feature #8259: Atomic attributes accessors
The "while true" loop is there in order to re-check if the value is == after a change. My justification is that the only atomic part of this is the final CAS, but we want to pretend that the whole == + CAS is atomic; so this loops until ... headius (Charles Nutter)
03:53 AM Feature #8259: Atomic attributes accessors
Charles, I really sure there is no need for `while true` in your numeric
handling cas -
the nature of cas is "change if no one changes yet", so that your `while
true` violates natures of cas.


2013/4/16 headius (Charles Nut...
funny_falcon (Yura Sokolov)
03:33 AM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
naruse (Yui NARUSE) wrote:
> headius (Charles Nutter) wrote:
> ...
Yes, I can write it. I'll try to figure out all appropriate places and let you know if I don't have access.
I'll write *something* in CommonRuby wiki page that descr...
headius (Charles Nutter)
03:21 AM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
headius (Charles Nutter) wrote:
> @naruse: I will try to summarize what implementation of this proposal will involve:
> ...
Whether this documentation is a content of www.ruby-lang.org or wiki page of CommonRuby?
And could you write i...
naruse (Yui NARUSE)
12:13 AM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
@naruse: I will try to summarize what implementation of this proposal will involve:
Required changes:
* CommonRuby becomes the project for feature requests.
* It moves to top-level on bugs.ruby-lang.org.
* Documentation about how...
headius (Charles Nutter)
03:12 AM Feature #8275: Add Module#public_const_get
rkh (Konstantin Haase) wrote:
> I was considering a boolean. However, const_get already takes a boolean argument indicating whether or not to include inherited constants, and two boolean arguments would not make a readable API, I guess....
headius (Charles Nutter)
03:02 AM Feature #8275: Add Module#public_const_get
I was considering a boolean. However, const_get already takes a boolean argument indicating whether or not to include inherited constants, and two boolean arguments would not make a readable API, I guess.
Maybe this would be a good us...
rkh (Konstantin Haase)
02:55 AM Feature #8088: Method#parameters (and friends) should provide useful information about core methods
marcandre: Have you had a chance to prototype what you were talking about? I'll be on #jruby Freenode IRC today if you want to chat about a prototype impl. headius (Charles Nutter)
02:53 AM Feature #6308: Eliminate delegation from WeakRef
Here's a patch that removes delegation from Weakref: https://github.com/headius/ruby/commit/431b971a147daf8a9b2185d117580a842f3c8dfc
One test was no longer really relevant (and not adding anything), and others were modified to reflect...
headius (Charles Nutter)
02:36 AM Feature #6308: Eliminate delegation from WeakRef
Moving into CommonRuby headius (Charles Nutter)
02:39 AM Revision 9efcd103 (git): assertions.rb: remove UNASSIGNED
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
UNASSIGNED is not a valid message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:58 AM Revision 9e39bc1a (git): thread.c: fix overflow on Windows
* thread.c (sleep_timeval): get rid of overflow on Windows where
timeval.tv_sec is not time_t but mere long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:17 AM Revision 08f52b05 (git): * 2013-04-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:16 AM Revision e9a61266 (git): fix typo by @zsalzbank [fix GH-289]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:39 AM Feature #8239: Inline rescue bug
I also think this is a bug, but it may not be backported because of backward compatibility. nobu (Nobuyoshi Nakada)
12:24 AM Feature #7701: Non-optional (required) keyword args
Oh, a question... target version will be 2.1, yes? headius (Charles Nutter)
12:23 AM Feature #7701: Non-optional (required) keyword args
Oh, excellent! I had not noticed this was completed until today.
Thanks, everyone!
headius (Charles Nutter)
12:20 AM Feature #8270: Ruby should build without thread support (aka minix)
nobu (Nobuyoshi Nakada) wrote:
> I have never played with it at all.
> ...
I'd be very surprised if minix ever added threads. Heck, I'm surprised minix is under any sort of development at all.
headius (Charles Nutter)
12:04 AM Feature #8096: introduce Time.current_timestamp
phluid61 (Matthew Kerwin) wrote:
> Actually since making the jruby branch, and based on some conversations here, I have changed the API of the gem (and the C implementation in master) to define a monotonic Time.timestamp method and a Ti...
headius (Charles Nutter)

04/16/2013

11:58 PM Feature #8275: Add Module#public_const_get
What about an optional boolean for the existing const_get/const_set that indicates whether private constants should be included?
I guess having separate methods does align with public_instance_method and friends, though.
headius (Charles Nutter)
08:02 PM Feature #8275: Add Module#public_const_get
=begin
And vice-versa for set too maybe
(({Module#public_const_set}))/
(({Module#private_const_set}))
=end
vipulnsward (Vipul Amler)
06:28 PM Feature #8275 (Open): Add Module#public_const_get
Right now, `const_get` will always return a constant, no matter the visibility, which is probably what we want most of the time. But if you for instance have code that does some automatic name to constant resolution, you might now want t... rkh (Konstantin Haase)
11:54 PM Feature #8259: Atomic attributes accessors
I have completed adding the numeric logic to the atomic gem and pushed 1.1.8.
The version for JRuby is here: https://github.com/headius/ruby-atomic/blob/master/ext/org/jruby/ext/atomic/AtomicReferenceLibrary.java#L129
The version f...
headius (Charles Nutter)
01:54 PM Feature #8259: Atomic attributes accessors
Comparison of two numeric values *should* be consistent and unchanging, or else I feel that various contracts of numbers are being violated. In Java, this is handled by having numeric values be primitives, and therefore all representatio... headius (Charles Nutter)
01:42 PM Feature #8259: Atomic attributes accessors
Comparison is not atomic. It is used to be ensure, we could use value, stored in @ivar for real CAS. Semantic of method at whole doesn't change, cause if comparison fails, then CAS will fail also. funny_falcon (Yura Sokolov)
10:59 AM Feature #8259: Atomic attributes accessors
Why do you consider comparison atomic? nobu (Nobuyoshi Nakada)
08:09 AM Feature #8259: Atomic attributes accessors
FYI, link to a current issue with the atomic gem I'm fixing using a loop + == + CAS: https://github.com/headius/ruby-atomic/issues/19 headius (Charles Nutter)
06:34 AM Feature #8259: Atomic attributes accessors
funny_falcon (Yura Sokolov) wrote:
> I think, @ivar access should not be volatile as in any other language,
> ...
Agreed. The dynamic nature by which @ivar can be instantiated makes marking them as volatile very tricky, on any implemen...
headius (Charles Nutter)
11:51 PM Feature #8273: Make it possible to treat objects as falsy in order to make NullObjects more convenient
@rosenfeld That would certainly be less impact, but not zero-impact. I do not have a strong opinion one way or the other on that sort of change, but I still suspect it's unlikely to be approved. Changing the semantics of truthiness is a ... headius (Charles Nutter)
09:07 PM Feature #8273: Make it possible to treat objects as falsy in order to make NullObjects more convenient
I should agree with Charles although I understand Ilya's concerns. Maybe another attempt to get this implemented would be simply requesting native support for a NullObject class in such a way that falsey would be either false, nil or an ... rosenfeld (Rodrigo Rosenfeld Rosas)
01:45 PM Feature #8273: Make it possible to treat objects as falsy in order to make NullObjects more convenient
I think you might have submitted this before, but I'd like to enter my *strong* opposition to this.
* It most definitely would affect performance. Any language construct that needs to check for truthiness would suddenly have to do a m...
headius (Charles Nutter)
08:11 AM Feature #8273 (Rejected): Make it possible to treat objects as falsy in order to make NullObjects more convenient
NullObject is quite a useful pattern. But refactoring from conditionals to null-object can be very painful because an instance of NullObject will be treated as truthy so code `... if obj` can change its behavior. It'd be great to treat s... prijutme4ty (Ilya Vorontsov)
09:39 PM Bug #8279 (Closed): Single-line rescue parsing
Hi,
there seems to be a bug in parser for single-line rescue statement. It fails in case of multiple assignment statements, keeping operator precedence vs. simple assignment etc.
obj = expression rescue objval
# parsed as
obj = (...
dunric (David Unric)
09:02 PM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
Just for the record, I'm +1 and I'm not an implementer. I'm only interested in the Ruby language discussion itself and the bug reports are noise to me as well. I'd love if it would be possible for me to follow only issues requesting chan... rosenfeld (Rodrigo Rosenfeld Rosas)
04:37 PM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
I still don't understand why headius want to do this and it is reasonable, but I understand what he want to do.
So I can try to do it.
How do you think, matz?
naruse (Yui NARUSE)
03:41 PM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
duerst (Martin Dürst) wrote:
> I wanted to oppose a more formal process because I think it's
> ...
I agree. This is more a cosmetic change. But I think it's an important one.
It also feels to me like it would be easier to clean up...
headius (Charles Nutter)
03:29 PM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
On 2013/04/16 5:35, headius (Charles Nutter) wrote:
>
> Issue #8271 has been reported by headius (Charles Nutter).
>
> ----------------------------------------
> Feature #8271: Proposal for moving to a more visible, formal process ...
duerst (Martin Dürst)
01:50 PM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
I should say...if feature requests for bundled libraries are currently marked as "feature" in trunk, they'd just be in CommonRuby now. If they're not, they would not be. headius (Charles Nutter)
01:49 PM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
naruse (Yui NARUSE) wrote:
> People can't make feature request other than trunk.
> ...
Sorry, I think I was confused by the old Ruby 1.8 project, which did have "Feature".
> > * Ability to add fields to "feature" issues that do not ...
headius (Charles Nutter)
09:44 AM Feature #8271 (Assigned): Proposal for moving to a more visible, formal process for feature requests
> * No confusion about where feature requests should be filed. Currently, people usually file feature requests against "trunk", but sometimes against version-specific projects. It's also valid to say that a feature improvement or clarifi... naruse (Yui NARUSE)
06:17 AM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
I wonder if issues for Ruby can have a simple front-end wizard where new users will get funneled to the correct system. Once you are experienced you can go straight to the proper redmine project but new users will find the issues link o... enebo (Thomas Enebo)
05:40 AM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
A correction...
The latter governs all visible feature changes to Python independent of bug reports to the main "CPython" implementation.
should read
The former governs all visible feature changes to Python independent of bug re...
headius (Charles Nutter)
05:37 AM Feature #8271: Proposal for moving to a more visible, formal process for feature requests
For reference, the current CommonRuby project in Redmine is here: https://bugs.ruby-lang.org/projects/common-ruby headius (Charles Nutter)
05:35 AM Feature #8271 (Assigned): Proposal for moving to a more visible, formal process for feature requests
Proposal for moving to a more visible, formal process for feature requests.
1. Introduction
In order to make it clear that an issue or change to MRI is a visible feature change all implementations will need to consider implementing...
headius (Charles Nutter)
06:20 PM Feature #8096: introduce Time.current_timestamp
headius (Charles Nutter) wrote:
> phluid61 (Matthew Kerwin) wrote:
> ...
Actually since making the jruby branch, and based on some conversations here, I have changed the API of the gem (and the C implementation in master) to define a m...
phluid61 (Matthew Kerwin)
02:21 PM Feature #8096: introduce Time.current_timestamp
JRuby patch to add Time.timestamp/current_timestamp and Time.microtime: https://gist.github.com/headius/5393552
This is based on system time (System.currentTimeMillis), not CPU time (System.nanoTime) as in the 'jruby' branch of pluid6...
headius (Charles Nutter)
02:10 PM Feature #8096: introduce Time.current_timestamp
phluid61 (Matthew Kerwin) wrote:
> There is this: https://github.com/phluid61/timestamp-gem
> ...
You're pretty close. System.nanoTime is probably the closes thing to your "timestamp", but as kosaki points out it's not guaranteed to be ...
headius (Charles Nutter)
05:07 PM Feature #8270: Ruby should build without thread support (aka minix)
I have never played with it at all.
"does not yet" means there is a plan to implement?
nobu (Nobuyoshi Nakada)
03:20 PM Feature #8270: Ruby should build without thread support (aka minix)
Minix...hard core. I haven't played with that in...20 years?
Perhaps for such a limited system you can just use an older Ruby or mruby (Matz's eMbedded Ruby)?
headius (Charles Nutter)
04:04 AM Feature #8270 (Assigned): Ruby should build without thread support (aka minix)
I tried to ./configure ruby on Minix 3.2.1,
The configure failed, because minix does not yet implement threads.
I'd like to suggest that ruby should still build on platforms without threads.
AFAIK the language does not yet require...
eike.rb (Eike Dierks)
05:03 PM Feature #8215: Support accessing Fiber-locals and backtraces for a Fiber
More tests may be needed. nobu (Nobuyoshi Nakada)
04:59 PM Bug #7829: Rounding error in Ruby Time
On Apr 16, 2013, at 12:44 AM, David MacMahon wrote:
^^^^^^^^^^^^

> Please see my other reply to this topic that crossed paths with yours.
>
> Dave
>
> On Feb 11, 2013, at 5:48 PM, drbrain (Eric Hodel) wrote:
^^^^^^^^^^...
david_macmahon (David MacMahon)
04:53 PM Bug #7829: Rounding error in Ruby Time
I think using floor is correct when reducing the precision of time. We don't round "15:00 on Monday" to "Tuesday", it's still Monday. Likewise, we don't round "July 15, 2012" to "2013", it's still 2012. Why should we round "859999" m... david_macmahon (David MacMahon)
04:29 PM Bug #7829: Rounding error in Ruby Time
On Apr 10, 2013, at 9:36 PM, Zachary Scott wrote:

> So is this a documentation bug? I haven't read the entire discussion

The discussion has wandered some from the original bug report. I don't think there is consensus yet on the d...
david_macmahon (David MacMahon)
04:20 PM Revision fb6713bd (git): merge revision(s) 39600:
test_method.rb: reduce iteration
* test/ruby/test_method.rb (TestMethod#test_bound_method_entry):
reduce iteration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:24 PM Feature #7149: Constant magic for everyone.
const_assigned is not a bad hook at all, imho. headius (Charles Nutter)
02:53 PM Bug #8274 (Closed): No tests for PKCS7::write_smime
There are no tests for OpenSSL::PKCS7::write_smime.
That is all :-)
A recent pull request for JRuby attempts to implement write_smime, but we have no way to confirm it is working correctly (and I do not understand it well enough to...
headius (Charles Nutter)
02:09 PM Revision b4909876 (git): merge revision(s) 40322:
fix ENV.to_a rdoc example by @benolee [fix GH-288]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:07 PM Revision a294d458 (git): * ext/socket/unixsocket.c (unix_send_io): Suppress a warning by clang.
(unix_recv_io): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:49 PM Revision b3f5b73a (git): merge revision(s) 40318:
fixed wrong value by @taksatou [fix GH-287]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
12:18 PM Bug #8204: ObjectSpace.each_object(Bignum) can generate Bignums that are to small to be Bignums
> x = (1 << 100).coerce(42).first # => 42
> ...
It's a Feature.
Numeric#coerce must return a pair of converted interoperable values.
In future version, Fixnum and Bignum might be merged.
However, these commits do not intend it.
...
nobu (Nobuyoshi Nakada)
11:04 AM Bug #8268: ruby 2.0.0 incorrectly detects debugflags on SmartOS / gcc 4.7
At least, gcc 4.7 on Debian 7 and MacPorts work fine with -ggdb3, so it's not gcc 4.7 specific. nobu (Nobuyoshi Nakada)
11:02 AM Bug #8268: ruby 2.0.0 incorrectly detects debugflags on SmartOS / gcc 4.7
Could you show your config.log? nobu (Nobuyoshi Nakada)
08:16 AM Bug #8268: ruby 2.0.0 incorrectly detects debugflags on SmartOS / gcc 4.7
What is $target_os in configure on SmartOS? naruse (Yui NARUSE)
09:25 AM Feature #8265 (Rejected): -0.0 does not have a Flonum like 0.0
It seems not practical problem.
Please reopen this ticket if you find real problem.
(for example, there are too many -0.0 objects in your program and it beats performance)
ko1 (Koichi Sasada)
06:41 AM Bug #7584 (Closed): Ruby hangs when shutting down an ssl connection in gc finalization
Great, thanks for checking! I'll close this, too, then. If anyone still runs into this or a similar issue, please let me know! MartinBosslet (Martin Bosslet)
06:29 AM Bug #7584: Ruby hangs when shutting down an ssl connection in gc finalization
Looks like that fixes it! I was unable to reproduce with "ruby 2.1.0dev (2013-04-15 trunk 40308) [x86_64-linux]".
bpot (Bob Potter)
06:28 AM Revision da91385f (git): fix ENV.to_a rdoc example by @benolee [fix GH-288]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
06:03 AM Feature #8257: Exception#cause to carry originating exception along with new one
rkh (Konstantin Haase) wrote:
> I think allowing rescue lines to take other objects besides modules would this would greatly ease building something in user code:
...
> ...
Yeah, it might be nice, but there might also be optimization ...
headius (Charles Nutter)
05:56 AM Revision 8d1d9fc1 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:45 AM Feature #8272 (Open): Transfer feature tracking to CommonRuby
If my proposal in #8271 is accepted, we'll need to:
1. Document in appropriate places that CommonRuby is the place to file and track feature changes. Examples of such places: bugs.ruby-lang.org top-level page, pages for the existing "...
headius (Charles Nutter)
03:28 AM Revision 45b3c3ac (git): * ext/sdbm/init.c: Fix comment indentation, by windwiny [Fixes GH-277]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:25 AM Revision 3a7a773a (git): * ext/socket/option.c: Document synonymous methods, by windwiny [GH-277]
* ext/stringio/stringio.c: ditto
* ext/io/wait/wait.c: ditto
* ext/gdbm/gdbm.c: ditto
* ext/dl/cfunc.c: ditto
* ext/zlib/zlib.c: ditto
* ext/win32ole/win32ole.c: ditto
* ext/dbm/dbm.c: ditto
* ext/json/generator/generator.c: ditto
* ext/...
zzak (zzak _)
02:31 AM Revision bbf0ea6b (git): fixed wrong value by @taksatou [fix GH-287]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
02:24 AM Revision 13d18f27 (git): * 2013-04-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:24 AM Revision a152c41e (git): * ext/openssl/*: Document synonymous methods, by windwiny [GH-277]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)

04/15/2013

10:32 PM Feature #8269 (Feedback): stdlib: Add Find.each_file to accompany Find.find
Often when I use the find module, I am only interested in files.
Since Find.find returns files and directories, I often write code
that looks like this:
Find.find('foo/bar') do |f|
next if File.directory? f
code code code ...
...
tommylommykins (Thomas Green)
07:38 PM Feature #8258: Dir#escape_glob
nobu (Nobuyoshi Nakada) wrote:
> It reminded me about old proposal, `Dir#glob` (not `Dir.glob`).
Interesting, do you have a link?
Eregon (Benoit Daloze)
09:23 AM Feature #8258: Dir#escape_glob
(13/04/14 18:34), Eregon (Benoit Daloze) wrote:
> I guess the most common use case is globbing on a directory recursively, so only the base directory is to be escaped, but this is not worth a specific method I think and could be done ea...
nobu (Nobuyoshi Nakada)
07:29 AM Feature #8258: Dir#escape_glob
rkh (Konstantin Haase) wrote:
> > - Rubinius does not handle escaped `[`, `{` and `}`.
> ...
But it means the problem will not be solved in the general case before a while.
It must also have been problematic for some time, so I guess ...
Eregon (Benoit Daloze)
04:41 PM Feature #8265: -0.0 does not have a Flonum like 0.0
for me it doesnt make much sense that some Floats have fixed object_ids and some Floats does have not, so i think, when fixed ids are possible than they should be for much of them as possible Hanmac (Hans Mackowiak)
08:50 AM Feature #8265 (Feedback): -0.0 does not have a Flonum like 0.0
nobu (Nobuyoshi Nakada)
06:04 AM Feature #8265: -0.0 does not have a Flonum like 0.0
> i think that -0.0 should have fixed object_id too
Why?
ko1 (Koichi Sasada)
04:34 PM Revision 3a645975 (git): merge revision(s) 40181: [Backport #8183]
* lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character.
[Bug #8183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:33 PM Revision e3dbba34 (git): merge revision(s) 39814,39815: [Backport #8117]
* configure.in: Fix c++ compiler auto-selection not only for
Darwin 11.x, but also the other versions of Darwin.
* configure.in: set ac_cv_prog_cxx if CXX is supplied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bran...
nagachika (Tomoyuki Chikanaga)
04:27 PM Revision 36eb3366 (git): revert r40311(merge revision(s) 40117,40118).
It breaks rubyci tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:50 PM Bug #8268 (Closed): ruby 2.0.0 incorrectly detects debugflags on SmartOS / gcc 4.7
When compiling ruby from source on Smart OS, which uses gcc-4.7, the configure script fails to correctly detect a compatible debug flag. It chooses "-ggdb3" which doesn't work, and this causes all of the conftest.c compilations to fail a... mattconnolly (Matt Connolly)
03:28 PM Revision ed1d6660 (git): merge revision(s) 40124: [Backport #8220]
* compile.c (iseq_compile_each): fix of defined? with empty
expression. [ruby-core:53999] [Bug #8220]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:19 PM Revision d9aa81ea (git): merge revision(s) 40117,40118: [Backport #8222]
* test/test_curses.rb: tests for getch.
* ext/curses/curses.c (Init_curses): fix implementation function,
crmode should be same as cbreak. [ruby-core:54013] [Bug #8222]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
nagachika (Tomoyuki Chikanaga)
02:09 PM Revision 7514d35d (git): merge revision(s) 40301:
* dir.c (File.fnmatch): fix typo in documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:04 PM Revision 8a288166 (git): merge revision(s) 40299:
* string.c (String#gsub): fix typo in documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:22 PM Revision 582ba0a5 (git): * ext/fiddle/depend: New file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:15 PM Revision 7190cc5d (git): misc/ruby-electric.el: Decrease the excess voltage of automatic matching.
* misc/ruby-electric.el (ruby-electric-closing-char): New
interactive function bound to closing characters. Typing one of
those closing characters right after the matching counterpart
cancels the effect of automatic closing. For ...
Akinori MUSHA
01:15 PM Revision ed3b657d (git): misc/ruby-electric.el: Minor refactoring.
* misc/ruby-electric.el (ruby-electric-insert): Check
ruby-electric-is-last-command-char-expandable-punct-p here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
12:02 PM Feature #8237: Logical method chaining via inferred receiver
wardrop (Tom Wardrop) wrote:
> =begin
> ...
If you want your request to be taken seriously your example usage should show that you have thoroughly considered how this feature will be used, how it will effect existing code, and the edge...
henry.maddocks (Henry Maddocks)
11:06 AM Bug #7584: Ruby hangs when shutting down an ssl connection in gc finalization
Bob, could you please check if the patch applied in https://bugs.ruby-lang.org/issues/8240 fixed this? Thanks! MartinBosslet (Martin Bosslet)
05:58 AM Revision e80d0a96 (git): merge revision(s) 34306:
* ext/json/parser/parser.rl (json_string_unescape): workaround fix
for over optimization of GCC 4.7. [ruby-core:42085] [Bug #5888]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862
git-svn-id: svn+ssh://ci.ruby-lang...
naruse (Yui NARUSE)
02:04 AM Revision d6b1ab91 (git): * ext/openssl/ossl_ssl.c: Correct shutdown behavior w.r.t GC.
* test/openssl/test_ssl.rb: Add tests to verify correct behavior.
[Bug #8240] Patch provided by Shugo Maeda. Thanks!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
02:00 AM Revision a840645f (git): merge revision(s) 34278:
* cont.c (cont_restore_0): prevent optimizing out `sp'. sp is used for
reserving a memory space with ALLOCA_N for restoring machine stack
stored in cont->machine_stack, but clang optimized out it (and
maybe ...
naruse (Yui NARUSE)
01:26 AM Feature #8110: Regex methods not changing global variables
You may misunderstand, unlike Perl, Ruby's setting global variable cost is small.
Ruby only set a MatchData object to its scope.
$~ (Regexp.last_match) gets it.
The implementation of $& (Regexp.last_match[0]), $` (Regexp.last_match.pr...
naruse (Yui NARUSE)
01:24 AM Revision e4f6efcc (git): * ext/coverage/depend: fix id.h place as r40283.
* ext/coverage/extconf.rb: add topdir and topsrcdir to VPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

04/14/2013

11:19 PM Feature #8110: Regex methods not changing global variables
headius (Charles Nutter) wrote:
> 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 s...
naruse (Yui NARUSE)
10:38 PM Revision 37a350db (git): * dir.c (File.fnmatch): fix typo in documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
10:38 PM Revision 3759c137 (git): * 2013-04-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:38 PM Revision f861a74e (git): * string.c (String#gsub): fix typo in documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
10:33 PM Feature #8257: Exception#cause to carry originating exception along with new one
I think allowing rescue lines to take other objects besides modules would this would greatly ease building something in user code:
def caused_by(matcher)
block = proc do |exception|
matcher === exception or exception.cause && ...
rkh (Konstantin Haase)
10:27 PM Feature #8258: Dir#escape_glob

> - Rubinius does not handle escaped `[`, `{` and `}`.
> ...
These are implementation bugs, imo, and nothing to worry about here.
> If I am not mistaken, escaping is as simple as: `dir.gsub(/\[|\]|\*|\?|\{|\}/, '\\\\' + '\0')`.
...
rkh (Konstantin Haase)
08:39 PM Feature #8258: Dir#escape_glob
What is more worrying is implementations differ quite a bit in treating `\` as an escape for these glob characters `({,},[,],*,?)`.
From my tests:
- MRI handle them fine
- Rubinius does not handle escaped `[`, `{` and `}`.
- JRuby ...
Eregon (Benoit Daloze)
06:34 PM Feature #8258: Dir#escape_glob
headius (Charles Nutter) wrote:
> rkh (Konstantin Haase) wrote:
> ...
I agree, this would be strictly superior.
I guess the most common use case is globbing on a directory recursively, so only the base directory is to be escaped, bu...
Eregon (Benoit Daloze)
03:58 PM Feature #8265 (Rejected): -0.0 does not have a Flonum like 0.0
=begin
with Flonum,
fixed id for 0.0
(0.0).object_id #=> -9223372036854775806
(0.0).object_id #=> -9223372036854775806
non-fixed id for -0.0
(-0.0).object_id #=> 22387560
(-0.0).object_id #=> 22381340
i think that -0....
Hanmac (Hans Mackowiak)
03:45 PM Revision 108d1632 (git): merge revision(s) 39967: [Backport #8193]
* time.c (num_exact): use to_r method only if to_int method is
available.
[ruby-core:53764] [Bug #8173] reported by Hiro Asari.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40298 b2dd03c8-39d4-4d8...
nagachika (Tomoyuki Chikanaga)
03:36 PM Feature #6216: SystemStackError backtraces should not be reduced to one line
It seems to me that a full backtrace can safely be generated (patch against trunk attached).
The one line backtrace behavior was introduced with this patch: https://github.com/shyouhei/ruby/commit/ecd11fb371b5f4a00d0b0006b325de3c5437b...
drkaes (Stefan Kaes)
03:22 PM Revision 844f78f5 (git): merge revision(s) 39817: [Backport #8116]
* ext/objspace/objspace.c: Fix typo in doc. Patch by Sho Hashimoto.
[Bug #8116] [ruby-dev:47177]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:20 PM Revision f3c5e92d (git): merge revision(s) 40015: [Backport #8197]
doumentation by @toolmantim [GH fixes #270]
* timeout.rb: Document Timeout::timeout 0 and nil argument behavior
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:19 PM Revision 3ed62b8e (git): merge revision(s) 40014: [Backport #8199]
Document the default Net timeout values by @toolmantim [GH fixes #269]
* lib/net/{ftp,http,pop,smtp}.rb: added documentation for default values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40295 b2dd03c8-39d4-4d8...
nagachika (Tomoyuki Chikanaga)
03:17 PM Revision c6c33ec6 (git): merge revision(s) 40013,40032: [Backport #8188]
* class.c (HAVE_METACLASS_P): should check FL_SINGLTON flag before get
instance variable to get rid of wrong warning about __attached__.
[ruby-core:53839] [Bug #8188]
* class.c (HAVE_METACLASS_P): should chec...
nagachika (Tomoyuki Chikanaga)
03:13 PM Revision 5525ff19 (git): merge revision(s) 40003: [Backport #7996]
* win32/file.c (code_page): use cp1252 instead of cp20127 as US-ASCII.
fix [ruby-core:53079] [Bug #7996]
reported and patched by mmeltner (Michael Meltner).
reported by mitchellh (Mitchell Hashimoto).
git-...
nagachika (Tomoyuki Chikanaga)
03:10 PM Revision 5b2ea4e5 (git): merge revision(s) 39987,39993,39998: [Backport #8174]
* include/ruby/io.h: rename SVR3,4 member names as POSIX compliants,
to get rid of conflict on AIX. [ruby-core:53765] [Bug #8174]
* include/ruby/io.h: undef POSIX compliants names on AIX, which are no
longer...
nagachika (Tomoyuki Chikanaga)
02:55 PM Revision 303568e6 (git): merge revision(s) 39994: [Backport #6504]
* lib/mkmf.rb (configuration): not include all CFLAGS in CXXFLAGS, to
use different set than C for C++. [ruby-core:45273] [Bug #6504]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40291 b2dd03c8-39d4-4d8f-9...
nagachika (Tomoyuki Chikanaga)
02:47 PM Revision aa69372c (git): merge revision(s) 40216: [Backport #8266]
* 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/2013...
nagachika (Tomoyuki Chikanaga)
02:39 PM Revision 5e17378c (git): merge revision(s) 39958,39989: [Backport #8169]
* lib/mkmf.rb (MAIN_DOES_NOTHING): force to refer symbols for tests
to be preserved. [ruby-core:53745] [Bug #8169]
* lib/mkmf.rb (MAIN_DOES_NOTHING): ensure symbols for tests to be
preserved. [ruby-core:537...
nagachika (Tomoyuki Chikanaga)
11:48 AM Revision 6f23ad6a (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:48 AM Revision 788b45da (git): * ext/-test-/debug/depend: New file.
* ext/-test-/exception/depend: Ditto.
* ext/-test-/printf/depend: Ditto.
* ext/-test-/string/depend: Ditto.
* ext/coverage/depend: Ditto.
* ext/io/console/depend: Ditto.
* ext/io/nonblock/depend: Ditto.
* ext/io/wait/depend: Ditto....
akr (Akira Tanaka)
09:34 AM Feature #7701: Non-optional (required) keyword args
Thanks, the BTS seems missing the commit.
I've thought this ticket had been closed already.
nobu (Nobuyoshi Nakada)
01:55 AM Feature #7701 (Closed): Non-optional (required) keyword args
I think it was committed at r39735. nagachika (Tomoyuki Chikanaga)
02:57 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
Eregon (Benoit Daloze) wrote:
> Although I am not sure of the importance of having TAU. One PI is fine for unit conversions as well as computing the area of a circle. But there are also many cases of 2*PI, which sounds less-than-ideal.
...
bug (Harrison Reiser)
02:05 AM Bug #8139 (Closed): keyreq and keyrest
It is a bugfix about require keyword arguments which is a new feature of 2.1. [Feature #7701]
No need to backport. sorry.
nagachika (Tomoyuki Chikanaga)

04/13/2013

11:55 PM Feature #8259: Atomic attributes accessors
I think, @ivar access should not be volatile as in any other language,
but obj.ivar could be volatile if attr_atomic :ivar were called.
Number idempotention should not be a great problem cause most of time the same
old object is us...
funny_falcon (Yura Sokolov)
01:27 AM Feature #8259: Atomic attributes accessors
Great to see this proposed officially!
I implemented something very much like this for JRuby as a proof-of-concept. It was in response to thedarkone's recent work on making Rails truly thread-safe/thread-aware.
My feature was almos...
headius (Charles Nutter)
11:43 PM Bug #8205 (Feedback): Regexp.union behavior and Regexp.try_convert
Hello,
Could you show us a reproducive code or a testcase?
nagachika (Tomoyuki Chikanaga)
09:39 PM Revision 03eab41d (git): Send input after curses is ready or raise error
On Linux, ncurses's initscr aborts with showing
"Error opening terminal: unknown.".
This fix can catch the error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:04 PM Revision 7bc0cea7 (git): merge revision(s) 40163: [Backport #8228]
* 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+...
nagachika (Tomoyuki Chikanaga)
06:00 PM Revision dfdbfb6d (git): * 2013-04-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:00 PM Revision 34f5700a (git): * lib/mkmf.rb (MakeMakefile#create_makefile): remove {$(VPATH)} other
than nmke.
* ext/ripper/depend: use VPATH expecting removed by above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:37 PM Revision 08c3e8ed (git): merge revision(s) 39766,39769: [Backport #8101]
* time.c (GetTimeval): check if already initialized instance.
* time.c (GetNewTimeval): check if newly created instance.
* time.c (time_init_0, time_init_1, time_init_copy, time_mload): must
be newly created i...
nagachika (Tomoyuki Chikanaga)
05:19 PM Revision 59f8d5d1 (git): merge revision(s) 39877,39881: [Backport #8153] [Backport #8154]
* array.c: Avoid zip bug by not using obsolete rb_check_block_call
[Bug #8153]
* vm_eval.c (check_funcall_respond_to): preserve passed_block, which
is modified in vm_call0_body() via vm_call0(), and caused a ...
nagachika (Tomoyuki Chikanaga)
02:06 PM Revision 34b706ff (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@40280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:40 PM Revision 5a34781b (git): merge revision(s) 40274:
* array.c: rdoc tweak for include?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
12:14 PM Revision b77d1a4f (git): * lib/mkmf.rb (MakeMakefile#create_makefile): output new macro
disthdrdir to specify the path of id.h, parse.h and etc.
* ext/ripper/depend: use above macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:44 AM Revision f9ba0dca (git): fix building ripper: parse.h and id.h doesn't need directory
r40275 breaks Unix build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:39 AM Feature #8264 (Closed): define struct under the given namespace
=begin
As commented in ((%struct.c%)), it's old style to define (({Struct::Foo})) automatically.
But there is no handy way to define a (({Struct})) under other namespaces, so I propose new C API to do it, (({rb_struct_define_under()}...
nobu (Nobuyoshi Nakada)
11:30 AM Revision 536a3274 (git): * Merge Onigmo 5.13.4 f22cf2e566712cace60d17f84d63119d7c5764ee.
[bug] fix problem with optimization of \z (Issue #16) [Bug #8210]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:18 AM Feature #8263 (Assigned): Support discovering yield state of individual Fibers
Related to #8215, when debugging a multi-Fiber application or library it is useful to be able to look at the stack for the `Thread` which is possible right now.
Currently it is not possible to discover where the Fiber was yielded.
...
halorgium (Tim Carey-Smith)
09:57 AM Revision 0869d460 (git): * ext/ripper/depend: parse.h and id.h may be created on topdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
08:07 AM Feature #8258: Dir#escape_glob
I don't feel strongly about the name, specifically. steveklabnik (Steve Klabnik)
01:31 AM Feature #8258: Dir#escape_glob
rkh (Konstantin Haase) wrote:
> `File.fnmatch_escape` would make more sense, imo.
But it would be harder to remember when what you want is "glob" :-)
Why not just {`Dir`,`File`}`.quote` or `.escape`, to match `Regexp.quote`/`escap...
headius (Charles Nutter)
12:01 AM Feature #8258: Dir#escape_glob
`File.fnmatch_escape` would make more sense, imo. rkh (Konstantin Haase)
07:53 AM Feature #8096: introduce Time.current_timestamp
On Apr 13, 2013 2:33 AM, "headius (Charles Nutter)" <headius@headius.com>
wrote:
>
> Any other input here? It seems like a proof-of-concept patch for MRI
would be a next step. Obviously I can also come up with one in seconds for...
phluid61 (Matthew Kerwin)
01:32 AM Feature #8096: introduce Time.current_timestamp
vipulnsward (Vipul Amler) wrote:
> After the conversation, I hope its reasonable implement this.
Indeed!
Any other input here? It seems like a proof-of-concept patch for MRI would be a next step. Obviously I can also come up with ...
headius (Charles Nutter)
06:23 AM Feature #6693 (Closed): Don't warn for unused variables starting with _
marcandre (Marc-Andre Lafortune)
05:27 AM Feature #7149 (Open): Constant magic for everyone.
I've never needed this, but I could envision a `const_assigned` callback. Whenever a constant is assigned to an object, then object.const_assigned("FullyQualified::Name") would be called.
In other words, the "magic" around Modules and...
marcandre (Marc-Andre Lafortune)
04:59 AM Feature #7149: Constant magic for everyone.
I have put my library in public ( https://github.com/boris-s/y_support ), so I can now exemplify. After installing the gem:
```
require 'y_support/name_magic'
class Klass; include NameMagic end
UJAK = Klass.new
Klass.instanc...
Anonymous
04:31 AM Revision 6e41c7c5 (git): * array.c: rdoc tweak for include?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
04:14 AM Feature #7872 (Rejected): `block_given?` does not work inside `define_method`
I'll mark this request as rejected, as it appears based on the misconception that `block_given?` was `false` while `yield` would actually succeed; both refer correctly to the outerscope's presence of the block and arguments, including th... marcandre (Marc-Andre Lafortune)
12:43 AM Feature #7872: `block_given?` does not work inside `define_method`
Rebinding block_given? on define_method might be confusing, as the block might be passed to an API without the user being aware of it being used with define_method. rkh (Konstantin Haase)
03:58 AM Bug #8261: module_function for methods of same name
Right. Unlike `private`, `protected`, `public`, the method `module_function` called with no arguments does nothing.
Please refer to the doc http://ruby-doc.org/core-2.0/Module.html#method-i-module_function vs http://ruby-doc.org/core-...
marcandre (Marc-Andre Lafortune)
12:55 AM Bug #8261 (Rejected): module_function for methods of same name
Correct behavior. nobu (Nobuyoshi Nakada)
03:51 AM Feature #8262: Confusing "undefined method" exception when using - operator on a string
The thing is that the name of the "unary minus" method is "-@", and what you did was send that to "5".
42.send(:-@) # => -42
"5".send(:-@) # => same as -"5", i.e. NoMethodError: undefined method `-@' for "5":String
I agr...
marcandre (Marc-Andre Lafortune)
01:17 AM Feature #8262 (Closed): Confusing "undefined method" exception when using - operator on a string
When trying to use the minus operator (-) on a String, Ruby reports the following exception:
> -"5"
> ...
I'm not sure if this is intended behaviour but it was confusing as it led me to believe I was trying to call `-@"5"` rather tha...
ajack (Jack Weeden)
03:44 AM Feature #8181: New flag for strftime that supports adding ordinal suffixes to numbers
tkellen (Tyler Kellen) wrote:
> naruse (Yui NARUSE) wrote:
> ...
If we add for example %@d, and then C standards add %@d as another meaning, it's a pity thing.
Therefore if you can add your extension into C standards, we can add it.
naruse (Yui NARUSE)
03:08 AM Revision 2106aa19 (git): * lib/matrix.rb: Add Vector#cross_product, patch by Luis Ezcurdia
[fix GH-276] [rubyspec:81eec89a124]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
02:33 AM Revision 4123b0d9 (git): ripper/depend: fix out-of-place build
* ext/ripper/depend (ripper.o): fix out-of-place build. probes.h
depends on the platform, so it cannot be in $(top_srcdir).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:23 AM Revision aa34b3a5 (git): ChangeLog: revert commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:20 AM Revision a69c74be (git): struct.c: hide member names
* struct.c (rb_struct_define_without_accessor, rb_struct_define),
(rb_struct_s_def): hide member names array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:20 AM Revision 5e569078 (git): struct.c: split make_struct
* struct.c (anonymous_struct, new_struct, setup_struct): split
make_struct() for each purpose.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:03 AM Feature #8257: Exception#cause to carry originating exception along with new one
rkh (Konstantin Haase) wrote:
> Should there also be a mechanism to rescue based on cause that's transparent of wrapping exceptions?
Exception::=== could be enhanced to search causes, but I'm dubious about the utility of such an enha...
headius (Charles Nutter)
12:13 AM Feature #8257: Exception#cause to carry originating exception along with new one
This would indeed be useful. We have built our own solutions for this many times.
Should there also be a mechanism to rescue based on cause that's transparent of wrapping exceptions?
rkh (Konstantin Haase)
12:46 AM Revision b4713858 (git): * lib/mkmf.rb: Add ruby/ruby.h, ruby/missing.h, ruby/intern.h,
ruby/st.h and ruby/subst.h for ruby_headers in generated Makefile.
* ext/-test-/old_thread_select/depend: Update dependencies.
* ext/-test-/wait_for_single_fd/depend: Ditto.
* ext/bigdecimal/depend: Ditto.
* ext/curses/depend: Ditto....
akr (Akira Tanaka)

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)
 

Also available in: Atom