pry-byebug 3.8.0 → 3.10.1

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: a137892969eac20ea48ac02620df8aaf21837620c414e5a0325aac15f05dbf4b
4
- data.tar.gz: cce1bd93d1c513dc53df7399ee6feaf54c8be31dcf8bdc9220026c7a9c0cf0e0
3
+ metadata.gz: 3bff5ce219c6e5c0acf109be04d7c3e0232f16e9c2b459d8432b9b380b4c9ce5
4
+ data.tar.gz: 0b00bae23422f150b7ffb96e920ebc9ed87998344367c4d1f432f05976722b75
5
5
  SHA512:
6
- metadata.gz: 5f9582bfb0b2fc9851c61ec59cd27ee6ec522d371d03f20b2dd53def4dd4f6df40048386c6483bad3fcc541b172801317288b395714fd82d8b95f1190d9e21cf
7
- data.tar.gz: c6e3720e4710748ed2f2f46bab28b8ec6712b0e1dd5cfd5b63fa3a45f91b574f956800fae3efda3499c65516ad470aaac3267551169229ea57dd4306ffeda7f1
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][CircleCIBadge]][CircleCIURL]
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
@@ -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
- [CircleCIBadge]: https://circleci.com/gh/deivid-rodriguez/pry-byebug/tree/master.svg?style=shield
188
- [CircleCIURL]: https://circleci.com/gh/deivid-rodriguez/pry-byebug/tree/master
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(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
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "pry/commands/exit_all"
4
+
3
5
  module PryByebug
4
6
  #
5
7
  # Exit pry REPL with Byebug.stop
@@ -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 |eval_string, pry_instance|
5
+ Pry.config.control_d_handler = proc do |pry_instance|
6
6
  Byebug.stop if Byebug.stoppable?
7
7
 
8
- original_handler.call(eval_string, pry_instance)
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(text.bold(msg))
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
- "#{text.bold('Condition:')} #{breakpoint.expr}\n"
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
- #{text.bold(header)} #{breakpoint} (#{status}) #{condition}
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
- #{text.bold(header)}
69
- #{text.bold('-' * header.size)}
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
- _pry_.binding_stack.clear
13
+ pry_instance.binding_stack.clear
14
14
 
15
- throw :breakout_nav, action: action, options: options, pry: _pry_
15
+ throw :breakout_nav, action: action, options: options, pry: pry_instance
16
16
  end
17
17
  end
18
18
  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.8.0"
7
+ VERSION = "3.10.1"
8
8
  end
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.8.0
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: 2020-01-24 00:00:00.000000000 Z
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.10'
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.10'
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.4.0
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.1.2
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: []