General

Profile

yhara (Yutaka HARA)

  • Login: yhara
  • Registered on: 06/02/2008
  • Last sign in: 12/11/2021

Issues

open closed Total
Assigned issues 0 3 3
Reported issues 0 13 13

Activity

09/21/2018

02:17 PM Ruby Feature #10208 (Closed): Passing block to Enumerable#to_h
yhara (Yutaka HARA)

06/06/2018

10:21 AM Ruby Feature #11538 (Feedback): ensure variable syntax
yhara (Yutaka HARA)

06/07/2016

10:02 AM Ruby Bug #12467 (Third Party's Issue): Open mode 'a' does not work for Process.spawn on Windows
Example:
~~~ruby
spawn 'ruby -e "p Time.now"', [:out, :err] => ['log.txt', 'a']
sleep 1
spawn 'ruby -e "p Time.now"', [:out, :err] => ['log.txt', 'a']
sleep 1
p File.read('log.txt')
~~~
This program looks work correctly at fi...
yhara (Yutaka HARA)

09/11/2014

04:19 PM Ruby Feature #10208: Passing block to Enumerable#to_h
Marc-Andre Lafortune wrote:
> I completely agree that we need new methods to do this.
Thanks. One idea is name it Enumerable#hash_by (like max_by, group_by)
~~~
User = Struct.new(:id, :name)
users = [User.new(1, "Alice"), User.n...
yhara (Yutaka HARA)

09/06/2014

04:25 AM Ruby Feature #10208 (Closed): Passing block to Enumerable#to_h
Now that we can convert 'a list of [key, value] pairs' into a hash with Enumerable#to_h,
how about make it take a block to specify 'how to convert each element into a [key, value] pair'?
Example:
~~~
# Convert users into an {id ...
yhara (Yutaka HARA)

07/01/2013

09:07 PM Ruby Bug #8590 (Closed): Second call of https.get results in timeout
Hi,
In the following code, second call of https.get results in an error "Connection reset by peer - SSL_connect" after timeout.
---
require "net/https"
https = Net::HTTP.new("secure.nicovideo.jp", 443)
#https = Net::HTTP.new("ww...
yhara (Yutaka HARA)

04/09/2013

11:35 PM Ruby Bug #8242 (Closed): Fix rdoc of Range#bsearch
rdoc of Range#bsearch states "the elements must be sorted", but it does not make sense for Range.
Patch:
diff --git a/range.c b/range.c
index 1e4347e..fab0718 100644
--- a/range.c
+++ b/range.c
@@ -512,11 +512,10 @@ is_integer_...
yhara (Yutaka HARA)

02/27/2013

10:48 AM Ruby Bug #7975: Why __dir__, not __DIR__
That is becuase __dir__ is a method, whereas __FILE__ is not.
$ ruby -ve 'p Kernel.methods'
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.1]
[:sprintf, :format, :Integer, :Float, :String, :Array, :Hash, :warn, :r...
yhara (Yutaka HARA)

02/14/2013

06:59 PM Ruby Feature #4840 (Feedback): Allow returning from require
yhara (Yutaka HARA)

01/25/2013

06:29 PM Ruby Bug #7715: Lazy enumerators should want to stay lazy.
shugo (Shugo Maeda) wrote:
> I guess these methods were forgotten to change when lazy was implemented.
That's right :-( I thought these methods does not need to be overriden
because they return Enumerator, but they should return E...
yhara (Yutaka HARA)

Also available in: Atom