ruby-debug-ide19 0.4.11 → 0.4.12

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.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ desc 'Default: run unit tests.'
9
9
  task :default => [:test]
10
10
 
11
11
  # ------- Default Package ----------
12
- RUBY_DEBUG_IDE_VERSION = "0.4.11"
12
+ RUBY_DEBUG_IDE_VERSION = "0.4.12"
13
13
 
14
14
  FILES = FileList[
15
15
  # 'CHANGES',
@@ -18,15 +18,14 @@ FILES = FileList[
18
18
  'MIT-LICENSE',
19
19
  'Rakefile',
20
20
  'bin/*',
21
- 'lib/**/*',
22
- # 'test/**/*',
23
- 'ext/mkrf_conf.rb'
21
+ 'lib/**/*'
22
+ # 'test/**/*'
24
23
  ]
25
24
 
26
25
  ide_spec = Gem::Specification.new do |spec|
27
26
  spec.name = "ruby-debug-ide19"
28
27
 
29
- spec.homepage = "http://rubyforge.org/projects/debug-commons/"
28
+ spec.homepage = "http://rubyforge.org/projects/ruby-debug19"
30
29
  spec.summary = "IDE interface for ruby-debug."
31
30
  spec.description = <<-EOF
32
31
  An interface which glues ruby-debug to IDEs like Eclipse (RDT) and NetBeans.
@@ -34,15 +33,14 @@ EOF
34
33
 
35
34
  spec.version = RUBY_DEBUG_IDE_VERSION
36
35
 
37
- spec.author = "Markus Barchfeld, Martin Krauskopf"
38
- spec.email = "rubyeclipse-dev-list@sourceforge.net"
36
+ spec.author = "Markus Barchfeld, Martin Krauskopf, Mark Moseley"
37
+ spec.email = "mark@fast-software.com"
39
38
  spec.platform = Gem::Platform::RUBY
40
39
  spec.require_path = "lib"
41
40
  spec.bindir = "bin"
42
41
  spec.executables = ["rdebug-ide"]
43
42
  spec.files = FILES.to_a
44
- spec.extensions << "ext/mkrf_conf.rb"
45
- spec.add_dependency("rake", ">= 0.8.1")
43
+ spec.add_dependency("ruby-debug-base19", "~> 0.11.20")
46
44
 
47
45
  spec.required_ruby_version = '>= 1.8.2'
48
46
  spec.date = DateTime.now
@@ -24,6 +24,20 @@ module Debugger
24
24
  $stderr.flush
25
25
  end
26
26
  end
27
+
28
+ def without_stderr
29
+ begin
30
+ if RUBY_PLATFORM =~ /(win32|mingw32)/
31
+ $stderr = File.open('NUL', 'w')
32
+ else
33
+ $stderr = File.open('/dev/null', 'w')
34
+ end
35
+ yield
36
+ ensure
37
+ $stderr = STDERR
38
+ end
39
+ end
40
+
27
41
  end
28
42
 
29
43
  class Context
@@ -102,8 +102,8 @@ module Debugger
102
102
  # in ruby-debug.c
103
103
  def timeout(sec)
104
104
  return yield if sec == nil or sec.zero?
105
- if RUBY_VERSION < "1.9"
106
- raise ThreadError, "timeout within critical session" if Thread.critical
105
+ if Thread.respond_to?(:critical) and Thread.critical
106
+ raise ThreadError, "timeout within critical session"
107
107
  end
108
108
  begin
109
109
  x = Thread.current
@@ -124,7 +124,11 @@ module Debugger
124
124
  to_inspect = str.gsub(/\\n/, "\n")
125
125
  @printer.print_debug("Evaluating with timeout after %i sec", max_time)
126
126
  timeout(max_time) do
127
- eval(to_inspect, b)
127
+ if RUBY_VERSION < "1.9"
128
+ eval(to_inspect, b)
129
+ else
130
+ Debugger::without_stderr { eval(to_inspect, b) }
131
+ end
128
132
  end
129
133
  rescue StandardError, ScriptError => e
130
134
  @printer.print_exception(e, @state.binding)
@@ -18,7 +18,7 @@ module Debugger
18
18
  end
19
19
 
20
20
  def execute
21
- if RUBY_VERSION < "1.9"
21
+ unless @state.context.respond_to?(:jump)
22
22
  print_msg "Not implemented"
23
23
  return
24
24
  end
@@ -9,11 +9,11 @@ module Debugger
9
9
  end
10
10
 
11
11
  def execute
12
- if RUBY_VERSION < "1.9"
12
+ c = get_context(@match[1].to_i)
13
+ unless c.respond_to?(:pause)
13
14
  print_msg "Not implemented"
14
15
  return
15
16
  end
16
- c = get_context(@match[1].to_i)
17
17
  c.pause
18
18
  end
19
19
 
@@ -34,7 +34,13 @@ module Debugger
34
34
  end
35
35
 
36
36
  def execute
37
- print_variables(global_variables, 'global') do |var|
37
+ globals = []
38
+ if RUBY_VERSION < "1.9"
39
+ globals = global_variables
40
+ else
41
+ Debugger::without_stderr { globals = global_variables - [:$KCODE, :$=] }
42
+ end
43
+ print_variables(globals, 'global') do |var|
38
44
  debug_eval(var)
39
45
  end
40
46
  end
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-ide19
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
- - Markus Barchfeld, Martin Krauskopf
7
+ - Markus Barchfeld, Martin Krauskopf, Mark Moseley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-21 00:00:00 -07:00
12
+ date: 2009-10-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rake
16
+ name: ruby-debug-base19
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 0.8.1
23
+ version: 0.11.20
24
24
  version:
25
25
  description: |
26
26
  An interface which glues ruby-debug to IDEs like Eclipse (RDT) and NetBeans.
27
27
 
28
- email: rubyeclipse-dev-list@sourceforge.net
28
+ email: mark@fast-software.com
29
29
  executables:
30
30
  - rdebug-ide
31
- extensions:
32
- - ext/mkrf_conf.rb
31
+ extensions: []
32
+
33
33
  extra_rdoc_files: []
34
34
 
35
35
  files:
@@ -59,9 +59,8 @@ files:
59
59
  - lib/ruby-debug/printers.rb
60
60
  - lib/ruby-debug/processor.rb
61
61
  - lib/ruby-debug/xml_printer.rb
62
- - ext/mkrf_conf.rb
63
62
  has_rdoc: true
64
- homepage: http://rubyforge.org/projects/debug-commons/
63
+ homepage: http://rubyforge.org/projects/ruby-debug19
65
64
  licenses: []
66
65
 
67
66
  post_install_message:
@@ -1,28 +0,0 @@
1
- jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
2
- unless jruby
3
- require 'rubygems'
4
- require 'rubygems/command.rb'
5
- require 'rubygems/dependency_installer.rb'
6
-
7
- begin
8
- Gem::Command.build_args = ARGV
9
- rescue NoMethodError
10
- end
11
-
12
- inst = Gem::DependencyInstaller.new
13
- begin
14
- if RUBY_VERSION < "1.9"
15
- inst.install "ruby-debug-base", "~> 0.10.3"
16
- else
17
- inst.install "ruby-debug-base19", "~> 0.11.15"
18
- end
19
- rescue
20
- exit(1)
21
- end
22
- end
23
-
24
- # create dummy rakefile to indicate success
25
- f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
26
- f.write("task :default\n")
27
- f.close
28
-