exception_handler 0.3.45 → 0.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.
- checksums.yaml +4 -4
- data/README.md +86 -122
- data/app/assets/images/exception_handler/alert.jpg +0 -0
- data/app/assets/images/exception_handler/alert.png +0 -0
- data/app/assets/images/exception_handler/bg.jpg +0 -0
- data/app/assets/images/exception_handler/bg_overlay.png +0 -0
- data/app/assets/images/exception_handler/close.png +0 -0
- data/app/assets/images/exception_handler/connect/facebook.png +0 -0
- data/app/assets/images/exception_handler/connect/fusion.png +0 -0
- data/app/assets/images/exception_handler/connect/linkedin.png +0 -0
- data/app/assets/images/exception_handler/connect/twitter.png +0 -0
- data/app/assets/images/exception_handler/connect/youtube.png +0 -0
- data/app/assets/images/exception_handler/home.png +0 -0
- data/app/assets/images/exception_handler/noise.png +0 -0
- data/app/assets/images/exception_handler/overlay.png +0 -0
- data/app/assets/stylesheets/exception_handler/error.css.erb +297 -0
- data/app/controllers/exception_handler/exception_controller.rb +13 -6
- data/app/views/exception_handler/exception/show.html.erb +25 -23
- data/app/views/layouts/error.html.erb +17 -73
- data/lib/exception_handler.rb +9 -5
- data/lib/exception_handler/config.rb +9 -3
- data/lib/exception_handler/parser.rb +2 -2
- data/lib/exception_handler/version.rb +1 -1
- data/lib/generators/exception_handler/install_generator.rb +1 -1
- data/lib/generators/exception_handler/migration_generator.rb +12 -2
- data/lib/generators/templates/config.rb +43 -0
- data/lib/generators/templates/{create_table.rb → migration.rb.erb} +2 -2
- data/readme/400.jpg +0 -0
- data/readme/500.jpg +0 -0
- data/readme/application_controller.jpg +0 -0
- data/readme/config.jpg +0 -0
- data/readme/db.jpg +0 -0
- data/readme/db_edit.jpg +0 -0
- data/readme/dev.jpg +0 -0
- data/readme/exception_controller.jpg +0 -0
- data/readme/exceptions_app.png +0 -0
- data/readme/layout.jpg +0 -0
- data/readme/parser.jpg +0 -0
- data/readme/source/title.psd +0 -0
- data/readme/subtitle.jpg +0 -0
- data/readme/title.png +0 -0
- data/readme/view.jpg +0 -0
- metadata +50 -41
- data/app/assets/images/exception_handler/bg.png +0 -0
- data/app/assets/images/exception_handler/contact/facebook.png +0 -0
- data/app/assets/images/exception_handler/contact/fusion.png +0 -0
- data/app/assets/images/exception_handler/contact/linkedin.png +0 -0
- data/app/assets/images/exception_handler/contact/twitter.png +0 -0
- data/app/assets/images/exception_handler/contact/youtube.png +0 -0
- data/lib/generators/templates/exception_handler.rb +0 -25
- data/readme/404.png +0 -0
- data/readme/404_demo.png +0 -0
- data/readme/500.png +0 -0
- data/readme/500_demo.png +0 -0
- data/readme/config.png +0 -0
- data/readme/config_db.png +0 -0
- data/readme/db.png +0 -0
- data/readme/development.png +0 -0
- data/readme/exception_handler.png +0 -0
- data/readme/gem_install.png +0 -0
- data/readme/install.png +0 -0
- data/readme/install_migration.png +0 -0
- data/readme/install_views.png +0 -0
@@ -1,11 +1,11 @@
|
|
1
1
|
module ExceptionHandler
|
2
|
-
class ExceptionController <
|
2
|
+
class ExceptionController < ApplicationController
|
3
3
|
|
4
4
|
#Response
|
5
5
|
respond_to :html, :xml, :json
|
6
6
|
|
7
7
|
#Dependencies
|
8
|
-
before_action :status, :
|
8
|
+
before_action :status, :app_details
|
9
9
|
|
10
10
|
#Layout
|
11
11
|
layout :layout_status
|
@@ -16,7 +16,9 @@ module ExceptionHandler
|
|
16
16
|
|
17
17
|
#Show
|
18
18
|
def show
|
19
|
-
|
19
|
+
@layout = self.send(:_layout)
|
20
|
+
@message = @status == 404 ? "Sorry, this page is missing" : details[:message]
|
21
|
+
render status: @status
|
20
22
|
end
|
21
23
|
|
22
24
|
####################
|
@@ -51,13 +53,18 @@ module ExceptionHandler
|
|
51
53
|
|
52
54
|
#Layout
|
53
55
|
def layout_status
|
54
|
-
@status
|
56
|
+
case @status
|
57
|
+
when 404
|
58
|
+
ExceptionHandler.config.error_layout || nil #-> inherits ApplicationController layout
|
59
|
+
else
|
60
|
+
ExceptionHandler.config.exception_layout || 'error'
|
61
|
+
end
|
55
62
|
end
|
56
63
|
|
57
64
|
#App
|
58
|
-
def
|
65
|
+
def app_details
|
59
66
|
@app_name = Rails.application.class.parent_name
|
60
67
|
end
|
61
68
|
|
62
69
|
end
|
63
|
-
end
|
70
|
+
end
|
@@ -1,27 +1,29 @@
|
|
1
|
-
|
1
|
+
<div class="error">
|
2
|
+
<% if @layout == "error" %>
|
2
3
|
|
3
|
-
Sorry, this page is missing!
|
4
|
-
|
5
|
-
<% else %>
|
6
|
-
|
7
|
-
<div class="error">
|
8
|
-
|
9
|
-
<!--Alert -->
|
10
|
-
<%= image_tag 'exception_handler/alert.png', width: "150", alt: "Error!", title: "Sorry, A Server Error Occurred", class: "alert" %>
|
11
|
-
|
12
4
|
<!--Message -->
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<!--Contact -->
|
19
|
-
<div class="contact">
|
20
|
-
<% ExceptionHandler.config.social.each do |item, address| %>
|
21
|
-
<%= link_to image_tag("exception_handler/contact/#{item}.png", title: item.to_s.titleize), address, target: :blank %>
|
5
|
+
<%= content_tag :div, class: "message" do %>
|
6
|
+
<%= content_tag :div, class: "title" do %>
|
7
|
+
<span><%= "#{@status} Error - #{details[:name]}" %></span>
|
8
|
+
<%= link_to image_tag("exception_handler/close.png"), root_url, title: "Close (Go back home)", class: "close" %>
|
22
9
|
<% end %>
|
23
|
-
|
24
|
-
|
25
|
-
|
10
|
+
<%= content_tag :div, class: "details" do %>
|
11
|
+
<%= image_tag "exception_handler/alert.png", title: "#{@status} Error" %>
|
12
|
+
<div class="status"><%= @status %> Error</div>
|
13
|
+
<% end %>
|
14
|
+
<%= content_tag :div, class: "info" do %>
|
15
|
+
<span><%= @message %></span>
|
16
|
+
<div class="notification">
|
17
|
+
<%= link_to image_tag("exception_handler/home.png", title: "Go Back Home"), root_url, class: "home" %>
|
18
|
+
<div class="version">v<%= Rails.version %></div>
|
19
|
+
<strong>Our developers have been notified - we're working on it!</strong>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
<% else %>
|
26
25
|
|
27
|
-
|
26
|
+
<%= content_tag :div, @message, class: "message" %>
|
27
|
+
|
28
|
+
<% end %>
|
29
|
+
</div>
|
@@ -3,85 +3,29 @@
|
|
3
3
|
<head>
|
4
4
|
|
5
5
|
<!--Info -->
|
6
|
-
<title><%= "
|
6
|
+
<title><%= "Code #{@status} (#{details[:name]}) | #{@app_name.upcase}" %></title>
|
7
|
+
<%= stylesheet_link_tag "exception_handler/error" %>
|
7
8
|
|
8
|
-
<!--Styling -->
|
9
|
-
<style>
|
10
|
-
|
11
|
-
html {
|
12
|
-
height: 100%;
|
13
|
-
background: #fff asset_url("custom_error_pages/bg.png") bottom repeat-x;
|
14
|
-
}
|
15
|
-
|
16
|
-
body {
|
17
|
-
font-family: Helvetica, Arial, Sans-Serif;
|
18
|
-
font-size: 14px;
|
19
|
-
}
|
20
|
-
.error_container {
|
21
|
-
display: block;
|
22
|
-
margin: auto;
|
23
|
-
margin: 10% auto 0 auto;
|
24
|
-
width: 30%;
|
25
|
-
}
|
26
|
-
|
27
|
-
.error_container .error {
|
28
|
-
display: block;
|
29
|
-
text-align: center;
|
30
|
-
}
|
31
|
-
|
32
|
-
.error_container .error img.alert {
|
33
|
-
display: block;
|
34
|
-
margin: 0 auto 25px auto;
|
35
|
-
}
|
36
|
-
|
37
|
-
.error_container .message > * {
|
38
|
-
display: block;
|
39
|
-
}
|
40
|
-
|
41
|
-
.error_container .message strong {
|
42
|
-
font-weight: bold;
|
43
|
-
font-size: 1.5em;
|
44
|
-
color: #f00;
|
45
|
-
margin: 15px 0 0;
|
46
|
-
}
|
47
|
-
|
48
|
-
.error_container .message span {
|
49
|
-
margin: 5px auto 0;
|
50
|
-
font-size: 0.75em;
|
51
|
-
color: #606060;
|
52
|
-
}
|
53
|
-
|
54
|
-
.error_container .contact {
|
55
|
-
display: block;
|
56
|
-
text-align: center;
|
57
|
-
margin: 20px 0 0 0;
|
58
|
-
}
|
59
|
-
|
60
|
-
.error_container .contact a {
|
61
|
-
display: inline-block;
|
62
|
-
margin: 0 -1px; /* For inline block & ERB - HAML removes whitespace; ERB does now - http://haml.info/docs/yardoc/file.REFERENCE.html#whitespace_removal__and_ */
|
63
|
-
opacity: 0.4;
|
64
|
-
transition: opacity 0.15s ease;
|
65
|
-
}
|
66
|
-
|
67
|
-
.error_container .contact a img {
|
68
|
-
display: block;
|
69
|
-
width: 38px;
|
70
|
-
height: 38px;
|
71
|
-
}
|
72
|
-
|
73
|
-
.error_container .contact a:hover {
|
74
|
-
opacity: 0.8;
|
75
|
-
}
|
76
|
-
|
77
|
-
</style>
|
78
9
|
</head>
|
79
10
|
|
80
11
|
<!--Body -->
|
81
12
|
<body>
|
82
|
-
<div class="
|
13
|
+
<div class="container">
|
83
14
|
<%= yield %>
|
84
15
|
</div>
|
85
|
-
</body>
|
86
16
|
|
17
|
+
<!-- Footer -->
|
18
|
+
<footer>
|
19
|
+
<div class="connect">
|
20
|
+
<% ExceptionHandler.config.social.each do |item, address| %>
|
21
|
+
<%= link_to image_tag("exception_handler/connect/#{item}.png", title: "Find us on " + item.to_s.titleize), address, target: :blank, class: item.to_s %>
|
22
|
+
<% end %>
|
23
|
+
</div>
|
24
|
+
<div class="app">
|
25
|
+
<strong><%= link_to @app_name, root_url, title: "Go to index" %></strong>
|
26
|
+
<span> - <%= @status %> Error</span>
|
27
|
+
</div>
|
28
|
+
</footer>
|
29
|
+
|
30
|
+
</body>
|
87
31
|
</html>
|
data/lib/exception_handler.rb
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
require "action_dispatch"
|
5
5
|
|
6
6
|
#Gem Files
|
7
|
-
|
8
|
-
for
|
9
|
-
require "exception_handler/#{
|
7
|
+
libs = %w(version parser config)
|
8
|
+
for lib in libs do
|
9
|
+
require "exception_handler/#{lib}"
|
10
10
|
end
|
11
11
|
|
12
12
|
###########################################
|
@@ -15,17 +15,22 @@ module ExceptionHandler
|
|
15
15
|
|
16
16
|
#Exception Handler
|
17
17
|
class Exceptions < Rails::Engine
|
18
|
+
|
19
|
+
#Stylesheet
|
20
|
+
config.assets.precompile += %w(exception_handler/error.css)
|
21
|
+
|
22
|
+
#Parser
|
18
23
|
initializer "exception_handler.configure_rails_initialization" do |app|
|
19
24
|
app.config.middleware.use "ExceptionHandler::Message" unless ExceptionHandler.config.db == false #Parser
|
20
25
|
app.config.exceptions_app = ->(env) { ExceptionHandler::ExceptionController.action(:show).call(env) } #Pages
|
21
26
|
end
|
27
|
+
|
22
28
|
end
|
23
29
|
|
24
30
|
####################
|
25
31
|
# Config #
|
26
32
|
####################
|
27
33
|
|
28
|
-
#Ref http://robots.thoughtbot.com/mygem-configure-block
|
29
34
|
mattr_accessor :config, :table
|
30
35
|
|
31
36
|
#Vars
|
@@ -35,5 +40,4 @@ module ExceptionHandler
|
|
35
40
|
def self.setup
|
36
41
|
yield(config) if block_given?
|
37
42
|
end
|
38
|
-
|
39
43
|
end
|
@@ -8,17 +8,23 @@
|
|
8
8
|
|
9
9
|
module ExceptionHandler
|
10
10
|
class Config
|
11
|
-
attr_accessor :db, :social
|
11
|
+
attr_accessor :db, :social, :error_layout, :exception_layout
|
12
|
+
|
13
|
+
def db
|
14
|
+
false
|
15
|
+
end
|
12
16
|
|
13
17
|
def initialize
|
14
18
|
@db = false # -> db name (false = no; true = "errors"; [value] = [value])
|
15
19
|
@social = {
|
16
|
-
twitter: "http://twitter.com/frontlineutils",
|
17
20
|
facebook: "https://facebook.com/frontline.utilities",
|
21
|
+
twitter: "http://twitter.com/frontlineutils",
|
18
22
|
linkedin: "https://linkedin.com/company/frontline-utilities",
|
19
23
|
youtube: "https://youtube.com/user/frontlineutils",
|
20
24
|
fusion: "http://frontlinefusion.com/frontlineutils"
|
21
25
|
}
|
26
|
+
@error_layout = nil
|
27
|
+
@exception_layout = nil
|
22
28
|
end
|
23
29
|
end
|
24
|
-
end
|
30
|
+
end
|
@@ -70,7 +70,7 @@ module ExceptionHandler
|
|
70
70
|
user = @controller.send("current_user")
|
71
71
|
[:id].each do |field|
|
72
72
|
data[:id] = user.send(field) if user.respond_to?(field)
|
73
|
-
data[:type] = "
|
73
|
+
data[:type] = "User" if @controller.respond_to?("current_user")
|
74
74
|
end
|
75
75
|
end
|
76
76
|
return data
|
@@ -84,4 +84,4 @@ module ExceptionHandler
|
|
84
84
|
end
|
85
85
|
|
86
86
|
end
|
87
|
-
end
|
87
|
+
end
|
@@ -10,7 +10,7 @@ module ExceptionHandler
|
|
10
10
|
#Config
|
11
11
|
def create_config_file
|
12
12
|
return unless options.empty?
|
13
|
-
template "
|
13
|
+
template "config.rb", "config/initializers/exception_handler.rb" # https://github.com/plataformatec/devise/blob/master/lib/generators/devise/install_generator.rb#L13
|
14
14
|
end
|
15
15
|
|
16
16
|
###########################################
|
@@ -18,10 +18,20 @@ module ExceptionHandler
|
|
18
18
|
|
19
19
|
###########################################
|
20
20
|
|
21
|
-
#
|
21
|
+
#Table Name - false = off, true = errors, value = value
|
22
|
+
#Always outputs string for some reason...
|
23
|
+
def table_name
|
24
|
+
ExceptionHandler.config.db || :errors
|
25
|
+
end
|
26
|
+
|
27
|
+
###########################################
|
28
|
+
|
29
|
+
#Create
|
22
30
|
def create_errors_migration
|
23
|
-
migration_template "
|
31
|
+
migration_template "migration.rb.erb", "db/migrate/exception_handler.rb"
|
24
32
|
end
|
25
33
|
|
34
|
+
###########################################
|
35
|
+
|
26
36
|
end
|
27
37
|
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#################################################################################################
|
2
|
+
## ##
|
3
|
+
## ______ __ _ __ __ ____ ##
|
4
|
+
## / ____/ __________ ____ / /_(_)___ ____ / / / /___ _____ ____/ / /__ _____ ##
|
5
|
+
## / __/ | |/_/ ___/ _ \/ __ \/ __/ / __ \/ __ \ / /_/ / __ `/ __ \/ __ / / _ \/ ___/ ##
|
6
|
+
## / /____> </ /__/ __/ /_/ / /_/ / /_/ / / / / / __ / /_/ / / / / /_/ / / __/ / ##
|
7
|
+
## /_____/_/|_|\___/\___/ .___/\__/_/\____/_/ /_/ /_/ /_/\__,_/_/ /_/\__,_/_/\___/_/ ##
|
8
|
+
## /_/ ##
|
9
|
+
## ##
|
10
|
+
#################################################################################################
|
11
|
+
# You can add different settings using this file #
|
12
|
+
# Use the docs at http://github.com/richpeck/exception_handler for info #
|
13
|
+
#################################################################################################
|
14
|
+
|
15
|
+
# config/initializers/exception_handler.rb
|
16
|
+
ExceptionHandler.setup do |config|
|
17
|
+
|
18
|
+
# DB -
|
19
|
+
# false / true / :table_name (must exist)
|
20
|
+
config.db = false
|
21
|
+
|
22
|
+
# Exception Layout (for 500 errors, defaults to Error)
|
23
|
+
# false / name (str or sym)
|
24
|
+
#config.exception_layout = :your_name
|
25
|
+
|
26
|
+
# Error Layout (for 400 errors, defaults to Application)
|
27
|
+
# false / name (str or sym)
|
28
|
+
#config.error_layout = :your_name
|
29
|
+
|
30
|
+
# Email -
|
31
|
+
# false / true
|
32
|
+
# config.email =
|
33
|
+
|
34
|
+
# Social
|
35
|
+
config.social = {
|
36
|
+
twitter: 'http://twitter.com/frontlineutils',
|
37
|
+
facebook: 'https://facebook.com/frontline.utilities',
|
38
|
+
linkedin: 'https://linkedin.com/company/frontline-utilities',
|
39
|
+
youtube: 'https://youtube.com/user/frontlineutils',
|
40
|
+
fusion: 'http://frontlinefusion.com/frontlineutils'
|
41
|
+
}
|
42
|
+
|
43
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class
|
1
|
+
class Create<%= table_name.to_s.gsub("_","").titleize %> < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
create_table
|
3
|
+
create_table :<%= table_name %> do |t|
|
4
4
|
t.string :usable_type
|
5
5
|
t.integer :usable_id
|
6
6
|
t.text :class_name
|
data/readme/400.jpg
ADDED
Binary file
|
data/readme/500.jpg
ADDED
Binary file
|
Binary file
|
data/readme/config.jpg
ADDED
Binary file
|
data/readme/db.jpg
ADDED
Binary file
|
data/readme/db_edit.jpg
ADDED
Binary file
|
data/readme/dev.jpg
ADDED
Binary file
|
Binary file
|
Binary file
|
data/readme/layout.jpg
ADDED
Binary file
|
data/readme/parser.jpg
ADDED
Binary file
|
Binary file
|
data/readme/subtitle.jpg
ADDED
Binary file
|
data/readme/title.png
ADDED
Binary file
|
data/readme/view.jpg
ADDED
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
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Peck
|
@@ -9,90 +9,90 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.6'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.6'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rails
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 4.0.0
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 4.0.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: activerecord
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: activesupport
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rake
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rspec
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
description: Rails gem to create custom error pages. Captures exceptions using "exception_app"
|
@@ -104,20 +104,27 @@ executables: []
|
|
104
104
|
extensions: []
|
105
105
|
extra_rdoc_files: []
|
106
106
|
files:
|
107
|
-
- .gitignore
|
108
|
-
- .rspec
|
109
|
-
- .travis.yml
|
107
|
+
- ".gitignore"
|
108
|
+
- ".rspec"
|
109
|
+
- ".travis.yml"
|
110
110
|
- Gemfile
|
111
111
|
- LICENSE.txt
|
112
112
|
- README.md
|
113
113
|
- Rakefile
|
114
|
+
- app/assets/images/exception_handler/alert.jpg
|
114
115
|
- app/assets/images/exception_handler/alert.png
|
115
|
-
- app/assets/images/exception_handler/bg.
|
116
|
-
- app/assets/images/exception_handler/
|
117
|
-
- app/assets/images/exception_handler/
|
118
|
-
- app/assets/images/exception_handler/
|
119
|
-
- app/assets/images/exception_handler/
|
120
|
-
- app/assets/images/exception_handler/
|
116
|
+
- app/assets/images/exception_handler/bg.jpg
|
117
|
+
- app/assets/images/exception_handler/bg_overlay.png
|
118
|
+
- app/assets/images/exception_handler/close.png
|
119
|
+
- app/assets/images/exception_handler/connect/facebook.png
|
120
|
+
- app/assets/images/exception_handler/connect/fusion.png
|
121
|
+
- app/assets/images/exception_handler/connect/linkedin.png
|
122
|
+
- app/assets/images/exception_handler/connect/twitter.png
|
123
|
+
- app/assets/images/exception_handler/connect/youtube.png
|
124
|
+
- app/assets/images/exception_handler/home.png
|
125
|
+
- app/assets/images/exception_handler/noise.png
|
126
|
+
- app/assets/images/exception_handler/overlay.png
|
127
|
+
- app/assets/stylesheets/exception_handler/error.css.erb
|
121
128
|
- app/controllers/exception_handler/exception_controller.rb
|
122
129
|
- app/models/exception_handler/error.rb
|
123
130
|
- app/views/exception_handler/exception/show.html.erb
|
@@ -130,21 +137,23 @@ files:
|
|
130
137
|
- lib/generators/exception_handler/install_generator.rb
|
131
138
|
- lib/generators/exception_handler/migration_generator.rb
|
132
139
|
- lib/generators/exception_handler/views_generator.rb
|
133
|
-
- lib/generators/templates/
|
134
|
-
- lib/generators/templates/
|
135
|
-
- readme/
|
136
|
-
- readme/
|
137
|
-
- readme/
|
138
|
-
- readme/
|
139
|
-
- readme/
|
140
|
-
- readme/
|
141
|
-
- readme/
|
142
|
-
- readme/
|
143
|
-
- readme/
|
144
|
-
- readme/
|
145
|
-
- readme/
|
146
|
-
- readme/
|
147
|
-
- readme/
|
140
|
+
- lib/generators/templates/config.rb
|
141
|
+
- lib/generators/templates/migration.rb.erb
|
142
|
+
- readme/400.jpg
|
143
|
+
- readme/500.jpg
|
144
|
+
- readme/application_controller.jpg
|
145
|
+
- readme/config.jpg
|
146
|
+
- readme/db.jpg
|
147
|
+
- readme/db_edit.jpg
|
148
|
+
- readme/dev.jpg
|
149
|
+
- readme/exception_controller.jpg
|
150
|
+
- readme/exceptions_app.png
|
151
|
+
- readme/layout.jpg
|
152
|
+
- readme/parser.jpg
|
153
|
+
- readme/source/title.psd
|
154
|
+
- readme/subtitle.jpg
|
155
|
+
- readme/title.png
|
156
|
+
- readme/view.jpg
|
148
157
|
- spec/installation_spec.rb
|
149
158
|
- spec/spec_helper.rb
|
150
159
|
homepage: http://frontlineutilities.co.uk/ror/custom_error_pages
|
@@ -157,17 +166,17 @@ require_paths:
|
|
157
166
|
- lib
|
158
167
|
required_ruby_version: !ruby/object:Gem::Requirement
|
159
168
|
requirements:
|
160
|
-
- -
|
169
|
+
- - ">="
|
161
170
|
- !ruby/object:Gem::Version
|
162
171
|
version: '0'
|
163
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
173
|
requirements:
|
165
|
-
- -
|
174
|
+
- - ">="
|
166
175
|
- !ruby/object:Gem::Version
|
167
176
|
version: '0'
|
168
177
|
requirements: []
|
169
178
|
rubyforge_project:
|
170
|
-
rubygems_version: 2.
|
179
|
+
rubygems_version: 2.4.6
|
171
180
|
signing_key:
|
172
181
|
specification_version: 4
|
173
182
|
summary: Rails gem to show custom error pages in production. Also logs errors in "errors"
|