ruby-debug-ide 0.4.21.pre1 → 0.4.21

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/bin/rdebug-ide CHANGED
@@ -82,7 +82,7 @@ end
82
82
  # save script name
83
83
  Debugger::PROG_SCRIPT = ARGV.shift
84
84
 
85
- if (options.dispatcher_port != -1)
85
+ if options.dispatcher_port != -1
86
86
  ENV['IDE_PROCESS_DISPATCHER'] = options.dispatcher_port.to_s
87
87
  if RUBY_VERSION < "1.9"
88
88
  $: << File.expand_path(File.dirname(__FILE__) + "/../lib/")
@@ -95,6 +95,7 @@ if (options.dispatcher_port != -1)
95
95
  old_opts = ENV['RUBYOPT']
96
96
  ENV['RUBYOPT'] = "-r#{File.expand_path(File.dirname(__FILE__))}/../lib/ruby-debug-ide/multiprocess/starter"
97
97
  ENV['RUBYOPT'] += " #{old_opts}" if old_opts
98
+ ENV['DEBUGGER_CLI_DEBUG'] = Debugger.cli_debug
98
99
  end
99
100
 
100
101
  if options.int_handler
@@ -107,12 +107,12 @@ module Debugger
107
107
  host ||= '127.0.0.1'
108
108
  gem_name = (defined?(JRUBY_VERSION) || RUBY_VERSION < '1.9.0') ? 'ruby-debug-base' :
109
109
  RUBY_VERSION < '2.0.0' ? 'ruby-debug-base19x' : 'debase'
110
- $stderr.printf "Fast Debugger (ruby-debug-ide #{IDE_VERSION}, #{gem_name} #{VERSION}) listens on #{host}:#{port}\n"
111
110
  server = TCPServer.new(host, port)
111
+ $stderr.printf "Fast Debugger (ruby-debug-ide #{IDE_VERSION}, #{gem_name} #{VERSION}) listens on #{host}:#{port}\n"
112
112
  while (session = server.accept)
113
113
  $stderr.puts "Connected from #{session.peeraddr[2]}" if Debugger.cli_debug
114
114
  dispatcher = ENV['IDE_PROCESS_DISPATCHER']
115
- if (dispatcher)
115
+ if dispatcher
116
116
  ENV['IDE_PROCESS_DISPATCHER'] = "#{session.peeraddr[2]}:#{dispatcher}" unless dispatcher.include?(":")
117
117
  ENV['DEBUGGER_HOST'] = host
118
118
  end
@@ -3,8 +3,8 @@ module Debugger
3
3
  class << self
4
4
  def pre_child
5
5
 
6
- require "socket"
7
- require "ostruct"
6
+ require 'socket'
7
+ require 'ostruct'
8
8
 
9
9
  host = ENV['DEBUGGER_HOST']
10
10
  port = find_free_port(host)
@@ -16,7 +16,8 @@ module Debugger
16
16
  'port' => port,
17
17
  'stop' => false,
18
18
  'tracing' => false,
19
- 'int_handler' => true
19
+ 'int_handler' => true,
20
+ 'cli_debug' => (ENV['DEBUGGER_CLI_DEBUG'] == 'true')
20
21
  )
21
22
 
22
23
  acceptor_host, acceptor_port = ENV['IDE_PROCESS_DISPATCHER'].split(":")
@@ -42,7 +43,7 @@ module Debugger
42
43
 
43
44
  def start_debugger(options)
44
45
  if Debugger.started?
45
- #we're in forked child, only need to restart control thread
46
+ # we're in forked child, only need to restart control thread
46
47
  Debugger.breakpoints.clear
47
48
  Debugger.control_thread = nil
48
49
  Debugger.start_control(options.host, options.port)
@@ -56,6 +57,7 @@ module Debugger
56
57
  # set options
57
58
  Debugger.keep_frame_binding = options.frame_bind
58
59
  Debugger.tracing = options.tracing
60
+ Debugger.cli_debug = options.cli_debug
59
61
 
60
62
  Debugger.prepare_debugger(options)
61
63
  end
@@ -1,3 +1,3 @@
1
1
  module Debugger
