lib/pmp/token.rb in pmp-0.2.3 vs lib/pmp/token.rb in pmp-0.2.4
- old
+ new
@@ -34,16 +34,16 @@
end
def connection_options(opts={})
headers = opts.delete(:headers) || {}
options = {
- :headers => {
+ headers: {
'User-Agent' => opts[:user_agent],
'Accept' => 'application/json',
'Content-Type' => 'application/x-www-form-urlencoded'
},
- :ssl => {:verify => false},
- :url => opts[:endpoint]
+ ssl: {:verify => false},
+ url: opts[:endpoint]
}.merge(opts)
options[:headers] = options[:headers].merge(headers)
options
end