General

Profile

bjfish (Brandon Fish)

  • Login: bjfish
  • Registered on: 11/05/2017
  • Last sign in: 03/15/2022

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 9 9

Activity

06/13/2022

08:43 PM Ruby Bug #18826 (Closed): Symbol#to_proc inconsistent, sometimes calls private methods
The following usage calls a protected method and prints "hello":
``` ruby
class Test
protected
def referenced_columns
puts "hello"
end
end
Test.new.tap(&:referenced_columns)
```
However, the follow...
bjfish (Brandon Fish)

03/30/2022

04:30 PM Ruby Bug #18670 (Closed): MatchData#[start, length] pads nil values when negative start is given

Example
``` ruby
irb(main):001:0> /(.)(.)(\d+)(\d)/.match("THX1138.")[-1, 10]
=> ["8", nil, nil, nil, nil, nil, nil, nil, nil, nil]
```
I would expect this to be consistent with String or Array for example:
``` ruby
irb(main):...
bjfish (Brandon Fish)

03/15/2022

02:15 PM Ruby Bug #18635 (Closed): Enumerable#inject without block/symbol will return values or raise LocalJumpError
The following shows inconsistent behavior when no block/symbol are provided to inject.
``` ruby
irb(main):002:0> {}.inject
=> nil
irb(main):003:0> {one: 1}.inject
=> [:one, 1]
irb(main):004:0> {one: 1, two: 2}.inject
(irb):4:in ...
bjfish (Brandon Fish)

06/10/2021

05:35 PM Ruby Bug #17945 (Closed): Date::Infinity comparison <=> with Float::INFINITY not symmetric
**Example**
``` ruby
require 'date'
p Float::INFINITY <=> Date::Infinity.new
p Date::Infinity.new <=> Float::INFINITY
```
**Expected Result**
I expected the comparison to have the same result when the order of values is switched...
bjfish (Brandon Fish)

05/26/2021

05:21 PM Ruby Bug #17889 (Closed): Enumerator::Lazy#with_index should return size
The following example shows `#size` returns `nil` when the `size` was provided to `new` as `3`.
**Example**
``` ruby
p Enumerator::Lazy.new([1, 2, 3], 3){|y, v| y << v}.with_index.size
```
**Expected Result**
``` ruby
3
```
*...
bjfish (Brandon Fish)

05/24/2021

05:08 PM Ruby Bug #17887 (Closed): Missed constant lookup after prepend
**Description**
The following shows that the constant lookup from B does not find the constant in the prepended M module. I would expect this lookup to behave like "B.include M" which does print the constant from module M.
**Examp...
bjfish (Brandon Fish)

03/24/2020

03:57 PM Ruby Bug #16738 (Closed): RbConfig::CONFIG["SDKROOT"] not frozen on macOS
The `RbConfig::CONFIG["SDKROOT"]` is not frozen on macOS when the `SDKROOT` environment variable is set which causes the kernel spec (https://github.com/ruby/ruby/blob/1b3339528c0804aa0e673bd3f15be8b087d17bd8/spec/ruby/library/rbconfig/r... bjfish (Brandon Fish)

02/06/2020

07:26 PM Ruby Bug #16612 (Closed): Enumerator::ArithmeticSequence#last with float range produces incorrect value
**Steps to reproduce**
``` shell
% ruby -e 'p ((0.24901079128550474)...(340.25008088980684)).step(34.00010700985213).last'
340.2500808898068
```
**Expected result**
Last value should match the value produced by the following:
...
bjfish (Brandon Fish)

11/05/2017

07:36 PM Ruby Bug #14083 (Rejected): Refinement in block calling incorrect method
Tested on ruby versions 2.3.4 and 2.4.1
When a refinement is used inside a block, the scope of the refinement is not ending when the block has ended. The following example illustrates the issue:
Example:
~~~ ruby
class Example
...
bjfish (Brandon Fish)

Also available in: Atom