onering-client 0.0.55 → 0.0.56
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onering/api.rb +1 -1
- data/lib/onering/cli/call.rb +1 -1
- metadata +1 -1
data/lib/onering/api.rb
CHANGED
@@ -72,7 +72,7 @@ module Onering
|
|
72
72
|
def request(method, endpoint, options={})
|
73
73
|
endpoint = [@_config.get(:path, DEFAULT_PATH).strip, endpoint.sub(/^\//,'')].join('/')
|
74
74
|
|
75
|
-
case method
|
75
|
+
case (method.to_sym rescue method)
|
76
76
|
when :post
|
77
77
|
rv = Onering::API.post(endpoint, options)
|
78
78
|
when :put
|
data/lib/onering/cli/call.rb
CHANGED
@@ -23,7 +23,7 @@ Examples:
|
|
23
23
|
|
24
24
|
Options:
|
25
25
|
EOS
|
26
|
-
opt :method, "The HTTP method to use when performing the request
|
26
|
+
opt :method, "The HTTP method to use when performing the request", :default => 'get', :short => "-m", :type => :string
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|