pry-byebug 3.8.0 → 3.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +5 -8
- data/lib/byebug/processors/pry_processor.rb +2 -10
- data/lib/pry-byebug/commands/exit_all.rb +2 -0
- data/lib/pry-byebug/control_d_handler.rb +2 -2
- data/lib/pry-byebug/helpers/breakpoints.rb +5 -5
- data/lib/pry-byebug/helpers/navigation.rb +2 -2
- data/lib/pry-byebug/pry_ext.rb +5 -3
- data/lib/pry-byebug/version.rb +1 -1
- metadata +17 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bff5ce219c6e5c0acf109be04d7c3e0232f16e9c2b459d8432b9b380b4c9ce5
|
4
|
+
data.tar.gz: 0b00bae23422f150b7ffb96e920ebc9ed87998344367c4d1f432f05976722b75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee481a6d35a160364db2eae31e36ad80fc708dc708f9b31f1daa574d150b6b2a25ca4610a342b79ffed646f3b02086d0df726bd191f87c645140214f53e88b0
|
7
|
+
data.tar.gz: 6908e1d26692ceffc98ba54664622ef3b5abbcdd6a72962424e52d34712df708f17da8e886e6f61a9df46f12eeda558acbb908437652c7b06b1ad8258b26dcef
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,36 @@
|
|
2
2
|
|
3
3
|
## Master (Unreleased)
|
4
4
|
|
5
|
+
## 3.10.1 (2022-08-16)
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
* Rails console loading a debugger REPL instead of the standard Pry REPL (#392)
|
10
|
+
|
11
|
+
## 3.10.0 (2022-08-15)
|
12
|
+
|
13
|
+
### Added
|
14
|
+
|
15
|
+
* Support for pry 0.14 (#346, #386). NOTE: pry-byebug now needs to be explicitly required from `~/.pryrc` since plugin autoloading has been removed from Pry.
|
16
|
+
|
17
|
+
### Removed
|
18
|
+
|
19
|
+
* Support for Ruby 2.4, 2.5, and 2.6. Pry-byebug no longer installs on these platforms (#380).
|
20
|
+
|
21
|
+
## 3.9.0 (2020-03-21)
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
|
25
|
+
* Dependency on pry being too loose. Now breaking minor releases of pry won't affect pry-byebug users (#289).
|
26
|
+
|
27
|
+
### Added
|
28
|
+
|
29
|
+
* Support for pry 0.13.0 (#266).
|
30
|
+
|
31
|
+
### Removed
|
32
|
+
|
33
|
+
* Support for pry older than 0.13.0 (#289).
|
34
|
+
|
5
35
|
## 3.8.0 (2020-01-22)
|
6
36
|
|
7
37
|
### Fixed
|
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# pry-byebug
|
2
2
|
|
3
3
|
[![Version][VersionBadge]][VersionURL]
|
4
|
-
[![Build][
|
4
|
+
[![Build][CIBadge]][CIURL]
|
5
5
|
[![Inline docs][InchCIBadge]][InchCIURL]
|
6
|
-
[![Coverage][CoverageBadge]][CoverageURL]
|
7
6
|
|
8
7
|
Adds step-by-step debugging and stack navigation capabilities to [pry] using
|
9
8
|
[byebug].
|
@@ -96,7 +95,7 @@ your `~/.pryrc` file:
|
|
96
95
|
```ruby
|
97
96
|
# Hit Enter to repeat last command
|
98
97
|
Pry::Commands.command /^$/, "repeat last command" do
|
99
|
-
|
98
|
+
pry_instance.run_command Pry.history.to_a.last
|
100
99
|
end
|
101
100
|
```
|
102
101
|
|
@@ -176,7 +175,7 @@ Tidelift will coordinate the fix and disclosure.
|
|
176
175
|
|
177
176
|
Patches and bug reports are welcome.
|
178
177
|
|
179
|
-
[pry]:
|
178
|
+
[pry]: https://pry.github.io
|
180
179
|
[byebug]: https://github.com/deivid-rodriguez/byebug
|
181
180
|
[pry-debugger]: https://github.com/nixme/pry-debugger
|
182
181
|
[pry-nav]: https://github.com/nixme/pry-nav
|
@@ -184,9 +183,7 @@ Patches and bug reports are welcome.
|
|
184
183
|
|
185
184
|
[VersionBadge]: https://badge.fury.io/rb/pry-byebug.svg
|
186
185
|
[VersionURL]: http://badge.fury.io/rb/pry-byebug
|
187
|
-
[
|
188
|
-
[
|
186
|
+
[CIBadge]: https://github.com/deivid-rodriguez/pry-byebug/workflows/ubuntu/badge.svg?branch=master
|
187
|
+
[CIURL]: https://github.com/deivid-rodriguez/pry-byebug/actions?query=workflow%3Aubuntu
|
189
188
|
[InchCIBadge]: http://inch-ci.org/github/deivid-rodriguez/pry-byebug.svg?branch=master
|
190
189
|
[InchCIURL]: http://inch-ci.org/github/deivid-rodriguez/pry-byebug
|
191
|
-
[CoverageBadge]: https://api.codeclimate.com/v1/badges/a88e27809329c03af017/test_coverage
|
192
|
-
[CoverageURL]: https://codeclimate.com/github/deivid-rodriguez/pry-byebug/test_coverage
|
@@ -17,7 +17,7 @@ module Byebug
|
|
17
17
|
Byebug.start
|
18
18
|
Setting[:autolist] = false
|
19
19
|
Context.processor = self
|
20
|
-
Byebug.current_context.step_out(
|
20
|
+
Byebug.current_context.step_out(5, true)
|
21
21
|
end
|
22
22
|
|
23
23
|
#
|
@@ -72,14 +72,6 @@ module Byebug
|
|
72
72
|
resume_pry
|
73
73
|
end
|
74
74
|
|
75
|
-
#
|
76
|
-
# Called when the debugger wants to stop right before the end of a class
|
77
|
-
# definition
|
78
|
-
#
|
79
|
-
def at_end
|
80
|
-
resume_pry
|
81
|
-
end
|
82
|
-
|
83
75
|
#
|
84
76
|
# Called when a breakpoint is hit. Note that `at_line`` is called
|
85
77
|
# inmediately after with the context's `stop_reason == :breakpoint`, so we
|
@@ -114,7 +106,7 @@ module Byebug
|
|
114
106
|
if defined?(@pry) && @pry
|
115
107
|
@pry.repl(new_binding)
|
116
108
|
else
|
117
|
-
@pry = Pry.start_without_pry_byebug(new_binding)
|
109
|
+
@pry = Pry::REPL.start_without_pry_byebug(target: new_binding)
|
118
110
|
end
|
119
111
|
end
|
120
112
|
end
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
original_handler = Pry.config.control_d_handler
|
4
4
|
|
5
|
-
Pry.config.control_d_handler = proc do |
|
5
|
+
Pry.config.control_d_handler = proc do |pry_instance|
|
6
6
|
Byebug.stop if Byebug.stoppable?
|
7
7
|
|
8
|
-
original_handler.call(
|
8
|
+
original_handler.call(pry_instance)
|
9
9
|
end
|
@@ -19,7 +19,7 @@ module PryByebug
|
|
19
19
|
# Prints a message with bold font.
|
20
20
|
#
|
21
21
|
def bold_puts(msg)
|
22
|
-
output.puts(
|
22
|
+
output.puts(bold(msg))
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
@@ -32,14 +32,14 @@ module PryByebug
|
|
32
32
|
status = breakpoint.enabled? ? "Enabled" : "Disabled"
|
33
33
|
code = breakpoint.source_code.with_line_numbers.to_s
|
34
34
|
condition = if breakpoint.expr
|
35
|
-
"#{
|
35
|
+
"#{bold('Condition:')} #{breakpoint.expr}\n"
|
36
36
|
else
|
37
37
|
""
|
38
38
|
end
|
39
39
|
|
40
40
|
output.puts <<-BREAKPOINT.gsub(/ {8}/, "")
|
41
41
|
|
42
|
-
#{
|
42
|
+
#{bold(header)} #{breakpoint} (#{status}) #{condition}
|
43
43
|
|
44
44
|
#{code}
|
45
45
|
|
@@ -65,8 +65,8 @@ module PryByebug
|
|
65
65
|
|
66
66
|
output.puts <<-BREAKPOINTS.gsub(/ {8}/, "")
|
67
67
|
|
68
|
-
#{
|
69
|
-
#{
|
68
|
+
#{bold(header)}
|
69
|
+
#{bold('-' * header.size)}
|
70
70
|
|
71
71
|
BREAKPOINTS
|
72
72
|
end
|
@@ -10,9 +10,9 @@ module PryByebug
|
|
10
10
|
# Breaks out of the REPL loop and signals tracer
|
11
11
|
#
|
12
12
|
def breakout_navigation(action, options = {})
|
13
|
-
|
13
|
+
pry_instance.binding_stack.clear
|
14
14
|
|
15
|
-
throw :breakout_nav, action: action, options: options, pry:
|
15
|
+
throw :breakout_nav, action: action, options: options, pry: pry_instance
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/lib/pry-byebug/pry_ext.rb
CHANGED
@@ -2,15 +2,17 @@
|
|
2
2
|
|
3
3
|
require "byebug/processors/pry_processor"
|
4
4
|
|
5
|
-
class << Pry
|
5
|
+
class << Pry::REPL
|
6
6
|
alias start_without_pry_byebug start
|
7
7
|
|
8
|
-
def start_with_pry_byebug(
|
8
|
+
def start_with_pry_byebug(options = {})
|
9
|
+
target = options[:target]
|
10
|
+
|
9
11
|
if target.is_a?(Binding) && PryByebug.file_context?(target)
|
10
12
|
Byebug::PryProcessor.start unless ENV["DISABLE_PRY"]
|
11
13
|
else
|
12
14
|
# No need for the tracer unless we have a file context to step through
|
13
|
-
start_without_pry_byebug(
|
15
|
+
start_without_pry_byebug(options)
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
data/lib/pry-byebug/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-byebug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodríguez
|
8
8
|
- Gopal Patel
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: byebug
|
@@ -29,16 +29,22 @@ dependencies:
|
|
29
29
|
name: pry
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0.13'
|
35
|
+
- - "<"
|
33
36
|
- !ruby/object:Gem::Version
|
34
|
-
version: '0.
|
37
|
+
version: '0.15'
|
35
38
|
type: :runtime
|
36
39
|
prerelease: false
|
37
40
|
version_requirements: !ruby/object:Gem::Requirement
|
38
41
|
requirements:
|
39
|
-
- - "
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0.13'
|
45
|
+
- - "<"
|
40
46
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0.
|
47
|
+
version: '0.15'
|
42
48
|
description: |-
|
43
49
|
Combine 'pry' with 'byebug'. Adds 'step', 'next', 'finish',
|
44
50
|
'continue' and 'break' commands to control execution.
|
@@ -80,7 +86,7 @@ homepage: https://github.com/deivid-rodriguez/pry-byebug
|
|
80
86
|
licenses:
|
81
87
|
- MIT
|
82
88
|
metadata: {}
|
83
|
-
post_install_message:
|
89
|
+
post_install_message:
|
84
90
|
rdoc_options: []
|
85
91
|
require_paths:
|
86
92
|
- lib
|
@@ -88,15 +94,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
94
|
requirements:
|
89
95
|
- - ">="
|
90
96
|
- !ruby/object:Gem::Version
|
91
|
-
version: 2.
|
97
|
+
version: 2.7.0
|
92
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
99
|
requirements:
|
94
100
|
- - ">="
|
95
101
|
- !ruby/object:Gem::Version
|
96
102
|
version: '0'
|
97
103
|
requirements: []
|
98
|
-
rubygems_version: 3.
|
99
|
-
signing_key:
|
104
|
+
rubygems_version: 3.3.20
|
105
|
+
signing_key:
|
100
106
|
specification_version: 4
|
101
107
|
summary: Fast debugging with Pry.
|
102
108
|
test_files: []
|