byebug 4.0.3 → 4.0.4

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
  SHA1:
3
- metadata.gz: b2fadb53e1523391bfa7eca7a878644a1aabe6a9
4
- data.tar.gz: 249dd281387180ab622f99b9c98d0d93dde62265
3
+ metadata.gz: 0d5196fdd3dc5f4325d6a7dc03edc403c3f54adc
4
+ data.tar.gz: b99153ca69aa352475c74692bd4cf0092b7fafa6
5
5
  SHA512:
6
- metadata.gz: 718de1ee939c6308b2984f55c1f6c6299a9012a3be84b464ac33e10a037f4433c24812e8f03eed300267114c4d624ce9f53ed7c0590d8fa5ff83590b4dfd80e8
7
- data.tar.gz: a3c3cb01bfc595aee3b4b8348fd8e8ad6bccd67b9c02dedcd095a57c0c193750b16d5f30fcec2b682334264ea4e171e03f79c0e5d6b9dade15714bef57407927
6
+ metadata.gz: aab4f3f7ed3f5da8c08b024b8b616fbbb67020cf652e7d9474b83fef9b0abeacee16a19016fd47fb3c4117071a4b1e9d6b0f491c3862626ea58351973bc06912
7
+ data.tar.gz: 760d9cd65c9b2a7afad5c7f47d079dc84a1e3b0d0af754099998513a3d6a2ff835fcc661bdab3d0d8100cb0884d0e8d03a902d73763266e1761c7473fe733e09
@@ -1,18 +1,22 @@
1
+ ## 4.0.4 - 2015-03-27
2
+ ### Fixed
3
+ * #127
4
+
1
5
  ## 4.0.3 - 2015-03-19
2
6
  ### Fixed
3
7
  * Unused variable warning in context.c
4
8
 
5
- ## 4.0.2 - 2014-03-16
9
+ ## 4.0.2 - 2015-03-16
6
10
  ### Fixed
7
11
  * Removed `rb-readline` as a dependency and show a help message whenever
8
12
  requiring readline fails instead (#118)
9
13
 
10
- ## 4.0.1 - 2014-03-13
14
+ ## 4.0.1 - 2015-03-13
11
15
  ### Fixed
12
16
  * .yml files needed for printers support were missing from the release... :S
13
17
  * Add `rb-readline` as a dependency (#118)
14
18
 
15
- ## 4.0.0 - 2014-03-13
19
+ ## 4.0.0 - 2015-03-13
16
20
  ### Added
17
21
  - `untracevar` command that stops tracing a global variable.
18
22
  - Window CI build through AppVeyor.
@@ -603,22 +603,16 @@ Stop(VALUE self)
603
603
  static VALUE
604
604
  Start(VALUE self)
605
605
  {
606
- VALUE result;
606
+ if (IS_STARTED)
607
+ return Qfalse;
607
608
 
608
- UNUSED(self);
609
+ catchpoints = rb_hash_new();
609
610
 
610
- if (IS_STARTED)
611
- result = Qfalse;
612
- else
613
- {
614
- catchpoints = rb_hash_new();
615
- threads = create_threads_table();
611
+ threads = create_threads_table();
616
612
 
617
- register_tracepoints(self);
618
- result = Qtrue;
619
- }
613
+ register_tracepoints(self);
620
614
 
621
- return result;
615
+ return Qtrue;
622
616
  }
623
617
 
624
618
  /*
@@ -6,13 +6,15 @@ module Byebug
6
6
  # Enters byebug right before (or right after if _before_ is false) return
7
7
  # events occur. Before entering byebug the init script is read.
8
8
  #
9
- def self.attach(steps_out, before)
9
+ def self.attach
10
+ return errmsg('Byebug already started. Ignoring `byebug` call.') if started?
11
+
10
12
  setup_cmd_line_args
11
13
 
12
14
  start
13
15
  run_init_script
14
16
 
15
- current_context.step_out(steps_out, before)
17
+ current_context.step_out(2, true)
16
18
  end
17
19
  end
18
20
 
@@ -22,8 +24,8 @@ end
22
24
  # Dropping a `byebug` call anywhere in your code, you get a debug prompt.
23
25
  #
24
26
  module Kernel
25
- def byebug(steps_out = 1, before = true)
26
- Byebug.attach(steps_out + 1, before)
27
+ def byebug
28
+ Byebug.attach
27
29
  end
28
30
 
29
31
  alias_method :debugger, :byebug
@@ -32,7 +32,8 @@ module Byebug
32
32
 
33
33
  def on_change(name, value, stop)
34
34
  puts pr('trace.messages.on_change', name: name, value: value)
35
- byebug(1, false) if stop
35
+
36
+ @state.context.step_out(1, false) if stop
36
37
  end
37
38
 
38
39
  class << self
@@ -1,3 +1,3 @@
1
1
  module Byebug
2
- VERSION = '4.0.3'
2
+ VERSION = '4.0.4'
3
3
  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: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rodriguez
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-03-19 00:00:00.000000000 Z
13
+ date: 2015-03-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: columnize