Closed madebydna closed 4 years ago
@madebydna Well, I'm doubting a bit if we should even fix this. Since ruby 2.4.x is even not supported anymore. But I'll add a testing matrix so we can at least get some insights.
And probably I'll fix this ;)
Thank you @StefSchenkelaars! Unfortunately we're currently tied to ruby 2.4 so it's great that we can still use this gem 🙂
I just noticed that the
RSpec::Github::NotificationDecorator
class uses the#delete_prefix
String method in its#path
method:I have Ruby 2.4.2 app and formatting a failing spec threw a
NoMethodError
:When I researched the problem I found that
#delete_prefix
is a String method introduced in Ruby 2.5. According to the gemspec, the min Ruby requirement is>= 2.3.0
.Perhaps we could replace the use of
delete_prefix
with a simplesub
call, or else update the Ruby requirement?