fanforce-internal-errors 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTI0NmJmN2M0NGQ1MzhjOWY0MmFiYTM4ZmU3ZjZiNDMzYzhiOWNiYQ==
4
+ ZDVhMWM1OGIzNTg3NzM0OGY4YmEzOWFjZGM4Y2JiZDA3MWRjODI1Nw==
5
5
  data.tar.gz: !binary |-
6
- NmZkYWU1ZTc0ZGM4MzQwMDdiNDMxNWNjMTBhYjEwY2I1YzI1YjYyNQ==
6
+ OTdlYzNjOTI5MWY1Y2NjOTIzODcwMzFkNzlmODI5MDUxZDc1ZjIyZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTY0MGZkMzEzMzk3MDU1MjI0NTY0YTQxMTgzNmEyNjBkNTFhYmRmMzJhNDJi
10
- NDZmOTA4MDk5OGE5NjZkMDY2ZmE5MGMzMGFmNGUyMDU1ODgzZDk0OGE1MmYy
11
- YTVkYjM4Mzc5ZTY1NzRhYmI2ZWQ2YWM5OGI1YjJlOTNhZmI2YmE=
9
+ ZTA2OTUyYjgzOTA2NWE1NDZkMGQ5NGQ4ODlmYzRiZmQ5NDYyMDA1YzkyYTM4
10
+ ZDQyY2JhNGY5NWRiNDRjNzdkYTIyNzM1YjA0MmQ4OTA3MTBlOTA5YjRjMTVj
11
+ MjAwMDkwYjA0MDExYWMxOGQyMGYzMDNjZjRlYjIzZGNiMzAzMWE=
12
12
  data.tar.gz: !binary |-
13
- YzQ5YmNlYTdmODY3MTkzMTg1YTg0YTNhZWFhYjU5ZmI2YWJkMTg3Y2RlMDU3
14
- YjljNzU3YzYxOGI3NzEyYWNmMjM2ZmU5Zjc5NWJlZDFiYTk3ZjRlOTk5YTBj
15
- ZGU0ZDM0YWM0OGQ1MDdhMjE5Yjg3MGE0Nzg5MTkwMTlhZjVjOWQ=
13
+ NDk4YzEwNzk0ZjM4MDgxNjM5ZDc5Y2E0MDdmOTRmMTkxZDI4ZDViOWRjNmQ4
14
+ ZWU4MDlmNmYxYjljOTJkNjMwYTJkZmI1OWYxYTliMmFkZmNjMDNkZGVmMTNj
15
+ NjUyYmU4NTlmZDQxZjI0YmY1ZWM5NmY0MmViZDkxZDE2ZGQyZWY=
@@ -44,9 +44,9 @@ class Fanforce::Error < StandardError
44
44
 
45
45
  end
46
46
 
47
- class Fanforce::Error::CorruptRequest < Fanforce::Error # Request is missing something or invalid
47
+ class Fanforce::Error::BadRequest < Fanforce::Error # Request is missing something or invalid
48
48
  def code; 400 end
49
- def default_message; 'Corrupt Request' end
49
+ def default_message; 'Bad Request' end
50
50
  def valid_error_codes; [:blank_field, :missing_field, :invalid_association, :invalid_field] end
51
51
  def default_error_code; :unknown end
52
52
  end
@@ -138,14 +138,14 @@ end
138
138
  module Fanforce::Errors
139
139
  def self.included(base) base.extend(self) end
140
140
 
141
- CorruptRequest = Fanforce::Error::CorruptRequest
142
- Unauthorized = Fanforce::Error::Unauthorized
143
- Forbidden = Fanforce::Error::Forbidden
144
- NotFound = Fanforce::Error::NotFound
145
- RequestFailed = Fanforce::Error::RequestFailed
146
- InternalError = Fanforce::Error::InternalError
147
- WebhookFailed = Fanforce::Error::WebhookFailed
148
- AddonFailed = Fanforce::Error::AddonFailed
141
+ BadRequest = Fanforce::Error::BadRequest
142
+ Unauthorized = Fanforce::Error::Unauthorized
143
+ Forbidden = Fanforce::Error::Forbidden
144
+ NotFound = Fanforce::Error::NotFound
145
+ RequestFailed = Fanforce::Error::RequestFailed
146
+ InternalError = Fanforce::Error::InternalError
147
+ WebhookFailed = Fanforce::Error::WebhookFailed
148
+ AddonFailed = Fanforce::Error::AddonFailed
149
149
 
150
150
  def self.format_admin_details(e, errors=[], additional_options={})
151
151
  admin_details = {error_class: e.class.name, public_response: errors}
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  module Errors
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-internal-errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark