dynamic_error_pages 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -3
- data/Gemfile +0 -3
- data/README.md +1 -1
- data/gemfiles/3.2.gemfile +0 -1
- data/gemfiles/3.2.gemfile.lock +0 -4
- data/gemfiles/4.0.gemfile +0 -1
- data/gemfiles/4.0.gemfile.lock +0 -4
- data/lib/dynamic_error_pages/engine.rb +6 -0
- data/lib/dynamic_error_pages/version.rb +1 -1
- data/spec/dummy3.2/app/controllers/tests_controller.rb +1 -1
- data/{app/assets/stylesheets/dynamic_error_pages → spec/dummy3.2/db}/.gitkeep +0 -0
- data/spec/dummy4.0/app/controllers/tests_controller.rb +1 -1
- data/spec/dummy4.0/db/.gitkeep +0 -0
- data/spec/spec_helper.rb +0 -1
- metadata +5 -15
- data/config/initializers/dynamic_error_pages.rb +0 -1
- data/spec/dummy3.2/public/404.html +0 -26
- data/spec/dummy3.2/public/422.html +0 -26
- data/spec/dummy3.2/public/500.html +0 -25
- data/spec/dummy4.0/public/404.html +0 -58
- data/spec/dummy4.0/public/422.html +0 -58
- data/spec/dummy4.0/public/500.html +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dbb0f7e96a31cde85433075d21a74103ce8d32f
|
4
|
+
data.tar.gz: a8aec31c508b05dbf70364ac5ac6ad0a3b8cbcbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb59a800baa72079b1c3b08a6a7551810d3609f13acf1762596abbac562740053f84b6424b3b5d1115add8831d0734d9fbcb32ce87d1087ba8168757e0e46dae
|
7
|
+
data.tar.gz: 67f7ab1b9a3307b8378ba59b82e75fb09d7fb66e88b3546d29c83bd9882844a392798bf7474167faa8566974a2d65ccd3a9b9eb80aee44e9d7d1f21bde9d69b2
|
data/.gitignore
CHANGED
@@ -17,9 +17,7 @@ rdoc
|
|
17
17
|
spec/reports
|
18
18
|
test/tmp
|
19
19
|
test/version_tmp
|
20
|
-
|
21
|
-
/spec/dummy/log/test.log
|
22
|
-
/spec/dummy/db/test.sqlite3
|
20
|
+
|
23
21
|
/spec/dummy3.2/log/test.log
|
24
22
|
/spec/dummy4.0/log/test.log
|
25
23
|
/spec/dummy3.2/db/production.sqlite3
|
@@ -28,3 +26,6 @@ tmp/spec/dummy/db/test.sqlite3
|
|
28
26
|
/spec/dummy4.0/db/production.sqlite3
|
29
27
|
/spec/dummy4.0/db/test.sqlite3
|
30
28
|
/spec/dummy4.0/log/production.log
|
29
|
+
|
30
|
+
/spec/dummy3.2/tmp/*
|
31
|
+
/spec/dummy4.0/tmp/*
|
data/Gemfile
CHANGED
@@ -5,9 +5,6 @@ source "https://rubygems.org"
|
|
5
5
|
# development dependencies will be added by default to the :development group.
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
# jquery-rails is used by the dummy application
|
9
|
-
gem "jquery-rails"
|
10
|
-
|
11
8
|
# Declare any dependencies that are still in development here instead of in
|
12
9
|
# your gemspec. These might include edge Rails or gems from your path or
|
13
10
|
# Git. Remember to move these dependencies to your gemspec before releasing
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Or install it yourself as:
|
|
30
30
|
Just place your custom error templates inside the ``` app/views/dynamic_error_pages/errors ``` folder. The files need to
|
31
31
|
be named like the returned status code. The ``` 404.html.erb ``` would be used for status code 404 like ```ActiveRecord::RecordNotFound``` would raise for example.
|
32
32
|
|
33
|
-
If an error is raised and no template for the status code can be found, the engine will fallback to the ```404```-template.
|
33
|
+
If an error is raised and no template for the status code can be found, the engine will fallback to the ```404.html.erb```-template.
|
34
34
|
|
35
35
|
That's all!
|
36
36
|
|
data/gemfiles/3.2.gemfile
CHANGED
data/gemfiles/3.2.gemfile.lock
CHANGED
@@ -51,9 +51,6 @@ GEM
|
|
51
51
|
hike (1.2.3)
|
52
52
|
i18n (0.6.5)
|
53
53
|
journey (1.0.4)
|
54
|
-
jquery-rails (3.0.4)
|
55
|
-
railties (>= 3.0, < 5.0)
|
56
|
-
thor (>= 0.14, < 2.0)
|
57
54
|
json (1.8.0)
|
58
55
|
mail (2.5.4)
|
59
56
|
mime-types (~> 1.16)
|
@@ -131,7 +128,6 @@ DEPENDENCIES
|
|
131
128
|
bundler (~> 1.3)
|
132
129
|
capybara
|
133
130
|
dynamic_error_pages!
|
134
|
-
jquery-rails
|
135
131
|
pry
|
136
132
|
rails (~> 3.2.14)
|
137
133
|
rake (~> 10.1)
|
data/gemfiles/4.0.gemfile
CHANGED
data/gemfiles/4.0.gemfile.lock
CHANGED
@@ -48,9 +48,6 @@ GEM
|
|
48
48
|
erubis (2.7.0)
|
49
49
|
hike (1.2.3)
|
50
50
|
i18n (0.6.5)
|
51
|
-
jquery-rails (3.0.4)
|
52
|
-
railties (>= 3.0, < 5.0)
|
53
|
-
thor (>= 0.14, < 2.0)
|
54
51
|
mail (2.5.4)
|
55
52
|
mime-types (~> 1.16)
|
56
53
|
treetop (~> 1.4.8)
|
@@ -126,7 +123,6 @@ DEPENDENCIES
|
|
126
123
|
bundler (~> 1.3)
|
127
124
|
capybara
|
128
125
|
dynamic_error_pages!
|
129
|
-
jquery-rails
|
130
126
|
pry
|
131
127
|
rails (~> 4.0.0)
|
132
128
|
rake (~> 10.1)
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic_error_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Geißler
|
@@ -159,12 +159,10 @@ files:
|
|
159
159
|
- LICENSE
|
160
160
|
- README.md
|
161
161
|
- Rakefile
|
162
|
-
- app/assets/stylesheets/dynamic_error_pages/.gitkeep
|
163
162
|
- app/controllers/.gitkeep
|
164
163
|
- app/controllers/dynamic_error_pages/errors_controller.rb
|
165
164
|
- app/views/.gitkeep
|
166
165
|
- app/views/dynamic_error_pages/errors/404.html.erb
|
167
|
-
- config/initializers/dynamic_error_pages.rb
|
168
166
|
- config/routes.rb
|
169
167
|
- dynamic_error_pages.gemspec
|
170
168
|
- gemfiles/3.2.gemfile
|
@@ -204,11 +202,9 @@ files:
|
|
204
202
|
- spec/dummy3.2/config/initializers/wrap_parameters.rb
|
205
203
|
- spec/dummy3.2/config/locales/en.yml
|
206
204
|
- spec/dummy3.2/config/routes.rb
|
205
|
+
- spec/dummy3.2/db/.gitkeep
|
207
206
|
- spec/dummy3.2/lib/assets/.gitkeep
|
208
207
|
- spec/dummy3.2/log/.gitkeep
|
209
|
-
- spec/dummy3.2/public/404.html
|
210
|
-
- spec/dummy3.2/public/422.html
|
211
|
-
- spec/dummy3.2/public/500.html
|
212
208
|
- spec/dummy3.2/public/favicon.ico
|
213
209
|
- spec/dummy3.2/script/rails
|
214
210
|
- spec/dummy4.0/README.rdoc
|
@@ -246,11 +242,9 @@ files:
|
|
246
242
|
- spec/dummy4.0/config/initializers/wrap_parameters.rb
|
247
243
|
- spec/dummy4.0/config/locales/en.yml
|
248
244
|
- spec/dummy4.0/config/routes.rb
|
245
|
+
- spec/dummy4.0/db/.gitkeep
|
249
246
|
- spec/dummy4.0/lib/assets/.keep
|
250
247
|
- spec/dummy4.0/log/.keep
|
251
|
-
- spec/dummy4.0/public/404.html
|
252
|
-
- spec/dummy4.0/public/422.html
|
253
|
-
- spec/dummy4.0/public/500.html
|
254
248
|
- spec/dummy4.0/public/favicon.ico
|
255
249
|
- spec/features/exception_spec.rb
|
256
250
|
- spec/spec_helper.rb
|
@@ -307,11 +301,9 @@ test_files:
|
|
307
301
|
- spec/dummy3.2/config/initializers/wrap_parameters.rb
|
308
302
|
- spec/dummy3.2/config/locales/en.yml
|
309
303
|
- spec/dummy3.2/config/routes.rb
|
304
|
+
- spec/dummy3.2/db/.gitkeep
|
310
305
|
- spec/dummy3.2/lib/assets/.gitkeep
|
311
306
|
- spec/dummy3.2/log/.gitkeep
|
312
|
-
- spec/dummy3.2/public/404.html
|
313
|
-
- spec/dummy3.2/public/422.html
|
314
|
-
- spec/dummy3.2/public/500.html
|
315
307
|
- spec/dummy3.2/public/favicon.ico
|
316
308
|
- spec/dummy3.2/script/rails
|
317
309
|
- spec/dummy4.0/README.rdoc
|
@@ -349,11 +341,9 @@ test_files:
|
|
349
341
|
- spec/dummy4.0/config/initializers/wrap_parameters.rb
|
350
342
|
- spec/dummy4.0/config/locales/en.yml
|
351
343
|
- spec/dummy4.0/config/routes.rb
|
344
|
+
- spec/dummy4.0/db/.gitkeep
|
352
345
|
- spec/dummy4.0/lib/assets/.keep
|
353
346
|
- spec/dummy4.0/log/.keep
|
354
|
-
- spec/dummy4.0/public/404.html
|
355
|
-
- spec/dummy4.0/public/422.html
|
356
|
-
- spec/dummy4.0/public/500.html
|
357
347
|
- spec/dummy4.0/public/favicon.ico
|
358
348
|
- spec/features/exception_spec.rb
|
359
349
|
- spec/spec_helper.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
Rails.application.config.exceptions_app = Rails.application.routes
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/404.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/422.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The change you wanted was rejected.</h1>
|
23
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/500.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>We're sorry, but something went wrong.</h1>
|
23
|
-
</div>
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,58 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<style>
|
6
|
-
body {
|
7
|
-
background-color: #EFEFEF;
|
8
|
-
color: #2E2F30;
|
9
|
-
text-align: center;
|
10
|
-
font-family: arial, sans-serif;
|
11
|
-
}
|
12
|
-
|
13
|
-
div.dialog {
|
14
|
-
width: 25em;
|
15
|
-
margin: 4em auto 0 auto;
|
16
|
-
border: 1px solid #CCC;
|
17
|
-
border-right-color: #999;
|
18
|
-
border-left-color: #999;
|
19
|
-
border-bottom-color: #BBB;
|
20
|
-
border-top: #B00100 solid 4px;
|
21
|
-
border-top-left-radius: 9px;
|
22
|
-
border-top-right-radius: 9px;
|
23
|
-
background-color: white;
|
24
|
-
padding: 7px 4em 0 4em;
|
25
|
-
}
|
26
|
-
|
27
|
-
h1 {
|
28
|
-
font-size: 100%;
|
29
|
-
color: #730E15;
|
30
|
-
line-height: 1.5em;
|
31
|
-
}
|
32
|
-
|
33
|
-
body > p {
|
34
|
-
width: 33em;
|
35
|
-
margin: 0 auto 1em;
|
36
|
-
padding: 1em 0;
|
37
|
-
background-color: #F7F7F7;
|
38
|
-
border: 1px solid #CCC;
|
39
|
-
border-right-color: #999;
|
40
|
-
border-bottom-color: #999;
|
41
|
-
border-bottom-left-radius: 4px;
|
42
|
-
border-bottom-right-radius: 4px;
|
43
|
-
border-top-color: #DADADA;
|
44
|
-
color: #666;
|
45
|
-
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
-
}
|
47
|
-
</style>
|
48
|
-
</head>
|
49
|
-
|
50
|
-
<body>
|
51
|
-
<!-- This file lives in public/404.html -->
|
52
|
-
<div class="dialog">
|
53
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
-
</div>
|
56
|
-
<p>If you are the application owner check the logs for more information.</p>
|
57
|
-
</body>
|
58
|
-
</html>
|
@@ -1,58 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<style>
|
6
|
-
body {
|
7
|
-
background-color: #EFEFEF;
|
8
|
-
color: #2E2F30;
|
9
|
-
text-align: center;
|
10
|
-
font-family: arial, sans-serif;
|
11
|
-
}
|
12
|
-
|
13
|
-
div.dialog {
|
14
|
-
width: 25em;
|
15
|
-
margin: 4em auto 0 auto;
|
16
|
-
border: 1px solid #CCC;
|
17
|
-
border-right-color: #999;
|
18
|
-
border-left-color: #999;
|
19
|
-
border-bottom-color: #BBB;
|
20
|
-
border-top: #B00100 solid 4px;
|
21
|
-
border-top-left-radius: 9px;
|
22
|
-
border-top-right-radius: 9px;
|
23
|
-
background-color: white;
|
24
|
-
padding: 7px 4em 0 4em;
|
25
|
-
}
|
26
|
-
|
27
|
-
h1 {
|
28
|
-
font-size: 100%;
|
29
|
-
color: #730E15;
|
30
|
-
line-height: 1.5em;
|
31
|
-
}
|
32
|
-
|
33
|
-
body > p {
|
34
|
-
width: 33em;
|
35
|
-
margin: 0 auto 1em;
|
36
|
-
padding: 1em 0;
|
37
|
-
background-color: #F7F7F7;
|
38
|
-
border: 1px solid #CCC;
|
39
|
-
border-right-color: #999;
|
40
|
-
border-bottom-color: #999;
|
41
|
-
border-bottom-left-radius: 4px;
|
42
|
-
border-bottom-right-radius: 4px;
|
43
|
-
border-top-color: #DADADA;
|
44
|
-
color: #666;
|
45
|
-
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
-
}
|
47
|
-
</style>
|
48
|
-
</head>
|
49
|
-
|
50
|
-
<body>
|
51
|
-
<!-- This file lives in public/422.html -->
|
52
|
-
<div class="dialog">
|
53
|
-
<h1>The change you wanted was rejected.</h1>
|
54
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
-
</div>
|
56
|
-
<p>If you are the application owner check the logs for more information.</p>
|
57
|
-
</body>
|
58
|
-
</html>
|
@@ -1,57 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<style>
|
6
|
-
body {
|
7
|
-
background-color: #EFEFEF;
|
8
|
-
color: #2E2F30;
|
9
|
-
text-align: center;
|
10
|
-
font-family: arial, sans-serif;
|
11
|
-
}
|
12
|
-
|
13
|
-
div.dialog {
|
14
|
-
width: 25em;
|
15
|
-
margin: 4em auto 0 auto;
|
16
|
-
border: 1px solid #CCC;
|
17
|
-
border-right-color: #999;
|
18
|
-
border-left-color: #999;
|
19
|
-
border-bottom-color: #BBB;
|
20
|
-
border-top: #B00100 solid 4px;
|
21
|
-
border-top-left-radius: 9px;
|
22
|
-
border-top-right-radius: 9px;
|
23
|
-
background-color: white;
|
24
|
-
padding: 7px 4em 0 4em;
|
25
|
-
}
|
26
|
-
|
27
|
-
h1 {
|
28
|
-
font-size: 100%;
|
29
|
-
color: #730E15;
|
30
|
-
line-height: 1.5em;
|
31
|
-
}
|
32
|
-
|
33
|
-
body > p {
|
34
|
-
width: 33em;
|
35
|
-
margin: 0 auto 1em;
|
36
|
-
padding: 1em 0;
|
37
|
-
background-color: #F7F7F7;
|
38
|
-
border: 1px solid #CCC;
|
39
|
-
border-right-color: #999;
|
40
|
-
border-bottom-color: #999;
|
41
|
-
border-bottom-left-radius: 4px;
|
42
|
-
border-bottom-right-radius: 4px;
|
43
|
-
border-top-color: #DADADA;
|
44
|
-
color: #666;
|
45
|
-
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
-
}
|
47
|
-
</style>
|
48
|
-
</head>
|
49
|
-
|
50
|
-
<body>
|
51
|
-
<!-- This file lives in public/500.html -->
|
52
|
-
<div class="dialog">
|
53
|
-
<h1>We're sorry, but something went wrong.</h1>
|
54
|
-
</div>
|
55
|
-
<p>If you are the application owner check the logs for more information.</p>
|
56
|
-
</body>
|
57
|
-
</html>
|