messagebird / ruby-rest-api

MessageBird's REST API for Ruby
BSD 2-Clause "Simplified" License
37 stars 46 forks source link

Raise a valid error #8

Closed nikolai-b closed 7 years ago

nikolai-b commented 7 years ago

Since at least ruby 2.0.0 Net::HTTPServerError requires 3 arguments https://github.com/ruby/ruby/blob/v2_0_0_0/lib/net/http/response.rb#L75 The first one being http_version which response has https://github.com/ruby/ruby/blob/ruby_2_0_0/lib/net/http/response.rb#L87

samwierema commented 7 years ago

Thanks for the pull request @nikolai-b! This looks good to me.

samwierema commented 7 years ago

This has been released as version 1.3.2