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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 316f44001f615a30f037e1bced5a2988df1e85c2
4
- data.tar.gz: af13f64c5f2096dfaf1fea51dbc119a30a9ac4f6
3
+ metadata.gz: 9dcee93a1258d9b7ba405613c58b424e2209c207
4
+ data.tar.gz: 37ee58b8b4326a66f62692125f3c71f19ebd1006
5
5
  SHA512:
6
- metadata.gz: d0c0c064b0c096fea8a4520356f08104dd796778b88c3564abdc5eb61adcb41d0ccf8e08fd513adc57f6f1cf6a88437a52ba15f72494cf09f45d2254899ed196
7
- data.tar.gz: aba64e2492ba14d5f89f867508f3f737893b6d42cd2776dafc4932b8a1e8d93ca22461694161cc8da7e5a38238be940b7c08d1f11857fe2e4f854669ce2b8156
6
+ metadata.gz: 30611ea8e71045b3c5fd8838dc637979d42811a967b4d810866c0b169a05391ef85541193ebb681f18a8f0bf559d5a4770f095b9408917f04cc95dac4b451611
7
+ data.tar.gz: 318f3174664c216d85cf0ebfc5e59e78fd74ec3f0eafc83a4f2d49b35436deef56b4723098695125642399a060a6a7be5a275cf6f56eed42a13fe6b867e9e6ab
@@ -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
- if (params.has_key?(placeholder))
29
- url = url.gsub("{#{placeholder}}", params[placeholder].to_s)
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})"
@@ -2,7 +2,7 @@ module Webspicy
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 0
5
+ TINY = 1
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
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.0
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.6.11
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!