egregious 0.1.3 → 0.1.4

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.
@@ -19,6 +19,11 @@ module Egregious
19
19
  end
20
20
  end
21
21
 
22
+ def status_code(status)
23
+ Egregious.status_code(status)
24
+ end
25
+
26
+
22
27
  # internal method that loads the exception codes
23
28
  def self._load_exception_codes
24
29
 
@@ -167,7 +172,7 @@ module Egregious
167
172
  end
168
173
 
169
174
  def build_html_file_path(status)
170
- File.join(Rails.root, 'public', status + '.html')
175
+ File.join(Rails.root, 'public', "#{status_code(status)}.html")
171
176
  end
172
177
 
173
178
  def self.included(base)
@@ -1,3 +1,3 @@
1
1
  module Egregious
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egregious
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Russell Edens
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-04 00:00:00 -04:00
18
+ date: 2011-10-13 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency