pry-byebug 3.9.0 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a9be5ab97e10c1247774626e9dee655956d904dfcbdb0e601af7eabcee668a4
4
- data.tar.gz: a151143361a89b102f85102c95c7b86a4743413822e69fefcf67087a93cd29cf
3
+ metadata.gz: 25a9ef05b2fe6a57d1bfe0766a2b7cac3ee195bbc29bc2fb52e34027b16cf3b5
4
+ data.tar.gz: 1ebb3a1690c01e527508044fecae602b9397739cb370dc446a0e4e34ccc14974
5
5
  SHA512:
6
- metadata.gz: 75a234974314f675ba12d4c435897541c40e63b67807f03239665c31f6ecef9b06a3456ba9d577b9d255e0b59efd55b9486280884c788519a63e783920226a7d
7
- data.tar.gz: bc5e1fcc9a82f7ed703d9b9e6272e8f8026300398e4f9265f3e72e9d84d066fa861492ee2e7a6a35c91345444160bdf39bab957c6b638d9b33ab735059b722c9
6
+ metadata.gz: 14828ebd7abf49235bf76e64825d32fc93ce75691b2031c909d98bddfb2bacdfead85b239ab9a23346d8ecca04c3db4a1141c42807ab8dc82a64e3206cafc00b
7
+ data.tar.gz: 3e30a2036522e2fc706754e00d9985c82172c4d76b61e4f96bbdc241232bfb4cb7e98064522a6c810f365ebbfd7078b1a90218fcf346937fc267d328793e009a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 3.11.0 (2025-03-28)
6
+
7
+ ### Added
8
+
9
+ * Byebug 12 compatibility, with Ruby 3.1, 3.2, and 3.3 support (#434).
10
+ * Support for pry 0.15 (#428).
11
+
12
+ ### Removed
13
+
14
+ * Support for Ruby 2.7, and 3.0. Pry-byebug no longer installs on these platforms (#433).
15
+
16
+ ## 3.10.1 (2022-08-16)
17
+
18
+ ### Fixed
19
+
20
+ * Rails console loading a debugger REPL instead of the standard Pry REPL (#392)
21
+
22
+ ## 3.10.0 (2022-08-15)
23
+
24
+ ### Added
25
+
26
+ * 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.
27
+
28
+ ### Removed
29
+
30
+ * Support for Ruby 2.4, 2.5, and 2.6. Pry-byebug no longer installs on these platforms (#380).
31
+
5
32
  ## 3.9.0 (2020-03-21)
6
33
 
7
34
  ### Fixed
data/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  [![Version][VersionBadge]][VersionURL]
4
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
- _pry_.run_command Pry.history.to_a.last
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]: http://pry.github.com
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
@@ -188,5 +187,3 @@ Patches and bug reports are welcome.
188
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(4, true)
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,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(target = TOPLEVEL_BINDING, options = {})
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(target, options)
15
+ start_without_pry_byebug(options)
14
16
  end
15
17
  end
16
18
 
@@ -4,5 +4,5 @@
4
4
  # Main container module for Pry-Byebug functionality
5
5
  #
6
6
  module PryByebug
7
- VERSION = "3.9.0"
7
+ VERSION = "3.11.0"
8
8
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-byebug
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.0
4
+ version: 3.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rodríguez
8
8
  - Gopal Patel
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2020-03-21 00:00:00.000000000 Z
11
+ date: 2025-03-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: byebug
@@ -17,28 +16,34 @@ dependencies:
17
16
  requirements:
18
17
  - - "~>"
19
18
  - !ruby/object:Gem::Version
20
- version: '11.0'
19
+ version: '12.0'
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
24
  - - "~>"
26
25
  - !ruby/object:Gem::Version
27
- version: '11.0'
26
+ version: '12.0'
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: pry
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
- - - "~>"
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0.13'
34
+ - - "<"
33
35
  - !ruby/object:Gem::Version
34
- version: 0.13.0
36
+ version: '0.16'
35
37
  type: :runtime
36
38
  prerelease: false
37
39
  version_requirements: !ruby/object:Gem::Requirement
38
40
  requirements:
39
- - - "~>"
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0.13'
44
+ - - "<"
40
45
  - !ruby/object:Gem::Version
41
- version: 0.13.0
46
+ version: '0.16'
42
47
  description: |-
43
48
  Combine 'pry' with 'byebug'. Adds 'step', 'next', 'finish',
44
49
  'continue' and 'break' commands to control execution.
@@ -80,7 +85,6 @@ homepage: https://github.com/deivid-rodriguez/pry-byebug
80
85
  licenses:
81
86
  - MIT
82
87
  metadata: {}
83
- post_install_message:
84
88
  rdoc_options: []
85
89
  require_paths:
86
90
  - lib
@@ -88,15 +92,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
92
  requirements:
89
93
  - - ">="
90
94
  - !ruby/object:Gem::Version
91
- version: 2.4.0
95
+ version: 3.1.0
92
96
  required_rubygems_version: !ruby/object:Gem::Requirement
93
97
  requirements:
94
98
  - - ">="
95
99
  - !ruby/object:Gem::Version
96
100
  version: '0'
97
101
  requirements: []
98
- rubygems_version: 3.2.0.pre1
99
- signing_key:
102
+ rubygems_version: 3.6.6
100
103
  specification_version: 4
101
104
  summary: Fast debugging with Pry.
102
105
  test_files: []