Skip to content

Commit

Permalink
PR #55: Keep pry-stack-explorer available with Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joallard authored Dec 31, 2020
2 parents a6c1eb6 + 9b98d93 commit 7563df2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ before_install:

rvm:
- 2.6.6
- 2.7.1
- 2.7.2
- 3.0.0
- ruby-head

matrix:
Expand Down
2 changes: 1 addition & 1 deletion pry-stack_explorer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|

s.specification_version = 4

s.add_runtime_dependency 'binding_of_caller', '~> 0.7'
s.add_runtime_dependency 'binding_of_caller', '~> 1.0'
s.add_runtime_dependency 'pry', '~> 0.13'

s.add_development_dependency 'rspec', '~> 3.9'
Expand Down
4 changes: 4 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
require file
end

if RUBY_VERSION >= '2.7.2'
# NOTE: https://bugs.ruby-lang.org/issues/17000
Warning[:deprecated] = true
end

# unless Object.const_defined? 'PryStackExplorer'
$:.unshift File.expand_path '../../lib', __FILE__
Expand Down

0 comments on commit 7563df2

Please sign in to comment.