better_record 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{spec/dummy/app/assets/javascripts → app/assets/javascripts/better_record}/application.js +0 -0
- data/app/assets/javascripts/better_record/table_sizes.js +2 -0
- data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/better_record}/application.css +0 -0
- data/app/assets/stylesheets/better_record/table_sizes.css +4 -0
- data/app/views/better_record/table_sizes/index.html.erb +34 -0
- data/app/views/better_record/table_sizes/show.html.erb +28 -0
- data/app/views/layouts/better_record/application.html.erb +16 -0
- data/lib/better_record/version.rb +1 -1
- data/lib/generators/better_record/setup/USAGE +15 -0
- data/lib/generators/better_record/setup/setup_generator.rb +91 -0
- data/lib/generators/better_record/setup/templates/gitattributes +20 -0
- data/lib/generators/better_record/setup/templates/gitignore +44 -0
- data/{spec/dummy/config/initializers/better_record.rb → lib/generators/better_record/setup/templates/initializer.rb} +0 -0
- data/lib/generators/better_record/setup/templates/irbrc +7 -0
- data/lib/generators/better_record/setup/templates/jsbeautifyrc +18 -0
- data/lib/generators/better_record/setup/templates/pryrc +42 -0
- data/lib/generators/better_record/setup/templates/rspec +3 -0
- data/lib/generators/better_record/setup/templates/ruby-version +1 -0
- data/{spec/dummy/lib → lib}/templates/active_record/model/model.rb +0 -0
- data/lib/templates/migration/templates/create_table_migration.rb +19 -0
- data/{spec/dummy/lib → lib}/templates/rspec/model/model_spec.rb +0 -0
- metadata +22 -168
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/config/manifest.js +0 -4
- data/spec/dummy/app/assets/javascripts/cable.js +0 -13
- data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
- data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
- data/spec/dummy/app/controllers/application_controller.rb +0 -2
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/jobs/application_job.rb +0 -2
- data/spec/dummy/app/mailers/application_mailer.rb +0 -4
- data/spec/dummy/app/models/application_record.rb +0 -3
- data/spec/dummy/app/models/test_audit.rb +0 -2
- data/spec/dummy/app/models/test_custom_audit.rb +0 -2
- data/spec/dummy/app/views/layouts/application.html.erb +0 -15
- data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -36
- data/spec/dummy/bin/update +0 -31
- data/spec/dummy/bin/yarn +0 -11
- data/spec/dummy/config.ru +0 -5
- data/spec/dummy/config/application.rb +0 -19
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/cable.yml +0 -10
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -61
- data/spec/dummy/config/environments/production.rb +0 -94
- data/spec/dummy/config/environments/test.rb +0 -46
- data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
- data/spec/dummy/config/initializers/assets.rb +0 -14
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/content_security_policy.rb +0 -25
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -33
- data/spec/dummy/config/puma.rb +0 -34
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/config/spring.rb +0 -6
- data/spec/dummy/config/storage.yml +0 -34
- data/spec/dummy/db/migrate/20180725233004_create_test_audits.rb +0 -11
- data/spec/dummy/db/migrate/20180725233007_create_test_custom_audits.rb +0 -12
- data/spec/dummy/db/migrate/20180725235254_create_better_record_db_functions.better_record.rb +0 -95
- data/spec/dummy/db/migrate/20180725235255_create_better_record_table_sizes.better_record.rb +0 -25
- data/spec/dummy/db/structure.sql +0 -781
- data/spec/dummy/log/development.log +0 -2495
- data/spec/dummy/log/test.log +0 -197
- data/spec/dummy/package.json +0 -5
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec/factories/test_audits.rb +0 -7
- data/spec/dummy/spec/factories/test_custom_audits.rb +0 -8
- data/spec/dummy/spec/models/test_audit_spec.rb +0 -5
- data/spec/dummy/spec/models/test_custom_audit_spec.rb +0 -5
- data/spec/factories/better_record_table_sizes.rb +0 -16
- data/spec/factories/test_audits.rb +0 -7
- data/spec/factories/test_custom_audits.rb +0 -8
- data/spec/lib/generators/better_record/install_generator_test.rb +0 -16
- data/spec/method_helper.rb +0 -7
- data/spec/method_helper/functions.rb +0 -9
- data/spec/method_helper/functions/boolean_column.rb +0 -52
- data/spec/method_helper/functions/has_valid_factory.rb +0 -20
- data/spec/method_helper/functions/optional_column.rb +0 -17
- data/spec/method_helper/functions/required_column.rb +0 -35
- data/spec/models/better_record/logged_action_spec.rb +0 -35
- data/spec/models/better_record/table_size_spec.rb +0 -26
- data/spec/models/test_audit_spec.rb +0 -5
- data/spec/models/test_custom_audit_spec.rb +0 -5
- data/spec/rails_helper.rb +0 -36
- data/spec/tmp/testes +0 -0
data/spec/dummy/log/test.log
DELETED
@@ -1,197 +0,0 @@
|
|
1
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(2732175912342162195)[0m
|
2
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
4
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
6
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(2732175912342162195)[0m
|
7
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
8
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10
|
-
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
11
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12
|
-
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
13
|
-
[1m[35m (8.4ms)[0m [1m[35m BEGIN WORK;
|
14
|
-
LOCK TABLE auditing.table_sizes;
|
15
|
-
TRUNCATE TABLE auditing.table_sizes;
|
16
|
-
INSERT INTO auditing.table_sizes (
|
17
|
-
SELECT
|
18
|
-
*,
|
19
|
-
pg_size_pretty(total_bytes) AS total,
|
20
|
-
pg_size_pretty(idx_bytes) AS idx,
|
21
|
-
pg_size_pretty(toast_bytes) AS toast,
|
22
|
-
pg_size_pretty(tbl_bytes) AS tbl
|
23
|
-
FROM (
|
24
|
-
SELECT
|
25
|
-
*,
|
26
|
-
total_bytes - idx_bytes - COALESCE(toast_bytes,0) AS tbl_bytes
|
27
|
-
FROM (
|
28
|
-
SELECT c.oid,nspname AS schema, relname AS name
|
29
|
-
, c.reltuples AS row_estimate
|
30
|
-
, pg_total_relation_size(c.oid) AS total_bytes
|
31
|
-
, pg_indexes_size(c.oid) AS idx_bytes
|
32
|
-
, pg_total_relation_size(reltoastrelid) AS toast_bytes
|
33
|
-
FROM pg_class c
|
34
|
-
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
35
|
-
WHERE relkind = 'r'
|
36
|
-
) table_sizes
|
37
|
-
) table_sizes
|
38
|
-
);
|
39
|
-
COMMIT WORK;
|
40
|
-
[0m
|
41
|
-
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
42
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
43
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
44
|
-
[1m[35m (8.4ms)[0m [1m[35m BEGIN WORK;
|
45
|
-
LOCK TABLE auditing.table_sizes;
|
46
|
-
TRUNCATE TABLE auditing.table_sizes;
|
47
|
-
INSERT INTO auditing.table_sizes (
|
48
|
-
SELECT
|
49
|
-
*,
|
50
|
-
pg_size_pretty(total_bytes) AS total,
|
51
|
-
pg_size_pretty(idx_bytes) AS idx,
|
52
|
-
pg_size_pretty(toast_bytes) AS toast,
|
53
|
-
pg_size_pretty(tbl_bytes) AS tbl
|
54
|
-
FROM (
|
55
|
-
SELECT
|
56
|
-
*,
|
57
|
-
total_bytes - idx_bytes - COALESCE(toast_bytes,0) AS tbl_bytes
|
58
|
-
FROM (
|
59
|
-
SELECT c.oid,nspname AS schema, relname AS name
|
60
|
-
, c.reltuples AS row_estimate
|
61
|
-
, pg_total_relation_size(c.oid) AS total_bytes
|
62
|
-
, pg_indexes_size(c.oid) AS idx_bytes
|
63
|
-
, pg_total_relation_size(reltoastrelid) AS toast_bytes
|
64
|
-
FROM pg_class c
|
65
|
-
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
66
|
-
WHERE relkind = 'r'
|
67
|
-
) table_sizes
|
68
|
-
) table_sizes
|
69
|
-
);
|
70
|
-
COMMIT WORK;
|
71
|
-
[0m
|
72
|
-
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
73
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
74
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
75
|
-
[1m[35m (16.2ms)[0m [1m[35m BEGIN WORK;
|
76
|
-
LOCK TABLE auditing.table_sizes;
|
77
|
-
TRUNCATE TABLE auditing.table_sizes;
|
78
|
-
INSERT INTO auditing.table_sizes (
|
79
|
-
SELECT
|
80
|
-
*,
|
81
|
-
pg_size_pretty(total_bytes) AS total,
|
82
|
-
pg_size_pretty(idx_bytes) AS idx,
|
83
|
-
pg_size_pretty(toast_bytes) AS toast,
|
84
|
-
pg_size_pretty(tbl_bytes) AS tbl
|
85
|
-
FROM (
|
86
|
-
SELECT
|
87
|
-
*,
|
88
|
-
total_bytes - idx_bytes - COALESCE(toast_bytes,0) AS tbl_bytes
|
89
|
-
FROM (
|
90
|
-
SELECT c.oid,nspname AS schema, relname AS name
|
91
|
-
, c.reltuples AS row_estimate
|
92
|
-
, pg_total_relation_size(c.oid) AS total_bytes
|
93
|
-
, pg_indexes_size(c.oid) AS idx_bytes
|
94
|
-
, pg_total_relation_size(reltoastrelid) AS toast_bytes
|
95
|
-
FROM pg_class c
|
96
|
-
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
97
|
-
WHERE relkind = 'r'
|
98
|
-
) table_sizes
|
99
|
-
) table_sizes
|
100
|
-
);
|
101
|
-
COMMIT WORK;
|
102
|
-
[0m
|
103
|
-
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
104
|
-
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
105
|
-
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
106
|
-
[1m[35m (9.3ms)[0m [1m[35m BEGIN WORK;
|
107
|
-
LOCK TABLE auditing.table_sizes;
|
108
|
-
TRUNCATE TABLE auditing.table_sizes;
|
109
|
-
INSERT INTO auditing.table_sizes (
|
110
|
-
SELECT
|
111
|
-
*,
|
112
|
-
pg_size_pretty(total_bytes) AS total,
|
113
|
-
pg_size_pretty(idx_bytes) AS idx,
|
114
|
-
pg_size_pretty(toast_bytes) AS toast,
|
115
|
-
pg_size_pretty(tbl_bytes) AS tbl
|
116
|
-
FROM (
|
117
|
-
SELECT
|
118
|
-
*,
|
119
|
-
total_bytes - idx_bytes - COALESCE(toast_bytes,0) AS tbl_bytes
|
120
|
-
FROM (
|
121
|
-
SELECT c.oid,nspname AS schema, relname AS name
|
122
|
-
, c.reltuples AS row_estimate
|
123
|
-
, pg_total_relation_size(c.oid) AS total_bytes
|
124
|
-
, pg_indexes_size(c.oid) AS idx_bytes
|
125
|
-
, pg_total_relation_size(reltoastrelid) AS toast_bytes
|
126
|
-
FROM pg_class c
|
127
|
-
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
128
|
-
WHERE relkind = 'r'
|
129
|
-
) table_sizes
|
130
|
-
) table_sizes
|
131
|
-
);
|
132
|
-
COMMIT WORK;
|
133
|
-
[0m
|
134
|
-
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
135
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
136
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
137
|
-
[1m[35m (8.5ms)[0m [1m[35m BEGIN WORK;
|
138
|
-
LOCK TABLE auditing.table_sizes;
|
139
|
-
TRUNCATE TABLE auditing.table_sizes;
|
140
|
-
INSERT INTO auditing.table_sizes (
|
141
|
-
SELECT
|
142
|
-
*,
|
143
|
-
pg_size_pretty(total_bytes) AS total,
|
144
|
-
pg_size_pretty(idx_bytes) AS idx,
|
145
|
-
pg_size_pretty(toast_bytes) AS toast,
|
146
|
-
pg_size_pretty(tbl_bytes) AS tbl
|
147
|
-
FROM (
|
148
|
-
SELECT
|
149
|
-
*,
|
150
|
-
total_bytes - idx_bytes - COALESCE(toast_bytes,0) AS tbl_bytes
|
151
|
-
FROM (
|
152
|
-
SELECT c.oid,nspname AS schema, relname AS name
|
153
|
-
, c.reltuples AS row_estimate
|
154
|
-
, pg_total_relation_size(c.oid) AS total_bytes
|
155
|
-
, pg_indexes_size(c.oid) AS idx_bytes
|
156
|
-
, pg_total_relation_size(reltoastrelid) AS toast_bytes
|
157
|
-
FROM pg_class c
|
158
|
-
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
159
|
-
WHERE relkind = 'r'
|
160
|
-
) table_sizes
|
161
|
-
) table_sizes
|
162
|
-
);
|
163
|
-
COMMIT WORK;
|
164
|
-
[0m
|
165
|
-
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
166
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
167
|
-
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
168
|
-
[1m[35m (8.5ms)[0m [1m[35m BEGIN WORK;
|
169
|
-
LOCK TABLE auditing.table_sizes;
|
170
|
-
TRUNCATE TABLE auditing.table_sizes;
|
171
|
-
INSERT INTO auditing.table_sizes (
|
172
|
-
SELECT
|
173
|
-
*,
|
174
|
-
pg_size_pretty(total_bytes) AS total,
|
175
|
-
pg_size_pretty(idx_bytes) AS idx,
|
176
|
-
pg_size_pretty(toast_bytes) AS toast,
|
177
|
-
pg_size_pretty(tbl_bytes) AS tbl
|
178
|
-
FROM (
|
179
|
-
SELECT
|
180
|
-
*,
|
181
|
-
total_bytes - idx_bytes - COALESCE(toast_bytes,0) AS tbl_bytes
|
182
|
-
FROM (
|
183
|
-
SELECT c.oid,nspname AS schema, relname AS name
|
184
|
-
, c.reltuples AS row_estimate
|
185
|
-
, pg_total_relation_size(c.oid) AS total_bytes
|
186
|
-
, pg_indexes_size(c.oid) AS idx_bytes
|
187
|
-
, pg_total_relation_size(reltoastrelid) AS toast_bytes
|
188
|
-
FROM pg_class c
|
189
|
-
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
190
|
-
WHERE relkind = 'r'
|
191
|
-
) table_sizes
|
192
|
-
) table_sizes
|
193
|
-
);
|
194
|
-
COMMIT WORK;
|
195
|
-
[0m
|
196
|
-
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
197
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
data/spec/dummy/package.json
DELETED
data/spec/dummy/public/404.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/404.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/spec/dummy/public/422.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/422.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The change you wanted was rejected.</h1>
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/spec/dummy/public/500.html
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/500.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
62
|
-
</div>
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
64
|
-
</div>
|
65
|
-
</body>
|
66
|
-
</html>
|
File without changes
|
File without changes
|
File without changes
|