byebug 11.0.0 → 11.0.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: 0ac4b67c6bc928d3408d5c46666efbb4c5f4da7202b3d1bc1c647205de169b1e
4
- data.tar.gz: 8490c6705f7d121d7dc89cb92ab2ea3314519f8b75772014f6dd40ae7cf00105
3
+ metadata.gz: e0977c7550ab065319699ac26a4bbf84eda25ff1da43e1c2ab2d14ef3be67f8f
4
+ data.tar.gz: d89b05376496476d549165b1f885599412c9957cf9fe5ee75c069e910879b63f
5
5
  SHA512:
6
- metadata.gz: 5562a48f2c5454e5510cf5fb3a84d62fd7a38b051c8406fc3e21154d0db0e567b2e98e15f370a137ee79ed480d047e3e060c9f538af0423dac35c576abd0e94d
7
- data.tar.gz: 1a21df7467bf7f9f96935bca3bc9e640e030be73bdf50602d8cd9dcc33a529c9da6f4f0e5d009f0b332af751001e02ac5183956c81a8b0ddf9362810e3147f40
6
+ metadata.gz: 15904b4b6f3c8734933a26fc55f79d3f13fe97061634dfed642e0638ae2ebbcdbff40ab1c9a85f9ab285e008c5a9b8bfe05d895281e5d51648981a00e463accf
7
+ data.tar.gz: 4ba5fb7e27009f4eab22799fe22bd0c998a135cc0075c35471ece93e871e10ef70d4ba901f32093c4c4e87a423d9d3da5cfefeb1f661830ac95e6867cc1d57eb
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [11.0.1] - 2019-03-18
6
+
7
+ ### Fixed
8
+
9
+ * [#546](https://github.com/deivid-rodriguez/byebug/pull/546): `continue!` to ignore further `byebug` calls.
10
+ * [#545](https://github.com/deivid-rodriguez/byebug/pull/545): `skip` autolisting code for intermediate skipped breakpoints.
11
+
5
12
  ## [11.0.0] - 2019-02-15
6
13
 
7
14
  ### Added
@@ -782,6 +789,7 @@
782
789
  * Initial release.
783
790
 
784
791
  [Unreleased]: https://github.com/deivid-rodriguez/byebug/compare/v10.0.2...HEAD
792
+ [11.0.1]: https://github.com/deivid-rodriguez/byebug/compare/v11.0.0...v11.0.1
785
793
  [11.0.0]: https://github.com/deivid-rodriguez/byebug/compare/v10.0.2...v11.0.0
786
794
  [10.0.2]: https://github.com/deivid-rodriguez/byebug/compare/v10.0.1...v10.0.2
787
795
  [10.0.1]: https://github.com/deivid-rodriguez/byebug/compare/v10.0.0...v10.0.1
@@ -8,8 +8,6 @@ module Byebug
8
8
  # Starts byebug, and stops at the first line of user's code.
9
9
  #
10
10
  def self.attach
11
- require "byebug/core"
12
-
13
11
  unless started?
14
12
  self.mode = :attached
15
13
 
@@ -35,7 +33,9 @@ end
35
33
  #
36
34
  module Kernel
37
35
  def byebug
38
- Byebug.attach
36
+ require "byebug/core"
37
+
38
+ Byebug.attach unless Byebug.mode == :off
39
39
  end
40
40
 
41
41
  def remote_byebug(host = "localhost", port = nil)
@@ -47,6 +47,7 @@ module Byebug
47
47
 
48
48
  processor.proceed!
49
49
 
50
+ Byebug.mode = :off if unconditionally?
50
51
  Byebug.stop if unconditionally? || Byebug.stoppable?
51
52
  end
52
53
 
@@ -13,6 +13,7 @@ module Byebug
13
13
 
14
14
  class << self
15
15
  attr_writer :file_line, :file_path
16
+ attr_reader :previous_autolist
16
17
 
17
18
  def file_line
18
19
  @file_line ||= 0
@@ -21,6 +22,16 @@ module Byebug
21
22
  def file_path
22
23
  @file_path ||= ""
23
24
  end
25
+
26
+ def setup_autolist(value)
27
+ @previous_autolist = ListCommand.always_run
28
+ ListCommand.always_run = value
29
+ end
30
+
31
+ def restore_autolist
32
+ ListCommand.always_run = @previous_autolist
33
+ @previous_autolist = nil
34
+ end
24
35
  end
25
36
 
26
37
  def self.regexp
@@ -41,6 +52,7 @@ module Byebug
41
52
 
42
53
  def initialize_attributes
43
54
  self.class.always_run = 2
55
+ self.class.setup_autolist(0)
44
56
  self.class.file_path = frame.file
45
57
  self.class.file_line = frame.line
46
58
  end
@@ -51,6 +63,8 @@ module Byebug
51
63
 
52
64
  def reset_attributes
53
65
  self.class.always_run = 0
66
+ ListCommand.new(processor).execute if self.class.previous_autolist == 1
67
+ self.class.restore_autolist
54
68
  end
55
69
 
56
70
  def auto_run
@@ -36,6 +36,7 @@ module Byebug
36
36
  #
37
37
  # * :attached => Attached to a running program through the `byebug` method.
38
38
  # * :standalone => Started through `byebug` script.
39
+ # * :off => Ignoring any `byebug` method calls.
39
40
  #
40
41
  attr_accessor :mode
41
42
 
@@ -4,5 +4,5 @@
4
4
  # Reopen main module to define the library version
5
5
  #
6
6
  module Byebug
7
- VERSION = "11.0.0"
7
+ VERSION = "11.0.1"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: byebug
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.0
4
+ version: 11.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rodriguez
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-02-15 00:00:00.000000000 Z
13
+ date: 2019-03-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
- rubygems_version: 3.0.1
195
+ rubygems_version: 3.0.3
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Ruby fast debugger - base + CLI