General

Profile

taw (Tomasz Wegrzanowski)

Issues

Activity

02/04/2018

02:38 PM Ruby trunk Bug #14437: Integer == doesn't work with coerce since 2.4 (and != since 1.9). Should it?
nobu (Nobuyoshi Nakada) wrote:
> `==` and `!=` have never called `coerce`.
> Only `+`, `-`, `<`, `>` and so on.
...

02/03/2018

10:42 PM Ruby trunk Bug #14380: Expected transform_keys! to work just as transform_keys, but it doesn't
marcandre (Marc-Andre Lafortune) wrote:
> I raised this issue previously https://bugs.ruby-lang.org/issues/13583#not...
10:28 PM Ruby trunk Bug #14437 (Open): Integer == doesn't work with coerce since 2.4 (and != since 1.9). Should it?
Here's extracted test sample:
~~~ruby
class Item
def initialize(value)
@value = value
end
def coe...

01/21/2018

10:24 PM Ruby trunk Bug #14380: Expected transform_keys! to work just as transform_keys, but it doesn't
Oops, I meant to suggest this, accidentally said "values" instead of "keys" :
class Hash
def transform_...

01/20/2018

07:03 PM Ruby trunk Bug #14380 (Closed): Expected transform_keys! to work just as transform_keys, but it doesn't
This seriously violates the Principle of Least Surprise to me:
{1 => :a, -1 => :b}.transform_keys{|k| -k} #=> ...

08/10/2015

12:34 PM Ruby trunk Feature #11428 (Open): system/exec/etc. should to_s their argument to restore Pathname functionality as it was in 1.8
The safest way to interact with Unix shell with ruby is using `Pathname` and multi-argument system/exec/etc. commands...

08/02/2010

05:43 AM Ruby trunk Feature #3608: Enhancing Pathname#each_child to be lazy
> A problem of the lazy behaviour that is it opens a file descriptor when
> the block is called.
>
> If the lazy ...

07/25/2010

12:25 PM Ruby trunk Bug #3589: Converting Bignums to Float for equality checks is wrong
=begin
> > Integer 10 means exactly 10, not everything that would end up as 10 if rounded. 10 == 10.2 #=> false
> ...

07/24/2010

01:14 PM Ruby trunk Bug #3609 (Closed): Float Infinity comparisons in 1.9
=begin
The way <=> works on pretty much everything in Ruby
is that if a <=> b return 0, 1, or -1, it completely
...
10:27 AM Ruby trunk Feature #3608 (Assigned): Enhancing Pathname#each_child to be lazy
=begin
Right now it lists entire directory, then yields
every element, that is x.each_child(&b) means x.children....

Also available in: Atom