Skip to content

Commit

Permalink
Depend upon 'runger_byebug' rather than 'byebug' (#5)
Browse files Browse the repository at this point in the history
`runger_byebug` is more up-to-date. `byebug` hasn't been released since
2020-04-23.
  • Loading branch information
davidrunger authored Feb 4, 2025
1 parent a170ed1 commit 3ac27ef
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}

- uses: actions/cache@v1
- uses: actions/cache@v4
with:
path: ${{ env.BUNDLE_PATH }}
key: dependencies-${{ hashFiles('Gemfile.lock') }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Unreleased

- Rename primary branch from `master` to `main`.
- Depend upon `runger_byebug` rather than `byebug`.

## 3.10.1 (2022-08-16)

Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ group :development do
gem "rake", "~> 13.0"

gem "chandler", "0.9.0"
gem "mdl", "0.11.0"
gem "minitest", "~> 5.14"
gem "minitest-bisect", "~> 1.5"
gem "rubocop", "~> 1.0"
Expand Down
25 changes: 2 additions & 23 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,19 @@ PATH
remote: .
specs:
pry-byebug (3.10.1)
byebug (>= 11.0)
pry (>= 0.13)
runger_byebug (>= 11.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.2)
byebug (11.1.3)
chandler (0.9.0)
netrc
octokit (>= 2.2.0)
chef-utils (18.6.2)
concurrent-ruby
coderay (1.1.3)
concurrent-ruby (1.3.5)
drb (2.2.1)
faraday (2.12.2)
faraday-net_http (>= 2.0, < 3.5)
Expand All @@ -27,18 +23,8 @@ GEM
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
json (2.9.1)
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.4)
logger (1.6.5)
mdl (0.11.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1)
mixlib-cli (~> 2.1, >= 2.1.1)
mixlib-config (>= 2.2.1, < 4)
mixlib-shellout
method_source (1.1.0)
minitest (5.25.4)
minitest-bisect (1.7.0)
Expand All @@ -47,11 +33,6 @@ GEM
minitest-server (1.0.8)
drb (~> 2.0)
minitest (~> 5.16)
mixlib-cli (2.1.8)
mixlib-config (3.0.27)
tomlrb
mixlib-shellout (3.3.6)
chef-utils
net-http (0.6.0)
uri
netrc (0.11.0)
Expand All @@ -71,7 +52,6 @@ GEM
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.10.0)
rexml (3.4.0)
rubocop (1.71.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand All @@ -85,10 +65,10 @@ GEM
rubocop-ast (1.38.0)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
runger_byebug (11.2.0)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
tomlrb (2.0.3)
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
Expand All @@ -99,7 +79,6 @@ PLATFORMS

DEPENDENCIES
chandler (= 0.9.0)
mdl (= 0.11.0)
minitest (~> 5.14)
minitest-bisect (~> 1.5)
pry-byebug!
Expand Down
9 changes: 1 addition & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,4 @@ end

RuboCop::RakeTask.new

desc "Checks markdown code style with Markdownlint"
task :mdl do
puts "Running mdl..."

abort unless system("mdl", *Dir.glob("*.md"))
end

task default: %i[test rubocop mdl]
task default: %i[test rubocop]
2 changes: 1 addition & 1 deletion pry-byebug.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ Gem::Specification.new do |gem|
# Dependencies
gem.required_ruby_version = ">= 2.7.0"

gem.add_runtime_dependency "byebug", ">= 11.0"
gem.add_runtime_dependency "pry", ">= 0.13"
gem.add_runtime_dependency "runger_byebug", ">= 11.0"
end
30 changes: 0 additions & 30 deletions test/commands/frames_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ class FramesTest < Minitest::Spec

after { clean_remove_const(:FramesExample) }

describe "Up command" do
let(:input) { InputTester.new("up", "down") }

before do
redirect_pry_io(input, output) { load test_file("frames") }
end

it "shows current line" do
_(output.string).must_match(/=> \s*8: \s*method_b/)
end
end

describe "Down command" do
let(:input) { InputTester.new("up", "down") }

Expand Down Expand Up @@ -56,22 +44,4 @@ class FramesTest < Minitest::Spec
end
end
end

describe "Backtrace command" do
let(:input) { InputTester.new("backtrace") }

before do
@stdout, @stderr = capture_subprocess_io do
redirect_pry_io(input) { load test_file("frames") }
end
end

it "shows a backtrace" do
frames = @stdout.split("\n")

assert_match(/\A--> #0 FramesExample\.method_b at/, frames[0])
assert_match(/\A #1 FramesExample\.method_a at/, frames[1])
assert_match(/\A #2 <top \(required\)> at/, frames[2])
end
end
end

0 comments on commit 3ac27ef

Please sign in to comment.