byebug 9.0.0 → 9.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16e31cc0cae3293a64954196439c341be71e5c7d
4
- data.tar.gz: 996d91bb3201f6153aadd970d67e26d961bc6c3f
3
+ metadata.gz: 071784fca53d0ea070218f3424abbb336001924d
4
+ data.tar.gz: 8b6c75eb8356a99d200a43a319b72637074b75ef
5
5
  SHA512:
6
- metadata.gz: 7fb01282ca96613f63bc74580c444782b4c5eccf7f14e60b28717e78fb5a94b37fbf764b0f13f6fb1987e65849ffe3714bf2bda0ac68d10c559881c1fec0806f
7
- data.tar.gz: bba886ccb2e0d8c52364f2d3933483c2b9de52c12f4a9644ec2c02974e9f9b21bea22cb9caa81ec3547aee597f3e59d8b810605ca189cd6fcb3c1a90c4110478
6
+ metadata.gz: cb2f5b013a5a66b859434a7eaabe5058ae35e833592bec69121ff8838b7750b96f861e9dc4945f7009297093aee7178e546a42fb75dc5058c4153b2fe94bd461
7
+ data.tar.gz: 0fe21ef4e87202de725f8344f40af58141f533ccb4980c78eb8af644cbb1c57af529b37d70e3addf0b673528991cfb36220120356783964c9d85854f4223dad3
@@ -2,9 +2,13 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 9.0.1 - 2016-05-14
6
+
7
+ * `quit` never exiting when remote debugging (#201).
8
+
5
9
  ## 9.0.0 - 2016-05-11
6
10
 
7
- ## Fixed
11
+ ### Fixed
8
12
 
9
13
  * `irb` command unintentionally changing $PROGRAM_NAME.
10
14
  * `pry` command failing.
@@ -1,10 +1,10 @@
1
- ## Contributing to Byebug
1
+ # CONTRIBUTING
2
2
 
3
3
  Please note that this project is released with a [Contributor Code of
4
4
  Conduct](code_of_conduct.md). By participating in this project you agree to
5
5
  abide by its terms.
6
6
 
7
- ### Bug Reports
7
+ ## Bug Reports
8
8
 
9
9
  * Try to reproduce the issue against the latest revision. There might be
10
10
  unrealeased work that fixes your problem!
@@ -14,7 +14,7 @@ abide by its terms.
14
14
  * Include the behavior you observed along with the behavior you expected,
15
15
  and why you expected it.
16
16
 
17
- ### Development dependencies
17
+ ## Development dependencies
18
18
 
19
19
  * `Byebug` depends on Ruby's TracePoint API provided by `ruby-core`. This is a
20
20
  young API and a lot of bugs have been recently corrected, so make sure you
@@ -24,7 +24,7 @@ abide by its terms.
24
24
  * Running `bundle install` inside a local clone of `byebug` will get development
25
25
  dependencies installed.
26
26
 
27
- ### Running the test suite
27
+ ## Running the test suite
28
28
 
29
29
  * Make sure you compile the C-extension using `bundle exec rake compile`.
30
30
  Otherwise you won't be able to use `byebug`.
@@ -45,7 +45,7 @@ abide by its terms.
45
45
  example: `script/minitest_runner.rb Byebug::BreakAtLinesTestCase
46
46
  test_catch_removes_specific_catchpoint`
47
47
 
48
- ### Code style
48
+ ## Code style
49
49
 
50
50
  * Byebug uses [overcommit][] to enforce code style. Install the git hooks using
51
51
  `bundle exec overcommit --install`. They will review your changes before they
@@ -53,7 +53,7 @@ abide by its terms.
53
53
 
54
54
  [overcommit]: https://github.com/brigade/overcommit/
55
55
 
56
- ### Byebug as a C-extension
56
+ ## Byebug as a C-extension
57
57
 
58
58
  Byebug is a gem developed as a C-extension. The debugger internal's
59
59
  functionality is implemented in C (the interaction with the TracePoint API).
data/GUIDE.md CHANGED
@@ -1,3 +1,7 @@
1
+ # GUIDE
2
+
3
+ ## Introduction
4
+
1
5
  ### First Steps
2
6
 
3
7
  A handful of commands are enough to get started using `byebug`. The following
@@ -610,10 +614,6 @@ already been done when you compile the program (or in Perl when it scans in the
610
614
  program). In this section we'll consider some other things that might throw off
611
615
  new users to Ruby who are familiar with other languages and debugging in them.
612
616
 
613
- * Bouncing Around in Blocks (iterators)
614
- * No Parameter Values in a Call Stack
615
- * Lines You Can Stop At
616
-
617
617
  #### Bouncing Around in Blocks (iterators)
618
618
 
619
619
  When debugging languages with coroutines like Python and Ruby, a method call may
@@ -277,7 +277,7 @@ brkpt_initialize(VALUE self, VALUE source, VALUE pos, VALUE expr)
277
277
  return Qnil;
278
278
  }
