General

Profile

Hanmac (Hans Mackowiak)

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

Issues

Activity

08/10/2018

01:09 PM Ruby trunk Feature #14609: `Kernel#p` without args shows the receiver
ko1 (Koichi Sasada) wrote:
> Hanmac: do you rely on this behavior?
Me? not so much, in general i don't trust the ...

07/05/2018

07:28 AM Ruby trunk Feature #14887: Array#delete_if does not use #delete
@shevegen : the problem is that:
* `delete_if` can't call `delete` for the given reason of duplicates. the example w...

07/03/2018

08:05 AM Ruby trunk Bug #14891: Pathname#join has different behaviour to File.join

More examples:
~~~ ruby
Pathname.new('/a').join('c', 'b').to_s #=> "/a/c/b"
Pathname.new('/a').join('/c', 'b')...

07/02/2018

07:45 AM Ruby trunk Feature #14887: Array#delete_if does not use #delete
I don't think there is a way:
~~~ ruby
a = [1,2,3,2,5]
a.delete_if {|x| x == 2}
a #=> [1,3,5]
~~~
this might ...

06/29/2018

08:19 AM Ruby trunk Bug #14879: Time#+ and Time#- do not preserve receiver's utc_offset if ENV['TZ'] is modified after receiver is created
the problem might not be the add or substract
what does this show for you?
`TZ=UTC ruby -e 'require "time"; puts ...

06/25/2018

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...

Also available in: Atom