byebug 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/bin/byebug +3 -3
- data/lib/byebug.rb +1 -2
- data/lib/byebug/commands/control.rb +0 -6
- data/lib/byebug/commands/history.rb +1 -1
- data/lib/byebug/version.rb +1 -1
- data/test/restart_test.rb +0 -18
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 673bc1c2a7e1ea0dfb45206a0abc516a6793a82e
|
4
|
+
data.tar.gz: 67fbb724485010a1d70168c85ecbe21b10d78635
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c571328932929c3348666a7f6ad0cc677f667264df686f56c90cdb9b8953700eb4e5536ff068041fe2776bc9a5b41e949ee3ccb20ef293075608f3377bfaa246
|
7
|
+
data.tar.gz: b2ec5b7b581b4fbf9698fb01ebe471b683f1ee73b35f1060215c3739fbae2309c3b0ae1b21da0a863506c412f56a687333662b852048bc1fcf187478053bfe85
|
data/CHANGELOG.md
CHANGED
data/bin/byebug
CHANGED
@@ -187,10 +187,8 @@ end
|
|
187
187
|
opts = process_options(options)
|
188
188
|
|
189
189
|
begin
|
190
|
-
Byebug::ARGV = ARGV.clone if not defined? Byebug::ARGV
|
191
190
|
Byebug::BYEBUG_SCRIPT = File.expand_path(__FILE__)
|
192
191
|
Byebug::IGNORED_FILES << Byebug::BYEBUG_SCRIPT
|
193
|
-
Byebug::INITIAL_DIR = Dir.pwd
|
194
192
|
opts.parse! ARGV
|
195
193
|
rescue StandardError => e
|
196
194
|
puts opts
|
@@ -218,7 +216,9 @@ prog_script = whence_file(prog_script) unless File.exist?(prog_script)
|
|
218
216
|
Byebug::PROG_SCRIPT = File.expand_path prog_script
|
219
217
|
|
220
218
|
# Set up trace hook for byebug
|
221
|
-
Byebug.start
|
219
|
+
Byebug.start
|
220
|
+
|
221
|
+
Byebug.setting[:post_mortem] = options.post_mortem
|
222
222
|
|
223
223
|
# load initrc script (e.g. .byebugrc)
|
224
224
|
Byebug.run_init_script(StringIO.new) unless options.nx
|
data/lib/byebug.rb
CHANGED
@@ -17,9 +17,8 @@ module Byebug
|
|
17
17
|
# Configuration file used for startup commands. Default value is .byebugrc
|
18
18
|
INITFILE = '.byebugrc' unless defined?(INITFILE)
|
19
19
|
|
20
|
-
#
|
20
|
+
# Stores program being debugged to make restarts possible
|
21
21
|
PROG_SCRIPT = $0 unless defined?(PROG_SCRIPT)
|
22
|
-
INITIAL_DIR = Dir.pwd unless defined?(INITIAL_DIR)
|
23
22
|
|
24
23
|
class << self
|
25
24
|
|
@@ -7,7 +7,7 @@ module Byebug
|
|
7
7
|
def execute
|
8
8
|
if Byebug::Setting[:autosave]
|
9
9
|
if arg = @match[:num_cmds]
|
10
|
-
size = get_int(
|
10
|
+
size = get_int(arg, 'history', 1, Byebug::Setting[:histsize])
|
11
11
|
end
|
12
12
|
print Byebug::History.to_s(size || Byebug::Setting[:histsize])
|
13
13
|
else
|
data/lib/byebug/version.rb
CHANGED
data/test/restart_test.rb
CHANGED
@@ -86,23 +86,5 @@ module RestartTest
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
89
|
-
|
90
|
-
describe 'when can\'t change the dir to INITIAL_DIR' do
|
91
|
-
temporary_change_const Byebug, 'INITIAL_DIR', '/unexistent/path'
|
92
|
-
|
93
|
-
it 'must restart anyway' do
|
94
|
-
must_restart
|
95
|
-
enter 'restart'
|
96
|
-
debug_proc(@example)
|
97
|
-
end
|
98
|
-
|
99
|
-
it 'must show an error message ' do
|
100
|
-
must_restart
|
101
|
-
enter 'restart'
|
102
|
-
debug_proc(@example)
|
103
|
-
check_output_includes \
|
104
|
-
'Failed to change initial directory /unexistent/path'
|
105
|
-
end
|
106
|
-
end
|
107
89
|
end
|
108
90
|
end
|