forthrin
forthrin
## Is your feature request related to a problem? Please describe. Can't pipe snippets to rubocop without specifying `-s` plus dummy filename. ## Describe the solution you'd like Since https://github.com/rubocop/rubocop/pull/11857...
Prior yields same as latter, but gets no breathalyzer. Not sure if bug or a feature request. ## Steps to reproduce the problem ```ruby pp 4.times.each_slice(2).to_a.to_h pp 4.times.each_slice(2).to_h ``` ##...
## Is your feature request related to a problem? Please describe. ```ruby n = lambda do print 'n' next end b = lambda do print 'b' break end 2.times do...
## Is your feature request related to a problem? Please describe. ```ruby def get(url, headers:) puts url pp headers puts end agent = { 'User-Agent' => 'Ruby' } # ORIGINAL...
Interested in this client as is a simple alternative. Can it do the following? ### Torrents Flag or auto-delete those: 1. Completed (100%) 2. Stale (after n minutes never had...
### Describe the Bug `WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"` ### To Reproduce ```bash $ tiv image.heic ``` ### Expected...
## Steps to reproduce the problem ```ruby puts 1 if foo !~ /fo./ ``` ## Actual behavior ```Use `match?` instead of `!~` when `MatchData` is not used. [[Correctable] Performance/RegexpMatch]``` **Pitfall**:...
## Steps to reproduce the problem ```ruby puts 'fox'.match(/(f)/) ? $1 : '' puts $1 if 'cat'.match(/(c)/) 'rabbit'.match(/(r)/) puts $1 exit unless 'squirrel'.match(/(s)/) puts $1 ``` ## Expected behavior MatchData...
## Steps to reproduce the problem ```ruby items = %w[A B] one = items.map { it.match(/A/)&.to_s } # Use `String#include?` instead of a regex match with literal-only pattern. [[Correctable] Performance/StringInclude]...
```bash $ ruby -w -renumerable/statistics -e '' /opt/homebrew/lib/ruby/gems/3.4.0/gems/enumerable-statistics-2.0.8/ext/enumerable/statistics/extension.bundle: warning: method redefined; discarding old sum /opt/homebrew/lib/ruby/gems/3.4.0/gems/enumerable-statistics-2.0.8/ext/enumerable/statistics/extension.bundle: warning: method redefined; discarding old sum ```