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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01a953f750acc11d0b02f5032231a89a65b53846
4
- data.tar.gz: b0326d22b57393a9238614e9274197c1042066e4
3
+ metadata.gz: a4a4eeb3e539e0bf032735061e498aa6fc901f62
4
+ data.tar.gz: dfed1060a578ab6ce1cb27fc4cebf3ae0f873584
5
5
  SHA512:
6
- metadata.gz: 379cf8c01c8445e2b056c179cd8fb4a3fa65613bd87e60cc94a47f4bfac9d5ea4c6c6401af7c646ad6fce710149664e390ff3ea1373cfb6a9c8998dd4bdc4b69
7
- data.tar.gz: 36fecdb6e13e1be0522d92481f4039632265dd0e0d9da456843a6e7b5c56d74d6c797e4e6d4f971f01691148a4c3817f09af6ff15812049f0db5d28a73490df6
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>
@@ -1,3 +1,3 @@
1
1
  module Header
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-03-27 00:00:00.000000000 Z
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.4.6
114
+ rubygems_version: 2.2.3
110
115
  signing_key:
111
116
  specification_version: 4
112
117
  summary: Header