maglev-database-explorer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@ module MaglevDatabaseExplorer
|
|
7
7
|
|
8
8
|
app.config.after_initialize do
|
9
9
|
MaglevDatabaseExplorer.ensure_debug_server_running!
|
10
|
+
MaglevDatabaseExplorer.install_rails_debugger
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
@@ -19,6 +20,5 @@ module MaglevDatabaseExplorer
|
|
19
20
|
def self.eval_object
|
20
21
|
@eval_object ||= Object.new
|
21
22
|
end
|
22
|
-
|
23
23
|
end
|
24
24
|
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module MaglevDatabaseExplorer
|
2
2
|
class << self
|
3
|
-
def
|
3
|
+
def install_rails_debugger
|
4
|
+
require "maglev-database-explorer/action_controller_debug_patch"
|
5
|
+
end
|
6
|
+
|
7
|
+
def halt(inner_exception = nil)
|
4
8
|
halt_proc = Proc.new do
|
5
9
|
nil.pause
|
6
10
|
end
|
@@ -9,7 +13,12 @@ module MaglevDatabaseExplorer
|
|
9
13
|
is_exception = eval_result[0]
|
10
14
|
|
11
15
|
if is_exception
|
12
|
-
|
16
|
+
if inner_exception == nil
|
17
|
+
Thread.current.__set_exception(eval_result[1])
|
18
|
+
else
|
19
|
+
Thread.current.__set_exception(inner_exception)
|
20
|
+
end
|
21
|
+
|
13
22
|
Thread.current[:is_rails_thread] = true
|
14
23
|
eval_result[1] = Thread.current
|
15
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maglev-database-explorer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- lib/maglev-database-explorer/code_evaluation.rb
|
78
78
|
- lib/maglev-database-explorer/halt.rb
|
79
79
|
- lib/maglev-database-explorer/database_views.rb
|
80
|
+
- lib/maglev-database-explorer/action_controller_debug_patch.rb
|
80
81
|
- lib/maglev-database-explorer/debug_server.rb
|
81
82
|
- lib/maglev-database-explorer/database_views/system.rb
|
82
83
|
- lib/maglev-database-explorer/database_views/hash.rb
|