Activity
From 05/07/2014 to 05/13/2014
05/13/2014
-
11:40 PM Bug #9836 (Feedback): Bad Implementation of Time.strptime
- I am not sure what behavior you are referring as "extremely naive".
Please be concrete. How do you think it should behave?
Matz.
-
07:59 PM Bug #9836 (Closed): Bad Implementation of Time.strptime
- According to the documentation, `Time.strptime` "parses +date+ using `Date._strptime` and converts it to a Time object." However this conversion is extremely naive, using only certain fields return by `Date._strptime` and ignoring the re...
-
04:29 PM Bug #9835: IGNORE signal handler has possible race condition in Ruby 2.1.2
- This script produces the same "Caught SignalException: SIGUSR1" message on Ubuntu Precise.
I couldn't get it to trigger on OSX -
04:13 PM Bug #9835 (Closed): IGNORE signal handler has possible race condition in Ruby 2.1.2
- I'm migrating an application from 1.8.7 to 2.1.1/2.1.2, so I'm not sure when this was introduced. Attached is a demo program with some notes about how the IGNORE option to Signal.trap seems to have a race condition whereby receiving tha...
- 03:47 PM Revision 5e023d68 (git): * 2014-05-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:47 PM Revision 9fd859b8 (git): make-snapshot: -digests option
- * tool/make-snapshot (package): add -digests option to select
digest algorithms to be shown.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:47 PM Revision bebbbc39 (git): make-snapshot: -package option
- * tool/make-snapshot (package): add -package option to select
packages to be made.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:47 PM Revision 26db9bb2 (git): make-snapshot: unused variables
- * tool/make-snapshot (package): remove variables no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:27 PM Feature #9834: Float#{next_float,prev_float}
- Thank you for an interesting implementation.
Heesob Park wrote:
> if (self==Float::NAN || y==Float::NAN)
This doesn't work. Float#nan? should be used.
> ...
This should be "r = y" to to follow C99's nextafter() beh... -
10:28 AM Feature #9834: Float#{next_float,prev_float}
- Here is a pure ruby implementation of `Float#{next_float,prev_float}` (adopted from http://golang.org/src/pkg/math/nextafter.go)
~~~ruby
class Float
def dbl2num(dbl)
[dbl].pack('d').unpack('Q')[0]
end
def num2dbl(num)... -
09:48 AM Feature #9834 (Closed): Float#{next_float,prev_float}
- I'd like to add Float#next_float and Float#prev_float which
returns next representable floating-point number and
previous representable floating-point number.
```
p 3.0.next_float #=> 3.0000000000000004
p 3.0.prev_float #=> 2.9999... -
10:09 AM Revision f6786463 (git): make-snapshot: SHA512
- * tool/make-snapshot (package): add SHA512.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:09 AM Revision 944ff17f (git): make-snapshot: support xz
- * tool/make-snapshot (package): support xz. no longer runs with
1.8 or earlier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:05 AM Revision a03eeb00 (git): set svn:ignore property.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:01 AM Bug #9833 (Closed): OpenSSL::X509::Certificate#inspect がわかりにくくなっている
- SSL/TLS の証明書の簡易的なチェックに OpenSSL::X509::Certificate#inspect を便利に使っていたのですが、最近の ruby だと subject などに内容が出なくなってわかりにくくなっているのですが、以前のように内容が出た方が良いと思うのですが、どうでしょうか。
```
% cat inspect_cert.rb
#!/usr/bin/env ruby
require 'openssl'
require 'socke... -
07:38 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- (2014/05/13 16:29), Eric Wong wrote:
> Tanaka Akira <akr@fsij.org> wrote:
>> Anyone use doxygen?
>> If no one use it, we can drop doxygen support.
>> (It makes the CI faster.)
>
> I do not use it.
I don't use it too (i... -
07:38 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- Tanaka Akira <akr@fsij.org> wrote:
> I found that doxygen produces many warnings in ccan/ directory.
> http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20140510T235500Z.diff.html.gz
>
> It seems the comments in ccan/ dire... -
07:08 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- 2014-05-11 8:50 GMT+09:00 Eric Wong <normalperson@yhbt.net>:
> Eric Wong <normalperson@yhbt.net> wrote:
>> Any comment? My main concern is it's a large import of new code;
>> but it is also highly reusable. I'll commit in 2-4 weeks... -
04:09 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
- nobu@ruby-lang.org wrote:
> "linux-gnu" in "target_os" is substituted by "linux", so your AS_CASE never match.
> You should check for libjemalloc availability instead, I think.
I used $target, not $target_os. An early version of m... -
03:22 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
- "`linux-gnu`" in "`target_os`" is substituted by "`linux`", so your `AS_CASE` never match.
You should check for `libjemalloc` availability instead, I think.
~~~diff
diff --git a/configure.in b/configure.in
index cf317af..a9037d6 10... -
02:58 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
- Attached patch to use jemalloc by default on GNU/Linux iff
jemalloc is already installed. Maybe we can integrate/force
it later, but this is a first step (and some distros like
Debian already ship jemalloc).
05/12/2014
- 03:15 PM Revision 30a0ef1c (git): * 2014-05-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:15 PM Revision 2b319c29 (git): * ChangeLog: fix a typo for r45930.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:57 PM Bug #9831 (Closed): C99-like atan2 check test failure under MinGW-w64
- Applied in changeset r45930.
----------
configure.in: check atan2
* configure.in (rb_cv_atan2_inf_c99): check whether runtime atan2
handles Inf as C99. ruby-core:62536] [Bug #9831] -
02:57 PM Revision f0fc13aa (git): configure.in: check atan2
- * configure.in (rb_cv_atan2_inf_c99): check whether runtime atan2
handles Inf as C99. ruby-core:62536] [Bug #9831]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:05 PM Bug #9726: Incorrect Proc parsing
- r45637 was backported into `ruby_2_1` branch at r45929.
-
02:04 PM Revision d5cf6c11 (git): merge revision(s) r45637: [Backport #9726]
- * parse.y (primary): flush cmdarg flags inside left-paren in a
command argument, to allow parenthesed do-block as an argument
without arguments parentheses. [ruby-core:61950] [Bug #9726]
git-svn-id: svn+ssh://ci.ru... -
01:50 PM Bug #9759: [TracePoint API] return event missing when raising exception
- r45758 and r45759 were backported into `ruby_2_1` branch at r45928.
-
01:49 PM Revision 86f8f5d9 (git): merge revision(s) r45758,r45759: [Backport #9759]
- * vm.c (invoke_block_from_c): add VM_FRAME_FLAG_BMETHOD to record
it is bmethod frame.
* vm.c (vm_exec): invoke RUBY_EVENT_RETURN event if rollbacked frame
is VM_FRAME_FLAG_BMETHOD.
[Bug #9759]
... -
01:19 PM Bug #9651: __dir__ returns nil in instance_eval/module_eval
- r45360 and r45361 were backported to `ruby_2_1` branch at r45927.
-
01:18 PM Revision 3cbfd634 (git): merge revision(s) r45360,r45361: [Backport #9651]
- * vm_eval.c (eval_string_with_cref): Use file path even if scope is
given. Related to [ruby-core:56099] [Bug #8662] and r42103.
* vm_eval.c (eval_string_with_cref): Unify to use NIL_P.
git-svn-id: svn+ssh://ci.ruby-l... -
12:33 PM Misc #9832: better concurrency in threads
- cougar => puma
-
12:31 PM Misc #9832 (Open): better concurrency in threads
- My application runs on top of rainbows using workers with multi-threaded.
I realized that in ruby running on linux (my kernel config is slackware, debian not work)
not equal to distribute the processing threads.
To test this I creat... -
11:33 AM Revision b063dd01 (git): * configure.in: Invoke AC_REPLACE_FUNCS for each function.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:57 AM Revision 8be5c76f (git): * gc.c: count young object correctly and show it in GC.stat
- on RGENGC_AGE2_PROMOTION.
* gc.c (RVALUE_PROMOTE_YOUNG): decrement young object count on
YOUNG->OLD.
* gc.c (obj_free): decrement young object count when young object
freed.
* gc.c (gc_marks): should not clear young object count.
* g... -
10:33 AM Bug #8358: TestSprintf#test_float test failure
- Luis Lavena wrote:
> If you don't object, going to apply Shirosaki's patch and request backport to 2.1.
Go ahead. -
09:47 AM Feature #9826: Enumerable#slice_between
- I updated the patch to simplify argument handling.
-
09:47 AM Feature #9071: Enumerable#slice_after
- I updated the patch to simplify argument handling.
-
01:35 AM Revision 4f8c0b90 (git): signal.c: check the next page too
- * signal.c (check_stack_overflow): check the next page too. SP in
ucontext is not decremented yet when `push` failed, so the fault
page can be the next.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45924 b2dd03c8-39d4-4d8f-98f...
05/11/2014
-
10:59 PM Bug #9739 (Assigned): TestException#test_machine_stackoverflow(_by_define_method) failures on x64-mingw32
- Nobu,
Can you review, reject or approve so we can resolve these test failures?
Thank you. -
10:35 PM Bug #9831 (Closed): C99-like atan2 check test failure under MinGW-w64
- After introduction of Feature #9799 (r45805) I started to see this failure when running tests under mingw-w64:
~~~
TestMath#test_atan2 [C:/Users/Luis/Code/ruby/ruby/test/ruby/test_math.rb:28]:
Exception raised:
<#<ArgumentError: co... -
08:44 PM Bug #9829: Contradictions in docs for FileUtils::ln (and related functions)
- Agreed, this is very confusing.
-
07:52 PM Bug #9829 (Assigned): Contradictions in docs for FileUtils::ln (and related functions)
-
06:59 PM Bug #9829 (Closed): Contradictions in docs for FileUtils::ln (and related functions)
- In the FileUtils module, to add simplicity and avoid duplication of code, a sort of coding paradigm exists for actions that read a filesystem object at one path and write a filesystem object at another.
These are the functions mv, cp... -
08:34 PM Feature #9830 (Assigned): Support for GOST private/public keys
- Hello everyone.
We're required to use GOST encryption algorithms for signing requests, interacting with HTTPS services with client certificate authentication and so on.
OpenSSL 1.0.0 is bundled with GOST engine, and, if correctly c... -
06:49 PM Bug #8358: TestSprintf#test_float test failure
- An update.
Before this patch:
https://gist.github.com/luislavena/beb9bff73fdca800debc
With patch applied:
https://gist.github.com/luislavena/fbb28cac6c53e5bc6256 -
05:26 PM Bug #8358 (Assigned): TestSprintf#test_float test failure
- Hello nobu,
Ping on this? this is still an issue on trunk and ruby_2_1 branch:
~~~
TestSprintf#test_float [C:/Users/Luis/Code/ruby/ruby/test/ruby/test_sprintf.rb:198]:
[ruby-dev:42551].
<"0x1p+2"> expected but was
<"0x1p+1">.
... -
05:48 PM Bug #9827 (Assigned): Segmentation fault when running `gem`
- 04:31 PM Revision 642e3ae9 (git): * 2014-05-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:31 PM Revision 543b402f (git): * ext/socket/ifaddr.c (IS_IFADDRS): Unused macro removed.
- * ext/strscan/strscan.c (BUFSIZE): Ditto.
* ext/zlib/zlib.c (OBJ_IS_FREED): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:29 PM Revision dd5d029d (git): * compile.c (BUFSIZE): Unused macro removed.
- * vm.c (BUFSIZE): Ditto.
* pack.c (INT64toNUM): Ditto.
(UINT64toNUM): Ditto.
(BYTEWIDTH): Ditto.
* time.c (lshift): Ditto.
(UINT64toNUM): Ditto.
(id_lshift): Unused variable removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru... -
12:24 PM Revision 49771dd3 (git): * pack.c (swaps): Unused macro removed.
- (swapi): Ditto.
(swapl): Ditto.
(swapll): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:09 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- Eric Wong <normalperson@yhbt.net> wrote:
> Before: st_table_entry->rb_thread_t->st_table_entry->rb_thread_t ...
Sorry, bad picture for Before, this is more accurate:
st_table_entry -> st_table_entry -> st_table_entry
| ... -
10:58 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- ko1@atdot.net wrote:
> 1. How performance improved?
There is less pointer chasing for iteration:
Before: st_table_entry->rb_thread_t->st_table_entry->rb_thread_t ...
After: rb_thread->rb_thread ...
This is made possible by t... -
10:08 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- 4. Should we use it on compile.c?
-
10:07 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- Sorry for late response.
Just curious (I'm not against of this change).
1. How performance improved?
2. Should we modify ccan/* files? Or should we sync with originals?
3. What mean the name "CCAN"?
-
10:40 AM Revision c1268be4 (git): test_process.rb: duplicate assertions
- * test/ruby/test_process.rb (test_status_{kill,quit}): remove
duplicate assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:55 AM Feature #8840: Yielder#state
- I have another idea now.
How about combining Enumerator.new and Enumerator#lazy addition to closure?
```
class Enumerator::Lazy
def drop4(n)
Enumerator.new {|y|
remain = n
self.each {|v|
if remain ==... -
03:19 AM Revision 61cd4e9d (git): test_process.rb: WIFEXITED and so on are system dependent
- * test/ruby/test_process.rb (test_status_kill): WIFEXITED and so
on are available only if signal is supported by the system.
[ruby-dev:48203] [Bug #9820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45918 b2dd03c8-39d4-4d8f-98f... -
01:02 AM Revision a3656d42 (git): signal.c: directly deliver non-handlable signals
- * signal.c (rb_f_kill): directly deliver signals which cannot be
handled, i.e., SIGKILL and SIGSTOP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:33 AM Revision c6e9e411 (git): configure.in: check typeof
- * configure.in (rb_cv_typeof): check typeof extension for ccan
headers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:25 AM Revision 7c68a312 (git): vm.c: suppress a warning
- * vm.c (rb_vm_living_threads_foreach): suppress "uninitialized"
warning where "typeof" is unavailable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/10/2014
-
11:58 PM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- Eric Wong <normalperson@yhbt.net> wrote:
> Any comment? My main concern is it's a large import of new code;
> but it is also highly reusable. I'll commit in 2-4 weeks if no response.
> The 0002 patch can wait longer.
Committed a... - 11:49 PM Revision 7992b0ff (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 11:48 PM Revision f11db2a6 (git): vm*: doubly-linked list from ccan to manage vm->living_threads
- A doubly-linked list for tracking living threads guarantees
constant-time insert/delete performance with no corner cases of a
hash table. I chose this ccan implementation of doubly-linked
lists over the BSD sys/queue.h implementation si... -
10:48 PM Bug #7395: Negative numbers can't be primes by definition
- Endo-san
Your opinion seems right.
IMHO, I think Rdoc should be updated.
This method should evaluate the number is prime number or not.
It should not refer the number is composite number or not.
We may have to confirm... -
12:20 AM Bug #7395 (Assigned): Negative numbers can't be primes by definition
- Read the rdoc carefully:
> Returns true if +self+ is a prime number, false for a composite.
By definition, a composite number can be also a positive integer greater than 1.
http://mathworld.wolfram.com/CompositeNumber.html
Th... -
06:56 PM Bug #9827 (Closed): Segmentation fault when running `gem`
- I have been [told](https://github.com/rubygems/rubygems/issues/911#issuecomment-42749165) by the [owner](https://github.com/drbrain) of the [rubygems/rubygems](https://github.com/rubygems/rubygems) project to file my issue here.
I get... -
04:10 PM Revision 3771a370 (git): thread.c: always deliver signal immediately
- * thread.c (ruby_kill): always deliver signal immediately, without
check for main thread. no longer called in other context.
[ruby-dev:48203] [Bug #9820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45912 b2dd03c8-39d4-4d8f-98... -
04:10 PM Bug #9820 (Closed): miniruby -e 'Process.kill(:INT, $$)' hang under cron
- Applied in changeset r45911.
----------
signal.c: directly enqueue
* signal.c (`rb_f_kill`): directly enqueue an ignored signal to self,
except for `SIGSEGV` and `SIGBUS`. [ruby-dev`:`48203] [Bug #9820] -
04:10 PM Revision 77af38d0 (git): signal.c: directly enqueue
- * signal.c (rb_f_kill): directly enqueue an ignored signal to self,
except for SIGSEGV and SIGBUS. [ruby-dev:48203] [Bug #9820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:04 PM Bug #9823: Segmentation fault using DL
- That makes sense. After implementing what you've shown me above, I no longer encounter a segmentation fault in the example, nor in the code it was extracted from. Thank you very much for your help!
-
02:46 PM Bug #9823: Segmentation fault using DL
- According to the document http://ruby-doc.org/stdlib-1.9.3/libdoc/dl/rdoc/DL/CPtr.html#method-c-malloc ,
~~~
DL::CPtr.malloc(size, freefunc = nil) => dl cptr instance
Allocate size bytes of memory and associate it with an optional f... -
02:04 PM Bug #9823: Segmentation fault using DL
- Thanks for your help and clear explanation. Do you know why the segmentation fault was prevented by the various conditions stated above?
-
01:49 PM Bug #9823: Segmentation fault using DL
- This bug is not due to ruby but to your code.
You used the inappropriate method ref on a variable of DL::CPtr type in the `open_process_token` method.
The method `open_process_token`
~~~
def self.open_process_token
t... -
04:32 AM Bug #9823: Segmentation fault using DL
- Additionally, you may find the errors for 1.9.3 and 2.1.2 here: https://gist.github.com/chrahunt/5af5639f6410ee87919c.
-
04:26 AM Bug #9823: Segmentation fault using DL
- Sorry, please find the gist here with the required files: https://gist.github.com/chrahunt/89bd596fdb8485556c64.
- 03:52 PM Revision 23fce754 (git): * 2014-05-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:52 PM Revision a5b9624f (git): thread_pthread.c: variable for errno
- * thread_pthread.c (rb_thread_wakeup_timer_thread_fd): use a local
variable for errno.
* thread_pthread.c (consume_communication_pipe): ditto. add
EWOULDBLOCK case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45909 b2dd03c8-... -
03:37 PM Bug #9824: mkmf.rb top_srcdir not printed in Makefile of ext/openssl
- Ok, please help me to understand. If Visual C++ is supported, why doesn't $(top_srcdir) get set in the generated Makefile when compiling from source? And is there a way we can set it without resorting to hand editing?
-
03:23 PM Bug #9824: mkmf.rb top_srcdir not printed in Makefile of ext/openssl
- Directs lib/mkmf.rb to sets some variables for header and library directories, e.g.: `$top_srcdir`.
And Visual C++ compilers have been supported already.
-
02:39 PM Bug #9824: mkmf.rb top_srcdir not printed in Makefile of ext/openssl
- What does ext/extmk.rb do exactly? There's no documentation for it. Could it be modified to work with the VS compiler?
-
12:28 PM Bug #9824 (Rejected): mkmf.rb top_srcdir not printed in Makefile of ext/openssl
- Currently openssl extension is tightly bound with the core due to thread handling, so build without `ext/extmk.rb` is not supported.
-
11:17 AM Bug #9824 (Rejected): mkmf.rb top_srcdir not printed in Makefile of ext/openssl
- Hi,
First of all, apologies in advance for the lack of technical knowledge about Ruby, I'm pretty new to it, but I think I have detected a bug in the build process of ext/openssl.
As a newbie, I was trying to build ruby 2.1.2-p95 o... -
03:01 PM Revision 78358a72 (git): merge revision(s) r45901:
- envutil.rb: successfully terminated process
* test/ruby/envutil.rb (FailDesc): allow successfully terminated
process without a signal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45908 b2dd03c8-39d4-4d8f-98f... -
02:48 PM Revision 3385f6a0 (git): thread_pthread.c: timer_thread_pipe struct
- * thread_pthread.c (timer_thread_pipe): aggregate timer thread
pipe stuff into a struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:47 PM Revision 779ce6b0 (git): thread_pthread.c: compare with pthread_equal
- * thread_pthread.c (ubf_select): compare thread_id with
pthread_equal() but not directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:25 PM Revision 4b1eca7e (git): merge revision(s) r45891,r45893,r45895:
- test_beginendblock.rb, test_signal.rb: run with default handler
* test/ruby/test_beginendblock.rb (test_propagate_signaled): run
with default handler.
* test/ruby/test_signal.rb (test_hup_me): ditto.
git-svn-id: svn+... -
01:38 PM Bug #9825 (Closed): Ruby option -Ke and -KE doesn't work well on Mac OSX 10.9.2
- Applied in changeset r45904.
----------
dir.c: match in UTF-8
* dir.c (push_glob): match in UTF-8 on Mac OS X.
[ruby-dev:48213] [Bug #9825] -
11:39 AM Bug #9825 (Closed): Ruby option -Ke and -KE doesn't work well on Mac OSX 10.9.2
- 手元の環境でビルドした環境でテストしたころ、TestRubyOptions#test_kanji で EUC-JP が invalid byte sequence in EUC-JP と判定されて失敗します。
その他のエンコード(Windows-31J、UTF-8、ASCII-8BIT)は問題なく通るようです。
$ make test-all TESTS='-vn /test_kanji/ test/ruby/test_rubyoptions.rb'
CC ... -
01:37 PM Revision 1f30b743 (git): dir.c: match in UTF-8
- * dir.c (push_glob): match in UTF-8 on Mac OS X.
[ruby-dev:48213] [Bug #9825]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:37 PM Bug #9806: URI#encode doesn't encode characters '[' and ']'. They should be encoded as %5B and %5D respectively.
- I'm unfamiliar with URI spec, but I guess RFC 2732 is related.
http://www.ietf.org/rfc/rfc2732.txt
> This document incudes an update to the generic syntax for Uniform
> ...
--
Yusuke Endoh <mame@tsg.ne.jp>
-
12:15 PM Revision 6add0613 (git): test_io_console.rb: show failure details
- * test/io/console/test_io_console.rb (test_noctty): use
`assert_ruby_status` to show failure details.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:15 PM Revision 765a0d53 (git): envutil.rb: rubybin: keyword
- * test/ruby/envutil.rb (invoke_ruby): add rubybin: keyword option
to specify the command to run scripts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:15 PM Revision ac65855d (git): envutil.rb: successfully terminated process
- * test/ruby/envutil.rb (FailDesc): allow successfully terminated
process without a signal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:57 AM Feature #9826 (Closed): Enumerable#slice_between
- I'd like to add a new method, Enumerable#slice_between.
It is similar to Enumerable#slice_before but it can use
not only the element after the slice position
but also the element before the slice position.
```
enum.slice_between... -
11:35 AM Feature #9071: Enumerable#slice_after
- I implemented `Enumerable#slice_after`.
I found two request for this feature:
This issue and
http://stackoverflow.com/questions/22622156/how-to-implement-slice-after-or-group-certain-elements-with-certain-subsequent
I wrote the d... -
04:41 AM Revision 55d4afc7 (git): process.c: use ruby_stop
- * process.c (rb_exit): call ruby_stop() which calls ruby_cleanup(),
instead of calling ruby_finalize() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:32 AM Bug #9751 (Closed): Process.wait does not work correctly in a thread
- Applied in changeset r45899.
----------
thread.c: stop if forked in a sub-thread
* thread.c (`thread_start_func_2`): stop if forked in a sub-thread,
the thread has become the main thread.
[ruby-core:62070] [Bug #9751] -
02:58 AM Bug #9751: Process.wait does not work correctly in a thread
- The following one-liner fixes the case where "exit" is called.
However, when "exit"/"exit!" is omitted entirely, it still hangs.
I am out of time for today...
~~~diff
--- a/thread.c
+++ b/thread.c
@@ -3799,6 +3799,7 @@ rb_thr... -
01:28 AM Bug #9751: Process.wait does not work correctly in a thread
- sam.saffron@gmail.com wrote:
> ~~~ruby
> def test
> if pid = fork
\<snip\>
> ~~~ruby
> else
> sleep 3
> puts "exiting child"
> exit 0
A workaround is to use `exit!(0)` in the child.
Normal "`e... -
04:32 AM Revision 9883632d (git): thread.c: stop if forked in a sub-thread
- * thread.c (thread_start_func_2): stop if forked in a sub-thread,
the thread has become the main thread.
[ruby-core:62070] [Bug #9751]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:32 AM Revision a46e21c8 (git): thread_pthread.c: variable for errno
- * thread_pthread.c (timer_thread_sleep): use a local variable for
errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:00 AM Revision ae290361 (git): test_signal.rb: test iff SIGQUIT is supported
- * test/ruby/test_signal.rb (test_trap_system_default): test only
if SIGQUIT is supported, which is platform dependent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:41 AM Feature #9508 (Assigned): Add method coverage and branch coverage metrics
- Sam Rawlins wrote:
> I was largely inspired by the visualization and analysis of Istanbul [1], the standard Javascript coverage library. Here is a great example of a coverage report: http://gotwarlost.github.io/istanbul/public/coverage/... -
12:33 AM Bug #9773 (Closed): broken link in man/ruby.1
- Applied in changeset r45896.
----------
* man/ruby.1: remove deadlink. [ruby-core:62145][Bug #9773] -
12:33 AM Revision 03c39e11 (git): * man/ruby.1: remove deadlink. [ruby-core:62145][Bug #9773]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:32 AM Revision 2acad064 (git): test_thread.rb: run with default handler
- * test/ruby/test_thread.rb (test_thread_timer_and_interrupt): run
with default handler.
* test/ruby/test_thread.rb (test_thread_{join,value}_in_trap):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45895 b2dd03c8-39d4-4d8...
05/09/2014
-
11:48 PM Revision 08928bb5 (git): * signal.c (trap): Return "SYSTEM_DEFAULT" if SIG_DFL is set.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:44 PM Bug #7395: Negative numbers can't be primes by definition
- > ayumin
this issue seems incompatible changes. it should be add NEWS. -
11:36 PM Bug #9823 (Feedback): Segmentation fault using DL
- Hello,
There is a require to mwe that is not defined. Please include all the code or provide a gist with multiple files that describe the problem. -
11:34 PM Bug #9823 (Closed): Segmentation fault using DL
- I receive a segmentation fault when calling OpenProcessToken from DL, demonstrated by running the attached 'runner.rb' file with the additional files in the same directory. This is a simplified representation, but perhaps not minimal, th...
-
11:19 PM Feature #4788: resolv.rb refactoring
- I'm happy to se this has been completed. I just thought I'd mention that I reimplemented the DNS resolver in RubyDNS using EventMachine as I couldn't wait for this bug fix. The new EventMachine resolver is asynchronous which makes it use...
-
10:02 PM Bug #9822 (Assigned): Ruby doesn't respect system OpenSSL configuration
-
09:24 PM Bug #9822 (Closed): Ruby doesn't respect system OpenSSL configuration
- Hello.
I need to work with SSL (HTTPS) with GOST encryption, but ruby doesn't connect to the servers that requires GOST algorithms to be used for encryption.
The issue is in fact, that it is required to modify system OpenSSL config... -
05:04 PM Feature #9508: Add method coverage and branch coverage metrics
- Hi Yusuke, thanks for the comments! I want to first defend the Demand and Use Case. And thank you for the Review comments; I'll apply them ASAP.
## Demand in Ruby Core
I think that Ripper is inadequate for these new metrics for the... -
04:15 PM Revision 5d488225 (git): test_signal.rb: missing argv
- * test/ruby/test_signal.rb (test_hup_me): add missing argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:13 PM Revision 800c2d39 (git): * 2014-05-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:13 PM Revision a738b98f (git): test_beginendblock.rb, test_signal.rb: run with default handler
- * test/ruby/test_beginendblock.rb (test_propagate_signaled): run
with default handler.
* test/ruby/test_signal.rb (test_hup_me): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:05 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
- GVL があるので変なことはまず起こらない気がしますが、起こるとしたらどういう状況ですかね。
-
03:02 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
- `SIG_IGN`ではないときだけ、というところでrace conditionになったりしないですかね。
-
03:00 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
- 自分自身に送るときは、即座に届かないと困ることがあった気がします。
例外が発生するはずがその先まで実行されてしまうとか。
思うに、自分自身(だけ)に送るときは signal を使わないで、直接 signal handler を呼ぶなり呼ばないなりすればいいんじゃないかという気がするんですが、どうですかねぇ。
-
02:35 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
- 元々シグナルがすぐ配送されるとは限らないわけで、とりあえずタイムアウトをつけてみるのはどうでしょうか。
~~~diff
diff --git i/thread.c w/thread.c
index dfa91a8..209aff1 100644
--- i/thread.c
+++ w/thread.c
@@ -5180,10 +5180,11 @@ ruby_kill(rb_pid_t pid, int sig)
* delivered ... -
02:16 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
- r39819で、自分自身にシグナルを送ったときにはすぐシグナルを処理するために受信するまで待つようになっていますが、`SIG_IGN`の場合は送られないのでそこでずっと待機してしまうということのようです。
シグナルの遅延が予測できない以上、`kill`する前にチェックするしかないですかねぇ。 -
01:06 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
- さらに調べた結果、どうも cron から動かしたプログラムでは SIGINT の signal handler が
SIG_IGN になっているようです。
以下のようにして、端末からでも再現できました。
以下を実行すると hang します。
```
./miniruby -e 'trap(:INT, "IGNORE"); Process.kill(:INT, $$)'
```
Ctrl-C で止められないのは少し面倒なので、SIGQUIT に変... -
08:06 AM Bug #9820 (Closed): miniruby -e 'Process.kill(:INT, $$)' hang under cron
- 最近、しばたさんが運用を始めた chkbuild で、
TestBeginEndBlock#test_propagate_signaled が hang しています。
http://chkbuild002.hsbt.org/chkbuild/ruby-trunk/log/20140509T060013Z.fail.html.gz
調べて再現コードを小さくしていった結果、
miniruby -e 'Process.kill(:INT, $$)'
... -
02:31 PM Revision ed37579c (git): thread_*.c: constify
- * thread_{pthread,win32}.c (native_cond_timedwait): constify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:31 PM Revision b60fbca8 (git): signal.c: if to switch
- * signal.c (ruby_signal): turn multiple `if` statements into a
`switch`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:57 PM Revision 058b5bce (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:27 PM Bug #9821 (Third Party's Issue): Segfault when using gruff/RMagick/Rails 3.2.17
- Seems it occurs in RMagick.
-
11:26 AM Bug #9821 (Third Party's Issue): Segfault when using gruff/RMagick/Rails 3.2.17
- Our Rails 3.2.17 project uses gruff, which uses RMagick. It worked fine with Ruby 1.9 (FreeBSD 8.3). Then we moved to another server with Ruby 2.1 (FreeBSD 10.0) and now the Ruby code that generates the image crashes.
Bug report as gi... -
06:12 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- メソッド名は分かりませんが、
a.foo(b)
という書き方は対称性を崩していて何となく気持ち悪いので、どうせなら
String.foo(a, b)
という書き方も見当していただけないでしょうか。あるいは、`<=>`と同様に、メソッドの前の`.`の要らないメソッドがあるといいんですけどね。 -
05:40 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- Yui NARUSE wrote:
> > (あと numericcmp は cc という同じ文字の並びの間で単語が分かれるというのが、
> ...
`numcmp`とか。 -
05:32 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- tadayoshi funaba wrote:
> 名前はともかく俺が欲しいのは filevercmp のほうかもしれない。
仕様が明確に決まっているのと、バージョン比較というわたしのユースケースには影響がないので、
それでもいい感はありますが、どうなんでしょうね。
Akira Tanaka wrote:
> ...
それぞれ後半が逆な気がしますが、MS的にはlogicalcmpらしいですね。
> ではどういう名前にするかというと、あまりいい名前... -
02:48 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- 2014-05-08 7:54 GMT-04:00 Tadayoshi Funaba <tadf@dotrb.org>:
> 名前はともかく俺が欲しいのは filevercmp のほうかもしれない。
>
> ~~~
> x #=> ["2.1.10", "2.1.2", "8 layers", "8 layers 2", "8 layers 2.nki", "8 layers.nki", "a16", "a17"]
> puts x.sort{|a... -
02:28 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- Feature#5861 の時と違って、色々とバックグランドの話が提示されたので私は説得されました。
+1
> ~~~diff
> + def test_numericcmp
> + assert_equal(-1, "2.1.0".numericcmp("2.1.1"))
> + assert_equal(-1, "2.1.9".numericcmp("2.1.10"))
> + assert_equal( 0... -
05:52 AM Revision 77811031 (git): extmk.rb: check if parent is build
- * ext/extmk.rb (extmake): don't build nested libraries if parent
library isn't build.
* ext/{dl/callback,tk/tkutil}/extconf.rb: no longer need to check
if the parent is build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45887... -
05:52 AM Revision ecb8b52f (git): extmk.rb: fix extstatic
- * ext/extmk.rb: fix variable name for --extstatic option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:27 AM Bug #9818 (Closed): __builtin_setjmp and __builtin_longjmp caused a build failure on PPC Linux with gcc 4.4.0
- Applied in changeset r45885.
----------
configure.in: check for `setjmp` type with `CCDLFLAGS`
* configure.in (`RUBY_SETJMP_TYPE`): check for `setjmp` type after
`CCDLFLAGS` is appended to `CFLAGS`, since `__builtin_setjmp` can... -
04:38 AM Bug #9818: __builtin_setjmp and __builtin_longjmp caused a build failure on PPC Linux with gcc 4.4.0
- You can use `--with-setjmp-type=_setjmp` `configure` option.
-
05:27 AM Revision 9ee25c70 (git): configure.in: check for setjmp type with CCDLFLAGS
- * configure.in (RUBY_SETJMP_TYPE): check for setjmp type after
CCDLFLAGS is appended to CFLAGS, since __builtin_setjmp can be
affected. [ruby-core:62469] [Bug #9818]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45885 b2dd03c8-... -
04:35 AM Bug #9819 (Closed): changed documentation for enumerable methods find and detect
- The docs right now under the enumerable method "find" contains only 2 examples using detect, and no examples with find. The usual pattern throughout the rest of the docs is that when two methods are aliases, such as detect and find, then...
- 03:58 AM Revision 48a9d171 (git): * tool/release.sh: fix for neon.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:14 AM Feature #6074 (Rejected): Allow alias arguments to have a comma
- As Akinori stated, alias is special to be special.
In your case, forget alias and always use alias_method.
Matz.
-
02:34 AM Feature #6074: Allow alias arguments to have a comma
- Akinori MUSHA wrote:
> I believe the lack of comma is an important sign that alias is not really a method call in which directive arguments are not evaluated like with normal method calls.
Agreed, and this issue should be judged by M... -
02:05 AM Feature #6074: Allow alias arguments to have a comma
- I believe the lack of comma is an important sign that alias is not really a method call in which directive arguments are not evaluated like with normal method calls.
If you are allowed to, and should you put a comma in an alias statemen... -
02:30 AM Bug #9800: Ship 2.1.2 with GC_HEAP_OLDOBJECT_LIMIT_FACTOR of 1.3
- How about performance down of this change?
-
01:00 AM Bug #9800: Ship 2.1.2 with GC_HEAP_OLDOBJECT_LIMIT_FACTOR of 1.3
- Sorry for late response.
I can agree this proposal because current default "2" also has no evidence to use.
I think more survey are welcome to set ideal default setting. 1.7? 1.5? 1.3?
However, already 2.1.2 released?
05/08/2014
-
11:46 PM Feature #9816: 文字列内の数字を数値として比較するメソッド
- Yui NARUSE wrote:
> なお、メソッド名は String#numericcmp としています。
"2.9" と "2.10" の比較を考えると、
整数の並びの辞書順の比較として 2.9 が大きいとするか、
数 (実数) の比較として 2.10 が大きいとするか、
という考え方の違いがあります。
numericcmp という名前は後者を想起させる気がします。
今回欲しいのは前者だと思うので、それを想起させる名前がいいんじゃない... -
02:25 PM Feature #9816: 文字列内の数字を数値として比較するメソッド
- `versioncmp`は'-'と'.'だけ特別扱いって感じですかね。
あと、片方だけが数字で終わっているときの終端チェックが抜けているような。
~~~diff
diff --git i/string.c w/string.c
index 66f667f..855d74f 100644
--- i/string.c
+++ w/string.c
@@ -2639,6 +2639,11 @@ rb_str_numericcmp(VALUE str1, V... -
11:58 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- 名前はともかく俺が欲しいのは filevercmp のほうかもしれない。
~~~
x #=> ["2.1.10", "2.1.2", "8 layers", "8 layers 2", "8 layers 2.nki", "8 layers.nki", "a16", "a17"]
puts x.sort{|a,b| a.numericcmp(b)}
2.1.2
2.1.10
8 layers
8 layers 2
8 layers 2.nki
8 ... -
10:58 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- Kazuhiro NISHIYAMA wrote:
> numericcmp だと複数の数値が入っている文字列を比較するものというのがわかりにくいと思いました。
> ...
名前の候補としてはいいんじゃないですかね。
String に生やしているわけではないので、puppetが使っているのは無視していいと思います。
> coreutils だと filevercmp という名前のようです。
> ...
rpmvercmpは論外として、filevercmpは... -
10:15 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- numericcmp だと複数の数値が入っている文字列を比較するものというのがわかりにくいと思いました。
最初に思いついたのは versioncmp という名前でしたが、
puppet などで使われているようです。
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/package.rb
coreutils だと filevercmp という名前のようです。
https://... -
09:50 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
- +1
自分でいちいち書くのも面倒だし、Gem::Versionをこのために持ってくるのも……という類のメソッドですよね。 -
09:37 AM Feature #9816 (Assigned): 文字列内の数字を数値として比較するメソッド
- 文字列内の数字を数値として比較するメソッドを追加しませんか
そのような比較は一般的な用途としてはGUIシェルのファイラーが比較に用いており、
Windows では StrCmpLogicalW が、OS X では NSString:compare:options:へのNSNumericSearch定数が提供されています。
http://msdn.microsoft.com/en-us/library/windows/desktop/bb759947(v=vs.... -
09:13 PM Bug #9818 (Closed): __builtin_setjmp and __builtin_longjmp caused a build failure on PPC Linux with gcc 4.4.0
- From a certain revision around r45503 to r45515, Ruby began to use `__builtin_setjmp` and `__builtin_longjmp` on PPC Linux, instead of `_setjmp` and `_longjmp`. However, `__builtin_setjmp` and `__builtin_longjmp` cause a build failure be...
-
09:00 PM Bug #9814 (Assigned): Improving documentation example for Enumerator#peek
-
08:07 AM Bug #9814 (Closed): Improving documentation example for Enumerator#peek
- The existing example for **Enumerator#peek** doesn't effectively document the behavior when peeking after an enumerator has been entirely consumed. Rather, it documents the behavior of **Enumerator#next**.
This change more effectively... -
07:51 PM Feature #9781: Feature Proposal: Method#super_method
- I've only ever needed to do this in codebases like Rails, where there's an insane amount of inheritance. However, Rails also relies heavily on method_missing, which `super_method` would completely miss.
Anyway, I'd like this method to... -
07:02 PM Revision 2ff10784 (git): * lib/delegate.rb: Fix example of using delegator.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:46 PM Revision 8b6a874a (git): * lib/shell.rb: add documentation in lib/shell.rb
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:32 PM Revision 529461df (git): * lib/fileutils.rb: show fileutils require at top.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:22 PM Revision 9fdf3e3e (git): * 2014-05-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:22 PM Bug #7395 (Closed): Negative numbers can't be primes by definition
- Applied in changeset r45878.
----------
* lib/prime.rb (Prime#prime?): negative numbers can't be primes
by definition. reported by Ivan Kataitsev. [Bug #7395]
* test/test_prime.rb: add test. -
06:22 PM Revision bef8e455 (git): * lib/prime.rb (Prime#prime?): negative numbers can't be primes
- by definition. reported by Ivan Kataitsev. [Bug #7395]
* test/test_prime.rb: add test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:34 PM Bug #9817: The extconf.rb for OpenSSL assumes MingW
- I didn't notice this by now, because there was no problem for building mswin at all.
Are these lines really necessary on mingw? -
03:14 PM Bug #9817 (Closed): The extconf.rb for OpenSSL assumes MingW
- It appears that the extconf.rb file for openssl assumes mingw. The problem is that gdi32 and wsock32 need to be linked, even for Visual Studio.
The simple fix is to change "`if $mingw`" to "`if File::ALT_SEPARATOR`" on line 40.
-
09:43 AM Feature #9772: IO#statfs and File::Statfs
- Akira Tanaka wrote:
> Yui NARUSE wrote:
> ...
まぁ採否も含めてまつもとさんに判断頂く際に、名前も決めていただくってことでいいかと。
> あるいは、もっと動機に率直なメソッドにしてしまうという手もあって、
> ...
ふむ、確かに今のわたしのユースケースだとこちらのほうが適している気はしますね。
こちらはこちらでいじってみます。
こっちだと Etc.mntinfo とか Etc.df とかですかねぇ -
04:31 AM Feature #9772: IO#statfs and File::Statfs
- Yui NARUSE wrote:
>
> ...
とすると、statvfs があるときは少なくとも statvfs の情報は提供することになるような気がしますね。
statvfs は POSIX で標準化されているので、結局、提案されているメソッドの実際の動作は
statvfs + 環境依存の様々な情報、ということになりそうな気がします。
そうすると常に提供されると期待できるのは statvfs の部分なわけで、やっぱ名前は statvfs のほうがい... -
02:09 AM Feature #9772: IO#statfs and File::Statfs
- Akira Tanaka wrote:
> Yui NARUSE wrote:
> ...
他の方が互換実装を提供することに反対はしませんが、わたしがわざわざ実装する動機は欠けますね。
> > なお、NetBSDとOpenBSDでは動くようにした…はずです。
> ...
r45873で直しました。 -
09:40 AM Bug #9815: attr_reader doesn't warn on a uninitialized instance variable
- どういう意図でしたっけ。
ちょっとググったけど見当たらず。
-
09:32 AM Bug #9815 (Closed): attr_reader doesn't warn on a uninitialized instance variable
- 意図的なものです。
`rb_ivar_get`と`rb_attr_get`の差です。 -
09:25 AM Bug #9815 (Rejected): attr_reader doesn't warn on a uninitialized instance variable
attr_reader で定義したメソッドでは、-w 時に、未設定の警告「warning: instance variable @bar not initialized」みたいなのが出ないんですが、そういうもんでしょうか。
~~~ruby
class C
attr_reader :foo
def bar; @bar; end
end
C.new.foo
C.new.bar #=> t.rb:4: warning: instance vari...- 06:31 AM Revision 2a83260a (git): fixed previous commit mistake.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:45 AM Revision 16b8aadc (git): object.c: no longer copy tables of classes/modules
- * object.c (init_copy): no longer copy tables of classes/modules,
since r45874 rb_mod_init_copy() does it instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:34 AM Bug #9813 (Closed): Module#initialize_copy does not clean the tables
- Applied in changeset r45874.
----------
class.c: always clear tables first
* class.c (`rb_mod_init_copy`): always clear instance variable,
constant and method tables first, regardless the source tables.
[`ruby-dev:48182`] [`... -
04:38 AM Bug #9813 (Closed): Module#initialize_copy does not clean the tables
- `Module#initialize_copy`で定数やインスタンス変数を持たない`Module`をコピーしても、元の定数やインスタンス変数が残っています。
~~~ruby
m = Module.new do
def x
end
const_set(:X, 1)
@x = 2
end
p m.instance_methods, m.instance_variables, m.constants
#=> [:x]
#=> [:@x]... -
05:34 AM Revision 7c072b35 (git): class.c: always clear tables first
- * class.c (rb_mod_init_copy): always clear instance variable,
constant and method tables first, regardless the source tables.
[ruby-dev:48182] [Bug #9813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45874 b2dd03c8-39d4-4d8f-98... -
01:57 AM Revision 97cd982a (git): * configure.in: OpenBSD needs to include sys/param.h before include
- sys/mount.h. [ruby-dev:48167]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:17 AM Revision 719804b5 (git): webrick/httpserver.rb: Stop handling requests on shutdown
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): stop
handling requests on shutdown, even if the socket is readable
and IO.select() returns true. [Fixes GH-607]
* lib/webrick/server.rb (WEBrick::GenericServer#start): IO.select... -
12:28 AM Feature #9777: Feature Proposal: Proc#to_lambda
- Beware! The answer on Stack Overflow (http://stackoverflow.com/a/2946734) is wrong, because it does not preserve the value of `self` in the block.
This is better, but still wrong:
~~~
def convert_to_lambda &block
obj = block.bi...
05/07/2014
-
11:21 PM Revision b9f770ae (git): refactored to test Socket and TCPSocket/TCPServer more consistently.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:32 PM Bug #9685: psych-2.0.5 のバックポート
- backported a part of r45453 into ruby_2_0_0.
I decided to update only libyaml and not psych itself. - 05:30 PM Revision 30340160 (git): merge revision(s) r45453: [Backport #9798]
- * ext/psych/yaml/config.h: ditto.
* ext/psych/yaml/scanner.c: ditto.
* ext/psych/yaml/yaml_private.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:09 PM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
- backported into ruby_2_0_0 at r45869.
I couldn't reproduce SEGV with wanabe's script, but I believe the fix is right, or at least has no bad side effect :) - 05:07 PM Revision 9bececb7 (git): merge revision(s) 45015: [Backport #9657]
- * ext/bigdecimal/bigdecimal.c (BigDecimal_initialize): Insert GC guard.
* ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45869 b2dd03c8-39d4-4d8f-98f... -
05:00 PM Bug #9743: memory leak in openssl ossl_pkey_verify leaks memory
- backported into ruby_2_0_0 at r45868.
- 04:59 PM Revision b786887a (git): merge revision(s) 45595: [Backport #9743]
- * ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal()
finalizes only a copy of the digest context, the context must be
cleaned up after initialization by EVP_MD_CTX_cleanup() or a
memory leak wi... -
04:22 PM Bug #9586: Unable to build Ruby 2.1.1 on NetBSD
- r45190, r45202, r45204 and r45713 were backported into `ruby_2_1` at r45867.
-
04:21 PM Revision 65b76d92 (git): merge revision(s) r45190,r45202,r45204,r45713: [Backport #9586]
- configure.in: define SET_THREAD_NAME
* configure.in (SET_THREAD_NAME): define according to
pthread_setname_np variations.
* configure.in: correct pthread_setname_np's prototype on NetBSD.
[Bug #9586]
git-sv... -
03:49 PM Revision b4946035 (git): merge revision(s) r44619:
- test_gc.rb: relax assertion
* test/ruby/test_gc.rb (test_profiler_total_time): GC time may be
shorter than the timer resolution.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45866 b2dd03c8-39d4-4d8f-98ff-823f... - 03:43 PM Revision 87083e76 (git): * 2014-05-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:43 PM Revision d4d04585 (git): gc.c: fix argument types for st_foreach
- * gc.c ({free,mark}_{method,const}_entry_i): fix argument types as
st_data_t for st_foreach().
* gc.c (rgengc_unprotect_logging_exit_func_i): add third argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45864 b2dd03c8-39d4-4... -
03:36 PM Bug #9750: OpenSSL::SSL::SSLServer can not accept a Socket as it's first parameter
- I think this introduces no incompatibility and should be backported.
-
12:48 PM Bug #9750 (Closed): OpenSSL::SSL::SSLServer can not accept a Socket as it's first parameter
- Applied in changeset r45863.
----------
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#accept):
Consider Socket#accept as well as TCPServer#accept.
Reported by Sam Stelfox. [ruby-core:62064] [Bug #9750] -
02:18 PM Feature #6074: Allow alias arguments to have a comma
- Request for syntax change.
-
06:15 AM Feature #6074: Allow alias arguments to have a comma
- Salvaged. https://github.com/ruby/ruby/pull/609
-
01:12 PM Bug #5330 (Rejected): Bug Report: wrong backtrace
- Ulrich Kramer wrote:
>
> ...
No.
caller() doesn't return the current stack frame unless 0 is specified as the argument.
caller() returns an array which contains the caller stack frame and ancestor stack frames.
caller of the to... -
12:48 PM Revision 2dbae9b1 (git): * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#accept):
- Consider Socket#accept as well as TCPServer#accept.
Reported by Sam Stelfox. [ruby-core:62064] [Bug #9750]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:22 PM Revision 1386a230 (git): refactoring to extract tcp_pair.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:58 AM Bug #9760: mkmf does not allow for linking against custom libraries when a system library is present
- In the meantime, third parties can work around this problem by a monkey patch like this:
https://github.com/sparklemotion/nokogiri/commit/c98745d9098487c51685a732f1c5a21d8d07cdad -
08:24 AM Bug #9811 (Closed): Numeric#step ignores `to` silently by keyword arguments.
- Applied in changeset r45861.
----------
numeric.c: check keyword arguments
* numeric.c (`num_step_scan_args`): check keyword arguments and fail
if they conflict with positional arguments.
[`ruby-dev:48177`] [`Bug #9811`] -
08:16 AM Bug #9811 (Closed): Numeric#step ignores `to` silently by keyword arguments.
- Numeric#stepにキーワード引数を指定すると、終了値が無視されます。
無効なキーワードでもエラーになりません。
~~~ruby
1.step(10, foo: nil)
~~~
-
08:24 AM Revision a352b0a2 (git): numeric.c: check keyword arguments
- * numeric.c (num_step_scan_args): check keyword arguments and fail
if they conflict with positional arguments.
[ruby-dev:48177] [Bug #9811]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:10 AM Revision f8661f7f (git): numeric.c: merge miss
- * numeric.c (num_step_scan_args): fix merge miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:05 AM Revision ba90ac25 (git): numeric.c: num_step_scan_args
- * numeric.c (num_step_scan_args): turn a macro into a function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:34 AM Revision 5c518025 (git): numeric.c: indent
- * numeric.c (ruby_num_interval_step_size): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:03 AM Bug #9677: OpenSSL::PKey::EC#to_text causes a segmentation fault
- I found that the segmentation fault occurs when a public_key is not set.
Here is a patch.
~~~
diff --git a/ossl_pkey_ec.c b/ossl_pkey_ec.c
index 5e419bd..070bfc4 100644
--- a/ossl_pkey_ec.c
+++ b/ossl_pkey_ec.c
@@ -574,6 +574,13... -
06:58 AM Bug #5328: Splat args are treated wrongly in instance_exec and class_exec
- Thanks. I'm still trying to wrap my head around it but that's quite helpful.
-
05:54 AM Feature #9807: String.new with block
- Michael Kohl wrote:
> After a discussion in our team chat today, I wondered if it would be a good idea to have a version of String.new that accepts a block and works as a string builder. Something like
> ...
Like Matthew, I'd also like... -
04:26 AM Revision 082a8864 (git): vm_eval.c: hide intermediate hash
- * vm_eval.c (rb_f_local_variables): hide intermediate hash and use
rb_hash_keys() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:26 AM Revision 5bec2d8c (git): hash.c: make rb_hash_keys extern
- * hash.c (rb_hash_keys): make an internal public function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:26 AM Revision c8221b4c (git): vm_eval.c: symbol identity
- * vm_eval.c (local_var_list_add): use symbol identity, and get rid
of method calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:26 AM Revision 766478f6 (git): vm_eval.c: valid name IDs only
- * vm.c (vm_collect_local_variables_in_heap): use struct local_var_list
instead of VALUE directly.
* vm_eval.c (local_var_list_update): add valid name IDs only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45854 b2dd03c8-39d4-4d8... -
04:26 AM Revision a1bc138f (git): vm.c: clear intermediate hash
- * vm.c (rb_f_local_variables): clear intermediate hash after
extracting its keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:07 AM Revision d4672274 (git): * benchmark/driver.rb: remove debug output and output results into
- specified file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:57 AM Revision 1ddb9c53 (git): * benchmark/driver.rb: add '--rawdata-output=[FILE] option to output
- raw results into FILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:25 AM Revision 11eb8701 (git): vm_eval.c: exclude hidden variables
- * vm_eval.c (rb_f_local_variables): exclude variables hidden by
shadowing. [ruby-core:60501] [Bug #9486]
* vm.c (collect_local_variables_in_iseq): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45850 b2dd03c8-39d4-4d8f-98ff... - 02:00 AM Revision c8dbc43d (git): * 2014-05-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:00 AM Revision c60e282b (git): rename variables
- * vm.c (vm_collect_local_variables_in_heap): rename an argument.
* vm_eval.c (rb_f_local_variables): rename a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:23 AM Bug #9372: Date function cweek reports innaccurately for the date December 30, 2013
- This is a repeated question, so it feels nice to add examples.
-
12:17 AM Bug #9809 (Closed): Date.new(2000,1,1).cweek should == 1
-
12:08 AM Feature #9777: Feature Proposal: Proc#to_lambda
- If a user wanted to write it as a proc, then it means that he/she doesn't want it to raise error, doesn't it?