byebug 10.0.0 → 10.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: d1a9c68e68fbb9969eed83bdb9aeaafeb669f377bceb9ab0b5ec2d0b54c1467a
4
- data.tar.gz: 817a487ce04be154b49cfb8b56d54fa2c0f9385503de378044f2f8f0a34982ce
3
+ metadata.gz: af479e33dcc1cf0ca62e4afe7da8b4a5fa3f07b5ea759c34f6eecea1922cbbf6
4
+ data.tar.gz: 37c22c79cbb8923d51845403076eb5f186e851dc2b3aea7cedaffa0f4dd6c721
5
5
  SHA512:
6
- metadata.gz: 22559feb649630e9bccbedea078a964dcb4bbb08302a8e6835168937e338ebe1244c0efcc33fd6b259601d17906c20939f64dca9ed23572cb1470ec5bea6397a
7
- data.tar.gz: 29a0144c8404d6ef611f7f5b8d1ed22fe986efec0ed6bc20a1bff74b7e0a01904e3a707170e59032072f8cbb9f701db82d8012e7cfd399216472c7f1270bd335
6
+ metadata.gz: 2783b8ff14d13a14d0dbf20097571a8a8111cb6d9dce98ee1760fb1f7c798f50170a0711ed6ac5df066cc26035380e51021d6bc3d7bb492d20979cbbb1a60cca
7
+ data.tar.gz: ed8c931230b56c6d84869ca97bbf11b7cd76b29e438aac921e32c0aacab9bb70f77f7d59b8e327a30fbafb70359865b4aa1f57fab59aaeeab4e96fd58e150ef2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 10.0.1 - 2018-03-21
6
+
7
+ ### Fixed
8
+
9
+ * Error when using byebug with `debase` gem (#443, @tzmfreedom)
10
+
5
11
  ## 10.0.0 - 2018-01-26
6
12
 
7
13
  ### Changed
@@ -17,7 +23,7 @@
17
23
  * Some love & tests to remote debugging (#82).
18
24
  * `remote_byebug` shortcut to start the most common case for remote debugging (#141).
19
25
 
20
- ## Fixed
26
+ ### Fixed
21
27
 
22
28
  * Properly ignore ruby fullpath executable when passed to byebug script (#419).
23
29
  * Remote server crash when interrupting client (#141, #274).
data/README.md CHANGED
@@ -106,8 +106,8 @@ Command | Aliases | Subcommands
106
106
  `catch` | |
107
107
  `condition` | |
108
108
  `continue` | |
109
- `delete` | |
110
109
  `debug` | |
110
+ `delete` | |
111
111
  `disable` | | `breakpoints` `display`
112
112
  `display` | |
113
113
  `down` | |
@@ -118,6 +118,7 @@ Command | Aliases | Subcommands
118
118
  `help` | |
119
119
  `history` | |
120
120
  `info` | | `args` `breakpoints` `catch` `display` `file` `line` `program`
121
+ `interrupt` | |
121
122
  `irb` | |
122
123
  `kill` | |
123
124
  `list` | |
@@ -134,6 +135,7 @@ Command | Aliases | Subcommands
134
135
  `thread` | | `current` `list` `resume` `stop` `switch`
135
136
  `tracevar` | |
136
137
  `undisplay` | |
138
+ `untracevar`| |
137
139
  `up` | |
138
140
  `var` | | `all` `constant` `global` `instance` `local`
139
141
 
data/ext/byebug/byebug.c CHANGED
@@ -891,7 +891,7 @@ Init_byebug()
891
891
  rb_define_module_function(mByebug, "verbose=", Set_verbose, 1);
892
892
 
893
893
  Init_threads_table(mByebug);
894
- Init_context(mByebug);
894
+ Init_byebug_context(mByebug);
895
895
  Init_breakpoint(mByebug);
896
896
 
897
897
  rb_global_variable(&breakpoints);
data/ext/byebug/byebug.h CHANGED
@@ -124,8 +124,8 @@ extern VALUE threads;
124
124
  extern VALUE next_thread;
125
125
 
126
126
  /* functions from context.c */
127
- extern void Init_context(VALUE mByebug);
128
- extern VALUE context_create(VALUE thread);
127
+ extern void Init_byebug_context(VALUE mByebug);
128
+ extern VALUE byebug_context_create(VALUE thread);
129
129
  extern VALUE context_dup(debug_context_t *context);
130
130
  extern void reset_stepping_stop_points(debug_context_t *context);
131
131
  extern VALUE call_with_debug_inspector(struct call_with_inspection_data *data);
data/ext/byebug/context.c CHANGED
@@ -56,7 +56,7 @@ dc_stack_size(debug_context_t *context)
56
56
  }
57
57
 
58
58
  extern VALUE
59
- context_create(VALUE thread)
59
+ byebug_context_create(VALUE thread)
60
60
  {
61
61
  debug_context_t *context = ALLOC(debug_context_t);
62
62
 
@@ -642,7 +642,7 @@ dt_inherited(VALUE klass)
642
642
  * Byebug keeps a single instance of this class per thread.
643
643
  */
644
644
  void
645
- Init_context(VALUE mByebug)
645
+ Init_byebug_context(VALUE mByebug)
646
646
  {
647
647
  cContext = rb_define_class_under(mByebug, "Context", rb_cObject);
648
648
 
data/ext/byebug/threads.c CHANGED
@@ -118,7 +118,7 @@ thread_context_lookup(VALUE thread, VALUE *context)
118
118
 
119
119
  if (!st_lookup(t_tbl->tbl, thread, context) || !*context)
120
120
  {
121
- *context = context_create(thread);
121
+ *context = byebug_context_create(thread);
122
122
  st_insert(t_tbl->tbl, thread, *context);
123
123
  }
124
124
  }
@@ -39,8 +39,8 @@ module Byebug
39
39
  ENV["PATHEXT"] ? ENV["PATHEXT"].split(";") : [""]
40
40
  end
41
41
 
42
- def real_executable?(f)
43
- File.executable?(f) && !File.directory?(f)
42
+ def real_executable?(file)
43
+ File.executable?(file) && !File.directory?(file)
44
44
  end
45
45
  end
46
46
  end
@@ -63,22 +63,22 @@ module Byebug
63
63
  yield(e)
64
64
  end
65
65
 
66
- def msg(e)
67
- msg = Setting[:stack_on_error] ? error_msg(e) : warning_msg(e)
66
+ def msg(exception)
67
+ msg = Setting[:stack_on_error] ? error_msg(exception) : warning_msg(exception)
68
68
 
69
69
  pr("eval.exception", text_message: msg)
70
70
  end
71
71
 
72
- def error_msg(e)
73
- at = e.backtrace
72
+ def error_msg(exception)
73
+ at = exception.backtrace
74
74
 
75
- locations = ["#{at.shift}: #{warning_msg(e)}"]
75
+ locations = ["#{at.shift}: #{warning_msg(exception)}"]
76
76
  locations += at.map { |path| " from #{path}" }
77
77
  locations.join("\n")
78
78
  end
79
79
 
80
- def warning_msg(e)
81
- "#{e.class} Exception: #{e.message}"
80
+ def warning_msg(exception)
81
+ "#{exception.class} Exception: #{exception.message}"
82
82
  end
83
83
 
84
84
  #
@@ -67,8 +67,8 @@ module Byebug
67
67
  #
68
68
  # @param i [Integer] Integer to be converted in a proper positive index.
69
69
  #
70
- def index_from_start(i)
71
- i >= 0 ? i : context.stack_size + i
70
+ def index_from_start(index)
71
+ index >= 0 ? index : context.stack_size + index
72
72
  end
73
73
  end
74
74
  end
@@ -45,7 +45,7 @@ module Byebug
45
45
  def save
46
46
  n_cmds = Setting[:histsize] > size ? size : Setting[:histsize]
47
47
 
48
- open(Setting[:histfile], "w") do |file|
48
+ File.open(Setting[:histfile], "w") do |file|
49
49
  n_cmds.times { file.puts(pop) }
50
50
  end
51
51
 
@@ -91,10 +91,10 @@ module Byebug
91
91
  end
92
92
 
93
93
  #
94
- # Array of ids of the last n commands.
94
+ # Array of ids of the last +number+ commands.
95
95
  #
96
- def last_ids(n)
97
- (1 + size - n..size).to_a
96
+ def last_ids(number)
97
+ (1 + size - number..size).to_a
98
98
  end
99
99
 
100
100
  #
@@ -22,7 +22,7 @@ module Byebug
22
22
  lines.join
23
23
  end
24
24
 
25
- def print_variables(variables, *_)
25
+ def print_variables(variables, *_unused)
26
26
  print_collection("variable.variable", variables) do |(key, value), _|
27
27
  value = value.nil? ? "nil" : value.to_s
28
28
  if "#{key} = #{value}".size > Setting[:width]
@@ -18,8 +18,8 @@ module Byebug
18
18
  "Invoke IRB on every stop"
19
19
  end
20
20
 
21
- def value=(v)
22
- IrbCommand.always_run = v ? 1 : 0
21
+ def value=(val)
22
+ IrbCommand.always_run = val ? 1 : 0
23
23
  end
24
24
 
25
25
  def value
@@ -18,8 +18,8 @@ module Byebug
18
18
  "Invoke list command on every stop"
19
19
  end
20
20
 
21
- def value=(v)
22
- ListCommand.always_run = v ? 1 : 0
21
+ def value=(val)
22
+ ListCommand.always_run = val ? 1 : 0
23
23
  end
24
24
 
25
25
  def value
@@ -18,8 +18,8 @@ module Byebug
18
18
  "Invoke Pry on every stop"
19
19
  end
20
20
 
21
- def value=(v)
22
- PryCommand.always_run = v ? 1 : 0
21
+ def value=(val)
22
+ PryCommand.always_run = val ? 1 : 0
23
23
  end
24
24
 
25
25
  def value
@@ -11,8 +11,8 @@ module Byebug
11
11
  "Enable line execution tracing"
12
12
  end
13
13
 
14
- def value=(v)
15
- Byebug.tracing = v
14
+ def value=(val)
15
+ Byebug.tracing = val
16
16
  end
17
17
 
18
18
  def value
@@ -16,8 +16,8 @@ module Byebug
16
16
  "Enable/disable post-mortem mode"
17
17
  end
18
18
 
19
- def value=(v)
20
- Byebug.post_mortem = v
19
+ def value=(val)
20
+ Byebug.post_mortem = val
21
21
  end
22
22
 
23
23
  def value
@@ -4,5 +4,5 @@
4
4
  # Reopen main module to define the library version
5
5
  #
6
6
  module Byebug
7
- VERSION = "10.0.0".freeze
7
+ VERSION = "10.0.1".freeze
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: 10.0.0
4
+ version: 10.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: 2018-01-26 00:00:00.000000000 Z
13
+ date: 2018-03-21 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
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.7.4
195
+ rubygems_version: 2.7.6
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Ruby fast debugger - base + CLI