General

Profile

sorah Shota Fukumori

  • Email: her@sorah.jp
  • Registered on: 02/15/2010
  • Last connection: 01/12/2016

Issues

Projects

Activity

01/20/2016

11:25 AM Ruby trunk Feature #11999: MatchData#to_h to get a Hash from named captures
that makes sense for me.

01/19/2016

08:51 AM Ruby trunk Feature #11999: MatchData#to_h to get a Hash from named captures
Looks like it's the same problem as I noted here https://bugs.ruby-lang.org/issues/11999#note-2

01/18/2016

04:53 PM Ruby trunk Feature #11999: MatchData#to_h to get a Hash from named captures
> is not always able to convert to Hash/Map.
Ah -- agreed. How about MatchData#named_captures?
I can't think t...
08:57 AM Ruby trunk Feature #11999: MatchData#to_h to get a Hash from named captures
Consideration is behavior for multiple captures with same group name:
~~~
/(?<a>.)(?<a>.)/
~~~
MatchData#[] r...
06:37 AM Ruby trunk Feature #11999 (Open): MatchData#to_h to get a Hash from named captures
~~~
class MatchData
def to_h
self.names.map { |n| [n, self[n]] }.to_h
end
end
p '12'.match(/(?<a>.)(?...

01/12/2016

11:23 AM Ruby trunk Revision 53512: correction to proper word
11:19 AM Ruby trunk Revision 53511: * lib/forwardable.rb: Convert given accessors to String.
r53381 changed to accept only Symbol or String for accessors, but
there are several rubygems that pass classes (e.g...

01/01/2016

08:26 AM Ruby trunk Misc #11876: Scheduled maintenance 2016/01/01
Shota Fukumori wrote:
> - HTTP + pgp clearsign: http://sorah.jp/sorah-key.txt.asc
Correction: http://sorah.jp/ssh...
08:24 AM Ruby trunk Misc #11876: Scheduled maintenance 2016/01/01
Could you update my ssh keys too? (svn id sorah)
- HTTPS: https://s3-ap-northeast-1.amazonaws.com/sorah.jp/ssh-key...

12/24/2015

06:35 AM Ruby trunk Revision 53271: * tool/vcs.rb (IO.popen): Refactor. Avoid assigning in condition.

Also available in: Atom