General

Profile

dkubb (Dan Kubb)

  • Login: dkubb
  • Email: dan.kubb@gmail.com
  • Registered on: 03/03/2012
  • Last sign in: 04/14/2015

Issues

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

Activity

03/17/2012

12:48 AM Ruby Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
> > [1, 2, 3].flat_map { |n| n }.to_a
> ...
I was writing rubyspec for Enumerable::Lazy#flat_map had the same behaviour as Enumerable#flat_map (besides the obvious differences in return value). Here is what I was using as a basis: htt...
dkubb (Dan Kubb)

03/16/2012

03:23 PM Ruby Bug #6157 (Closed): Enumerable::Lazy#select does not handle multiple yield arguments
When the #each method yields more than one argument, Enumerable::Lazy#select only accepts the first argument, e.g.:
class MultiYield
include Enumerable ...
dkubb (Dan Kubb)
02:53 PM Ruby Bug #6155 (Closed): Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
The following statement will raise "NoMethodError: undefined method `each' for 1:Fixnum":
[1, 2, 3].lazy.flat_map { |n| n }.to_a
It appears as if Enumerable::Lazy#flat_map is calling #each on every element, regardless of whether ...
dkubb (Dan Kubb)

03/03/2012

05:42 PM Ruby Bug #6110 (Rejected): #respond_to? returns true on 1.9.3 and false on ruby-head
Under ruby-head, when calling #respond_to? on another object of the same type false is always returned, even though the method can be called. However, this returns true under ruby 1.9.3.
Attached is a test that reproduces the problem.
dkubb (Dan Kubb)

Also available in: Atom