General

Profile

lenwood (Paul Martensen)

  • Login: lenwood
  • Registered on: 03/20/2018
  • Last sign in: 02/18/2022

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

03/31/2021

11:57 AM Ruby Bug #17765 (Feedback): Segmentation fault when calling String#gsub
We recently had a ruby segfault occuring while invoking `String#gsub`.
The line in the code looks like this:
``` ruby
def sanitize_for_prometheus(string_or_symbol)
reg = /[^a-zA-Z_0-9]/
string_or_symbol.to_s.downcase.gsub(r...
lenwood (Paul Martensen)

03/29/2018

05:41 AM Ruby Bug #14639: Array#map and lambda arity regression
That was incredibly quick. Thanks @nobu and @marcandre! :) lenwood (Paul Martensen)

03/28/2018

10:03 AM Ruby Bug #14639 (Closed): Array#map and lambda arity regression
From ruby 2.4.1 onward the following script breaks (ArgumentError):
~~~ ruby
print_three = ->(a, b, c) { puts [a, b, c] }
arr = [[1, 2, 3]]
arr.map(&print_three)
~~~
This now requires explicit destructuring:
~~~ ruby
prin...
lenwood (Paul Martensen)

Also available in: Atom