2
- IDE_VERSION='0.4.21.pre1'
2
+ IDE_VERSION='0.4.21'
3
3
  end
metadata CHANGED
@@ -1,36 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-ide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.21.pre1
5
- prerelease: 7
4
+ prerelease:
5
+ version: 0.4.21
6
6
  platform: ruby
7
7
  authors:
8
8
  - Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-19 00:00:00.000000000 Z
12
+ date: 2013-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
16
+ version_requirements: !ruby/object:Gem::Requirement
18
17
  requirements:
19
- - - ! '>='
18
+ - - '>='
20
19
  - !ruby/object:Gem::Version
21
20
  version: 0.8.1
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
21
  none: false
22
+ requirement: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.8.1
30
- description: ! 'An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans
31
- and RubyMine.
32
-
33
- '
27
+ none: false
28
+ prerelease: false
29
+ type: :runtime
30
+ description: |
31
+ An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
34
32
  email: rubymine-feedback@jetbrains.com
35
33
  executables:
36
34
  - rdebug-ide
@@ -47,7 +45,15 @@ files:
47
45
  - Gemfile
48
46
  - ruby-debug-ide.gemspec
49
47
  - bin/rdebug-ide
48
+ - lib/ruby-debug-ide.rb
50
49
  - lib/ruby-debug-ide/command.rb
50
+ - lib/ruby-debug-ide/event_processor.rb
51
+ - lib/ruby-debug-ide/helper.rb
52
+ - lib/ruby-debug-ide/ide_processor.rb
53
+ - lib/ruby-debug-ide/interface.rb
54
+ - lib/ruby-debug-ide/multiprocess.rb
55
+ - lib/ruby-debug-ide/version.rb
56
+ - lib/ruby-debug-ide/xml_printer.rb
51
57
  - lib/ruby-debug-ide/commands/breakpoints.rb
52
58
  - lib/ruby-debug-ide/commands/catchpoint.rb
53
59
  - lib/ruby-debug-ide/commands/condition.rb
@@ -63,39 +69,31 @@ files:
63
69
  - lib/ruby-debug-ide/commands/stepping.rb
64
70
  - lib/ruby-debug-ide/commands/threads.rb
65
71
  - lib/ruby-debug-ide/commands/variables.rb
66
- - lib/ruby-debug-ide/event_processor.rb
67
- - lib/ruby-debug-ide/helper.rb
68
- - lib/ruby-debug-ide/ide_processor.rb
69
- - lib/ruby-debug-ide/interface.rb
70
72
  - lib/ruby-debug-ide/multiprocess/monkey.rb
71
73
  - lib/ruby-debug-ide/multiprocess/pre_child.rb
72
74
  - lib/ruby-debug-ide/multiprocess/starter.rb
73
- - lib/ruby-debug-ide/multiprocess.rb
74
- - lib/ruby-debug-ide/version.rb
75
- - lib/ruby-debug-ide/xml_printer.rb
76
- - lib/ruby-debug-ide.rb
77
75
  homepage: https://github.com/ruby-debug/ruby-debug-ide
78
76
  licenses: []
79
- post_install_message:
77
+ post_install_message:
80
78
  rdoc_options: []
81
79
  require_paths:
82
80
  - lib
83
81
  required_ruby_version: !ruby/object:Gem::Requirement
84
- none: false
85
82
  requirements:
86
- - - ! '>='
83
+ - - '>='
87
84
  - !ruby/object:Gem::Version
88
85
  version: 1.8.2
89
- required_rubygems_version: !ruby/object:Gem::Requirement
90
86
  none: false
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
88
  requirements:
92
- - - ! '>'
89
+ - - '>='
93
90
  - !ruby/object:Gem::Version
94
- version: 1.3.1
91
+ version: '0'
92
+ none: false
95
93
  requirements: []
96
94
  rubyforge_project: debug-commons
97
- rubygems_version: 1.8.25
98
- signing_key:
95
+ rubygems_version: 1.8.24
96
+ signing_key:
99
97
  specification_version: 3
100
98
  summary: IDE interface for ruby-debug.
101
99
  test_files: []