test/activity/ssl_activity.rb in ruboto-1.5.0 vs test/activity/ssl_activity.rb in ruboto-1.6.0

- old
+ new

@@ -27,20 +27,20 @@ @thread.join run_on_ui_thread { @text_view.text = 'net/https loaded OK!' } @open_uri_thread.join run_on_ui_thread { @response_view.text = 'open-uri loaded OK!' } puts 'before open' - open('https://google.com/', ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE) do |f| + open('https://www.google.com/', ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE) do |f| puts 'inside open' body = f.read puts 'body' puts body heading = body[%r{<title>.*?</title>}] puts heading.inspect run_on_ui_thread { @response_view.text = heading } end rescue Exception - puts "Exception resdum: #{$!.class} #{$!.message}" + puts "Exception resume: #{$!.class} #{$!.message}" run_on_ui_thread { @response_view.text = $!.to_s } end end end end