openstax_rescue_from 1.1.0 → 1.1.1
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.
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NWM2OGFjZThlZWMzNzQyOGEwNjllYmFlYzViYmY0OTcyZjI1NGNjMg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YmIzN2NlNzBjNTkyNWU4NmM3NDEwMTA0NDA5MDAyNTQ4YWY5MGM5MA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZDBhMzI5ZjdjMGQ2MWQwMzc5ZWM3OWM5Y2MxOTRlOTM3ZmMxZDBiNmRlMDlk
|
|
10
|
+
Mzk5NjUyZDNmNWJlNDMyNTE2ODljN2Y0MTZmZjBmYmVjMTg5OWE5Yjc0ZWVk
|
|
11
|
+
ZWVjZjhhMGM5MzY3MGYzMjlhYzU2NjdmYjYyNWQ1YjliZTEzYTA=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZThkYWE3N2M4MWMwZTQ3ZDBhMDUzZmJhMjg5ZGJlODc3ZDAwY2UxZWRmNTE4
|
|
14
|
+
ZGMwYzViZDBkOGQ1MWRhYjBmOThmNmZlYmJiY2U0MDBlM2E5MDBhNGRjMDAx
|
|
15
|
+
YWM2ZGI2OGI3NDE2YzVmZWM5NTQwYTc1ZjM1YmIxZmIzN2FkMjQ=
|
data/README.md
CHANGED
|
@@ -49,3 +49,7 @@ end
|
|
|
49
49
|
#
|
|
50
50
|
# Default:
|
|
51
51
|
# - internal_server_error: "Sorry, #{OpenStax::RescueFrom.configuration.app_name} had some unexpected trouble with your request."
|
|
52
|
+
# - not_found: 'Sorry, we could not find that resource.',
|
|
53
|
+
# - bad_request: 'The request was unrecognized.',
|
|
54
|
+
# - forbidden: 'You are not allowed to do that.'
|
|
55
|
+
# - unprocessable_entity: 'The entity could not be processed.'
|
data/lib/openstax/rescue_from.rb
CHANGED
|
@@ -76,7 +76,11 @@ module OpenStax
|
|
|
76
76
|
private
|
|
77
77
|
def friendly_status_messages
|
|
78
78
|
@@friendly_status_messages ||= {
|
|
79
|
-
internal_server_error: default_friendly_message
|
|
79
|
+
internal_server_error: default_friendly_message,
|
|
80
|
+
:not_found => 'Sorry, we could not find that resource.',
|
|
81
|
+
bad_request: 'The request was unrecognized.',
|
|
82
|
+
forbidden: 'You are not allowed to do that.',
|
|
83
|
+
unprocessable_entity: 'The entity could not be processed.'
|
|
80
84
|
}
|
|
81
85
|
end
|
|
82
86
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openstax_rescue_from
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- JP Slavinsky
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-10-
|
|
12
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|