webspicy 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webspicy/resource.rb +3 -2
- data/lib/webspicy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dcee93a1258d9b7ba405613c58b424e2209c207
|
4
|
+
data.tar.gz: 37ee58b8b4326a66f62692125f3c71f19ebd1006
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30611ea8e71045b3c5fd8838dc637979d42811a967b4d810866c0b169a05391ef85541193ebb681f18a8f0bf559d5a4770f095b9408917f04cc95dac4b451611
|
7
|
+
data.tar.gz: 318f3174664c216d85cf0ebfc5e59e78fd74ec3f0eafc83a4f2d49b35436deef56b4723098695125642399a060a6a7be5a275cf6f56eed42a13fe6b867e9e6ab
|
data/lib/webspicy/resource.rb
CHANGED
@@ -25,8 +25,9 @@ module Webspicy
|
|
25
25
|
def instantiate_url(params)
|
26
26
|
url, rest = self.url, params.dup
|
27
27
|
url_placeholders.each do |placeholder|
|
28
|
-
|
29
|
-
|
28
|
+
key = [placeholder, placeholder.to_s].find{|x| params.has_key?(x) }
|
29
|
+
if key
|
30
|
+
url = url.gsub("{#{placeholder}}", params[key].to_s)
|
30
31
|
rest.delete(placeholder)
|
31
32
|
else
|
32
33
|
raise "Missing URL parameter `#{placeholder}`\n\t(#{params.inspect})"
|
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.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.
|
181
|
+
rubygems_version: 2.5.1
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Webspicy helps testing web services as software operation black boxes!
|