riddl 0.99.141 → 0.99.142
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby/riddl/client.rb +4 -1
- data/riddl.gemspec +1 -1
- metadata +1 -1
data/lib/ruby/riddl/client.rb
CHANGED
@@ -38,6 +38,8 @@ unless Module.constants.include?('CLIENT_INCLUDED')
|
|
38
38
|
|
39
39
|
module Riddl
|
40
40
|
|
41
|
+
# URL PATTERN
|
42
|
+
#{{{
|
41
43
|
RIDDL_URL_PATTERN = %r{
|
42
44
|
\A
|
43
45
|
|
@@ -77,7 +79,7 @@ unless Module.constants.include?('CLIENT_INCLUDED')
|
|
77
79
|
|
78
80
|
\z
|
79
81
|
}xi
|
80
|
-
|
82
|
+
#}}}
|
81
83
|
|
82
84
|
class Client
|
83
85
|
#{{{
|
@@ -278,6 +280,7 @@ unless Module.constants.include?('CLIENT_INCLUDED')
|
|
278
280
|
private :extract_qparams
|
279
281
|
|
280
282
|
def exec_request(riddl_method,parameters,simulate) #{{{
|
283
|
+
parameters = [ parameters ] unless parameters.is_a? Array
|
281
284
|
parameters = parameters.dup
|
282
285
|
headers = extract_headers(parameters)
|
283
286
|
options = extract_options(parameters)
|
data/riddl.gemspec
CHANGED