riddl 0.99.141 → 0.99.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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