exception_handler 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +61 -57
- data/app/controllers/exception_handler/exception_controller.rb +4 -4
- data/app/helpers/exception_handler/application_helper.rb +5 -5
- data/app/models/exception_handler/error.rb +1 -1
- data/lib/exception_handler.rb +3 -8
- data/lib/exception_handler/config.rb +50 -38
- data/lib/exception_handler/parser/ignore.rb +1 -1
- data/lib/exception_handler/version.rb +1 -1
- data/lib/generators/exception_handler/migration_generator.rb +1 -1
- data/post_install_message.md +1 -1
- data/readme/application_controller.jpg +0 -0
- data/readme/config.jpg +0 -0
- data/readme/db_edit.jpg +0 -0
- data/readme/dev.jpg +0 -0
- data/readme/layout.jpg +0 -0
- data/readme/parser.jpg +0 -0
- data/readme/rubygems.jpg +0 -0
- data/readme/source/subtitle.psd +0 -0
- data/readme/source/title.psd +0 -0
- data/readme/subtitle.jpg +0 -0
- data/readme/title.jpg +0 -0
- data/readme/titles/bugs.png +0 -0
- data/readme/titles/contents.png +0 -0
- data/readme/titles/contribution.png +0 -0
- data/readme/titles/custom_error_pages.png +0 -0
- data/readme/titles/support.png +0 -0
- data/readme/titles/testing.png +0 -0
- data/readme/titles/title.psd +0 -0
- data/readme/view.jpg +0 -0
- metadata +13 -4
- data/readme/title.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11013db45b531b62683007e0106bd99cbd127e87
|
4
|
+
data.tar.gz: 7ff985c6b94846376adf94e66d52bb9778683969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbe185c0ef99ad271803055c4469fc118251413d9918b80778479ec11b84f7acfa8e0ec5e679bda9e521fb83d6f096240d751e4db81482052376ee98d6d9bd73
|
7
|
+
data.tar.gz: 2a585fe7364b3962341450dda80b6086942d46718cbb15ba12311606c6c9b88930bc581d9dd6cbf30819a118941c5f4be021feb132ee3c304b9f7b3ec0292a19
|
data/README.md
CHANGED
@@ -1,35 +1,26 @@
|
|
1
|
-
![Exception Handler](/readme/title.
|
2
|
-
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/exception_handler.svg)](http://badge.fury.io/rb/exception_handler)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/richpeck/exception_handler.png)](https://codeclimate.com/github/richpeck/exception_handler)
|
5
|
-
[![Dependency Status](https://gemnasium.com/richpeck/exception_handler.svg)](https://gemnasium.com/richpeck/exception_handler)
|
6
|
-
[![Coverage Status](https://coveralls.io/repos/richpeck/exception_handler/badge.png)](https://coveralls.io/r/richpeck/exception_handler)
|
7
|
-
[![Build Status](https://travis-ci.org/richpeck/exception_handler.svg?branch=master)](https://travis-ci.org/richpeck/exception_handler)
|
1
|
+
![Exception Handler](/readme/title.jpg "Exception Handler Logo")
|
8
2
|
|
3
|
+
<p align="center">
|
4
|
+
<a href="http://badge.fury.io/rb/exception_handler"><img src="https://badge.fury.io/rb/exception_handler.svg"></a>
|
5
|
+
<a href="https://codeclimate.com/github/richpeck/exception_handler"><img src="https://codeclimate.com/github/richpeck/exception_handler.png"></a>
|
6
|
+
<a href="https://gemnasium.com/richpeck/exception_handler"><img src="https://gemnasium.com/richpeck/exception_handler.svg"></a>
|
7
|
+
<a href="https://coveralls.io/r/richpeck/exception_handler"><img src="https://coveralls.io/repos/richpeck/exception_handler/badge.png"></a>
|
8
|
+
<a href="https://travis-ci.org/richpeck/exception_handler"><img src="https://travis-ci.org/richpeck/exception_handler.svg?branch=master"></a>
|
9
|
+
</p>
|
9
10
|
|
10
11
|
----------
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
Need a custom layout to show professional-looking errors in production?
|
15
|
-
|
16
|
-
`exception_handler` is exactly what you need!
|
17
|
-
|
18
|
-
----------
|
19
|
-
|
20
|
-
**ExceptionHandler** provides error handling for Rails 4+ apps *(adapted from [**1**](https://gist.github.com/wojtha/8433843) & [**2**](http://www.sharagoz.com/posts/1-rolling-your-own-exception-handler-in-rails-3))*.
|
21
|
-
|
22
|
-
It hooks into the **[`config.exceptions_app`](http://guides.rubyonrails.org/configuring.html#rails-general-configuration)** middleware:
|
23
|
-
|
24
|
-
![Exceptions_App middleware](/readme/exceptions_app.png)
|
25
|
-
|
26
|
-
With **ExceptionHandler**, you can create custom **404 & 500 production error pages**:
|
13
|
+
**ExceptionHandler** helps you can create custom **404 & 500 production error pages** *(adapted from [**1**](https://gist.github.com/wojtha/8433843) & [**2**](http://www.sharagoz.com/posts/1-rolling-your-own-exception-handler-in-rails-3))*:
|
27
14
|
|
28
15
|
![Exceptions_App middleware](/readme/subtitle.jpg)
|
29
16
|
|
17
|
+
<p align="center">
|
18
|
+
<img src="/readme/titles/custom_error_pages.png" title="Exceptions_App middleware" />
|
19
|
+
</p>
|
20
|
+
|
30
21
|
---
|
31
22
|
|
32
|
-
**ExceptionHandler**
|
23
|
+
**ExceptionHandler** uses the `config.exceptions_app` to catch errors & send them to our [`exceptions` controller](app/controllers/exception_handler/exception_controller.rb). It then extracts data such as `message`, `details`, `user agent`, & populates our `custom view`, storing it in the db:
|
33
24
|
|
34
25
|
**40x Errors** | **50x Errors**
|
35
26
|
--- | ---
|
@@ -37,77 +28,88 @@ With **ExceptionHandler**, you can create custom **404 & 500 production error pa
|
|
37
28
|
**layouts/application.html.erb** | **layouts/errors.html.erb**
|
38
29
|
|
39
30
|
|
40
|
-
All exceptions in Rails are handled by the [
|
31
|
+
All exceptions in Rails are handled by the [**`ActiveDispatch::ShowExceptions`**](https://github.com/rails/rails/blob/4-0-stable/actionpack/lib/action_dispatch/middleware/show_exceptions.rb) middleware.
|
41
32
|
|
42
|
-
This is invoked through a hook called
|
33
|
+
This is invoked through a hook called **`config.exceptions_app`**, accessed through the `environment` files of rails `application.rb`, `environments/development.rb`, `environments/production.rb` etc.
|
43
34
|
|
44
|
-
|
35
|
+
Simply, it gives you a concise, robust way to access all the data of an exception, pushing your app to the next level in branding and usability. There is no other system like this for Rails. `ExceptionHandler` is the *only* Rails production exception handling solution, giving you complete control over the feel of your application, even when it fails:
|
45
36
|
|
46
37
|
![Parse](/readme/parser.jpg "Parser")
|
47
38
|
|
48
39
|
----------
|
49
40
|
|
41
|
+
<img src="/readme/titles/contents.png" title="Contents" />
|
42
|
+
|
43
|
+
- [**Installation**](https://github.com/richpeck/exception_handler#installation)
|
44
|
+
- [Config](https://github.com/richpeck/exception_handler#config)
|
45
|
+
- [DB](https://github.com/richpeck/exception_handler#db)
|
46
|
+
- [Views](https://github.com/richpeck/exception_handler#views)
|
47
|
+
- [Layout](https://github.com/richpeck/exception_handler#layout)
|
48
|
+
- [**Testing**](https://github.com/richpeck/exception_handler#testing)
|
49
|
+
- [**Bugs**](https://github.com/richpeck/exception_handler#bugs)
|
50
|
+
- [**Support**](https://github.com/richpeck/exception_handler#support)
|
51
|
+
- [**Contribution**](https://github.com/richpeck/exception_handler#contribution)
|
52
|
+
|
53
|
+
----------
|
54
|
+
|
50
55
|
## Installation
|
51
56
|
|
52
57
|
gem install 'exception_handler'
|
53
58
|
|
54
59
|
or
|
55
60
|
|
56
|
-
gem 'exception_handler', '~> 0.4.
|
61
|
+
gem 'exception_handler', '~> 0.4.6' # Gemfile
|
57
62
|
|
58
|
-
|
63
|
+
<a href="https://rubygems.org/gems/exception_handler" style="text-align: center">
|
64
|
+
You can see `ExceptionHandler` on RubyGems
|
65
|
+
<br />
|
66
|
+
<img src="/readme/rubygems.jpg" />
|
67
|
+
</a>
|
59
68
|
|
60
|
-
|
61
|
-
|
62
|
-
--
|
69
|
+
----------
|
63
70
|
|
64
71
|
##### Config
|
65
72
|
|
66
|
-
|
73
|
+
If you wish to change any of the default settings (below), you should now add `config.exception_handler` to your `config/application.rb` or `config/production.rb` file:
|
67
74
|
|
68
|
-
|
75
|
+
![Config Options](/readme/config.jpg)
|
69
76
|
|
70
|
-
$ rails g exception_handler:install
|
71
77
|
|
72
|
-
|
78
|
+
**IMPORTANT**
|
73
79
|
|
74
|
-
|
80
|
+
If you're upgrading to `0.4.6`, you need to remove your `exception_handler` initializer.
|
75
81
|
|
76
|
-
|
82
|
+
We've changed the load process to use Rails app `config` - **you don't need the `exception_handler` initializer any more**
|
77
83
|
|
78
|
-
|
84
|
+
----------
|
79
85
|
|
80
86
|
##### DB
|
81
87
|
|
82
|
-
|
83
|
-
|
84
|
-
If you want to set up database support (IE have exceptions saved to a table), you need to create a migration:
|
88
|
+
If you want to store exceptions in the db, you will need to set up a `migration`:
|
85
89
|
|
86
90
|
$ rails generate exception_handler:migration
|
87
91
|
$ rake db:migrate
|
88
92
|
|
89
93
|
![Database](/readme/db.jpg "Database")
|
90
94
|
|
91
|
-
|
95
|
+
You will also need to ensure your config `db` option is either `true` || `:table_name`:
|
92
96
|
|
93
97
|
![Database Edit](/readme/db_edit.jpg "Database Edit")
|
94
98
|
|
95
|
-
|
99
|
+
----------
|
96
100
|
|
97
101
|
##### Views
|
98
102
|
|
99
|
-
*Optional*
|
100
|
-
|
101
103
|
If you want to change the views, you can have them put into your app:
|
102
104
|
|
103
|
-
$ rails generate exception_handler:views #-> controller, models, views & assets
|
104
|
-
$ rails generate exception_handler:views -v views controllers models assets #-> remove as appropriate to install individual assets
|
105
|
+
$ rails generate exception_handler:views #-> controller, models, helpers, views & assets
|
106
|
+
$ rails generate exception_handler:views -v views controllers models helpers assets #-> remove as appropriate to install individual assets
|
105
107
|
|
106
108
|
The views will be appended to your app, and you'll be able to edit them as required.
|
107
109
|
|
108
110
|
---
|
109
111
|
|
110
|
-
|
112
|
+
##### Show
|
111
113
|
|
112
114
|
![View](/readme/view.jpg "View")
|
113
115
|
|
@@ -117,11 +119,11 @@ By default, it is split for use with different layouts, data being available to
|
|
117
119
|
|
118
120
|
This works exactly the same as the other views in your app (IE the `exceptions` controller invokes the `show` action)
|
119
121
|
|
120
|
-
|
122
|
+
----------
|
121
123
|
|
122
|
-
|
124
|
+
##### Layout
|
123
125
|
|
124
|
-
One of the most critial aspects of **ExceptionHandler** is the custom `
|
126
|
+
One of the most critial aspects of **ExceptionHandler** is the [custom `Exception` layout](/app/controllers/exception_handler/exception_controller.rb).
|
125
127
|
|
126
128
|
If you want to change the layout (for 500 error pages), you need to use the following:
|
127
129
|
|
@@ -129,7 +131,7 @@ If you want to change the layout (for 500 error pages), you need to use the foll
|
|
129
131
|
|
130
132
|
----------
|
131
133
|
|
132
|
-
|
134
|
+
<img src="/readme/titles/testing.png" id="testing" />
|
133
135
|
|
134
136
|
`config.exceptions_app` is only used in Rails' **production** environment.
|
135
137
|
|
@@ -139,11 +141,9 @@ If you wish to test the gem in dev, you'll need to make your app process request
|
|
139
141
|
|
140
142
|
You should change this setting if you wish to test your styling in development mode. It should be temporary (you need to change it back once you have it looking how you like)
|
141
143
|
|
142
|
-
### Usable_Type & Usable_ID
|
143
|
-
|
144
144
|
----------
|
145
145
|
|
146
|
-
|
146
|
+
<img src="readme/titles/bugs.png" id="bugs" />
|
147
147
|
|
148
148
|
1. `ApplicationController`
|
149
149
|
|
@@ -159,14 +159,18 @@ You should change this setting if you wish to test your styling in development m
|
|
159
159
|
an exception loop, leading to catastrophic failure.
|
160
160
|
|
161
161
|
|
162
|
-
|
162
|
+
----------
|
163
|
+
|
164
|
+
<img src="readme/titles/support.png" id="support" />
|
163
165
|
|
164
166
|
- Watch the video tutorial (soon)
|
165
167
|
- [Create an "issue"](https://github.com/richpeck/exception_handler/issues)
|
166
168
|
- Contact support (soon)
|
167
169
|
- [Ask on StackOverflow](http://stackoverflow.com/questions/ask?tags=exception_handler&ruby_on_rails)
|
168
170
|
|
169
|
-
|
171
|
+
----------
|
172
|
+
|
173
|
+
<img src="readme/titles/contribution.png" id="contribution" />
|
170
174
|
|
171
175
|
1. Fork it ( https://github.com/richpeck/exception_handler/fork )
|
172
176
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
@@ -24,8 +24,8 @@ module ExceptionHandler
|
|
24
24
|
@message = (/^(5[0-9]{2})$/ !~ @status.to_s) ? "Sorry, this page is missing" : details[:message]
|
25
25
|
|
26
26
|
## Config "404 block" handler ##
|
27
|
-
if /^(5[0-9]{2})$/ !~ @status.to_s && ExceptionHandler.config["404"] #-> http://www.justskins.com/forums/ruby-s-regexp-is-52846.html
|
28
|
-
eval ExceptionHandler.config["404"]
|
27
|
+
if /^(5[0-9]{2})$/ !~ @status.to_s && ExceptionHandler.config.layouts["404"] #-> http://www.justskins.com/forums/ruby-s-regexp-is-52846.html
|
28
|
+
eval ExceptionHandler.config.layouts["404"]
|
29
29
|
else
|
30
30
|
## Render (if eval do anything) ##
|
31
31
|
render status: @status
|
@@ -66,9 +66,9 @@ module ExceptionHandler
|
|
66
66
|
def layout_status
|
67
67
|
case @status
|
68
68
|
when 404
|
69
|
-
ExceptionHandler.config
|
69
|
+
ExceptionHandler.config.layouts["400"] || nil #-> inherits ApplicationController layout
|
70
70
|
else
|
71
|
-
ExceptionHandler.config
|
71
|
+
ExceptionHandler.config.layouts["500"] #-> should pull default if none sepecified
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
@@ -9,10 +9,10 @@ module ExceptionHandler
|
|
9
9
|
#Social
|
10
10
|
def social *services
|
11
11
|
output = []
|
12
|
-
# options = args.extract_options! http://simonecarletti.com/blog/2009/09/inside-ruby-on-rails-extract_options-from-arrays/ - args for
|
12
|
+
# options = args.extract_options! http://simonecarletti.com/blog/2009/09/inside-ruby-on-rails-extract_options-from-arrays/ - args for hash
|
13
13
|
|
14
|
-
services = ExceptionHandler.config
|
15
|
-
services.except(:url).each do |service,username| #-> except http://stackoverflow.com/a/11105831/1143732
|
14
|
+
services = ExceptionHandler.config.social unless services.any? #-> http://api.rubyonrails.org/classes/Hash.html#method-i-compact
|
15
|
+
services.except(:url).compact.each do |service,username| #-> except http://stackoverflow.com/a/11105831/1143732
|
16
16
|
output.push link_to(image_tag("exception_handler/connect/#{service}.png", title: "Find us on " + service.to_s.titleize), link(service), target: :blank, class: service.to_s)
|
17
17
|
end
|
18
18
|
|
@@ -23,8 +23,8 @@ module ExceptionHandler
|
|
23
23
|
|
24
24
|
def link service #-> bloated way to allow single references in config
|
25
25
|
url = []
|
26
|
-
url.push ExceptionHandler.config
|
27
|
-
url.push ExceptionHandler.config
|
26
|
+
url.push ExceptionHandler.config.social[:url][service]
|
27
|
+
url.push ExceptionHandler.config.social[service]
|
28
28
|
url.join("/")
|
29
29
|
end
|
30
30
|
|
data/lib/exception_handler.rb
CHANGED
@@ -17,9 +17,8 @@ module ExceptionHandler
|
|
17
17
|
autoload :VERSION, 'exception_handler/version'
|
18
18
|
|
19
19
|
#Config
|
20
|
-
#
|
20
|
+
#Invoke instance of config -- loads defaults
|
21
21
|
mattr_accessor :config
|
22
|
-
@@config = ExceptionHandler::Config.defaults #-> instance of defaults invoked with @@config, merged with deep_merge
|
23
22
|
|
24
23
|
# Don't have prefix method return anything.
|
25
24
|
# This will keep Rails Engine from generating all table prefixes with the engines name
|
@@ -39,18 +38,14 @@ module ExceptionHandler
|
|
39
38
|
#Stylesheet
|
40
39
|
config.assets.precompile += %w(exception_handler/error.css)
|
41
40
|
|
42
|
-
#Config
|
43
|
-
@@config = ExceptionHandler.config
|
44
|
-
|
45
41
|
#Hook
|
46
42
|
initializer "exception_handler.configure_rails_initialization" do |app|
|
47
43
|
|
48
44
|
#Options
|
49
|
-
|
50
|
-
@@config[:db] = ExceptionHandler::Config::TABLE_NAME if @@config[:db] == true
|
45
|
+
ExceptionHandler.config = ExceptionHandler::Config.new(app.config.respond_to?(:exception_handler) ? app.config.exception_handler : nil)
|
51
46
|
|
52
47
|
#Middleware
|
53
|
-
app.config.middleware.use ExceptionHandler::Parse if
|
48
|
+
app.config.middleware.use ExceptionHandler::Parse if ExceptionHandler.config.db # && ActiveRecord::Base.connection.table_exists?(:errors unless @@config[:db].blank?) #DB
|
54
49
|
app.config.exceptions_app = ->(env) { ExceptionHandler::ExceptionController.action(:show).call(env) } #Controller
|
55
50
|
end
|
56
51
|
|
@@ -8,46 +8,58 @@
|
|
8
8
|
|
9
9
|
module ExceptionHandler
|
10
10
|
class Config
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
social: {
|
24
|
-
:facebook => 'frontline.utilities',
|
25
|
-
:twitter => 'frontlineutils',
|
26
|
-
:youtube => 'frontlineutils',
|
27
|
-
:linkedin => 'frontline-utilities',
|
28
|
-
:fusion => 'frontlineutils',
|
29
|
-
:url => {
|
30
|
-
:facebook => 'https://facebook.com',
|
31
|
-
:twitter => 'http://twitter.com',
|
32
|
-
:youtube => 'https://youtube.com/user',
|
33
|
-
:linkedin => 'https://linkedin.com/company',
|
34
|
-
:fusion => 'https://frontlinefusion.com',
|
35
|
-
},
|
36
|
-
},
|
37
|
-
layouts: {
|
38
|
-
'400' => nil,
|
39
|
-
'500' => 'exception'
|
40
|
-
},
|
41
|
-
}
|
11
|
+
|
12
|
+
#Instace Objects
|
13
|
+
attr_accessor :db, :email, :social, :layouts
|
14
|
+
|
15
|
+
###########################################
|
16
|
+
|
17
|
+
#Init
|
18
|
+
def initialize values
|
19
|
+
defaults = values.present? ? Config::DEFAULTS.deep_merge!(values) : Config::DEFAULTS
|
20
|
+
defaults.each do |k,v|
|
21
|
+
instance_variable_set("@#{k}",v) #-> http://apidock.com/ruby/Object/instance_variable_set
|
22
|
+
end
|
42
23
|
end
|
43
24
|
|
44
|
-
#
|
45
|
-
#Use the following:
|
25
|
+
# INSTANCE METHODS #
|
46
26
|
|
47
|
-
#
|
48
|
-
|
49
|
-
|
27
|
+
#DB
|
28
|
+
def db
|
29
|
+
@db == true ? Config::TABLE_NAME : @db
|
30
|
+
end
|
31
|
+
|
32
|
+
###########################################
|
33
|
+
|
34
|
+
#Default Table Name
|
35
|
+
# Has to be "errors" because "exceptions" is a reserved word
|
36
|
+
TABLE_NAME = :errors
|
37
|
+
|
38
|
+
# Defaults
|
39
|
+
# http://stackoverflow.com/a/8917301/1143732
|
40
|
+
DEFAULTS = {
|
41
|
+
db: false, #-> defaults to :errors if true, else use :table_name
|
42
|
+
email: false, #-> need to integrate
|
43
|
+
social: {
|
44
|
+
:facebook => 'frontline.utilities',
|
45
|
+
:twitter => 'frontlineutils',
|
46
|
+
:youtube => 'frontlineutils',
|
47
|
+
:linkedin => 'frontline-utilities',
|
48
|
+
:fusion => 'frontlineutils',
|
49
|
+
:url => {
|
50
|
+
:facebook => 'https://facebook.com',
|
51
|
+
:twitter => 'http://twitter.com',
|
52
|
+
:youtube => 'https://youtube.com/user',
|
53
|
+
:linkedin => 'https://linkedin.com/company',
|
54
|
+
:fusion => 'https://frontlinefusion.com',
|
55
|
+
},
|
56
|
+
},
|
57
|
+
layouts: {
|
58
|
+
'400' => nil,
|
59
|
+
'404' => nil, #-> 404 Callback (needs improving big time) Use the following: '404' => <<-EOF redirect_to root_url, notice: "Hello" EOF
|
60
|
+
'500' => 'exception'
|
61
|
+
},
|
62
|
+
}
|
50
63
|
|
51
|
-
#This will invoke specifics for the
|
52
64
|
end
|
53
|
-
end
|
65
|
+
end
|
@@ -19,7 +19,7 @@ module ExceptionHandler
|
|
19
19
|
|
20
20
|
#Errors
|
21
21
|
def errors #-> http://ruby-doc.org/core-2.2.0/Array.html#class-Array-label-Creating+Arrays
|
22
|
-
|
22
|
+
[ActionController::RoutingError, AbstractController::ActionNotFound, ActiveRecord::RecordNotFound]
|
23
23
|
end
|
24
24
|
|
25
25
|
#Bots
|
@@ -21,7 +21,7 @@ module ExceptionHandler
|
|
21
21
|
#Table Name - false = off, true = errors, value = value
|
22
22
|
#Always outputs string for some reason...
|
23
23
|
def table_name
|
24
|
-
ExceptionHandler.config
|
24
|
+
ExceptionHandler.config.db
|
25
25
|
end
|
26
26
|
|
27
27
|
###########################################
|
data/post_install_message.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
########################################################################################
|
11
11
|
|
12
12
|
IMPORTANT -
|
13
|
-
**IF UPGRADING EXCEPTION HANDLER (to 0.4.
|
13
|
+
**IF UPGRADING EXCEPTION HANDLER (to 0.4.7)***
|
14
14
|
**DELETE INITIALIZER (config/initializers/exception_handler.rb)**
|
15
15
|
|
16
16
|
We've changed the initialization process for ExceptionHandler.
|
Binary file
|
data/readme/config.jpg
CHANGED
Binary file
|
data/readme/db_edit.jpg
CHANGED
Binary file
|
data/readme/dev.jpg
CHANGED
Binary file
|
data/readme/layout.jpg
CHANGED
Binary file
|
data/readme/parser.jpg
CHANGED
Binary file
|
data/readme/rubygems.jpg
ADDED
Binary file
|
Binary file
|
data/readme/source/title.psd
CHANGED
Binary file
|
data/readme/subtitle.jpg
CHANGED
Binary file
|
data/readme/title.jpg
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/readme/view.jpg
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Peck
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-12-
|
12
|
+
date: 2015-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -152,10 +152,19 @@ files:
|
|
152
152
|
- readme/exceptions_app.png
|
153
153
|
- readme/layout.jpg
|
154
154
|
- readme/parser.jpg
|
155
|
+
- readme/rubygems.jpg
|
155
156
|
- readme/source/screen.psd
|
157
|
+
- readme/source/subtitle.psd
|
156
158
|
- readme/source/title.psd
|
157
159
|
- readme/subtitle.jpg
|
158
|
-
- readme/title.
|
160
|
+
- readme/title.jpg
|
161
|
+
- readme/titles/bugs.png
|
162
|
+
- readme/titles/contents.png
|
163
|
+
- readme/titles/contribution.png
|
164
|
+
- readme/titles/custom_error_pages.png
|
165
|
+
- readme/titles/support.png
|
166
|
+
- readme/titles/testing.png
|
167
|
+
- readme/titles/title.psd
|
159
168
|
- readme/view.jpg
|
160
169
|
- spec/spec_helper.rb
|
161
170
|
homepage: http://frontlineutilities.co.uk/ror/custom_error_pages
|
@@ -171,7 +180,7 @@ post_install_message: "#########################################################
|
|
171
180
|
(_| | | | | (_| | | __/ | ##\n## \\____/_/\\_\\___\\___| .__/ \\__|_|\\___/|_|
|
172
181
|
|_| \\_| |_/\\__,_|_| |_|\\__,_|_|\\___|_| ## \n## | | ##\n##
|
173
182
|
\ |_| ##\n########################################################################################\n\nIMPORTANT
|
174
|
-
-\n**IF UPGRADING EXCEPTION HANDLER (to 0.4.
|
183
|
+
-\n**IF UPGRADING EXCEPTION HANDLER (to 0.4.7)***\n**DELETE INITIALIZER (config/initializers/exception_handler.rb)**\n\nWe've
|
175
184
|
changed the initialization process for ExceptionHandler.\n\nThe initializer has
|
176
185
|
been replaced with /config/application.rb\noptions:\n\n#config/application.rb\nconfig.exception_handler
|
177
186
|
= {\n\tdb: \tfalse, #-> defaults to :errors if true, else use :table_name\n\temail:
|
data/readme/title.png
DELETED
Binary file
|