Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved exceptions to their own file.

  • Loading branch information...
commit 057e3f1a19426a61913f59fac7189e0a47b6dfa5 1 parent 80aa359
@jnunemaker authored
Showing with 6 additions and 4 deletions.
  1. +2 −4 lib/httparty.rb
  2. +4 −0 lib/httparty/exceptions.rb
View
6 lib/httparty.rb
@@ -6,10 +6,7 @@
require 'active_support'
require 'module_level_inheritable_attributes'
-module HTTParty
- class UnsupportedFormat < StandardError; end
- class RedirectionTooDeep < StandardError; end
-
+module HTTParty
AllowedFormats = {:xml => 'text/xml', :json => 'application/json', :html => 'text/html'}
def self.included(base)
@@ -98,4 +95,5 @@ def self.delete(*args)
end
end
+require 'httparty/exceptions'
require 'httparty/request'
View
4 lib/httparty/exceptions.rb
@@ -0,0 +1,4 @@
+module HTTParty
+ class UnsupportedFormat < StandardError; end
+ class RedirectionTooDeep < StandardError; end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.