mosaic-errors 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,39 +13,22 @@ Add to Gemfile:
13
13
  Then...
14
14
 
15
15
  bundle install
16
-
16
+
17
17
  Usage
18
18
  -----
19
19
 
20
- ### Auto Install
21
-
22
- Use the generator to copy the error files over and add the route to catch all routing errors:
20
+ ### Installation steps
23
21
 
24
- rails generator mosaic_errors
25
-
26
22
  Add to ApplicationController:
27
23
 
28
24
  include Mosaic::Errors
29
-
30
- Ensure the provided route goes very last in your config/routes.rb file as it will catch anything that is not previously configured
31
-
32
- ### Manual Install
33
25
 
34
26
  Add to config/routes.rb:
35
27
 
36
- match '*path', :to => 'application#routing_error'
37
-
38
- Ensure the above route comes very last in your config/routes.rb file as it will catch anything that is not previously configured.
39
-
40
- Create the folder app/views/errors and drop the files internal_server_error.html.haml & not_found.html.haml
41
-
42
- Add to ApplicationController:
43
-
44
- include Mosaic::Errors
28
+ mount Errors::Engine => "/"
45
29
 
46
- Configuration
47
- -------------
30
+ Add to config/application.rb
48
31
 
49
- By default this gem will not display a stacktrace when something goes wrong. This can potentially be problematic when debugging an application so this behaviour can be overridden by adding the following to an initializer:
32
+ config.exceptions_app = self.routes
50
33
 
51
- Mosaic::Errors.include_stack_trace!
34
+ Restart your app.
@@ -1,5 +1,5 @@
1
1
  module Mosaic
2
2
  module Errors
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
 
15
15
  gem.authors = ["Kel Stopper"]
16
16
  gem.email = ["kel.stopper@mosaic.com"]
17
- gem.homepage = "http://git.corp.mosaic.com/mosaiccis/mosaic-errors"
17
+ gem.homepage = "https://github.com/mosaicxm/mosaic-errors"
18
18
 
19
19
  gem.files = `git ls-files`.split($/)
20
20
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mosaic-errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -92,7 +92,7 @@ files:
92
92
  - test/helper.rb
93
93
  - test/test_mosaic_errors.rb
94
94
  - uninstall.rb
95
- homepage: http://git.corp.mosaic.com/mosaiccis/mosaic-errors
95
+ homepage: https://github.com/mosaicxm/mosaic-errors
96
96
  licenses: []
97
97
  post_install_message:
98
98
  rdoc_options: []