wvanbergen-http_status_exceptions 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/http_status_exceptions.rb +2 -2
  2. metadata +2 -2
@@ -9,8 +9,8 @@ module HTTPStatus
9
9
  attr_reader :status, :details
10
10
 
11
11
  # Creates the exception with a message and some optional other info.
12
- def initialize(message, details = nil)
13
- @status = self.class.to_s.split("::").last.underscore.to_sym
12
+ def initialize(message = nil, details = nil)
13
+ @status = self.class.to_s.split("::").last.underscore.to_sym rescue :internal_server_error
14
14
  @details = details
15
15
  super(message)
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wvanbergen-http_status_exceptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem van Bergen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-21 00:00:00 -07:00
12
+ date: 2008-11-19 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15