calabash-android 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +4 -1
- data/lib/calabash-android/operations.rb +8 -2
- data/lib/calabash-android/version.rb +2 -2
- metadata +4 -4
data/CHANGES.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
0.2.5:
|
2
|
+
Will now escape '+' as %2B in arguments
|
3
|
+
|
1
4
|
0.2.4:
|
2
5
|
Added three actions by Sampo Niskanen for interaction with WebViews:
|
3
6
|
* Executing arbitrary javascript in WebView
|
@@ -7,7 +10,7 @@
|
|
7
10
|
Fixed bug in features-skeleton/support/app_installation_hooks.rb
|
8
11
|
|
9
12
|
Fixed minor bugs
|
10
|
-
|
13
|
+
|
11
14
|
0.2.3:
|
12
15
|
The 0.2.2 gem was broken :(
|
13
16
|
Making a new release
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'json'
|
2
2
|
require 'net/http'
|
3
|
+
require 'open-uri'
|
3
4
|
require 'rubygems'
|
4
5
|
require 'json'
|
5
6
|
require 'socket'
|
@@ -183,12 +184,17 @@ module Operations
|
|
183
184
|
end
|
184
185
|
|
185
186
|
def http(path, data = {})
|
187
|
+
retries = 0
|
186
188
|
begin
|
187
189
|
http = Net::HTTP.new "127.0.0.1", @server_port
|
188
|
-
|
190
|
+
cmd = "command=#{data.to_json}"
|
191
|
+
cmd = cmd.gsub("+", "%2B")
|
192
|
+
resp = http.post(path, cmd, {})
|
189
193
|
resp.body
|
190
|
-
rescue
|
194
|
+
rescue Exception => e
|
195
|
+
raise e if retries > 20
|
191
196
|
sleep 0.5
|
197
|
+
retries += 1
|
192
198
|
retry
|
193
199
|
end
|
194
200
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-android
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 5
|
10
|
+
version: 0.2.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonas Maturana Larsen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-08-
|
18
|
+
date: 2012-08-04 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|