ruby-debug-ide 0.7.0.beta2 → 0.7.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d69d1cfb5b86870712e0c746ead1254dc1f82e3
4
- data.tar.gz: d7f642ffb2759051727072897298cf058faab95f
3
+ metadata.gz: 1a3f1e21c883b1d2befeafb7820117b35d428ed9
4
+ data.tar.gz: 49f8de5e0c225b12f78ec3088ecda73ffe63dfd1
5
5
  SHA512:
6
- metadata.gz: 3e822e846ace7dc9926dea1d5ce49f50cf0f5ae748613b498d2de077639938cbe9c6420aa3c61eb9759462404274f9ca9e119a825b72df1ac6ccbd3d7ee8bf6c
7
- data.tar.gz: 57c33149c8ac6ca7649f11b1c0a146f1fb93fd5ea3918ea66ca916e330178183cbe830af89b1f90211c386a55d2ef4c8ce1eedad2f29b606cd13ed102489af26
6
+ metadata.gz: a483218d05b207581359ef13f024b60594b4d53c9877dbc48882eec3d9852303d5ef638e5a78e20e2203af53433935585d8b321f696ad03cbe10143a12301769
7
+ data.tar.gz: 39346e516797ed25d4ba3b6016ac7d4f2fcd08b6ff311fc79736200538edf7b7e3f194931630553c51b2b6ba3df2ec1cccd5e7664782d829f5ffaf9d8d5a1113
@@ -2,11 +2,25 @@ module Debugger
2
2
  module TimeoutHandler
3
3
  class << self
4
4
  def do_thread_alias
5
- load File.expand_path(File.dirname(__FILE__) + '/thread-alias/alias_thread.rb')
5
+ if defined? ::OldThread
6
+ Debugger.print_debug 'Tried to re-alias thread for eval'
7
+ return
8
+ end
9
+
10
+ Object.const_set :OldThread, ::Thread
11
+ Object.send :remove_const, :Thread
12
+ Object.const_set :Thread, ::Debugger::DebugThread
6
13
  end
7
14
 
8
15
  def undo_thread_alias
9
- load File.expand_path(File.dirname(__FILE__) + '/thread-alias/unalias_thread.rb')
16
+ unless defined? ::OldThread
17
+ Debugger.print_debug 'Tried to de-alias thread twice'
18
+ return
19
+ end
20
+
21
+ Object.send :remove_const, :Thread
22
+ Object.const_set :Thread, ::OldThread
23
+ Object.send :remove_const, :OldThread
10
24
  end
11
25
  end
12
26
  end
@@ -1,3 +1,3 @@
1
1
  module Debugger
2
- IDE_VERSION='0.7.0.beta2'
2
+ IDE_VERSION='0.7.0.beta3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-ide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.beta2
4
+ version: 0.7.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-20 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -80,8 +80,6 @@ files:
80
80
  - lib/ruby-debug-ide/multiprocess/pre_child.rb
81
81
  - lib/ruby-debug-ide/multiprocess/starter.rb
82
82
  - lib/ruby-debug-ide/multiprocess/unmonkey.rb
83
- - lib/ruby-debug-ide/thread-alias/alias_thread.rb
84
- - lib/ruby-debug-ide/thread-alias/unalias_thread.rb
85
83
  - lib/ruby-debug-ide/thread_alias.rb
86
84
  - lib/ruby-debug-ide/version.rb
87
85
  - lib/ruby-debug-ide/xml_printer.rb
@@ -1,2 +0,0 @@
1
- OldThread = Thread
2
- Thread = Debugger::DebugThread
@@ -1 +0,0 @@
1
- Thread = OldThread