ruby-debug-base19x 0.11.28 → 0.11.29

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.
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-base19x
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 11
9
- - 28
10
- version: 0.11.28
4
+ prerelease:
5
+ version: 0.11.29
11
6
  platform: ruby
12
7
  authors:
13
8
  - Kent Sibilev, Mark Moseley
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-04-27 00:00:00 +04:00
13
+ date: 2011-06-22 00:00:00 +04:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 17
30
- segments:
31
- - 0
32
- - 3
33
- - 1
34
24
  version: 0.3.1
35
25
  type: :runtime
36
26
  version_requirements: *id001
@@ -42,11 +32,6 @@ dependencies:
42
32
  requirements:
43
33
  - - ">="
44
34
  - !ruby/object:Gem::Version
45
- hash: 19
46
- segments:
47
- - 0
48
- - 1
49
- - 4
50
35
  version: 0.1.4
51
36
  type: :runtime
52
37
  version_requirements: *id002
@@ -58,18 +43,24 @@ dependencies:
58
43
  requirements:
59
44
  - - ">="
60
45
  - !ruby/object:Gem::Version
61
- hash: 29
62
- segments:
63
- - 0
64
- - 5
65
- - 11
66
46
  version: 0.5.11
67
47
  type: :runtime
68
48
  version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: rake
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 0.8.1
58
+ type: :runtime
59
+ version_requirements: *id004
69
60
  description: |
70
61
  ruby-debug is a fast implementation of the standard Ruby debugger debug.rb.
71
- It is implemented by utilizing a new Ruby C API hook. The core component
72
- provides support that front-ends can build on. It provides breakpoint
62
+ It is implemented by utilizing a new Ruby C API hook. The core component
63
+ provides support that front-ends can build on. It provides breakpoint
73
64
  handling, bindings for stack frames among other things.
74
65
 
75
66
  email: ksibilev@yahoo.com
@@ -92,11 +83,8 @@ files:
92
83
  - ext/ruby_debug/ruby_debug.h
93
84
  - lib/ChangeLog
94
85
  - lib/ruby-debug-base.rb
95
- - test/base/base.rb
96
- - test/base/binding.rb
97
- - test/base/catchpoint.rb
98
86
  has_rdoc: true
99
- homepage: http://rubyforge.org/projects/ruby-debug/
87
+ homepage: https://github.com/denofevil/ruby-debug-base19
100
88
  licenses: []
101
89
 
102
90
  post_install_message:
@@ -109,29 +97,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
97
  requirements:
110
98
  - - ">="
111
99
  - !ruby/object:Gem::Version
112
- hash: 51
113
- segments:
114
- - 1
115
- - 8
116
- - 2
117
100
  version: 1.8.2
118
101
  required_rubygems_version: !ruby/object:Gem::Requirement
119
102
  none: false
120
103
  requirements:
121
104
  - - ">="
122
105
  - !ruby/object:Gem::Version
123
- hash: 3
124
- segments:
125
- - 0
126
106
  version: "0"
127
107
  requirements: []
128
108
 
129
109
  rubyforge_project: ruby-debug19
130
- rubygems_version: 1.3.7
110
+ rubygems_version: 1.6.2
131
111
  signing_key:
132
112
  specification_version: 3
133
113
  summary: Fast Ruby debugger - core component
