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.
@@ -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
@@ -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 (default: GET)", :default => 'get', :short => "-m", :type => :string
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onering-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.55
4
+ version: 0.0.56
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: