General

Profile

sferik (Erik Berlin)

  • Login: sferik
  • Email: sferik@gmail.com
  • Registered on: 02/28/2011
  • Last sign in: 10/15/2026

Issues

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

Activity

Today

02:54 PM Ruby Feature #22446 (Open): Speed up several core methods in Array, Range, String, Integer, Float and Time
I've opened a set of pull requests that speed up commonly used core methods. This issue collects them in one place for discussion. Each PR stands on its own, adds its benchmark in the first commit, and has its own tests.
All of the nu...
sferik (Erik Berlin)

10/14/2026

02:54 AM Ruby Revision 1bf91309 (git): Fix Range#include? of an empty range of single characters
A range of single character Strings told that it includes its end
even when it is empty, since the end was not compared with the begin.
("z".."a").to_a #=> []
("z".."a").include?("a") #=> true
sferik (Erik Berlin)

10/13/2026

02:09 PM Ruby Bug #22432: Range#include? returns true for the end of an empty range of single-character Strings
@eightbitraptor: Thanks. I previously submitted a nearly identical fix for this in https://github.com/ruby/ruby/pull/19313. CI is already green there. sferik (Erik Berlin)
02:09 AM Ruby Bug #22432 (Open): Range#include? returns true for the end of an empty range of single-character Strings
A Range whose ends are both single ASCII characters reports that it includes its end even when the range is empty.
```ruby
r = "z".."a"
r.to_a #=> []
r.include?("a") #=> true
r.member?("a") #=> true
r.cover?("a") #=> ...
sferik (Erik Berlin)

08/18/2026

04:39 AM Ruby Feature #22250 (Feedback): Add an only: keyword to Coverage.peek_result
I am a maintainer of SimpleCov and working on adding a feature that attributes coverage to individual tests (see https://github.com/simplecov-ruby/simplecov/pull/1277). This feature works by work by diffing `Coverage.peek_result` snapsho... sferik (Erik Berlin)

07/17/2026

08:27 AM Ruby Bug #22203 (Open): Coverage (eval: true): branch entries for re-eval'd code are nondeterministically duplicated
When the same code is eval'd more than once against the same file path under `Coverage.start(branches: true, eval: true)`, the branch section of `Coverage.result` sometimes contains one condition entry with accumulated arm counts, and so... sferik (Erik Berlin)
07:59 AM Ruby Feature #22202 (Feedback): Add Coverage.branch_stub and Coverage.method_stub as companions to Coverage.line_stub
`Coverage.line_stub(path)` compiles a file and returns its line coverage array as if the file had been loaded but never run. SimpleCov uses this method to include never-loaded files in a report so that their lines count toward the denomi... sferik (Erik Berlin)

07/09/2026

08:20 AM Ruby Bug #22179: Coverage: redefined methods silently disappear from method Coverage.result after GC
Thanks for the quick response and proposed fix. I left one minor note on your patch but overall it looks good to me.
Waiting a month for the Ractor-local GC work is fine. Do you know whether this fix will land in 4.1.0 or a patch rele...
sferik (Erik Berlin)

07/05/2026

12:39 AM Ruby Bug #22179 (Closed): Coverage: redefined methods silently disappear from method Coverage.result after GC
When method coverage is enabled, a method that has been redefined vanishes from `Coverage.result` once GC runs. It is not reported as uncovered (count 0), it is missing altogether, so the set of methods reported for a file changes nondet... sferik (Erik Berlin)

03/17/2026

08:52 AM Ruby Revision 2602e3a9 (git): [ruby/net-http] Add existing RBS interface tests from ruby/rbs repo
https://github.com/ruby/net-http/commit/2842ca5539 sferik (Erik Berlin)

Also available in: Atom