rhomobile-debug 1.0.1 → 1.0.2

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 +4 -0
  2. data/lib/debugger.rb +4 -5
  3. metadata +4 -4
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.2
2
+ * Change debug port parameter name
3
+ * Fix issue with run from Rhosync
4
+
1
5
  ## 1.0.1
2
6
  * Fix issue with Windows 7 and Ruby 1.8.7
3
7
  * Add support for RhoSync debug
data/lib/debugger.rb CHANGED
@@ -234,13 +234,12 @@ $_tracefunc = lambda{|event, file, line, id, bind, classname|
234
234
 
235
235
  #$_s.write("start waiting\n")
236
236
 
237
- puts ">> " + ENV["APP_TYPE"].to_s
238
-
237
+ app_type = ENV["APP_TYPE"]
239
238
  $_wait = true
240
239
  while $_wait
241
240
  while debug_handle_cmd(true) do end
242
241
 
243
- if ENV["APP_TYPE"] == "rhodes"
242
+ if app_type.eql? "rhodes"
244
243
  if System::get_property('main_window_closed')
245
244
  $_wait = false
246
245
  end
@@ -278,7 +277,7 @@ $_s = nil
278
277
  begin
279
278
  puts "[Debugger] Opening connection"
280
279
  debug_host_env = ENV['RHOHOST']
281
- debug_port_env = ENV['RHOPORT']
280
+ debug_port_env = ENV['rho_debug_port']
282
281
  debug_path_env = ENV['ROOT_PATH']
283
282
 
284
283
  debug_host = (debug_host_env.nil? or debug_host_env == "") ? '127.0.0.1' : debug_host_env
@@ -316,7 +315,7 @@ begin
316
315
  debug_read_cmd($_s,true)
317
316
  while debug_handle_cmd(false) do end
318
317
  if ($_cmd !~ /^\s*$/) and (Thread.main.stop?)
319
- $_s.write("[manage thread] set wait = true\n")
318
+ #$_s.write("[manage thread] set wait = true\n")
320
319
  $_wait = true
321
320
  Thread.main.wakeup
322
321
  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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
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-04 00:00:00 -07:00
18
+ date: 2011-07-06 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21