lib/webhook_system/job.rb in webhook_system-2.1.0 vs lib/webhook_system/job.rb in webhook_system-2.1.1

- old
+ new

@@ -49,10 +49,10 @@ ensure_success(response) end def self.ensure_success(response) status = response.status - unless status == 200 + unless (200..299).cover? status raise RequestFailed.new("request failed with code: #{status}", status) end end def self.build_request(client, subscription, event)