134
- test_files:
135
- - test/base/base.rb
136
- - test/base/binding.rb
137
- - test/base/catchpoint.rb
114
+ test_files: []
115
+
data/test/base/base.rb DELETED
@@ -1,74 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'test/unit'
3
-
4
- # Some tests of Debugger module in C extension ruby_debug
5
- class TestRubyDebug < Test::Unit::TestCase
6
- $:.unshift File.join(File.dirname(__FILE__), '..', '..', 'ext')
7
- require 'ruby_debug'
8
- $:.shift
9
-
10
- # test current_context
11
- def test_current_context
12
- assert_equal(false, Debugger.started?,
13
- 'debugger should not initially be started.')
14
- Debugger.start_
15
- assert(Debugger.started?,
16
- 'debugger should now be started.')
17
- assert_equal(__LINE__, Debugger.current_context.frame_line)
18
- assert_equal(nil, Debugger.current_context.frame_args_info,
19
- 'no frame args info.')
20
- assert_equal(Debugger.current_context.frame_file,
21
- Debugger.current_context.frame_file(0))
22
- assert_equal(File.basename(__FILE__),
23
- File.basename(Debugger.current_context.frame_file))
24
- assert_raises(ArgumentError) {Debugger.current_context.frame_file(1, 2)}
25
- assert_raises(ArgumentError) {Debugger.current_context.frame_file(10)}
26
- assert_equal(1, Debugger.current_context.stack_size)
27
- assert_equal(TestRubyDebug, Debugger.current_context.frame_class)
28
- assert_equal(false, Debugger.current_context.dead?, 'Not dead yet!')
29
- Debugger.stop
30
- assert_equal(false, Debugger.started?,
31
- 'Debugger should no longer be started.')
32
- end
33
-
34
- # Test initial variables and setting/getting state.
35
- def test_debugger_base
36
- assert_equal(false, Debugger.started?,
37
- 'Debugger should not initially be started.')
38
- Debugger.start_
39
- assert(Debugger.started?,
40
- 'Debugger should now be started.')
41
- assert_equal(false, Debugger.debug,
42
- 'Debug variable should not be set.')
43
- assert_equal(false, Debugger.post_mortem?,
44
- 'Post mortem debugging should not be set.')
45
- a = Debugger.contexts
46
- assert_equal(1, a.size,
47
- 'There should only be one context.')
48
- assert_equal(Array, a.class,
49
- 'Context should be an array.')
50
- Debugger.stop
51
- assert_equal(false, Debugger.started?,
52
- 'debugger should no longer be started.')
53
- end
54
-
55
- # Test breakpoint handling
56
- def test_breakpoints
57
- Debugger.start_
58
- assert_equal(0, Debugger.breakpoints.size,
59
- 'There should not be any breakpoints set.')
60
- brk = Debugger.add_breakpoint(__FILE__, 1)
61
- assert_equal(Debugger::Breakpoint, brk.class,
62
- 'Breakpoint should have been set and returned.')
63
- assert_equal(1, Debugger.breakpoints.size,
64
- 'There should now be one breakpoint set.')
65
- Debugger.remove_breakpoint(0)
66
- assert_equal(1, Debugger.breakpoints.size,
67
- 'There should still be one breakpoint set.')
68
- Debugger.remove_breakpoint(1)
69
- assert_equal(0, Debugger.breakpoints.size,
70
- 'There should no longer be any breakpoints set.')
71
- Debugger.stop
72
- end
73
- end
74
-
data/test/base/binding.rb DELETED
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'test/unit'
4
-
5
- # Test binding_n command
6
- class TestBinding < Test::Unit::TestCase
7
-
8
- SRC_DIR = File.expand_path(File.dirname(__FILE__)) unless
9
- defined?(SRC_DIR)
10
- %w(ext lib).each do |dir|
11
- $:.unshift File.join(SRC_DIR, '..', '..', dir)
12
- end
13
- require File.join(SRC_DIR, '..', '..', 'lib', 'ruby-debug-base')
14
- $:.shift; $:.shift
15
-
16
- def test_basic
17
- def inside_fn
18
- s = 'some other string'
19
- b2 = Kernel::binding_n(1)
20
- y2 = eval('s', b2)
21
- assert_equal('this is a test', y2)
22
- end
23
- s = 'this is a test'
24
- Debugger.start
25
- b = Kernel::binding_n(0)
26
- y = eval('s', b)
27
- assert_equal(y, s)
28
- inside_fn
29
- Debugger.stop
30
- end
31
- end
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'test/unit'
3
-
4
- # Test catchpoint in C ruby_debug extension.
5
-
6
- class TestRubyDebugCatchpoint < Test::Unit::TestCase
7
-
8
- $:.unshift File.join(File.dirname(__FILE__), '..', '..', 'ext')
9
- require 'ruby_debug'
10
- $:.shift
11
-
12
- # test current_context
13
- def test_catchpoints
14
- assert_raise(RuntimeError) {Debugger.catchpoints}
15
- Debugger.start_
16
- assert_equal({}, Debugger.catchpoints)
17
- Debugger.add_catchpoint('ZeroDivisionError')
18
- assert_equal({'ZeroDivisionError' => 0}, Debugger.catchpoints)
19
- Debugger.add_catchpoint('RuntimeError')
20
- assert_equal(['RuntimeError', 'ZeroDivisionError'],
21
- Debugger.catchpoints.keys.sort)
22
- Debugger.stop
23
- end
24
-
25
- end
26
-