Skip to content

Commit

Permalink
Drop support for Rubies that reached their End of Life (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Aug 15, 2022
1 parent f1658dc commit dd7501d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
ruby: [2.4.9, 2.5.7, 2.6.5, 2.7.0]
ruby: [2.7.0]

env:
BUNDLE_PATH: .bundle
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AllCops:
DisplayCopNames: true
DisplayStyleGuide: true

TargetRubyVersion: 2.4
TargetRubyVersion: 2.7

# Department 'Bundler' (4):
Bundler/DuplicatedGem:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* Support for pry 0.14.0 (#346).

### Removed

* Support for Ruby 2.4, 2.5, and 2.6. Pry-byebug no longer installs on these platforms (#380).

## 3.9.0 (2020-03-21)

### Fixed
Expand Down
8 changes: 0 additions & 8 deletions lib/byebug/processors/pry_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ def at_return(_return_value)
resume_pry
end

#
# Called when the debugger wants to stop right before the end of a class
# definition
#
def at_end
resume_pry
end

#
# Called when a breakpoint is hit. Note that `at_line`` is called
# inmediately after with the context's `stop_reason == :breakpoint`, so we
Expand Down
2 changes: 1 addition & 1 deletion pry-byebug.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
gem.executables = []

# Dependencies
gem.required_ruby_version = ">= 2.4.0"
gem.required_ruby_version = ">= 2.7.0"

gem.add_runtime_dependency "byebug", "~> 11.0"
gem.add_runtime_dependency "pry", ">= 0.13", "< 0.15"
Expand Down
4 changes: 2 additions & 2 deletions test/commands/breakpoints_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def setup

@input.add("break Break1Example#a")
redirect_pry_io(@input, @output) { load test_file("break1") }
@line = RUBY_VERSION >= "2.5.0" ? 8 : 7
@line = 8
@regexp = / Breakpoint (?<id>\d+): Break1Example#a \(Enabled\)/
end

Expand All @@ -86,7 +86,7 @@ def setup

@input.add("break Break1Example#c!")
redirect_pry_io(@input, @output) { load test_file("break1") }
@line = RUBY_VERSION >= "2.5.0" ? 18 : 17
@line = 18
@regexp = / Breakpoint (?<id>\d+): Break1Example#c! \(Enabled\)/
end

Expand Down

0 comments on commit dd7501d

Please sign in to comment.