debugger 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ ## 1.6.1
2
+ * Bump ruby_core_source dependency
3
+
1
4
  ## 1.6.0
2
5
  * Make autoeval and autolist true the default
3
6
  * Bump ruby_core_source dependency
data/README.md CHANGED
@@ -131,13 +131,12 @@ Let's keep this working for the ruby community!
131
131
 
132
132
  * Thanks to the original authors: Kent Sibilev and Mark Moseley
133
133
  * Thanks to astashov for bringing in a new and improved test suite, adding printers support and various bug fixes.
134
- * Thanks to windwiny for porting to 2.0.0
135
- * Contributors: ericpromislow, jnimety, adammck, hipe, FooBarWidget, aghull
134
+ * Thanks to windwiny for starting the port to 2.0.0
135
+ * Contributors: ericpromislow, jnimety, adammck, hipe, FooBarWidget, aghull, deivid-rodriguez, tessi
136
136
  * Fork started on awesome @relevance fridays!
137
137
 
138
138
  ## TODO
139
139
 
140
- * Fix test/test-*.rb
141
140
  * Port some of bashdb's docs
142
141
  * Use ~/.debuggerrc and bin/debugger and gracefully deprecate rdebug*
143
142
  * Work with others willing to tackle jruby, rubinius or windows support
@@ -20,7 +20,7 @@ handling, bindings for stack frames among other things.
20
20
  s.extensions << "ext/ruby_debug/extconf.rb"
21
21
  s.executables = ["rdebug"]
22
22
  s.add_dependency "columnize", ">= 0.3.1"
23
- s.add_dependency "debugger-ruby_core_source", '~> 1.2.1'
23
+ s.add_dependency "debugger-ruby_core_source", '~> 1.2.3'
24
24
  s.add_dependency "debugger-linecache", '~> 1.2.0'
25
25
  s.add_development_dependency 'rake', '~> 0.9.2.2'
26
26
  s.add_development_dependency 'rake-compiler', '~> 0.8.0'
@@ -1,5 +1,5 @@
1
1
  module Debugger
2
2
  # TODO: remove version from C ext
3
3
  send :remove_const, :VERSION if const_defined? :VERSION
4
- VERSION = '1.6.0'
4
+ VERSION = '1.6.1'
5
5
  end
@@ -29,9 +29,11 @@ describe "Eval Command" do
29
29
  end
30
30
 
31
31
  it "must not eval the expression if no matching command is found if toogled" do
32
- enter 'set noautoeval', '[5,6,7].inject(&:+)'
33
- debug_file 'eval'
34
- check_output_doesnt_include "18"
32
+ temporary_change_hash_value(Debugger::Command.settings, :autoeval, false) do
33
+ enter '[5,6,7].inject(&:+)'
34
+ debug_file 'eval'
35
+ check_output_doesnt_include "18"
36
+ end
35
37
  end
36
38
  end
37
39
 
@@ -38,6 +38,8 @@ describe "Finish Command" do
38
38
 
39
39
 
40
40
  describe "Post Mortem" do
41
+ temporary_change_hash_value(Debugger::Command.settings, :autoeval, false)
42
+
41
43
  it "must not work in post-mortem mode" do
42
44
  enter 'cont', 'finish'
43
45
  debug_file "post_mortem"
@@ -36,7 +36,7 @@ describe "Frame Command" do
36
36
  it "must print current stack frame when without arguments" do
37
37
  enter 'break 25', 'cont', 'up', 'frame'
38
38
  debug_file('frame')
39
- check_output_includes "#0 A.d(e#String)\n at line #{fullpath('frame')}:25"
39
+ check_output_includes "#0 A.d(e#String) at line #{fullpath('frame')}:25"
40
40
  end
41
41
 
42
42
  it "must set frame to the first one" do
@@ -73,8 +73,7 @@ describe "Frame Command" do
73
73
  enter 'set fullpath', 'break 25', 'cont', 'where'
74
74
  debug_file('frame')
75
75
  check_output_includes(Regexp.new(
76
- "--> #0 A.d\\(e#String\\)\\n" +
77
- " at line #{fullpath('frame')}:25\\n" +
76
+ "--> #0 A.d\\(e#String\\) at line #{fullpath('frame')}:25\\n" +
78
77
  " #1 A.c at line #{fullpath('frame')}:21\\n",
79
78
  Regexp::MULTILINE))
80
79
  end
@@ -96,8 +95,7 @@ describe "Frame Command" do
96
95
  enter 'set callstyle last', 'break 25', 'cont', 'where'
97
96
  debug_file('frame')
98
97
  check_output_includes(Regexp.new(
99
- "--> #0 A.d\\(e#String\\)\\n" +
100
- " at line #{fullpath('frame')}:25\\n" +
98
+ "--> #0 A.d\\(e#String\\) at line #{fullpath('frame')}:25\\n" +
101
99
  " #1 A.c at line #{fullpath('frame')}:21\\n" +
102
100
  " #2 A.b at line #{fullpath('frame')}:17\\n" +
103
101
  " #3 A.a at line #{fullpath('frame')}:14\\n",
@@ -62,9 +62,11 @@ describe "List Command" do
62
62
  end
63
63
 
64
64
  it "must not show the surronding lines by default when autolist is toggled" do
65
- enter 'set noautolist', 'break 5', 'cont'
66
- debug_file 'list'
67
- check_output_doesnt_include "[4, 6] in #{fullpath('list')}", "4 4", "=> 5 5", "6 6"
65
+ temporary_change_hash_value(Debugger::Command.settings, :autolist, false) do
66
+ enter 'break 5', 'cont'
67
+ debug_file 'list'
68
+ check_output_doesnt_include "[4, 6] in #{fullpath('list')}", "4 4", "=> 5 5", "6 6"
69
+ end
68
70
  end
69
71
  end
70
72
 
@@ -7,3 +7,4 @@ require 'debugger/test'
7
7
 
8
8
  $debugger_test_dir = File.expand_path("..", __FILE__)
9
9
  Debugger::Command.settings[:debuggertesting] = true
10
+ Debugger::Command.settings[:width] = 180
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debugger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-05-15 00:00:00.000000000Z
14
+ date: 2013-07-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: columnize
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ~>
38
38
  - !ruby/object:Gem::Version
39
- version: 1.2.1
39
+ version: 1.2.3
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2.1
47
+ version: 1.2.3
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: debugger-linecache
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -357,7 +357,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
357
357
  version: 1.3.6
358
358
  requirements: []
359
359
  rubyforge_project:
360
- rubygems_version: 1.8.19
360
+ rubygems_version: 1.8.24
361
361
  signing_key:
362
362
  specification_version: 3
363
363
  summary: Fast Ruby debugger - base + cli