rhomobile-debug 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. data/CHANGELOG +3 -0
  2. data/lib/debugger.rb +5 -2
  3. metadata +4 -4
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.3
2
+ * Fix working with Ruby 1.9.2
3
+
1
4
  ## 1.0.2
2
5
  * Change debug port parameter name
3
6
  * Fix issue with run from Rhosync
@@ -21,12 +21,13 @@ def debug_read_cmd(io,wait)
21
21
  end
22
22
 
23
23
  def execute_cmd(cmd, advanced)
24
+ #$_s.write("execute_cmd start\n")
24
25
  cmd = URI.unescape(cmd.gsub(/\+/,' ')) if advanced
25
26
  puts "[Debugger] Executing: #{cmd.inspect}"
26
27
  result = ""
27
28
  error = '0';
28
29
  begin
29
- result = eval(cmd, $_binding).inspect
30
+ result = eval(cmd.to_s, $_binding).inspect
30
31
  rescue Exception => exc
31
32
  error = '1';
32
33
  result = "#{$!}".inspect
@@ -34,6 +35,7 @@ def execute_cmd(cmd, advanced)
34
35
 
35
36
  cmd = URI.escape(cmd.sub(/[\n\r]+$/, ''), Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) if advanced
36
37
  $_s.write("EV" + (advanced ? "L:#{error}:#{cmd}:" : ':'+(error.to_i != 0 ? 'ERROR: ':'')) + result + "\n")
38
+ #$_s.write("execute_cmd end\n")
37
39
  end
38
40
 
39
41
  def get_variables(scope)
@@ -68,7 +70,7 @@ def get_variables(scope)
68
70
  vars.each do |v|
69
71
  if v !~ /^\$(=|KCODE)$/
70
72
  begin
71
- result = eval(v,$_binding).inspect
73
+ result = eval(v.to_s, $_binding).inspect
72
74
  rescue Exception => exc
73
75
  $_s.write("get var exception\n")
74
76
  result = "#{$!}".inspect
@@ -241,6 +243,7 @@ $_tracefunc = lambda{|event, file, line, id, bind, classname|
241
243
 
242
244
  if app_type.eql? "rhodes"
243
245
  if System::get_property('main_window_closed')
246
+ $_s.write("QUIT\n") if (not $_s.nil?)
244
247
  $_wait = false
245
248
  end
246
249
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhomobile-debug
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rhomobile
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-06 00:00:00 -07:00
18
+ date: 2011-10-19 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21