bruno (Bruno Sutic)
- Login: bruno
- Registered on: 08/25/2018
- Last sign in: 03/03/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
03/03/2019
-
10:33 AM Ruby Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
- Hi,
we're on "Ubuntu 14.04.5 LTS", kernel version "3.13.0-165".
```
2019-03-03T05:00:00.798Z 12950 TID-ors73fmw2 WARN: RuntimeError: failed to get urandom
2019-03-03T05:00:00.798Z 12950 TID-ors73fmw2 WARN: /usr/lib/ruby/2.5.0/sec...
09/26/2018
-
10:24 AM Ruby Bug #15027: When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
- Hi,
let me know if you have any further feedback on this one?
09/01/2018
-
04:14 PM Ruby Bug #15027: When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
- Thank you for the code @nobu. I have applied Nobu's suggestion, please find updated patch in the attach.
> If you can override each, you can override other methods.
This is true, but doing this is very un-ruby-ish. Also, I don't t...
08/25/2018
-
05:29 PM Ruby Bug #15027 (Rejected): When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
- ### Bug
Here's the code snippet that should reproduce the problem:
~~~ ruby
class Foo < Struct.new(:bar)
def each(&block)
[:baz, :qux].each(&block)
end
end
foo = Foo.new(:foo)
foo.map(&:itself) # => [:baz, :qux] #...