pry-byebug 3.9.0 → 3.10.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: a5cd1dcba0a316d9abf2842900170c4adffc517777c67916bc7f49744669c1cc
4
+ data.tar.gz: c2eb031ee7d4998df0bc1f0c2a3d8af303cd0b2956bfbafdd1832ed799603a60
5
5
  SHA512:
6
- metadata.gz: 75a234974314f675ba12d4c435897541c40e63b67807f03239665c31f6ecef9b06a3456ba9d577b9d255e0b59efd55b9486280884c788519a63e783920226a7d
7
- data.tar.gz: bc5e1fcc9a82f7ed703d9b9e6272e8f8026300398e4f9265f3e72e9d84d066fa861492ee2e7a6a35c91345444160bdf39bab957c6b638d9b33ab735059b722c9
6
+ metadata.gz: 050f9701d0c5286e7a7b18ee3e7aafda441fc0a2f72e55c4c8828e08eb68362d54906e99e6d43ef60e469ebb959d6bc6e54ddd097b8e38922560d6026eb612eb
7
+ data.tar.gz: 3cb6fcb16a10b239ae30b90ec8e71d9c90c1960b14c8b56a89733bb810e15181a9914da34f66457381c574d74ffb601a1a35940aa0ebc8a2f0c185ec51cfe9d6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 3.10.0 (2022-08-15)
6
+
7
+ ### Added
8
+
9
+ * 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.
10
+
11
+ ### Removed
12
+
13
+ * Support for Ruby 2.4, 2.5, and 2.6. Pry-byebug no longer installs on these platforms (#380).
14
+
5
15
  ## 3.9.0 (2020-03-21)
6
16
 
7
17
  ### 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
 
@@ -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,16 +2,11 @@
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 = {})
9
- if target.is_a?(Binding) && PryByebug.file_context?(target)
10
- Byebug::PryProcessor.start unless ENV["DISABLE_PRY"]
11
- else
12
- # No need for the tracer unless we have a file context to step through
13
- start_without_pry_byebug(target, options)
14
- end
8
+ def start_with_pry_byebug(_ = {})
9
+ Byebug::PryProcessor.start unless ENV["DISABLE_PRY"]
15
10
  end
16
11
 
17
12
  alias start start_with_pry_byebug
@@ -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.10.0"
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.9.0
4
+ version: 3.10.0
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-03-21 00:00:00.000000000 Z
12
+ date: 2022-08-15 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.13.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.13.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.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.2.0.pre1
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: []