Activity
From 04/01/2013 to 04/07/2013
04/07/2013
-
11:53 PM Bug #8185: Thread/fork issue
- 2013/4/7 KOSAKI Motohiro <[email protected]>:
> 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... -
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... -
10:23 AM Bug #8185: Thread/fork issue
- 2013/4/3 Tanaka Akira <[email protected]>:
> 2013/4/3 KOSAKI Motohiro <[email protected]>:
>>
>> I believe fork() should flush all IO objects automatically. 1) Why user
>> should know how ruby beffering? 2) fork() is not comm... -
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. -
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
-
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...
-
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.
-
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... -
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... -
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`?
-
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...
-
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. -
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
... -
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-... -
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 -
01:14 PM Bug #8230: Segmentation fault: at_exit
- I couldn't reproduce on trunk r40172 and ruby 1.9.3p392.
-
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
/... -
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>
... -
08:51 AM Bug #8230: Segmentation fault: at_exit
- ~/Library/Logs/CrashReporter/ is empty, and /Library/Logs/CrashReporter/ doesn't exist.
-
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... -
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 -
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 -
09:07 AM Feature #5677 (Feedback): IO C API
- It seems no one design/implement seriously on such an IO framework.
-
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... -
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...
-
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. -
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 { |... -
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... -
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... -
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
-
01:14 AM Feature #3348: rubyspec: Kernel.spawn redirects both STDERR and STDOUT to the given name ERROR
- >この機能ですが、Ruby 2.1 で minor incompatibilities を許容するならそろそろ入れてもいいんじゃないでしょうか。
わたしも入れていいと思います。
-
12:01 AM Feature #3348: rubyspec: Kernel.spawn redirects both STDERR and STDOUT to the given name ERROR
- この機能ですが、Ruby 2.1 で minor incompatibilities を許容するならそろそろ入れてもいいんじゃないでしょうか。
-
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... -
12:53 AM Feature #8191: Short-hand syntax for duck-typing
- On Apr 6, 2013 9:12 PM, "rosenfeld (Rodrigo Rosenfeld Rosas)" <
[email protected]> 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...
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... -
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... -
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... -
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... -
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'...
-
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... -
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... -
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 ... -
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?
-
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... -
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... -
08:53 AM Feature #8191: Short-hand syntax for duck-typing
- On Apr 5, 2013 11:20 PM, "rosenfeld (Rodrigo Rosenfeld Rosas)" <
[email protected]> wrote:
>
>
> Issue #8191 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas).
>
>
> phluid61 (Matthew Kerwin) wrote:
> > ==== Incidentally
... -
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... -
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 ... -
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... -
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 -
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... -
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 - 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 ... -
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 - 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
-
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 -
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 -
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 -
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 -
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 -
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. -
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: ... -
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. -
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-... -
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... -
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... -
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... -
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 -
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 -
07:53 AM Bug #7829: Rounding error in Ruby Time
- 2013/4/6 David MacMahon <[email protected]>:
> 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... -
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... -
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... -
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 -
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 -
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 -
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 -
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... -
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 -
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 (... -
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 -
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
-
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 -
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.
-
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
04/05/2013
-
11:03 PM Bug #8225 (Feedback): Missing RI file for Kernel.open
-
11:02 PM Bug #8225: Missing RI file for Kernel.open
- Try `ri Kernel#open` instead
-
10:48 PM Bug #8225 (Closed): Missing RI file for Kernel.open
- Hi,
just would like to report following error in Ruby 2.0.0p0 & 2.1.0-dev documentation:
ri 'Kernel.open'
/usr/lib/ruby/2.0.0/rdoc/store.rb:617:in `initialize': store at /usr/share/ri/2.0.0/system missing file /usr/share/ri/2.0.0/... -
11:00 PM Revision 0667aac9 (git): Add a comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:19 PM Feature #8191: Short-hand syntax for duck-typing
- phluid61 (Matthew Kerwin) wrote:
> ==== Incidentally
> ...
This is exactly the point, Matthew. I don't want to have to use "a = nil" before just for the sake of having a declared variable. I believe the post-if should declare a variable ... -
02:21 PM
Feature #8191: Short-hand syntax for duck-typing
- rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> ... But, as I understand, the proposal is about a.nil? ? nil : a.b.
In that case, it envies the feature of what is known to me as null object.
It took me some time to understand the conce... -
08:49 AM Feature #8191: Short-hand syntax for duck-typing
- =begin
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> I don't believe this proposal, as I understand it, is about chicken
> typing. It would be if a??.b was equivalent to a.respond_to?(:b) ? a.b :
> nil. But, as I understand, the pr... -
09:26 PM
Bug #8200: Segmentation fault - rails 4 -> sidekiq-> tilt
- May be related to #8100
-
09:19 PM
Bug #8224 (Closed): defined?(()) and defined? () are inconsistent
- =begin
(({defined?(())})) and (({defined? ()})) return different values.
I would there to be no difference between (({defined? <expr>})) and (({defined?(<expr>)})), except for precedence.
Example:
defined?( () ) # => "expre... -
08:55 PM
Feature #8223 (Third Party's Issue): Make Matrix more omnivorous.
- Let's imagine a class Metre, whose instances represent physical magnitudes in metres.
class Metre
attr_reader :magnitude
def initialize magnitude; @magnitude = magnitude end
def to_s; magnitude.to_s + ".m" end... -
08:14 PM Feature #8206: Should Ruby core implement String#blank?
- Fair enough:
> "" =~ /()|()/
=> 0
> "".include? ""
=> true
I guess optimising for the empty string is tough.
The empty? trick does reduce the cost significantly for the empty string (0.06 vs 0.18) though it increases ... -
05:53 PM Feature #8206: Should Ruby core implement String#blank?
- On Fri, Apr 5, 2013 at 5:19 AM, sam.saffron (Sam Saffron)
<[email protected]> wrote:
> Essentially include? should be short cutting if the string length is zero and returning false.
The empty string is included by quite ... -
12:19 PM Feature #8206: Should Ruby core implement String#blank?
- This is a MASSIVE improvement:
```ruby
#!/usr/bin/env ruby
$: << File.dirname(__FILE__)+'/lib'
require 'benchmark'
require 'fast_blank'
class String
# active support implementation
def slow_blank?
self !~ /[^[:space:... -
08:06 PM Feature #8215: Support accessing Fiber-locals and backtraces for a Fiber
- Ah, sorry, I thought it was only misunderstanding of Thread#[] and such.
-
06:27 PM Feature #8215 (Open): Support accessing Fiber-locals and backtraces for a Fiber
- According to that rubinius issue tracker, it seems a feature request for `Fiber#[]` and `Fiber#[]=`.
-
06:12 PM Revision 2a58706e (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: fix symbol keys in coder
- emission. Thanks @tjwallace
* test/psych/test_coder.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:02 PM Revision 0cb251e0 (git): change test name to be more helpful
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:57 PM Revision 58709e4e (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:55 PM Revision 476a62fb (git): * ext/psych/lib/psych/exception.rb: there should be only one exception
- base class. Fixes tenderlove/psych #125
* ext/psych/lib/psych.rb: require the correct exception class
* ext/psych/lib/psych/syntax_error.rb: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/r... -
05:30 PM Revision 40370296 (git): parse.y: "nil" for defined? with empty expression
- * parse.y (new_defined): remove all extra parentheses, and return
"nil" for defined? with empty expression.
[ruby-core:54024] [Bug #8224]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:11 PM Revision 7a7bb644 (git): * ext/psych/lib/psych/visitors/to_ruby.rb: correctly register
- self-referential strings. Fixes tenderlove/psych #135
* test/psych/test_string.rb: appropriate test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:40 PM Revision fbb29bc0 (git): * ext/socket/init.c (cloexec_accept): Fix a compile error on
- Debian GNU/kFreeBSD. Consider HAVE_ACCEPT4 is defined
but SOCK_CLOEXEC is not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:30 PM Revision 07636ed4 (git): * load.c (features_index_add): use rb_str_subseq() to specify C string
- position properly to fix require non ascii path.
[ruby-core:53733] [Bug #8165]
* test/ruby/test_require.rb (TestRequire#test_require_nonascii_path):
a test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40135 b2dd... - 03:21 PM Revision 21d47b73 (git): * 2013-04-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:21 PM Revision 11391aa0 (git): thread.c: no allocate before deleting
- * thread.c (rb_thread_local_aset): no needs to allocate local_storage
before deleting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:08 PM Revision 23335c78 (git): configure.in: gcc_major
- * configure.in: use gcc_major value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:08 PM Revision b493f30a (git): configure.in: no -Wextra-token on gcc 3
- * configure.in (warnflags): -Wextra-tokens is same as -Wextra and
let -Wno- options ignored on gcc 3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:45 PM Feature #8110: Regex methods not changing global variables
- +1 for skip globals: when `String#match` used, there is no need to set globals, but no way to avoid it.
Equally `String#[]`. And even sometime with `=~` and `===`. So that `//S` and `Regexp::SKIP_GLOBALS` will be very useful. -
01:21 PM Bug #7877: E::Lazy#with_index should be lazy
- zzak (Zachary Scott) wrote:
> Propose to move this to next major?
Do you mean because of "potential incompatibility" (https://bugs.ruby-lang.org/issues/7877#note-4)? What exactly would this incompatibility be? To me, it seems that la... -
11:32 AM Bug #7877: E::Lazy#with_index should be lazy
- Propose to move this to next major?
-
01:00 PM Feature #8181: New flag for strftime that supports adding ordinal suffixes to numbers
- ActiveSupport has ordinalize, maybe you want to use that instead.
-
12:34 PM Revision 647dc4fd (git): configure.in: -Werror=extra-tokens
- * configure.in (warnflags): bail out at extra tokens, instead
continuing with lots of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:06 PM Revision 5ec185c8 (git): update comments.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:57 AM Revision e9382c73 (git): fix a typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:44 AM Revision 755e09eb (git): * include/ruby/defines.h (HAVE_TRUE_LONG_LONG): Defined to distinguish
- availability of long long and availability of 64bit integer type.
* pack.c: Use HAVE_TRUE_LONG_LONG to distinguish q! and Q! support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:38 AM Bug #7537: OptionParser treats negative digits as options
- I've attached the patch from the associated pull request.
-
11:31 AM Revision d966f1b2 (git): pack.c: use LONG_LONG
- * pack.c (NATINT_LEN_Q): do not use long long directly, use LONG_LONG
instead. fix compilation error on mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:23 AM Revision 702250a4 (git): * addr2line.c: include ruby/missing.h to fix compile error on Debian.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:23 AM Bug #7829: Rounding error in Ruby Time
- 2013/4/5 David MacMahon <[email protected]>:
> Of course you're right about String#to_r being correct. I think Float#to_s is correct as well. I think the problem is actually in Rational#to_f.
It is expected that Rati... -
10:23 AM Bug #7829: Rounding error in Ruby Time
- On Apr 3, 2013, at 6:30 PM, Tanaka Akira wrote:
> 2013/4/4 David MacMahon <[email protected]>:
>>
>>>> f=57563.232824357045
>> => 57563.232824357045
>>
>>>> puts "%016x\n"*5 % [f, f.to_r.to_f, f.to_s.to_f, f.to_s.to_r.... -
10:40 AM Revision 0c5d73e8 (git): compile.c: defined? with empty expression
- * 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/trunk@40124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:29 AM Revision 78626954 (git): configure.in: no -include options
- * configure.in (XCFLAGS): stop including missing.h by command line
option, as the header seems included necessary places already.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:29 AM Revision bff997e0 (git): defines.h: RUBY_SYMBOL_EXPORT_{BEGIN,END}
- * include/ruby/defines.h (RUBY_SYMBOL_EXPORT_{BEGIN,END}): visibility
control macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:53 AM Feature #7767: Tempfileで自動的にファイルを削除する
- 2013年4月4日 18:34 shugo (Shugo Maeda) <[email protected]>:
> Tempfile.openとTempfile.open!で違うクラスのインスタンスが作成されるのは
> ちょっとわかりにくいような気がしますので、openから派生した名前でない方がよいの
> ではないでしょうか。
> 例えば、Tempfile.createはどうでしょう。
いいような気がします。そうしますか。
... -
09:37 AM Bug #8219 (Assigned): ruby 2.0.0-p0 socket.recv MSG_OOB problem?
-
12:29 AM Bug #8219 (Rejected): ruby 2.0.0-p0 socket.recv MSG_OOB problem?
- server1.rb
-------
require 'socket'
ssc = TCPServer.new '', 9989
sc = ssc.accept
p sc.recv(1024)
p sc.recv(1024)
# ruby 2.0.0p0: has OOB data, not return until remote send data again or close
p sc.recv(1024, Socket::MSG_OOB... -
09:36 AM Bug #8221 (Assigned): 2 AES-128-GCM (probably same in AES-256-GCM) bug?
-
03:04 AM Bug #8221 (Closed): 2 AES-128-GCM (probably same in AES-256-GCM) bug?
- 1. OpenSSL::Cipher::AES.new(128, :GDM) doesn't work
2. You can't set iv before key
Sample code here.
https://gist.github.com/nov/5311749
-
08:58 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- I am prepared to commit this fix if there's no other commentary.
A quick benchmark to show it in action: https://gist.github.com/headius/5315475
$ ./ruby -I lib:ext:. nonblock_bench.rb
0.940000 0.170000 1.110000 ( ... -
07:49 AM Revision 5f77f234 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:46 AM Revision c3f2cc53 (git): ext/-test-/win32/dln: remove static library
- * ext/-test-/win32/dln/extconf.rb: remove static library too at clean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:46 AM Revision d0536f65 (git): dl/dl.h: suppress warning
- * ext/dl/dl.h (dlopen): suppress unused-but-set-variable warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:53 AM Bug #8211 (Closed): Performance regression of method calls
-
12:39 AM Bug #8211: Performance regression of method calls
- Asking to close this issue (reason: suboptimal compiler flags).
I've rebuilt Ruby with the following options and now get the expected performance:
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
-O3 -fno-fast-math -ggdb3 ... -
12:22 AM Bug #8211: Performance regression of method calls
- bitsweat (Jeremy Kemper) wrote:
> David, this looks a lot like the CFLAGS issues folks were hitting with rvm. Essentially, getting unoptimized Ruby builds.
> ...
ruby -e 'puts RUBY_DESCRIPTION, RbConfig::CONFIG["cflags"], RbConfig::CON... -
04:23 AM Revision e3b9ed76 (git): curses.c: fix function
- * 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/trunk@40118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:23 AM Revision 7cd3fcfb (git): * test/test_curses.rb: tests for getch.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:10 AM Revision b0446f37 (git): * ext/curses/hello.rb: Typo in Curses example by Drew Blas
- [Fixes GH-273]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:51 AM Feature #7292: Enumerable#to_h
- +1 from me. Sometimes after converting from an array to a hash I want to "convert back" to a hash and inevitably I reach for "to_h" just to discover it's not there.
04/04/2013
-
11:55 PM Bug #7183 (Closed): Resolv::DNS::getresources throws Errno::EACCES: Permission denied - bind(2) on solaris
- This issue was solved with changeset r40112.
Frank, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/resolv.rb (bind_random_port): Rescue EACCES for SunOS.
b... -
11:49 PM Feature #4195 (Rejected): option for Socket#sendmsg
- 頻度から考えて、とくに簡単にしなくてもいいんじゃないかと思います。
やりかたが複数になるのも気に入りませんし。 -
11:41 PM Bug #5988 (Rejected): Time class interprets "2012-02-30" as "2012-03-01"
- No reply after explanation long time.
-
11:36 PM Feature #4976 (Rejected): Pathname#=~ が undef されている理由
- No reply after feedback.
-
11:32 PM Feature #6528 (Closed): Add Pathname#write and Pathname#binwrite
-
10:51 PM Feature #7401 (Rejected): Pathname#cleanpath default consider_symlink to true
- I reject this issue because it is incompatible.
Also, I feel the conservative algorithm is not so useful because it cannot remove .. from foo/../bar. -
10:37 PM Bug #7829 (Closed): Rounding error in Ruby Time
- This issue was solved with changeset r40109.
Philippe, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* time.c (time_strftime): Describe %L and %N truncates digits... -
10:53 AM Bug #7829: Rounding error in Ruby Time
- 2013/4/4 David MacMahon <[email protected]>:
>
>>> f=57563.232824357045
> => 57563.232824357045
>
>>> puts "%016x\n"*5 % [f, f.to_r.to_f, f.to_s.to_f, f.to_s.to_r.to_f, f.rationalize.to_f].pack('D*').unpack('Q*')
> 4... -
04:53 AM Bug #7829: Rounding error in Ruby Time
- On Apr 3, 2013, at 5:15 AM, Tanaka Akira wrote:
> 2013/2/22 David MacMahon <[email protected]>:
>
>> What do people thing about changing num_exact() in time.c to call #rationalize for Floats rather than #to_r? Or perhaps ... -
10:20 PM Feature #8191: Short-hand syntax for duck-typing
- I don't believe this proposal, as I understand it, is about chicken typing. It would be if a??.b was equivalent to a.respond_to?(:b) ? a.b : nil. But, as I understand, the proposal is about a.nil? ? nil : a.b.
This has proved to be us... -
09:08 PM
Feature #8191: Short-hand syntax for duck-typing
- @wardrop: Tom, you must be a masochist. Proposing this here is like volunteering
to run a gauntlet :-), and like others, I also have no choice but to whip you
some :-) Jim Weirich just recently entertained me so much with this phrase
"ch... -
02:24 PM Feature #8191: Short-hand syntax for duck-typing
- =begin
wardrop (Tom Wardrop) wrote:
> Personally, the double question mark syntax is still the best proposal.
> The question marks do pretty well to indicate the uncertainty of the
> operation, [...]
I agree, but it seems a lit... -
09:28 AM Feature #8191: Short-hand syntax for duck-typing
- =begin
I think whatever the solution, it needs to be generic. Amending the language is a pretty big deal. Whatever we implement needs to have many potential applications. The nice thing about the double question mark is it is generic. It... -
09:50 PM Feature #8215 (Closed): Support accessing Fiber-locals and backtraces for a Fiber
- Thread#[] and friends access *Fiber*-local variables, as the doc says:
(Attribute Reference---Returns the value of a fiber-local variable (current
thread's root fiber if not explicitely inside a Fiber), using either a symbol
or a st... -
08:47 AM Feature #8215 (Closed): Support accessing Fiber-locals and backtraces for a Fiber
- =begin
As part of debugging celluloid, I have been wanting to diagnose where the Fibers are running and their various locals.
I would expect the following to work.
Thread.current[:key] = "outside"
fiber = Fiber.new do
Th... - 09:36 PM Revision 3d42f007 (git): * 2013-04-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:36 PM Revision 672b8bf1 (git): object.c: avoid inadvertent symbol creation
- * object.c (rb_mod_cvar_set): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:12 PM Feature #7378 (Closed): Adding Pathname#write
- This issue was solved with changeset r40107.
Alexander E., thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/pathname/pathname.c (path_write): New method.
(pa... -
06:34 PM Feature #7767: Tempfileで自動的にファイルを削除する
- akr (Akira Tanaka) wrote:
> > メソッド名ですが、
> ...
Tempfile.openとTempfile.open!で違うクラスのインスタンスが作成されるのは
ちょっとわかりにくいような気がしますので、openから派生した名前でない方がよいの
ではないでしょうか。
例えば、Tempfile.createはどうでしょう。
-
04:53 PM Bug #8211: Performance regression of method calls
- Is your platform 32bit? Than it is cause of -fPIE
2013/4/4 bitsweat (Jeremy Kemper) <[email protected]>
>
> Issue #8211 has been updated by bitsweat (Jeremy Kemper).
>
>
> David, this looks a lot like the CFLAGS i... -
02:08 PM Bug #8211: Performance regression of method calls
- David, this looks a lot like the CFLAGS issues folks were hitting with rvm. Essentially, getting unoptimized Ruby builds.
Take a close look at the differences in RbConfig::CONFIG between your Ruby builds.
ruby -e 'puts RUBY_DESCRIP... -
07:33 AM Bug #8211: Performance regression of method calls
- =begin
I can't replicate the 1.9.3 vs. 2.0.0 results on my old Win7 32-bit box. 1.9.3 was built with mingw 4.6.2, and 2.0.0 was built with mingw-w64 4.7.2
==== ruby 1.9.3p408 (2013-04-02 revision 40056) [i386-mingw32]
lambda: ... -
06:14 AM Bug #8211: Performance regression of method calls
- =begin
I can't reproduce with clang on OS X:
ruby 2.1.0dev (2013-04-04 trunk 40091) [x86_64-darwin12.3.0]
lambda: 7.310000 0.000000 7.310000 ( 7.303881)
instance method: 4.310000 0.000000 4.310000 ( 4.3... -
03:59 PM Feature #8217 (Closed): OpenSSL::BN.new with integers
- Current OpenSSL::BN.new gets only strings, so users must do integer.to_s, it costs extra resource.
Therefore I propose OpenSSL::BN.new to allow Fixnu/Bignum.
diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c
index 1038135..... -
03:56 PM Revision 926d1cbf (git): merge revision(s) 40090:
- * ext/openssl/ossl_bn.c (ossl_bn_initialize): fix can't create from bn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:53 PM Feature #8110: Regex methods not changing global variables
- sam.saffron (Sam Saffron) wrote:
> another slight note, I wonder how far this can stretch into onigaruma itself, can it be smart enough to avoid uneeded allocations when in a no backref mode?
Oniguruma supplies the way to regexp sear... -
03:16 PM Bug #7807: [PATCH] Remove duplicated load paths when empty version string is configured
- One issue preventing this from work fixed in RubyGems [1]. I am not aware of any other after rebuild of more then 400 of packages in Fedora against Ruby 2.0.
Actually, some builds depends on this field in ruby.pc [2], but they would f... -
02:55 PM Revision dc5b184b (git): * lib/resolv.rb (bind_random_port): Rescue EACCES for SunOS.
- bind() on SunOS for port 2049 (nfs) and 4045 (lockd) causes
EACCES with unprivileged process. cf. PRIV_SYS_NFS in privileges(5)
[ruby-core:48064] [Bug #7183] reported by Frank Meier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr... -
02:27 PM Bug #8204: ObjectSpace.each_object(Bignum) can generate Bignums that are to small to be Bignums
- okay that solvs a bit, so the generated Bignums are zero too,
but for sample
ObjectSpace.each_object(Bignum).select &:zero?
still generates Bignum zeros and the 3 that was inside the Bignum list at the beginning confuses me -
02:25 PM Revision b2a1339f (git): * ext/socket/extconf.rb: Remove condition for bcc.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:54 PM Revision 61b245cc (git): * include/ruby/ruby.h (FIX2LONG): Parenthesize the macro body.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:37 PM Revision f674d862 (git): * time.c (time_strftime): Describe %L and %N truncates digits under
- the specified length.
[ruby-core:52130] [Bug #7829]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:26 PM Revision a4587840 (git): * object.c (rb_mod_cvar_set): Reverted "avoid inadvertent
- symbol creation" to avoid SEGV by
Class.new.class_variable_set(1, 2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:12 AM Revision c3d1fde2 (git): * ext/pathname/pathname.c (path_write): New method.
- (path_binwrite): Ditto.
[ruby-core:49468] [Feature #7378]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:13 AM Feature #8201 (Assigned): Turn off builded colorizing
-
08:23 AM Revision 12bf1de1 (git): envutil.rb: assert stderr if marshal failed
- * test/ruby/envutil.rb (assert_separately): force to assert stderr to
be empty if marshal failed, as something is emitted probably.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:23 AM Revision fd7dc1b6 (git): reduce overhead of TYPE
- * array.c (ary_join_1): reduce overhead of TYPE().
* eval.c (rb_frozen_class_p, rb_mod_{append,prepend}_features): ditto.
* string.c (rb_to_id): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40105 b2dd03c8-39d4-4d8f-98ff-82... -
08:18 AM Revision 5e2c39ed (git): object.c: avoid inadvertent symbol creation
- * object.c (rb_mod_const_set): fix symbol name check.
(rb_obj_ivar_set): ditto.
(rb_mod_cvar_set): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:01 AM Revision 75b4c8f4 (git): * thread_pthread.c: Fixes wrong scopes of #if USE_SLEEPY_TIMER_THREAD
- .. #endif sections. This fixes a build error on NativeClient.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:01 AM Revision 360edb1c (git): * thread_pthread.c (ruby_init_stack): Avoid using uninitialized value.
- stackaddr and size are not set if get_stack() fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:55 AM Revision 112a3b1f (git): struct.c: avoid inadvertent symbol creation
- * struct.c (make_struct): avoid inadvertent symbol creation.
(rb_struct_aref): ditto.
(rb_struct_aset): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:54 AM Revision 4e59c822 (git): object.c: avoid inadvertent symbol creation
- * object.c (rb_mod_const_set): avoid inadvertent symbol creation.
(rb_obj_ivar_set): ditto.
(rb_mod_cvar_set): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:42 AM Feature #7792: Make symbols and strings the same thing
- @spatulasnout Yes on your first point. One should always compare :symbol with :symbol rather than by their internal ID, so I'd say that any code using the internal ID's deserves to break. I imagine it would be hardly any, other than the ...
- 07:22 AM Revision 9188504a (git): * ext/objspace/objspace.c (count_nodes): fix key for unknown node.
- based on a patch by tmm1 (Aman Gupta) in [ruby-core:53130] [Bug #8014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:19 AM Revision 6c7a8b17 (git): merge revision(s) 39578: [Backport #8009]
- * Makefile.in (miniruby, ruby): move MAINLIBC because linker arguments
must appear after object files with newer versions of gcc. patch by
tmm1 (Aman Gupta) in [ruby-core:53121] [Bug #8009]
git-svn-id: svn+ssh://ci... -
06:46 AM Revision 9f87297c (git): enum.c: avoid inadvertent symbol creation
- * enum.c (enum_inject): avoid inadvertent symbol creation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:20 AM Feature #8190 (Rejected): Truly parallel assignment
- As Nobu stated the evaluation order goes from left to right.
And if you change this, you will introduce incompatibility.
Matz.
-
05:37 AM Revision 80748440 (git): thread.c: avoid inadvertent symbol creation
- * thread.c (rb_thread_aref): avoid inadvertent symbol creation.
(rb_thread_variable_get): ditto.
(rb_thread_key_p): ditto.
(rb_thread_variable_p): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40096 b2dd03c8-39d4-4d8f-9... -
05:37 AM Revision f00035a4 (git): thread.c: error message
- * thread.c (rb_thread_variable_get): fix error message. getter
doesn't modify thread variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:55 AM Feature #8206: Should Ruby core implement String#blank?
- I came up with an idea, `String#include?` with regexp without backref.
Could you try and comment this?
```ruby
% ruby -e'p [$&," foo".include?(/[[:space:]]/),$&]'
[nil, true, nil]
```
```diff
diff --git a/re.c b/re.c
index 16d7... -
02:35 AM Revision 10659582 (git): * ext/openssl/ossl_bn.c (ossl_bn_to_i): Use bn2hex to speed up.
- In general, binary to/from decimal needs extra cost.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:49 AM Revision f04daf3b (git): merge revision(s) 36338: [Backport #6709]
- * configure.in (DLDFLAGS): use TARGET_ENTRY to specify an entry point
instead of TARGET which may contain non-identifer characters.
* lib/mkmf.rb (create_makefile): add TARGET_NAME which is the first
part con... -
12:45 AM Feature #8214 (Closed): デッドロックチェックに全スレッドのバックトレースダンプの追加
- さいきん、くくぱど方面のデッドロックバグの調査を手伝っていて気づいたのですが、
現在のRubyのdeadlock detectorは開発者に優しくないです。
例外があがるとスタックが巻戻ってしまって証拠が消えてしまうので、例外をあげるまえに
全スレッドのバックトレースをダンプするオプションがあるべきではないでしょうか。
デッドロックが起きたときは99%、直さないといけない状況になるはずで、証拠を残す機能は
有意義なはずです。
TBD: ruby le... -
12:25 AM Bug #8213 (Closed): No documentation for `ri YAML`
- I believe the RI output for YAML needs to be fixed to display more detailed information on usage. Currently, it displays nothing. I'm happy to start some documentation on the YAML const in lib/yaml.rb with any pointers in the right direc...
04/03/2013
-
10:53 PM Feature #8191: Short-hand syntax for duck-typing
- On Apr 3, 2013 9:30 PM, "Rodrigo Rosenfeld Rosas" <[email protected]>
wrote:
>
> Em 03-04-2013 01:10, phluid61 (Matthew Kerwin) escreveu:
>
>> Issue #8191 has been updated by phluid61 (Matthew Kerwin).
>>
>> Throwing this... -
08:53 PM Feature #8191: Short-hand syntax for duck-typing
- Em 02-04-2013 22:39, "Martin J. Dürst" escreveu:
> On 2013/04/03 9:54, wardrop (Tom Wardrop) wrote:
>>
>> Issue #8191 has been updated by wardrop (Tom Wardrop).
>
>> @davidderyldowney, ideally, a single question mark would pro... -
08:53 PM Feature #8191: Short-hand syntax for duck-typing
- Em 03-04-2013 01:10, phluid61 (Matthew Kerwin) escreveu:
> Issue #8191 has been updated by phluid61 (Matthew Kerwin).
>
>
> =begin
> Throwing this out there for discussion: how about a completely different syntax?
>
> us... -
05:29 PM Feature #8191: Short-hand syntax for duck-typing
- On Wed, 2013-04-03 at 14:47 +0900, wardrop (Tom Wardrop) wrote:
> Issue #8191 has been updated by wardrop (Tom Wardrop).
>
>
> I don't mind that. In fact, it gives me an idea for something even more generic, and with more pote... -
02:47 PM Feature #8191: Short-hand syntax for duck-typing
- =begin
I don't mind that. In fact, it gives me an idea for something even more generic, and with more potential application:
user && .profile && .website && .thumbnail
Ruby could implement this as new syntactic rule. A dot operator... -
01:10 PM Feature #8191: Short-hand syntax for duck-typing
- =begin
Throwing this out there for discussion: how about a completely different syntax?
user&&.profile&&.website&&.thumbnail
This was inspired by the original line (({user && user.profile && user.profile.website && user.profile.w... -
12:18 PM Feature #8191: Short-hand syntax for duck-typing
- You've chopped off a bit of Matz quote there (actually, a quote of a quote of Matz): "He then said there is no good reason to make this feature built-in; people can use it as a gem (e.g., ActiveSupport).". As mentioned, the main proposal...
-
11:49 AM Feature #8191: Short-hand syntax for duck-typing
- @wardrop The reason we all love Ruby is because it makes us happy. This suggestion makes me unhappy, so I'm saying so, and I'm attempting to do so constructively. Ruby has an ethos around writing elegant clean code which deserves protect...
-
11:23 AM Feature #8191: Short-hand syntax for duck-typing
- =begin
@JonRowe That's a very high-level idealistic point of view. Telling others to do things for us is all well and good, but at some point someone - the thing being told - has to actually do it. To use this example (({user.profile.web... -
11:10 AM Feature #8191: Short-hand syntax for duck-typing
- @parndt Law of Demeter essentially states that method chaining is bad. I personally don't see it's relevance to Ruby.
I believe issue #1122 was rejected because, A) the main proposal was to implement an additional method; something an... -
11:03 AM Feature #8191: Short-hand syntax for duck-typing
- OP's original examples involve Rails views, where I'd have to say that a helper or presenter would reduce the view logic in the desired way whereas his solution (which merely replicates Object#try) just golfs the logic in place.
-
11:01 AM Feature #8191: Short-hand syntax for duck-typing
- Although this is just my 2¢... I think this is a bad idea... and here's why...
1) One of the principles of good software development is "tell don't ask", meaning that we should be passing messages around objects, telling others to do t... -
10:56 AM Feature #8191: Short-hand syntax for duck-typing
- @duerst
Correct. Methods already ending in a question mark, such as (({empty?})), will have two extra question marks appended, (({empty???}))
On your second point, very true. Side-effects would be worse.
Finally, I agree that we s... -
10:55 AM Feature #8191: Short-hand syntax for duck-typing
- I'm very -1 on this for the same reason Object#try (#1122) was rejected and also because I can't see how this could result in quality code at all (Law of Demeter keeps coming to mind).
-
10:53 AM Feature #8191: Short-hand syntax for duck-typing
- On 2013/04/03 9:54, wardrop (Tom Wardrop) wrote:
>
> Issue #8191 has been updated by wardrop (Tom Wardrop).
> @davidderyldowney, ideally, a single question mark would probably make that clearer, but alas, a single question mark... -
09:54 AM Feature #8191: Short-hand syntax for duck-typing
- =begin
In my example using (({user.profile??.website??.thumbnail})), it assumes that if the (({website})) method exists, then whatever it returns will have a (({thumbnail})) method. It'd probably make more sense to add the double questi... -
06:23 AM Feature #8191: Short-hand syntax for duck-typing
- I'm sitting here lurking on this thread and to me the proposal makes
everything seem convoluted. Though user??.website??.profile?? could
feasibly be worked out by a new to intermediate user as asking
progressively if user was present... -
05:59 AM Feature #8191: Short-hand syntax for duck-typing
- On Apr 3, 2013 12:03 AM, "rosenfeld (Rodrigo Rosenfeld Rosas)" <
[email protected]> wrote:
>
> I believe you didn't understand the proposal, Matthew. a??.b would mean
(a.nil? ? nil : a.b). So user.profile??.website??.thumbnail is e... -
10:29 PM Feature #7792: Make symbols and strings the same thing
- wardrop (Tom Wardrop) wrote:
> === Immutable
> A symbol is an alias for a numeric ID. The symbol representation of that
> numeric ID can never change.
As Matthew Kerwin noted, the numeric ID is an implementation detail; an... -
09:01 PM Feature #7792: Make symbols and strings the same thing
- No that's spelt correctly. I sadly couldn't embed any pictures of palm trees and coconuts ;). Fixed, thanks.
-
07:44 PM Feature #7792: Make symbols and strings the same thing
- =begin
In that case, I suggest that the long term solution is education.
By the way: "((*A symbol is an alias for a numeric ID.*))" Not entirely true (otherwise we could argue for Symbol#to_i or even Symbol#to_int) A symbol represent... -
07:06 PM Feature #7792: Make symbols and strings the same thing
- =begin
= To Summarise...
== Symbol Differences
=== Immutable
A symbol is an alias for a numeric ID. The symbol representation of that numeric ID can never change.
=== Not garbage collected
An extension of the previous point. Garbage ... -
10:24 PM Revision da391999 (git): * ext/socket/extconf.rb: Specify arguments to test functions.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:53 PM Feature #6643: io.seek(off, :end)
- 2012年11月24日 10:35 mame (Yusuke Endoh) <[email protected]>:
> Feature #6643: io.seek(off, :end)
> https://bugs.ruby-lang.org/issues/6643#change-33713
> IO#seek メソッドの whence 引数としてシンボルを受け付けるようにしませんか。
議論を読み直したのですが、結局、これから意見がまと... -
09:25 PM Feature #6643 (Closed): io.seek(off, :end)
- This issue was solved with changeset r40084.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (rb_io_seek_m): Accept :CUR, :END, :SET as "whence" argum... -
09:23 PM Bug #7829: Rounding error in Ruby Time
- 2013/2/22 David MacMahon <[email protected]>:
> What do people thing about changing num_exact() in time.c to call #rationalize for Floats rather than #to_r? Or perhaps call #rationalize on the object if it responds to #rat... -
08:59 PM Bug #7167 (Closed): Segmentation Fault
- I have no idea.
-
08:55 PM Bug #7489 (Closed): Kernel.spawn sometimes executes string directly
- This issue was solved with changeset r40083.
Julius, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* process.c: Describe the behavior which Ruby invokes a command... -
07:27 PM
Feature #8190: Truly parallel assignment
- I think it's good that Lavir is bringing this up, although I share MA's
feeling. I don't see how his proposal it would break "a, b = b, a". On the
contrary, "a, b = b, a" would only break if the assignment indeed worked
sequentially *loo... -
02:49 PM Feature #8190: Truly parallel assignment
- =begin
((%Lavir_the_Whiolet when you change this you will break code like%))
(({a,b = b,a}))
wich is a feature of ruby -
02:27 PM Feature #8190: Truly parallel assignment
- The evaluation obeys the left-to-right order.
It doesn't seem like a bug to me. -
11:33 AM Feature #8190: Truly parallel assignment
- My first reflex would be to say "don't write code like this".
Do you have an actual use case?
FWIW, CoffeeScript handles this case the same way as MRI does. -
07:21 PM Feature #8201: Turn off builded colorizing
- Passing unknown escape sequences is not solution. Some escape sequences behaviour is depended from earlier escape sequences or define behaviour of later escape sequences. This is especialy right for colorizing sentences. I think it will ...
-
07:16 PM Feature #8201: Turn off builded colorizing
- Last development version ConEmu working for me.
nobu (Nobuyoshi Nakada) wrote:
> ConEmu doesn't seem working with 1.9.3 to me.
> ...
-
05:37 PM Feature #8201 (Open): Turn off builded colorizing
-
05:11 PM Feature #8201 (Closed): Turn off builded colorizing
- This issue was solved with changeset r40078.
Denis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
win32.c: pass through unknown sequence
* win32/win32.c (constat... -
11:42 AM Feature #8201: Turn off builded colorizing
- ConEmu doesn't seem working with 1.9.3 to me.
While it shows color bars certainly when `type AnsiColor16.ans', however it does nothing with a command simply writes the same string by WriteConsole or WriteFile, but seems same as a plain ... - 06:29 PM Revision a8f95d66 (git): * 2013-04-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:28 PM Revision 7b58445e (git): * ext/openssl/ossl_bn.c (ossl_bn_initialize): fix can't create from bn.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:07 PM Bug #8211: Performance regression of method calls
- I had to add the testing platform is Linux x86_64 and interpreters were built with GCC 4.7.2 .
-
05:45 PM Bug #8211 (Closed): Performance regression of method calls
- There are significant performance regressions in the newer Ruby versions.
When compared to the last 1.9 patch build, method & lambda calls are about 3 times slower !
Benchmarking results:
____________________________________________... -
05:27 PM Revision d825fc8d (git): merge revision(s) 39725: [Backport #8054]
- * lib/resolv-replace.rb (TCPSocket#initialize): resolve the 3rd
argument only if non-nil value is given.
[ruby-dev:47150] [ruby-trunk - Bug #8054] reported and analyzed by
mrkn.
git-svn-id: svn+ssh://ci.ru... -
05:25 PM Revision d393aa08 (git): merge revision(s) 39718: [Backport #8001] [Backport #8023]
- * Merge Onigmo d4bad41e16e3eccd97ccce6f1f96712e557c4518.
fix lookbehind assertion fails with /m mode enabled. [Bug #8023]
fix \Z matches where it shouldn't. [Bug #8001]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/br... -
05:11 PM Revision 279b256d (git): merge revision(s) 39650: [Backport #8043]
- * marshal.c (w_extended): check for prepended object.
[ruby-core:53206] [Bug #8043]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:34 PM Bug #8204 (Closed): ObjectSpace.each_object(Bignum) can generate Bignums that are to small to be Bignums
- This issue was solved with changeset r40076.
Hans, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
bignum.c: Bignum zero comparison
* bignum.c (rb_big_eq): test as... -
11:23 AM
Bug #8204: ObjectSpace.each_object(Bignum) can generate Bignums that are to small to be Bignums
- Note that you can obtain whichever Bignum you want using coerce. For
example:
x = (1 << 100).coerce(42).first # => 42
x.class # => Bignum
I saw that used in test/*
I never bothered to investigate it, but I'm pretty sure this could lea... -
03:55 PM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- =begin
(({Regarding obj.foo.bar.baz = .to_i})) syntax, with the dot prefix on the ((|to_i|)), another proposal has been made further down the discussion for issue #8191. The idea is that an expression beginning with a dot could be an in... -
01:55 PM Feature #8206: Should Ruby core implement String#blank?
- @marcandre I tried pretty much every combination possible interestingly depending on the string `/\A[[:space:]]*\z/` can be slower than the original regex, also afaik its not identical cause it misses some cases
-
11:21 AM Feature #8206: Should Ruby core implement String#blank?
- marcandre (Marc-Andre Lafortune) wrote:
> Your rb_str_blank is 5-8x faster than regexp? You compared it to `/\A[[:space:]]*\z/ =~ str`?
Regexp matches construct a MatchData and set $~. blank? would do neither, and have no allocation ... -
11:18 AM Feature #8206: Should Ruby core implement String#blank?
- Your rb_str_blank is 5-8x faster than regexp? You compared it to `/\A[[:space:]]*\z/ =~ str`?
-
09:32 AM Feature #8206 (Open): Should Ruby core implement String#blank?
- There has been some discussion about porting the `#blank?` protocol over to Ruby in the past that has been rejected by Matz.
This proposal is only about `String` however.
At the moment to figure out if you have a blank string you... -
01:10 PM Revision 7181490d (git): * ext/socket/extconf.rb: Test functions and libraries after headers.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:36 PM Revision 694207c7 (git): Add comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:25 PM Revision b81ea661 (git): * io.c (rb_io_seek_m): Accept :CUR, :END, :SET as "whence" argument.
- (interpret_seek_whence): New function.
[ruby-dev:45818] [Feature #6643]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:55 AM Revision 2767139e (git): * process.c: Describe the behavior which Ruby invokes a commandline
- directly without shell if the commandline is simple enough.
[ruby-core:50459] [Bug #7489]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:43 AM Revision b87ba9f8 (git): fix a typo in NEWS
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:28 AM Revision ee2b2182 (git): * ext/extmk.rb (extmake): Invoke Logging::log_close in a ensure
- clause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:55 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- Updated patch with new exception variables made static.
-
10:23 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- normalperson (Eric Wong) wrote:
> > +VALUE rb_eEAGAINWaitReadable;
> ...
Good call, will fix. -
08:53 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- "headius (Charles Nutter)" <[email protected]> wrote:
> make test-all passes. Please review and comment.
> --- io.c (revision 40073)
> +++ io.c (working copy)
> @@ -133,6 +133,15 @@
> <snip>
>
> +VALUE rb_eEAGAINWait... -
07:47 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- And by EAGAIN == exception I meant EAGAIN == exception.class, of course.
-
07:46 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- charliesome: Yeah, I was thinking about that as I created this patch.
It's possible, but it introduces a rather strange oddity: you'll have multiple exceptions floating around that look like singletons but are actually the same single... -
07:37 AM
Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- =begin
Crazy idea, but could you avoid introducing a new class by caching the iclass?
So instead of something like:
/* when exception is raised */
VALUE exc = ossl_exc_new(eSSLError, "read would block");
rb_extend_ob... -
07:20 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- Ok, here's the updated patch. Here's a list of changes from the last time I updated:
* Names have been changed to EAGAINWaitReadable, etc, from EAGAINReadable. It seemed clearer to indicate the full name of the module, especially in the... -
02:23 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
- Working on this today. I will post an updated patch for review before committing.
-
10:43 AM Bug #8208 (Rejected): Raise cached exceptions for nonblocking IO to avoid allocation/stack-copying costs
- Currently, all nonblocking IO APIs raise exceptions when the IO channel cannot perform the requested read or write without blocking. This adds a tremendous performance hit to nonblocking IO, since raising an exception requires both alloc...
-
10:34 AM Bug #8207 (Closed): Array#delete_if docs can be confusing to beginners
- The Array#delete_if method docs can be a little confusing to beginners (variable names are not descriptive, a comparison between letters is performed, the use case is not obvious.) I've updated them here to make it a little more obvious ...
-
10:00 AM Revision 1d339ff2 (git): * ext/extmk.rb (extmake): Use Logging.open to switch stdout and
- stderr. Delay Logging::log_close until the failure message is
written. Write the failure message only if log file is opened.
* lib/mkmf.rb (Logging.log_opened?): New method.
[ruby-dev:47215] [Bug #8209]
git-svn-id: svn+ssh://c... -
09:37 AM Feature #8110: Regex methods not changing global variables
- another slight note, I wonder how far this can stretch into onigaruma itself, can it be smart enough to avoid uneeded allocations when in a no backref mode?
-
09:18 AM Feature #8110: Regex methods not changing global variables
- A slight concern here is naming, since:
```c
rb_define_virtual_variable("$~", match_getter, match_setter);
rb_define_virtual_variable("$&", last_match_getter, 0);
rb_define_virtual_variable("$`", prematch_getter, 0);
... -
09:13 AM Feature #8110: Regex methods not changing global variables
- @naruse
There is a perf implication that really needs addressing here that would help elsewhere:
in re.c, there is a whole bunch of work that can be avoided when `NO_BACKREF` is passed in for the match:
In particular:
```c... -
08:11 AM Revision 9089f572 (git): win32.c: pass through unknown sequence
- * win32/win32.c (constat_apply): pass through unknown sequence which
starts with ESC but is not followed by a bracket. [ruby-core:53879]
[Bug #8201]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40079 b2dd03c8-39d4-4d8f-98ff-82... -
08:11 AM Revision 111f4a8f (git): win32.c: pass through unknown sequence
- * win32/win32.c (constat_apply): pass through unknown sequence which
starts with ESC but is not followed by a bracket. [ruby-core:53879]
[Bug #8201]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40078 b2dd03c8-39d4-4d8f-98ff-82... -
07:35 AM Revision adf1c94f (git): bignum.c: hide intermediate Bignums
- * bignum.c (rb_big_eq): hide intermediate Bignums not just freeing
memory. [ruby-core:53893] [Bug #8204]
* object.c (rb_obj_hide): hide an object by clearing klass.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40077 b2dd03c8-39... -
07:34 AM Revision b30a6b8d (git): bignum.c: Bignum zero comparison
- * bignum.c (rb_big_eq): test as Fixnum if possible and get rid of zero
length Bignum. [ruby-core:53893] [Bug #8204]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:23 AM Bug #8185: Thread/fork issue
- 2013/4/3 KOSAKI Motohiro <[email protected]>:
>
> I believe fork() should flush all IO objects automatically. 1) Why user
> should know how ruby beffering? 2) fork() is not common method and
> performance disadvantage is... -
04:53 AM Bug #8185: Thread/fork issue
- > I wrote a simple script to reproduce the problem.
> This script doesn't use multi-threads.
>
> % ./ruby -ve '
> open("zz", "w") {|f|
> f.print "foo\n"
> Process.wait fork {}
> p $$
> }
> '
> ruby 2.1.0dev (20... -
07:23 AM Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
- 2013/4/3 Eric Wong <[email protected]>:
>> This is Linux-specific and only defined in linux headers
>> such as /usr/include/linux/in.h.
>>
>> I'm not sure applications can safely use such headers.
>
> We already have ... -
06:23 AM Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
- Tanaka Akira <[email protected]> wrote:
> 2013/2/24 ko1 (Koichi Sasada) <[email protected]>:
>
> > Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
> > https://bugs.ruby-lang.org/issues/7476#change-36913
>
>... -
12:09 AM Bug #6928 (Closed): SecureRandom.random_bytes: assume zero entropy for seed value
- This issue was solved with changeset r40072.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/securerandom.rb (SecureRandom.random_bytes): Use
OpenSS...
04/02/2013
-
11:21 PM Bug #8205 (Closed): Regexp.union behavior and Regexp.try_convert
- Hi! Why Regexp.union('/../') trying to convert string with directly call rb_check_regexp_type(arg) (re.c:3139) instead of rb_reg_s_try_convert (re.c:3122)? I think second variant would be more correct, and i would be able to rewrite Rege...
-
11:02 PM Feature #8191: Short-hand syntax for duck-typing
- I believe you didn't understand the proposal, Matthew. a??.b would mean (a.nil? ? nil : a.b). So user.profile??.website??.thumbnail is equivalent to:
user.profile.nil? ? nil : (user.profile.website.nil? ? nil : user.profile.website.th... -
08:34 PM Feature #8191: Short-hand syntax for duck-typing
- wardrop (Tom Wardrop) wrote:
>
> ...
I think you're missing some question-marks there, unless you intend nil to (potentially) define a `thumbnail' method.
if user.profile??.website??.thumbnail??
-
06:19 PM Feature #8191 (Assigned): Short-hand syntax for duck-typing
-
10:30 PM Bug #8204 (Closed): ObjectSpace.each_object(Bignum) can generate Bignums that are to small to be Bignums
- when i do:
p ObjectSpace.each_object(Bignum).to_a
=> [18446744073709551615, 3, 2394213621560389257607583714845333205]
and again:
ObjectSpace.each_object(Bignum).to_a
=> [18446744073709551615, 3, 63326588221939058800767348888534802... -
09:06 PM Feature #3946 (Closed): Array#packのqQ指定子に機種依存サイズフラグ!を追加
- committed at r40067 & r40068.
-
08:53 PM Feature #3946: Array#packのqQ指定子に機種依存サイズフラグ!を追加
- 2012年10月28日 23:11 akr (Akira Tanaka) <[email protected]>:
>
> 読み直してみましたが、決着していないのは例外をどれにするかでしょうか。
>
> 私は、新規の例外を定義するのは大げさ過ぎると思っています。
> ArgumentError と NotImplementedError のどちらにするかは、とくに意見はありません。
ArgumentError にして入れてみました。
--
... -
08:25 PM Revision a85a0ddf (git): merge revision(s) 40069:
- win32.c: missing break
* win32/win32.c (constat_attr): fix missing break.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:56 PM Revision 525c60b4 (git): merge revision(s) 40048:
- fix typo: s/@ca_cert/@cacert/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:08 PM Bug #7811 (Closed): SecureRandom::random_bytes Only use random bytes, not extra String
- This issue was solved with changeset r40065.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/securerandom.rb: Don't use Array#to_s.
[ruby-core:520... -
06:14 PM Bug #8179 (Closed): configure.in requires newer Autoconf than specified by AC_PREREQ
- As far as we know, 2.64 and 2.66 are buggy, so we bumped AC_PRE_REQ to 2.67 (Debian Squeeze uses this) at r40034, thanks.
-
05:44 PM Bug #8151 (Closed): Duplicate character class warning
- This issue was solved with changeset r40063.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* re.c (rb_reg_to_s): suppress duplicated charclass warning.
R... -
11:08 AM Bug #8151: Duplicate character class warning
- The warning is proposed by [ruby-core:24593] [Feature #1831] (2009-07-29) and committed by naruse.
It is seven years later than my Regexp#to_s [ruby-dev:16951] (2002-04-18)
It seems this issue is better to assign naruse. -
03:29 PM Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
- 2013/2/24 ko1 (Koichi Sasada) <[email protected]>:
> Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
> https://bugs.ruby-lang.org/issues/7476#change-36913
> There is a missing constant for IP_TRANSPARENT... - 03:09 PM Revision 8ab35353 (git): * 2013-04-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:09 PM Revision c3c4ffa9 (git): * lib/securerandom.rb (SecureRandom.random_bytes): Use
- OpenSSL::Random.random_add instead of OpenSSL::Random.seed and
specify 0.0 as the entropy.
[ruby-core:47308] [Bug #6928]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:59 PM Revision 28a15075 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:58 PM Revision 90e58877 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:58 PM Revision ff9c262f (git): win32.c: missing break
- * win32/win32.c (constat_attr): fix missing break.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:31 AM Revision 0af16197 (git): add ML ref.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:28 AM Revision 583c8e89 (git): * pack.c: Support Q! and q! for long long.
- (natstr): Moved to toplevel. Add q and Q if there is long long type.
(endstr): Moved to toplevel.
(NATINT_PACK): Consider long long.
(NATINT_LEN_Q): New macro.
(pack_pack): Support Q! and q!.
(pack_unpack): Ditto.
git-svn-i... -
11:00 AM Bug #8203 (Closed): Rinda: recycled object
- test-allで以下のメッセージが出ているんですが、これってなんですか?
http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130402T010302Z.log.html.gz#test-all
Rinda::TupleSpaceProxyTest#test_take_bug_8215 = /home/chkbuild/build/20130402T010302Z/ruby/lib/drb/drb.rb:369:... -
10:26 AM Revision 6d0c59f1 (git): * ext/-test-/num2int/num2int.c: Define utility methods
- as module methods of Num2int.
* test/-ext-/num2int/test_num2int.rb: Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:23 AM Bug #8185: Thread/fork issue
- 2013/3/30 Tanaka Akira <[email protected]>:
> 2013/3/30 Jason Gladish <[email protected]>:
>>
>> I've found an issue where calling fork inside a thread, and passing a block
>> to the fork, causes the forked process to contin... -
10:08 AM Revision 817a96a4 (git): * lib/securerandom.rb: Don't use Array#to_s.
- [ruby-core:52058] [Bug #7811] fixed by zzak (Zachary Scott).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:48 AM Revision e89c029f (git): update doc.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:44 AM Revision 5fd798d1 (git): * re.c (rb_reg_to_s): suppress duplicated charclass warning.
- Regexp#to_s suppress extra its whole regexp options by calling
onig_new with its source, but it doesn't call rb_reg_preprocess.
Therefore its Unicode escapes (\u{XXXX}) are given as is,
and it may cause duplicated charclass warning... -
07:02 AM Revision a1a6fd90 (git): * vm_dump.c (rb_print_backtrace): separate to ease showing C backtrace.
- * internal.h (rb_print_backtrace): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:28 AM Revision 5376610d (git): Add ignore_stderr because it outputs "circular require" warnings
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:28 AM Revision 1ee9f375 (git): Use assert_separately to speed up on test-all
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:28 AM Revision a26d663b (git): * test/ruby/envutil.rb (assert_separately): stop_auto_run of
- Test::Unit::Runner to prevent auto runner use ARGV.
* test/ruby/envutil.rb (assert_separately): add $: to separate process.
* test/ruby/envutil.rb (assert_separately): fail if stderr is not
empty and ignore_stderr is false.
git-svn-... -
06:28 AM Revision 63f33c5e (git): Suppress warnings
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:28 AM Revision 4046585a (git): use long_ary to suppress warning
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:02 AM Bug #8159: Build failure introduced by Rinda changes
- It is odd, considering IPV6_MULTICAST_IF, but I will make these updates.
Thank you for researching this for me while I have been busy. - 04:13 AM Revision be36df7f (git): merge revision(s) 35112,35121: [Backport #6190]
- * transcode.c (str_encode_bang, encoded_dup): if nothing was
transcoded, just set encoding but leave coderange unchanged as
forcee_encoding. [ruby-core:43557][Bug #6190]
* transcode.c (documentation for str_... - 04:09 AM Revision b6a72bcf (git): merge revision(s) 40015: [Backport #8196]
- 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_1_9_3@40055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:07 AM Revision c921d0e1 (git): merge revision(s) 39967: [Backport #8194]
- * 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_1_9_3@40054 b2dd03c8-39d4-4d8... - 04:04 AM Revision 8f610b17 (git): merge revision(s) 36432: [Backport #6734]
- * configure.in (EXTDLDFLAGS): split options for each extension
libraries, and unused in ruby.pc. [Bug #6734]
* lib/mkmf.rb (MakeMakefile#configuration): add EXTDLDFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/b... - 04:00 AM Revision d24ea3b6 (git): merge revision(s) 33365: [Backport #8106]
- * test/ruby/test_bignum.rb (TestBignum#test_interrupt): fix for
faster CPU.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:59 AM Revision dbe75ed4 (git): merge revision(s) 37743: [Backport #7379]
- * win32/win32.c (rb_w32_read): Windows 8 fixed one of a bug of console
API.
based on the patch by Heesob Park at [ruby-core:49479] [Bug #7379]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40051 b2... - 03:58 AM Revision 3108dc4b (git): merge revision(s) 39354,39356,39382: [Backport #5014]
- * signal.c (sigsegv): avoid to use async signal unsafe functions
when nested sigsegv is happen.
[Bug #5014] [ruby-dev:44082]
* signal.c (check_stack_overflow): extract duplicated code and get rid
of... -
02:57 AM Bug #8200 (Feedback): Segmentation fault - rails 4 -> sidekiq-> tilt
- Your log said,
>-- Crash Report log information --------------------------------------------
> ...
> * /Library/Logs/DiagnosticReports -
02:14 AM Revision 7a77e124 (git): Suppress warnings
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:02 AM Revision 0fb23a94 (git): fix typo: s/@ca_cert/@cacert/
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:44 AM Bug #8202 (Closed): Turn off builded colorizing
- Closed as duplicate of #8201 (which was moved to ruby-trunk)
-
12:22 AM Bug #8202 (Closed): Turn off builded colorizing
- GD!
In Ruby 1.9.3 the output into console does not process escape secuences and it was good for me becouse i use ConEmu. ConEmu can process advanced escape secuences and some tools like pry theming worked perfectly. Now in ruby 2.0.0... -
12:19 AM Feature #8201: Turn off builded colorizing
- I think it will be better to introduce comand line key to disable builtin escape secuences processing (and it will be so better other way: special key to enable built-in escape processing). Anyway I think ruby never can give so wide supp...
04/01/2013
-
11:56 PM Feature #8201 (Assigned): Turn off builded colorizing
- Hello Denis,
As commented on RubyInstaller list, I think will be better to extend the functionality of built-in ANSI coloring instead of disable it.
Please take a look to #6418 were I provide bench results on how external tools mon... -
11:52 PM Feature #8201 (Closed): Turn off builded colorizing
- GD!
In Ruby 1.9.3 the output into console does not process escape secuences and it was good for me becouse i use ConEmu. ConEmu can process advanced escape secuences and some tools like pry theming worked perfectly. Now in ruby 2.0.0... -
11:44 PM Bug #7171 (Closed): test-all failure on OS X (RubyCI)
-
11:43 PM Bug #7171: test-all failure on OS X (RubyCI)
- 問題が起きない環境を作ったので閉じます。
-
10:59 PM Revision 662d67f1 (git): Unused module removed.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:45 PM Revision 17cf784d (git): conditional test fixed.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:41 PM Revision e47f41fb (git): more tests.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:49 PM Revision d40335aa (git): * ext/-test-/num2int/num2int.c: Rename utility methods
- to global functions to ease manual experiments.
* test/-ext-/num2int/test_num2int.rb: Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:12 PM Bug #8136: gsub strange behavior when substituting "\\'"
- nobu (Nobuyoshi Nakada) wrote:
> =begin
> ...
Thank you, i have not read the documentation carefully. It is still a bit strange to me that a replacement string is not taken literally by default. -
04:57 PM Bug #8136: gsub strange behavior when substituting "\\'"
- =begin
You need more escapes.
"foo".gsub("f", "\\\\'")
=end
-
06:01 PM Bug #8200 (Closed): Segmentation fault - rails 4 -> sidekiq-> tilt
- I see thie segfault on ruby 2.0 after a few reloads of the sidekiq dashboard mounted as engine in rails 4.
System:
uname -a
Darwin maxbook.fritz.box 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20... -
05:34 PM Bug #8182: XMLRPC request fails with "Wrong size. Was 31564, should be 1501"
- Sample code to reproduce the issue using Flickr. With 1.9.3 this gives "Invalid API key" which is fine, but 2.0.0 returns the error of the size mismatch.
require 'xmlrpc/client'
server = XMLRPC::Client.new('api.flickr.com', '/servi... -
05:22 PM Bug #8159: Build failure introduced by Rinda changes
- On Linux, IPv6 UDP multicast with link-local IP address (FF02::1 is link-local) requires scope_id specified.
http://d.hatena.ne.jp/torutk/20080520/p1
http://stackoverflow.com/questions/3851061/listening-for-ipv6-multicasts-on-linux
ht... -
03:10 PM Revision 7d3db3cc (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:00 PM Revision bd67f48e (git): * 2013-04-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:00 PM Revision b5550361 (git): test_optparse.rb: skip no_error in backtrace
- * test/optparse/test_optparse.rb (TestOptionParser#assert_no_error):
prefix with assert_ so it will be skipped in backtrace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:34 PM Revision 87877eb0 (git): * ext/zlib/zlib.c (rb_gzfile_set_mtime): Use NUM2UINT.
- The old logic doesn't work well on LP64 platforms as:
.. -2**63-1 => error,
-2**63 .. -2**62-1 => success,
-2**62 .. -2**31-1 => error,
-2**31 .. 2**31-1 => success,
2**31 .. 2**62-1 => error,
2**62 .. 2**64-1 => success,
2... -
01:08 PM Revision f4eeca1d (git): * ext/zlib/zlib.c (Zlib::Inflate.new):
- Fix documentation syntax and naming errors.
Based on patch by Robin Dupret. Fix GH-271.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:58 PM Bug #8195 (Rejected): Time-dependent tests
- No actual log.
-
12:56 PM Bug #8195: Time-dependent tests
- On a second thought, this seems to be a poorly chosen "example". You can close this ticket. If I come across a better example, I'll open a new one.
Sorry for the noise. -
10:53 AM Bug #8195: Time-dependent tests
- 2013/4/1 hasari (Hiro Asari) <[email protected]>:
> Bug #8195: Time-dependent tests
> https://bugs.ruby-lang.org/issues/8195
> There are some tests that depend on timing of the execution, and fail sporadically.
>
> I ... -
10:21 AM Bug #8195 (Rejected): Time-dependent tests
- There are some tests that depend on timing of the execution, and fail sporadically.
I have not surveyed the entire suite, but one is pointed out in https://github.com/jruby/jruby/issues/618.
https://github.com/ruby/ruby/blob/v1_8_7... -
12:22 PM Revision 809a7618 (git): * test/-ext-/num2int/test_num2int.rb: Test small bignums.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:14 PM Revision d6daffbb (git): * numeric.c (rb_num2ulong_internal): Don't cast a negative double value
- into unsigned long, which is undefined behavior.
(rb_num2ull): Don't cast a value bigger than LLONG_MAX into
long long, which is undefined behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40037 b2dd03c8-39d4-4d8f-98ff-8... -
11:58 AM Revision 0cbe2f49 (git): * ext/-test-/num2int/num2int.c: Return string for result, instead of
- printing.
* test/-ext-/num2int/test_num2int.rb: updated to follow above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:14 AM Feature #8191: Short-hand syntax for duck-typing
- The more I think about this and it's potential use cases, the more I like the inline double question-mark syntax. This would make the implementation even more useful, addressing the following scenario:
if user && user.profile && u... -
09:14 AM Feature #8191: Short-hand syntax for duck-typing
- I know what duck-typing is, and it's a bit of a stretch to call this duck-typing, but it follows the duck-typing philosophy - "I don't care what you are, but if you can tell me something, I'll use that information. Otherwise I'll make an...
-
11:08 AM Revision 4e52c3c6 (git): * numeric.c (rb_num2long): Don't use SIGNED_VALUE uselessly.
- (check_int): Ditto.
(check_short): Ditto.
(rb_num2fix): Ditto.
(rb_num2ulong_internal): Add a cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:41 AM Revision ecb9b987 (git): configure.in: prereq 2.67
- * configure.in: skip autoconf 2.64 and 2.66, 2.67 seems short-lived
but stick on it for Debian Squeeze.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:39 AM Revision 3eb4b0aa (git): sha2.c: suppress warnings
- * ext/digest/sha2/sha2.c (SHA256_Final, SHA512_Last): suppress
strict-aliasing warnings on gcc 4.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:26 AM Bug #8180 (Closed): Backport r39967 to 1.9.3 and 2.0.x
- moved https://bugs.ruby-lang.org/issues/8193 and https://bugs.ruby-lang.org/issues/8194
-
07:00 AM Revision 318e8835 (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:41 AM Revision 39626559 (git): configure.in: clang check
- * configure.in: should not use AC_COMPILE_IFELSE before
AC_USE_SYSTEM_EXTENSIONS. [Bug #8192]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:22 AM Revision 90e8a9b4 (git): configure.in: clang check
- * configure.in: check clang version by predefined macro values.
[Bug #8192]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:06 AM Revision 92f59c6d (git): * numeric.c (check_uint): Take the 1st argument as unsigned long,
- instead of VALUE. Refine the validity test conditions.
(check_ushort): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e