soaspec 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/lib/soaspec/exchange_handlers/request/rest_request.rb +14 -1
- data/lib/soaspec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39211649f19153d09e4ea32c5887f92bba320af679e107cc91e56818cabb4cba
|
4
|
+
data.tar.gz: 3829052653f93ab214d355215c99e75315d8341adeac12974e0e5a10214217db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85b0c268b21bd3ffaa72312ac016986cb58fbabddbc4191ce53547499f95981dec43b848522063a794edb155551bdcbb0cb0a0a109e60f4f50a03a246c3d98bb
|
7
|
+
data.tar.gz: a9bf65cab2d0fa0358f1dd4b18e6f38d27b08ad2b6367fdd63807dfa5127ed093d231f8e88d0f490f4cbfb3d12f91bbfc54fb359e1a63b8b70d1e8a2bbcdd794
|
data/ChangeLog
CHANGED
@@ -32,7 +32,7 @@ module Soaspec
|
|
32
32
|
# @return [String] Base url plus sub url
|
33
33
|
def full_url
|
34
34
|
url = rest_handler.base_url_value
|
35
|
-
url
|
35
|
+
url = concat_urls(url, suburl) if suburl
|
36
36
|
@full_url = ERB.new(url).result(binding)
|
37
37
|
end
|
38
38
|
|
@@ -142,5 +142,18 @@ module Soaspec
|
|
142
142
|
|
143
143
|
nil
|
144
144
|
end
|
145
|
+
|
146
|
+
private
|
147
|
+
|
148
|
+
# Join two urls, removing double slashes if they're on end and beginning of path
|
149
|
+
def concat_urls(url, suburl)
|
150
|
+
url = url.to_s
|
151
|
+
suburl = suburl.to_s
|
152
|
+
if url.slice(-1, 1) == '/' or suburl.slice(0, 1) == '/'
|
153
|
+
url + suburl
|
154
|
+
else
|
155
|
+
"#{url}/#{suburl}"
|
156
|
+
end
|
157
|
+
end
|
145
158
|
end
|
146
159
|
end
|
data/lib/soaspec/version.rb
CHANGED