calabash-cucumber 0.9.163.pre8 → 0.9.163.pre9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/calabash-cucumber.gemspec +1 -1
- data/lib/calabash-cucumber/core.rb +1 -0
- data/lib/calabash-cucumber/http_helpers.rb +11 -8
- data/lib/calabash-cucumber/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de227d6f2931645082536e7dbb07fed3341c597d
|
4
|
+
data.tar.gz: c26da236393494bddeb9c2362b52fc1b6c050eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278abf811a30efa1203d646e2e498fe9cf487a2774e7f554dba9d7663546b3f31372c39a5e0963d60cd0ea1b4aaed34a5db350f97074b5162cf845096e52736a
|
7
|
+
data.tar.gz: cf5d1927bf871f1fc8f02ccf7d45c1b9e95ce9a4c78053cfb8d8b54dbab3a04701c7661bbd20dce5db6a8863cf2fdc3ef82c65ec0f2cff8ef42708b53452b9bd
|
data/calabash-cucumber.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_dependency( "geocoder", "~>1.1.8")
|
27
27
|
s.add_dependency( "httpclient","~> 2.3.3")
|
28
28
|
s.add_dependency( "bundler", "~> 1.1")
|
29
|
-
s.add_dependency( "run_loop", "~> 0.1.0.
|
29
|
+
s.add_dependency( "run_loop", "~> 0.1.0.pre8" )
|
30
30
|
s.add_dependency( "awesome_print")
|
31
31
|
s.add_dependency( "xamarin-test-cloud", "~> 0.9.25")
|
32
32
|
|
@@ -49,18 +49,18 @@ module Calabash
|
|
49
49
|
if not @http
|
50
50
|
@http = init_request(options)
|
51
51
|
end
|
52
|
-
if options[:debug] || (ENV['DEBUG_HTTP'] == '1' && options[:debug] != false)
|
53
|
-
|
54
|
-
|
55
|
-
end
|
52
|
+
#if options[:debug] || (ENV['DEBUG_HTTP'] == '1' && options[:debug] != false)
|
53
|
+
# previous_debug_dev = @http.debug_dev
|
54
|
+
# @http.debug_dev = $stdout
|
55
|
+
#end
|
56
56
|
if options[:method] == :post
|
57
57
|
body = @http.post(options[:uri], options[:body]).body
|
58
58
|
else
|
59
59
|
body = @http.get(options[:uri], options[:body]).body
|
60
60
|
end
|
61
|
-
if options[:debug] || (ENV['DEBUG_HTTP'] == '1' && options[:debug] != false)
|
62
|
-
|
63
|
-
end
|
61
|
+
#if options[:debug] || (ENV['DEBUG_HTTP'] == '1' && options[:debug] != false)
|
62
|
+
# @http.debug_dev = previous_debug_dev
|
63
|
+
#end
|
64
64
|
break
|
65
65
|
rescue Exception => e
|
66
66
|
|
@@ -89,11 +89,14 @@ module Calabash
|
|
89
89
|
body
|
90
90
|
end
|
91
91
|
|
92
|
-
def init_request(
|
92
|
+
def init_request(options={})
|
93
93
|
http = HTTPClient.new
|
94
94
|
http.connect_timeout = 30
|
95
95
|
http.send_timeout = 30
|
96
96
|
http.receive_timeout = 30
|
97
|
+
if options[:debug] || (ENV['DEBUG_HTTP'] == '1' && options[:debug] != false)
|
98
|
+
http.debug_dev = $stdout
|
99
|
+
end
|
97
100
|
http
|
98
101
|
end
|
99
102
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.163.
|
4
|
+
version: 0.9.163.pre9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.1.0.
|
159
|
+
version: 0.1.0.pre8
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - ~>
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.1.0.
|
166
|
+
version: 0.1.0.pre8
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: awesome_print
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|