exception_handler 0.6.5 → 0.7.0
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/.gitignore +33 -33
- data/.rspec +3 -3
- data/.travis.yml +5 -5
- data/Gemfile +13 -13
- data/LICENSE.txt +22 -22
- data/README.md +349 -341
- data/Rakefile +7 -7
- data/app/assets/images/{favicon.ico → exception_handler.ico} +0 -0
- data/app/assets/images/exception_handler/alert.jpg +0 -0
- data/app/assets/images/exception_handler/bg.jpg +0 -0
- data/app/assets/images/exception_handler/favicon.ico +0 -0
- data/app/assets/images/exception_handler/icon.png +0 -0
- data/app/assets/stylesheets/exception_handler.css.erb +8 -8
- data/app/assets/stylesheets/styles/_base.css.erb +35 -34
- data/app/assets/stylesheets/styles/_exception.css.erb +105 -103
- data/app/assets/stylesheets/styles/_footer.css.erb +24 -27
- data/app/assets/stylesheets/styles/_responsive.css +5 -5
- data/app/controllers/exception_handler/exception_controller.rb +45 -38
- data/app/mailers/exception_handler/exception_mailer.rb +16 -16
- data/app/models/exception_handler/exception.rb +191 -191
- data/app/views/exception_handler/exception/show.html.erb +1 -1
- data/app/views/exception_handler/mailers/new_exception.erb +4 -4
- data/app/views/layouts/exception.html.erb +27 -21
- data/config/locales/exception_handler.en.yml +13 -13
- data/exception_handler.gemspec +80 -84
- data/lib/exception_handler.rb +32 -29
- data/lib/exception_handler/config.rb +80 -66
- data/lib/exception_handler/engine.rb +44 -36
- data/lib/generators/exception_handler/migration_generator.rb +55 -55
- data/lib/generators/exception_handler/views_generator.rb +42 -42
- data/lib/generators/templates/migration.rb.erb +16 -16
- data/spec/database.yml +2 -2
- data/spec/dummy/Rakefile +6 -6
- data/spec/dummy/app/assets/config/manifest.js +4 -4
- data/spec/dummy/app/assets/javascripts/application.js +13 -13
- data/spec/dummy/app/assets/javascripts/cable.coffee +11 -11
- data/spec/dummy/app/assets/stylesheets/application.css +15 -15
- data/spec/dummy/app/channels/application_cable/channel.rb +5 -5
- data/spec/dummy/app/channels/application_cable/connection.rb +5 -5
- data/spec/dummy/app/controllers/application_controller.rb +5 -5
- data/spec/dummy/app/helpers/application_helper.rb +2 -2
- data/spec/dummy/app/jobs/application_job.rb +2 -2
- data/spec/dummy/app/mailers/application_mailer.rb +4 -4
- data/spec/dummy/app/models/application_record.rb +3 -3
- data/spec/dummy/app/views/layouts/application.html.erb +15 -15
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -13
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -1
- data/spec/dummy/bin/bundle +3 -3
- data/spec/dummy/bin/rails +4 -4
- data/spec/dummy/bin/rake +4 -4
- data/spec/dummy/bin/setup +34 -34
- data/spec/dummy/bin/update +29 -29
- data/spec/dummy/config.ru +8 -8
- data/spec/dummy/config/application.rb +21 -21
- data/spec/dummy/config/boot.rb +5 -5
- data/spec/dummy/config/cable.yml +10 -10
- data/spec/dummy/config/database.yml +25 -25
- data/spec/dummy/config/environment.rb +5 -5
- data/spec/dummy/config/environments/development.rb +62 -62
- data/spec/dummy/config/environments/production.rb +87 -87
- data/spec/dummy/config/environments/test.rb +42 -42
- data/spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb +6 -6
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -6
- data/spec/dummy/config/initializers/assets.rb +11 -11
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
- data/spec/dummy/config/initializers/callback_terminator.rb +6 -6
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -5
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
- data/spec/dummy/config/initializers/inflections.rb +16 -16
- data/spec/dummy/config/initializers/mime_types.rb +4 -4
- data/spec/dummy/config/initializers/per_form_csrf_tokens.rb +4 -4
- data/spec/dummy/config/initializers/request_forgery_protection.rb +4 -4
- data/spec/dummy/config/initializers/session_store.rb +3 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/spec/dummy/config/locales/en.yml +23 -23
- data/spec/dummy/config/puma.rb +47 -47
- data/spec/dummy/config/routes.rb +6 -6
- data/spec/dummy/config/secrets.yml +22 -22
- data/spec/dummy/public/404.html +67 -67
- data/spec/dummy/public/422.html +67 -67
- data/spec/dummy/public/500.html +66 -66
- data/spec/exception_handler.rb +21 -21
- data/spec/exception_handler/exception_controller_spec.rb +18 -0
- data/spec/spec_helper.rb +54 -54
- metadata +11 -8
data/spec/spec_helper.rb
CHANGED
@@ -1,55 +1,55 @@
|
|
1
|
-
#####################################################
|
2
|
-
|
3
|
-
# This file was generated by the `rspec --init` command. Conventionally, all
|
4
|
-
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
5
|
-
# Require this file using `require "spec_helper"` to ensure that it is only
|
6
|
-
# loaded once.
|
7
|
-
#
|
8
|
-
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
9
|
-
|
10
|
-
#####################################################
|
11
|
-
|
12
|
-
#Coveralls
|
13
|
-
require 'coveralls'
|
14
|
-
Coveralls.wear!
|
15
|
-
|
16
|
-
#Env
|
17
|
-
#Need to generate "dummy" rails app -- BEST done with rails plugin new [[plugin_name]]
|
18
|
-
#http://stackoverflow.com/a/7472277/1143732
|
19
|
-
#http://guides.rubyonrails.org/plugins.html
|
20
|
-
ENV["RAILS_ENV"] ||= 'test'
|
21
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
22
|
-
require 'rails'
|
23
|
-
|
24
|
-
#Files
|
25
|
-
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
26
|
-
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
27
|
-
|
28
|
-
###########################################
|
29
|
-
|
30
|
-
#Messages
|
31
|
-
puts "Testing Against Rails #{Rails.version}"
|
32
|
-
|
33
|
-
#Options
|
34
|
-
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
|
35
|
-
|
36
|
-
###########################################
|
37
|
-
###########################################
|
38
|
-
|
39
|
-
RSpec.configure do |config|
|
40
|
-
config.run_all_when_everything_filtered = true
|
41
|
-
config.filter_run :focus
|
42
|
-
|
43
|
-
# Run specs in random order to surface order dependencies. If you find an
|
44
|
-
# order dependency and want to debug it, you can fix the order by providing
|
45
|
-
# the seed, which is printed after each run.
|
46
|
-
# --seed 1234
|
47
|
-
config.order = 'random'
|
48
|
-
end
|
49
|
-
|
50
|
-
###########################################
|
51
|
-
###########################################
|
52
|
-
|
53
|
-
require "exception_handler"
|
54
|
-
|
1
|
+
#####################################################
|
2
|
+
|
3
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
4
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
5
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
6
|
+
# loaded once.
|
7
|
+
#
|
8
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
9
|
+
|
10
|
+
#####################################################
|
11
|
+
|
12
|
+
#Coveralls
|
13
|
+
require 'coveralls'
|
14
|
+
Coveralls.wear!
|
15
|
+
|
16
|
+
#Env
|
17
|
+
#Need to generate "dummy" rails app -- BEST done with rails plugin new [[plugin_name]]
|
18
|
+
#http://stackoverflow.com/a/7472277/1143732
|
19
|
+
#http://guides.rubyonrails.org/plugins.html
|
20
|
+
ENV["RAILS_ENV"] ||= 'test'
|
21
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
22
|
+
require 'rails'
|
23
|
+
|
24
|
+
#Files
|
25
|
+
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
26
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
27
|
+
|
28
|
+
###########################################
|
29
|
+
|
30
|
+
#Messages
|
31
|
+
puts "Testing Against Rails #{Rails.version}"
|
32
|
+
|
33
|
+
#Options
|
34
|
+
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
|
35
|
+
|
36
|
+
###########################################
|
37
|
+
###########################################
|
38
|
+
|
39
|
+
RSpec.configure do |config|
|
40
|
+
config.run_all_when_everything_filtered = true
|
41
|
+
config.filter_run :focus
|
42
|
+
|
43
|
+
# Run specs in random order to surface order dependencies. If you find an
|
44
|
+
# order dependency and want to debug it, you can fix the order by providing
|
45
|
+
# the seed, which is printed after each run.
|
46
|
+
# --seed 1234
|
47
|
+
config.order = 'random'
|
48
|
+
end
|
49
|
+
|
50
|
+
###########################################
|
51
|
+
###########################################
|
52
|
+
|
53
|
+
require "exception_handler"
|
54
|
+
|
55
55
|
#####################################################
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Peck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: responders
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: autoprefixer-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- LICENSE.txt
|
138
138
|
- README.md
|
139
139
|
- Rakefile
|
140
|
+
- app/assets/images/exception_handler.ico
|
140
141
|
- app/assets/images/exception_handler/alert.jpg
|
141
142
|
- app/assets/images/exception_handler/alert.png
|
142
143
|
- app/assets/images/exception_handler/bg.jpg
|
@@ -146,9 +147,10 @@ files:
|
|
146
147
|
- app/assets/images/exception_handler/connect/linkedin.png
|
147
148
|
- app/assets/images/exception_handler/connect/twitter.png
|
148
149
|
- app/assets/images/exception_handler/connect/youtube.png
|
150
|
+
- app/assets/images/exception_handler/favicon.ico
|
151
|
+
- app/assets/images/exception_handler/icon.png
|
149
152
|
- app/assets/images/exception_handler/noise.png
|
150
153
|
- app/assets/images/exception_handler/overlay.png
|
151
|
-
- app/assets/images/favicon.ico
|
152
154
|
- app/assets/stylesheets/exception_handler.css.erb
|
153
155
|
- app/assets/stylesheets/styles/_base.css.erb
|
154
156
|
- app/assets/stylesheets/styles/_exception.css.erb
|
@@ -230,6 +232,7 @@ files:
|
|
230
232
|
- spec/dummy/public/apple-touch-icon.png
|
231
233
|
- spec/dummy/public/favicon.ico
|
232
234
|
- spec/exception_handler.rb
|
235
|
+
- spec/exception_handler/exception_controller_spec.rb
|
233
236
|
- spec/spec_helper.rb
|
234
237
|
homepage: http://github.com/richpeck/exception_handler
|
235
238
|
licenses:
|
@@ -251,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
254
|
version: '0'
|
252
255
|
requirements: []
|
253
256
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.6.
|
257
|
+
rubygems_version: 2.6.8
|
255
258
|
signing_key:
|
256
259
|
specification_version: 4
|
257
260
|
summary: Rails gem to show custom error pages in production. Also logs errors in db
|