pry-byebug 3.8.0 → 3.9.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: a137892969eac20ea48ac02620df8aaf21837620c414e5a0325aac15f05dbf4b
4
- data.tar.gz: cce1bd93d1c513dc53df7399ee6feaf54c8be31dcf8bdc9220026c7a9c0cf0e0
3
+ metadata.gz: 5a9be5ab97e10c1247774626e9dee655956d904dfcbdb0e601af7eabcee668a4
4
+ data.tar.gz: a151143361a89b102f85102c95c7b86a4743413822e69fefcf67087a93cd29cf
5
5
  SHA512:
6
- metadata.gz: 5f9582bfb0b2fc9851c61ec59cd27ee6ec522d371d03f20b2dd53def4dd4f6df40048386c6483bad3fcc541b172801317288b395714fd82d8b95f1190d9e21cf
7
- data.tar.gz: c6e3720e4710748ed2f2f46bab28b8ec6712b0e1dd5cfd5b63fa3a45f91b574f956800fae3efda3499c65516ad470aaac3267551169229ea57dd4306ffeda7f1
6
+ metadata.gz: 75a234974314f675ba12d4c435897541c40e63b67807f03239665c31f6ecef9b06a3456ba9d577b9d255e0b59efd55b9486280884c788519a63e783920226a7d
7
+ data.tar.gz: bc5e1fcc9a82f7ed703d9b9e6272e8f8026300398e4f9265f3e72e9d84d066fa861492ee2e7a6a35c91345444160bdf39bab957c6b638d9b33ab735059b722c9
@@ -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][CircleCIBadge]][CircleCIURL]
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
- [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
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
@@ -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
@@ -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.9.0"
8
8
  end
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.8.0
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-01-24 00:00:00.000000000 Z
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: '0.10'
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: '0.10'
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.1.2
98
+ rubygems_version: 3.2.0.pre1
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Fast debugging with Pry.