header 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/header/pages_generator.rb +17 -0
- data/lib/generators/header/templates/403.html +13 -0
- data/lib/generators/header/templates/404.html +13 -0
- data/lib/generators/header/templates/500.html +13 -0
- data/lib/generators/header/templates/502.html +13 -0
- data/lib/header/version.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4a4eeb3e539e0bf032735061e498aa6fc901f62
|
4
|
+
data.tar.gz: dfed1060a578ab6ce1cb27fc4cebf3ae0f873584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73cc792adff61ff923f2f96635035efd37226cc2f10d963976873bb59820696367ce40f15693f836254d4cf9809044cdcf05c4d629b8463c78b2920483d31501
|
7
|
+
data.tar.gz: 35d8a2f5f62130d0f445f92e95194379c635599673b9e9b4f12d7df447ac68f32cc4a62c1a67cb6815c50cb793836db558c2053d59d51c57f8d91448b7492f0d
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Header
|
2
|
+
module Generators
|
3
|
+
class PagesGenerator < Rails::Generators::Base
|
4
|
+
|
5
|
+
desc 'Generate 403 404 500 and 502 error pages'
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
|
8
|
+
def copy_error_pages
|
9
|
+
copy_file "403.html", "public/403.html"
|
10
|
+
copy_file "404.html", "public/404.html"
|
11
|
+
copy_file "500.html", "public/500.html"
|
12
|
+
copy_file "502.html", "public/502.html"
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="ru">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
|
+
|
6
|
+
<title>Ошибка 403 - Доступ запрещен</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<div>
|
10
|
+
Сервер понял Ваш запрос, но не может ответить на него, так как у Вас недостаточно прав.
|
11
|
+
</div>
|
12
|
+
</body>
|
13
|
+
</html>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="ru">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
|
+
|
6
|
+
<title>Ошибка 404 - Страница не найдена</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<div>
|
10
|
+
Страница не найдена, попробуйте начать с <a href='/'>главной страницы</a>
|
11
|
+
</div>
|
12
|
+
</body>
|
13
|
+
</html>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="ru">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
|
+
|
6
|
+
<title>Ошибка 500 - Внутренняя ошибка</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<div>
|
10
|
+
Внутренняя ошибка, попробуйте начать с <a href='/'>главной страницы</a>
|
11
|
+
</div>
|
12
|
+
</body>
|
13
|
+
</html>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="ru">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
|
+
|
6
|
+
<title>Ошибка 502 - Ошибка шлюза</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<div>
|
10
|
+
Ой! Подождите, скоро все будет хорошо.
|
11
|
+
</div>
|
12
|
+
</body>
|
13
|
+
</html>
|
data/lib/header/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: header
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PeoneEr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -83,6 +83,11 @@ files:
|
|
83
83
|
- bin/console
|
84
84
|
- bin/setup
|
85
85
|
- header.gemspec
|
86
|
+
- lib/generators/header/pages_generator.rb
|
87
|
+
- lib/generators/header/templates/403.html
|
88
|
+
- lib/generators/header/templates/404.html
|
89
|
+
- lib/generators/header/templates/500.html
|
90
|
+
- lib/generators/header/templates/502.html
|
86
91
|
- lib/header.rb
|
87
92
|
- lib/header/version.rb
|
88
93
|
- vendor/assets/stylesheets/header.sass
|
@@ -106,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
111
|
version: '0'
|
107
112
|
requirements: []
|
108
113
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.2.3
|
110
115
|
signing_key:
|
111
116
|
specification_version: 4
|
112
117
|
summary: Header
|