openstax_rescue_from 1.1.0 → 1.1.1

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
- OWZjZTY5NGM1OGJiYmY4MzliNTgzMWZiZWU1NjMyMDU2Mzg3Y2Q2NA==
4
+ NWM2OGFjZThlZWMzNzQyOGEwNjllYmFlYzViYmY0OTcyZjI1NGNjMg==
5
5
  data.tar.gz: !binary |-
6
- ODQ4NjFmMTMxNzJmMjk3ZjJiMjFlOWUzYmQxOWZmMjkzMTQzNTg2ZQ==
6
+ YmIzN2NlNzBjNTkyNWU4NmM3NDEwMTA0NDA5MDAyNTQ4YWY5MGM5MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTAzMWVjZGM0ODJlZGM1NjZkMmMyN2MwNzU1OGUzNTU0N2EyYzVkMWYxNWZm
10
- MmMyZDFiYzYwNTI4OTU2OTFmZTQ3MmYyOGNiOWNiZjZhM2NiYjYwZWMzZWYx
11
- MWVkMWU3YTg4NmQ3NjllNjYwMjlkZDdlZWU3Yzc3MTFlZmJlYmE=
9
+ ZDBhMzI5ZjdjMGQ2MWQwMzc5ZWM3OWM5Y2MxOTRlOTM3ZmMxZDBiNmRlMDlk
10
+ Mzk5NjUyZDNmNWJlNDMyNTE2ODljN2Y0MTZmZjBmYmVjMTg5OWE5Yjc0ZWVk
11
+ ZWVjZjhhMGM5MzY3MGYzMjlhYzU2NjdmYjYyNWQ1YjliZTEzYTA=
12
12
  data.tar.gz: !binary |-
13
- ZDE1ODgyNGUwZDRlNTkyZDY5NWM1M2NhY2VlZjZiMDFmM2M1YTMwZDMxZmJl
14
- ZGU0YTE1YzY2YjU4ZWU5YmYyMTQxYzY4M2I2YWNhZDZkNWZjN2M0MWM5MmIz
15
- MTc5YjJjNmM4OWUzOGNiM2M5MmM1ZmVhOGNjNDk2ZTcwYTVkODU=
13
+ ZThkYWE3N2M4MWMwZTQ3ZDBhMDUzZmJhMjg5ZGJlODc3ZDAwY2UxZWRmNTE4
14
+ ZGMwYzViZDBkOGQ1MWRhYjBmOThmNmZlYmJiY2U0MDBlM2E5MDBhNGRjMDAx
15
+ YWM2ZGI2OGI3NDE2YzVmZWM5NTQwYTc1ZjM1YmIxZmIzN2FkMjQ=
data/README.md CHANGED
@@ -7,7 +7,7 @@ This is the gem that brings together disparate systems within OpenStax and abstr
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'rescue_from', '~> 1.0.0'
10
+ gem 'rescue_from', '~> 1.1.0'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -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.'
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module RescueFrom
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -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.0
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-02 00:00:00.000000000 Z
12
+ date: 2015-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails