pry-byebug 3.8.0 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +3 -3
- 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/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a9be5ab97e10c1247774626e9dee655956d904dfcbdb0e601af7eabcee668a4
|
4
|
+
data.tar.gz: a151143361a89b102f85102c95c7b86a4743413822e69fefcf67087a93cd29cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75a234974314f675ba12d4c435897541c40e63b67807f03239665c31f6ecef9b06a3456ba9d577b9d255e0b59efd55b9486280884c788519a63e783920226a7d
|
7
|
+
data.tar.gz: bc5e1fcc9a82f7ed703d9b9e6272e8f8026300398e4f9265f3e72e9d84d066fa861492ee2e7a6a35c91345444160bdf39bab957c6b638d9b33ab735059b722c9
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,20 @@
|
|
2
2
|
|
3
3
|
## Master (Unreleased)
|
4
4
|
|
5
|
+
## 3.9.0 (2020-03-21)
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
* Dependency on pry being too loose. Now breaking minor releases of pry won't affect pry-byebug users (#289).
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
* Support for pry 0.13.0 (#266).
|
14
|
+
|
15
|
+
### Removed
|
16
|
+
|
17
|
+
* Support for pry older than 0.13.0 (#289).
|
18
|
+
|
5
19
|
## 3.8.0 (2020-01-22)
|
6
20
|
|
7
21
|
### Fixed
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# pry-byebug
|
2
2
|
|
3
3
|
[![Version][VersionBadge]][VersionURL]
|
4
|
-
[![Build][
|
4
|
+
[![Build][CIBadge]][CIURL]
|
5
5
|
[![Inline docs][InchCIBadge]][InchCIURL]
|
6
6
|
[![Coverage][CoverageBadge]][CoverageURL]
|
7
7
|
|
@@ -184,8 +184,8 @@ Patches and bug reports are welcome.
|
|
184
184
|
|
185
185
|
[VersionBadge]: https://badge.fury.io/rb/pry-byebug.svg
|
186
186
|
[VersionURL]: http://badge.fury.io/rb/pry-byebug
|
187
|
-
[
|
188
|
-
[
|
187
|
+
[CIBadge]: https://github.com/deivid-rodriguez/pry-byebug/workflows/ubuntu/badge.svg?branch=master
|
188
|
+
[CIURL]: https://github.com/deivid-rodriguez/pry-byebug/actions?query=workflow%3Aubuntu
|
189
189
|
[InchCIBadge]: http://inch-ci.org/github/deivid-rodriguez/pry-byebug.svg?branch=master
|
190
190
|
[InchCIURL]: http://inch-ci.org/github/deivid-rodriguez/pry-byebug
|
191
191
|
[CoverageBadge]: https://api.codeclimate.com/v1/badges/a88e27809329c03af017/test_coverage
|
@@ -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/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-byebug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodríguez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: byebug
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 0.13.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 0.13.0
|
42
42
|
description: |-
|
43
43
|
Combine 'pry' with 'byebug'. Adds 'step', 'next', 'finish',
|
44
44
|
'continue' and 'break' commands to control execution.
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.2.0.pre1
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Fast debugging with Pry.
|