General

Profile

Hanmac (Hans Mackowiak)

  • Email: hanmac@gmx.de
  • Registered on: 05/14/2011
  • Last connection: 06/25/2018

Issues

Activity

Today

09:29 AM Ruby trunk Bug #14862: Time.parse does not handle the time zone
Like i said, TimeZone is heavly OS depend and even DateTime.strptime might not return useful result!
you probably ...

06/21/2018

12:53 PM Ruby trunk Bug #14862: Time.parse does not handle the time zone

Quote:
~~~
%Z - Abbreviated time zone name or similar information. (OS dependent)
%Z doesn't identify th...

06/11/2018

03:26 PM Ruby trunk Feature #14680: Adding +@ and -@ to hash and array
we need to specify it, that `-@` and `+@` are not doing deep freeze (they don't freeze the values of hash or elements...

05/28/2018

03:25 PM Ruby trunk Bug #14791: String.sub wrong parsing of replacement with capturing group
need 5 or 6 (6 when using ")
~~~ ruby
"abc".sub(/(b)/, '\\\\\1') #=> "a\\bc"
"abc".sub(/(b)/, "\\\\\1") #=> "a\\...
02:01 PM Ruby trunk Bug #14791: String.sub wrong parsing of replacement with capturing group
read the Docs:
~~~
If replacement is a String it will be substituted for the matched text. It may contain back-re...
01:36 PM Ruby trunk Bug #14790: DateTime.iso8601 parses incorrect ISO8601
you mean the offset right?
https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators says that "±hhmm" is valid...
06:19 AM Ruby trunk Feature #14788: `Hash#keys` Could Accept a Block
I don't like it.
From `keys {|k| k.something }` I wouldn't know what it does with the keys, if they would select o...

05/23/2018

10:30 AM Ruby trunk Feature #14783: String#chars_at / String#bytes_at
@sos4nt
why does it return a new string instead of array of strings?
you might like this:
~~~ ruby
string =...

05/17/2018

09:43 AM Ruby trunk Bug #14765: Arguments passed to Open3.popen3() are not interpreted as wildcards
popen3 uses Process.spawn and this does show this in the docs:
commandline : command line string...

05/11/2018

10:20 AM Ruby trunk Feature #14249: Remove str[match_str]
I can tell you that the `str[match_str]` is used in many codes, but i can't find any example now
and no, it is dif...

Also available in: Atom