pry / pry-stack_explorer

Walk the stack in a Pry session
Other
455 stars 28 forks source link

Silence warning about __FILE__ and __LINE__ under ruby 2.7 #48

Closed clintoncwolfe closed 4 years ago

clintoncwolfe commented 4 years ago

Fixes #43 by taking a similar approach to that taken by pry-byebug, making a helper module and then calling it when FILE or LINE would otherwise be referenced.

Signed-off-by: Clinton Wolfe clintoncwolfe@gmail.com

joallard commented 4 years ago

Just saw this after spending a few hours on #49 😅

This would make sense for users still on Ruby 2.5. Is this a need on your side? I wouldn't mind making a branch if so.

(Edit: Just added a forked branch for 2.5. Let me know whether we can still use this.)

clintoncwolfe commented 4 years ago

Yes, we need ruby 2.5-2.7 support

joallard commented 4 years ago

@clintoncwolfe 2.5 users should be able to use v0.4.11