Skip to content

Commit

Permalink
Fix rescue e and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
krukow committed May 21, 2013
1 parent a9421ac commit 674e1a1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion calabash-cucumber/calabash-cucumber.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.add_dependency( "location-one", "~>0.0.9")
s.add_dependency( "httpclient","2.3.2")
s.add_dependency( "bundler", "~> 1.1")
s.add_dependency( "run_loop", "0.0.9" )
s.add_dependency( "run_loop", "~> 0.0.10" )
s.add_dependency( "awesome_print")

end
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ def self.ensure_connectivity(app_bundle_path, sdk, version, args = nil)
end
end
rescue TimeoutErr => e
puts "Timed out..."
puts 'Timed out...'
end
end
rescue e
rescue RuntimeError => e
p e
msg = "Unable to make connection to Calabash Server at #{ENV['DEVICE_ENDPOINT']|| "http://localhost:37265/"}\n"
msg << "Make sure you've' linked correctly with calabash.framework and set Other Linker Flags.\n"
Expand Down
4 changes: 2 additions & 2 deletions calabash-cucumber/lib/calabash-cucumber/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def ensure_connectivity
puts "Timed out...Retry.."
end
end
rescue e
rescue RuntimeError => e
p e
msg = "Unable to make connection to Calabash Server at #{ENV['DEVICE_ENDPOINT']|| "http://localhost:37265/"}\n"
msg << "Make sure you don't have a firewall blocking traffic to #{ENV['DEVICE_ENDPOINT']|| "http://localhost:37265/"}.\n"
Expand All @@ -136,7 +136,7 @@ def ping_app

http = Net::HTTP.new(url.host, url.port)
res = http.start do |sess|
sess.request Net::HTTP::Get.new "version"
sess.request Net::HTTP::Get.new(ENV['CALABASH_VERSION_PATH'] || "version")
end
status = res.code
begin
Expand Down
4 changes: 2 additions & 2 deletions calabash-cucumber/lib/calabash-cucumber/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Calabash
module Cucumber
VERSION = '0.9.145.pre4'
FRAMEWORK_VERSION = '0.9.145.pre4'
VERSION = '0.9.145.pre5'
FRAMEWORK_VERSION = '0.9.145.pre5'
end
end

0 comments on commit 674e1a1

Please sign in to comment.