279
279
 
280
- int
280
+ static int
281
281
  filename_cmp_impl(VALUE source, char *file)
282
282
  {
283
283
  char *source_ptr, *file_ptr;
@@ -309,7 +309,7 @@ filename_cmp_impl(VALUE source, char *file)
309
309
  return 1;
310
310
  }
311
311
 
312
- int
312
+ static int
313
313
  filename_cmp(VALUE source, char *file)
314
314
  {
315
315
  #ifdef _WIN32
@@ -332,7 +332,7 @@ filename_cmp(VALUE source, char *file)
332
332
  #endif
333
333
  }
334
334
 
335
- int
335
+ static int
336
336
  classname_cmp(VALUE name, VALUE klass)
337
337
  {
338
338
  VALUE mod_name;
@@ -93,7 +93,6 @@ typedef struct
93
93
  } breakpoint_t;
94
94
 
95
95
  /* functions from locker.c */
96
- extern int is_in_locked(VALUE thread_id);
97
96
  extern void add_to_locked(VALUE thread);
98
97
  extern VALUE pop_from_locked();
99
98
  extern void remove_from_locked(VALUE thread);
@@ -13,7 +13,7 @@ typedef struct locked_thread_t
13
13
  static locked_thread_t *locked_head = NULL;
14
14
  static locked_thread_t *locked_tail = NULL;
15
15
 
16
- extern int
16
+ static int
17
17
  is_in_locked(VALUE thread)
18
18
  {
19
19
  locked_thread_t *node;
@@ -7,7 +7,7 @@ static VALUE cThreadsTable;
7
7
  VALUE next_thread = Qnil;
8
8
 
9
9
  /* To allow thread syncronization, we must stop threads when debugging */
10
- VALUE locker = Qnil;
10
+ static VALUE locker = Qnil;
11
11
 
12
12
  static int
13
13
  t_tbl_mark_keyvalue(st_data_t key, st_data_t value, st_data_t tbl)
@@ -97,7 +97,7 @@ is_living_thread(VALUE thread)
97
97
  /*
98
98
  * Checks threads table for dead/finished threads.
99
99
  */
100
- void
100
+ static void
101
101
  cleanup_dead_threads(void)
102
102
  {
103
103
  threads_table_t *t_tbl;
@@ -74,27 +74,26 @@ module Byebug
74
74
  # Connects to the remote byebug
75
75
  #
76
76
  def start_client(host = 'localhost', port = PORT)
77
- Context.interface = LocalInterface.new
77
+ interface = LocalInterface.new
78
78
  puts 'Connecting to byebug server...'
79
79
  socket = TCPSocket.new(host, port)
80
80
  puts 'Connected.'
81
81
 
82
- catch(:exit) do
83
- while (line = socket.gets)
84
- case line
85
- when /^PROMPT (.*)$/
86
- input = Context.interface.read_command(Regexp.last_match[1])
87
- throw :exit unless input
88
- socket.puts input
89
- when /^CONFIRM (.*)$/
90
- input = Context.interface.confirm(Regexp.last_match[1])
91
- throw :exit unless input
92
- socket.puts input
93
- else
94
- puts line
95
- end
82
+ while (line = socket.gets)
83
+ case line
84
+ when /^PROMPT (.*)$/
85
+ input = interface.read_command(Regexp.last_match[1])
86
+ break unless input
87
+ socket.puts input
88
+ when /^CONFIRM (.*)$/
89
+ input = interface.readline(Regexp.last_match[1])
90
+ break unless input
91
+ socket.puts input
92
+ else
93
+ puts line
96
94
  end
97
95
  end
96
+
98
97
  socket.close
99
98
  end
100
99
 
@@ -3,5 +3,5 @@
3
3
  # Reopen main module to define the library version
4
4
  #
5
5
  module Byebug
6
- VERSION = '9.0.0'.freeze
6
+ VERSION = '9.0.1'.freeze
7
7
  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: 9.0.0
4
+ version: 9.0.1
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: 2016-05-11 00:00:00.000000000 Z
13
+ date: 2016-05-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler