webspicy 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 211c2a0ad0fc6bee6c027998d8e451fb05e8d349
|
4
|
+
data.tar.gz: b8c16d8c288941522f2199205cd3c8458deae5bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8804d9a1c260ad2f1eabae7b7961d3ec1fb9f46ee73a7c628ccdcc1285f3f5bc9404d80155efa6708b87d15af3a234bd29055ea9d1971576a0c0a39ad5617bb
|
7
|
+
data.tar.gz: a282af947643716046367b2ba0d198ee1e128d09a807f6573b90387bb7137491072584b398ebe9f6431fc0a57c455e3700354d392ae2743e634e4e9a3cdef5f7
|
@@ -18,7 +18,7 @@ module Webspicy
|
|
18
18
|
url, params = resource.instantiate_url(params)
|
19
19
|
|
20
20
|
# Globalize the URL if required
|
21
|
-
url = scope.to_real_url(url)
|
21
|
+
url = scope.to_real_url(url, to_real_url)
|
22
22
|
|
23
23
|
# Invoke the service now
|
24
24
|
api.public_send(service.method.to_s.downcase.to_sym, url, params, headers, test_case.body)
|
@@ -21,7 +21,7 @@ module Webspicy
|
|
21
21
|
|
22
22
|
# Instantiate the url and strip parameters
|
23
23
|
url, params = resource.instantiate_url(params)
|
24
|
-
url = scope.to_real_url(url){
|
24
|
+
url = scope.to_real_url(url, test_case){|u,_| u }
|
25
25
|
|
26
26
|
# Invoke the service now
|
27
27
|
api.public_send(service.method.to_s.downcase.to_sym, url, params, headers, body)
|
data/lib/webspicy/scope.rb
CHANGED
@@ -98,10 +98,10 @@ module Webspicy
|
|
98
98
|
# When no host resolved on the configuration and the url is not
|
99
99
|
# already an absolute URL, yields the block if given, or raise
|
100
100
|
# an exception.
|
101
|
-
def to_real_url(url, &bl)
|
101
|
+
def to_real_url(url, test_case = nil, &bl)
|
102
102
|
case config.host
|
103
103
|
when Proc
|
104
|
-
config.host.call(url)
|
104
|
+
config.host.call(url, test_case)
|
105
105
|
when String
|
106
106
|
url =~ /^http/ ? url : "#{config.host}#{url}"
|
107
107
|
else
|
data/lib/webspicy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webspicy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.
|
197
|
+
rubygems_version: 2.5.1
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Webspicy helps testing web services as software operation black boxes!
|