middleware_healthcheck 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/CONTRIBUTING.md +48 -0
- data/Dockerfile +14 -0
- data/Gemfile +21 -0
- data/Gemfile.lock +167 -0
- data/LICENSE +0 -0
- data/README.md +6 -1
- data/Rakefile +2 -6
- data/lib/middleware_healthcheck.rb +8 -6
- data/lib/middleware_healthcheck/configuration.rb +10 -8
- data/lib/middleware_healthcheck/default_checkers.rb +3 -3
- data/lib/middleware_healthcheck/default_checkers/active_record_checker.rb +6 -5
- data/lib/middleware_healthcheck/main_checker.rb +9 -6
- data/lib/middleware_healthcheck/middleware.rb +3 -1
- data/lib/middleware_healthcheck/rails.rb +3 -1
- data/lib/middleware_healthcheck/version.rb +3 -1
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/assets/config/manifest.js +4 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +6 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +6 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/home_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +4 -0
- data/spec/dummy/app/jobs/application_job.rb +4 -0
- data/spec/dummy/app/mailers/application_mailer.rb +6 -0
- data/spec/dummy/app/models/application_record.rb +5 -0
- data/spec/dummy/app/views/home/show.html.erb +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +5 -0
- data/spec/dummy/bin/rails +6 -0
- data/spec/dummy/bin/rake +6 -0
- data/spec/dummy/bin/setup +36 -0
- data/spec/dummy/bin/update +31 -0
- data/spec/dummy/config.ru +7 -0
- data/spec/dummy/config/application.rb +24 -0
- data/spec/dummy/config/boot.rb +7 -0
- data/spec/dummy/config/cable.yml +9 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +56 -0
- data/spec/dummy/config/environments/production.rb +88 -0
- data/spec/dummy/config/environments/test.rb +44 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +13 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +9 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +18 -0
- data/spec/dummy/config/initializers/mime_types.rb +6 -0
- data/spec/dummy/config/initializers/new_framework_defaults.rb +26 -0
- data/spec/dummy/config/initializers/session_store.rb +5 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +16 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/puma.rb +49 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config/spring.rb +8 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +80 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- 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/tmp/cache/assets/sprockets/v3.0/1Z/1ZqiErdTkUSevJyliQcE6Uv0PPfRzU66d94xoZ3dSfw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7w/7w6Uz6xnLkTSMI9uPVNZTvew3_SuE2eFtCp2AMFxQeE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cc/CcEKUCZOP7lJ_9fy6W8fGxHeo_pLX0_lh0F7JlaDl5I.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D_/D_apOMXJIIn679o4LoHlmz-NyTG64xuWe4ro7TKyzpU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G0/G0qRtrgh65rOsfS-37uSF2UQdaiDRjEmjqhbpW0pBJA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/GD/GDi3vpM2thf3K_zCKYCjKfpt48sxKHSiGGGpyPoOmfw.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H8/H8v7a_YYGdXSKky0FMxhQ8ym_KD2BX6oGxi3jjzxFSg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwkARxo4EFYR8P7KFYOqyI2hltfnkf4RBi2GUjeEltU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jh/Jhvq9MvG2JctlJCzxUeOKtKWOu-CErXP0g6EYcMi8pk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K2/K2fQCerqynseUF9eeLrwQyQhjV_SJOnR35ahxOQOH4Y.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ls/LsCysQmA8eOxqOj2xfTI5HT0hmFxkgb9T-79Vfpkphk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nq/NqQL4uxBADGd-m9HPI6owT0X79j5Ih03H3Tj1zUv0fc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RN/RN_c4-q-QAwblsfNBzf70NZ91k0xUW5abQ85cDmIFZ8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/T_/T_SzItfIMNw-VpC5cTm_V-MwdXicKcejykRA_eZGBcg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VQ/VQUXuiYfRkz_txe0ySlqGpjumXvwUZs4UQ3LdhtnLqo.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zg/ZguUWQxNrtIUWwdZcTog89HWZjwlg1b4B10YtdmGYxo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dC/dCU95oHfJgwqhciDDqBRfdPqRoYltk9RsJijdjFJDFs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dt/dtA0dxun-aGWHDbilfOw6VkR_pXBQ6Hclrh-DQvu-E4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gg/ggjn9TAGF7zuNOkhChHWmsgBW1JVopRz-Y2hMUg7810.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gy/gyVskbQyIOYyz_cK-QTT4kgiBOAsnZC9gN84kLLDYdE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l_/l__yndgwOVdnrXF0F2Y92la2fbJ-bY8flE0NFs12AGY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p7/p7shbLzQVrz5OW2TM-TaNcMg8gsq9aZWwa93dkSMTQY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rJ/rJkoK89nBrho66t78LEv5znjqvofPuVMzAQMTuQbVBg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wD/wD6mw4ORb1J88B71fVPpf5RbRJ3TVgfnA77wJFO8xj4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/y_/y_wGqfMY79V5Y8Hzbzuc2ChuexYsrFvBkUfKNuMyTQI.cache +0 -0
- data/spec/rails_helper.rb +60 -0
- data/spec/requests/healthcheck_spec.rb +46 -0
- data/spec/spec_helper.rb +99 -0
- metadata +198 -22
- data/lib/tasks/middleware_healthcheck_tasks.rake +0 -4
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rails secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: ff331ca10718c057c94e912887ce3d69ed1ec1eb98fa842296714d2ecc6448a0cedd3c302f14dcc1ef7d25bfc8fed7b7549f6abfc5ec200cf3f7c5d23095f4cd
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 5806ff9890e94d94af35781dc9fa304f1028036e5ee3b6cfa647798c7ef8bd79be1447d3410073ae0ad61f5e840fcdebd98439ba32d8616f23dca65f944c82ad
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
File without changes
|
@@ -0,0 +1,80 @@
|
|
1
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 11:46:37 +0000
|
3
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 11:46:37 +0000
|
4
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 11:46:37 +0000
|
5
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 11:46:37 +0000
|
6
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 11:46:37 +0000
|
7
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 11:46:37 +0000
|
8
|
+
[1m[35m (3.9ms)[0m [1m[36mbegin transaction[0m
|
9
|
+
Started GET "/healthcheck?checks=active_record,something_funny,redis" for 127.0.0.1 at 2019-04-03 11:46:37 +0000
|
10
|
+
[1m[35m (1.6ms)[0m [1m[36mbegin transaction[0m
|
11
|
+
Started GET "/" for 127.0.0.1 at 2019-04-03 11:46:37 +0000
|
12
|
+
Processing by HomeController#show as HTML
|
13
|
+
Rendering home/show.html.erb within layouts/application
|
14
|
+
Rendered home/show.html.erb within layouts/application (12.8ms)
|
15
|
+
Completed 200 OK in 732ms (Views: 707.4ms | ActiveRecord: 0.0ms)
|
16
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
17
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 11:47:12 +0000
|
19
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 11:47:12 +0000
|
20
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 11:47:13 +0000
|
21
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 11:47:13 +0000
|
22
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 11:47:13 +0000
|
23
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 11:47:13 +0000
|
24
|
+
[1m[35m (2.2ms)[0m [1m[36mbegin transaction[0m
|
25
|
+
Started GET "/healthcheck?checks=active_record,something_funny,redis" for 127.0.0.1 at 2019-04-03 11:47:13 +0000
|
26
|
+
[1m[35m (1.8ms)[0m [1m[36mbegin transaction[0m
|
27
|
+
Started GET "/" for 127.0.0.1 at 2019-04-03 11:47:13 +0000
|
28
|
+
Processing by HomeController#show as HTML
|
29
|
+
Rendering home/show.html.erb within layouts/application
|
30
|
+
Rendered home/show.html.erb within layouts/application (12.3ms)
|
31
|
+
Completed 200 OK in 526ms (Views: 506.2ms | ActiveRecord: 0.0ms)
|
32
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
33
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
34
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 11:54:37 +0000
|
35
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 11:54:37 +0000
|
36
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 11:54:37 +0000
|
37
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 11:54:37 +0000
|
38
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 11:54:37 +0000
|
39
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 11:54:37 +0000
|
40
|
+
[1m[35m (2.5ms)[0m [1m[36mbegin transaction[0m
|
41
|
+
Started GET "/healthcheck?checks=active_record,something_funny,redis" for 127.0.0.1 at 2019-04-03 11:54:37 +0000
|
42
|
+
[1m[35m (1.1ms)[0m [1m[36mbegin transaction[0m
|
43
|
+
Started GET "/" for 127.0.0.1 at 2019-04-03 11:54:37 +0000
|
44
|
+
Processing by HomeController#show as HTML
|
45
|
+
Rendering home/show.html.erb within layouts/application
|
46
|
+
Rendered home/show.html.erb within layouts/application (15.5ms)
|
47
|
+
Completed 200 OK in 565ms (Views: 543.9ms | ActiveRecord: 0.0ms)
|
48
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
49
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 12:16:55 +0000
|
51
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 12:16:55 +0000
|
52
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 12:16:55 +0000
|
53
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 12:16:55 +0000
|
54
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 12:16:55 +0000
|
55
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 12:16:55 +0000
|
56
|
+
[1m[35m (1.7ms)[0m [1m[36mbegin transaction[0m
|
57
|
+
Started GET "/healthcheck?checks=active_record,something_funny,redis" for 127.0.0.1 at 2019-04-03 12:16:55 +0000
|
58
|
+
[1m[35m (2.7ms)[0m [1m[36mbegin transaction[0m
|
59
|
+
Started GET "/" for 127.0.0.1 at 2019-04-03 12:16:55 +0000
|
60
|
+
Processing by HomeController#show as HTML
|
61
|
+
Rendering home/show.html.erb within layouts/application
|
62
|
+
Rendered home/show.html.erb within layouts/application (12.2ms)
|
63
|
+
Completed 200 OK in 566ms (Views: 544.1ms | ActiveRecord: 0.0ms)
|
64
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
65
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 14:06:32 +0000
|
67
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 14:06:32 +0000
|
68
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 14:06:32 +0000
|
69
|
+
Started GET "/healthcheck" for 127.0.0.1 at 2019-04-03 14:06:32 +0000
|
70
|
+
Started GET "/healthcheck?full=1" for 127.0.0.1 at 2019-04-03 14:06:32 +0000
|
71
|
+
Started GET "/healthcheck?checks=active_record" for 127.0.0.1 at 2019-04-03 14:06:32 +0000
|
72
|
+
[1m[35m (1.9ms)[0m [1m[36mbegin transaction[0m
|
73
|
+
Started GET "/healthcheck?checks=active_record,something_funny,redis" for 127.0.0.1 at 2019-04-03 14:06:32 +0000
|
74
|
+
[1m[35m (4.2ms)[0m [1m[36mbegin transaction[0m
|
75
|
+
Started GET "/" for 127.0.0.1 at 2019-04-03 14:06:32 +0000
|
76
|
+
Processing by HomeController#show as HTML
|
77
|
+
Rendering home/show.html.erb within layouts/application
|
78
|
+
Rendered home/show.html.erb within layouts/application (19.4ms)
|
79
|
+
Completed 200 OK in 939ms (Views: 914.0ms | ActiveRecord: 0.0ms)
|
80
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
@@ -0,0 +1,67 @@
|
|
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
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
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
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
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>
|
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>
|
@@ -0,0 +1,67 @@
|
|
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
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
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
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
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>
|
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>
|
@@ -0,0 +1,66 @@
|
|
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
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
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
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
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>
|
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
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1Z/1ZqiErdTkUSevJyliQcE6Uv0PPfRzU66d94xoZ3dSfw.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�<������X���̀#+�����,�(o���
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7w/7w6Uz6xnLkTSMI9uPVNZTvew3_SuE2eFtCp2AMFxQeE.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%TT4��
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cc/CcEKUCZOP7lJ_9fy6W8fGxHeo_pLX0_lh0F7JlaDl5I.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D_/D_apOMXJIIn679o4LoHlmz-NyTG64xuWe4ro7TKyzpU.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"}app/assets/stylesheets/application.css?type=text/css&id=8d0465d19aafa145fffaca24aee50e32bef39f91f08dfa8d5f8c7786be81bd36:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G0/G0qRtrgh65rOsfS-37uSF2UQdaiDRjEmjqhbpW0pBJA.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H8/H8v7a_YYGdXSKky0FMxhQ8ym_KD2BX6oGxi3jjzxFSg.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�/usr/local/bundle/gems/actioncable-5.0.2/lib/assets/compiled/action_cable.js?type=application/javascript&pipeline=self&id=9265091f86da6523a3a7741cd2b56be4be291b53f2d0f142140c96eb51511ed8:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwkARxo4EFYR8P7KFYOqyI2hltfnkf4RBi2GUjeEltU.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&id=736d0052ece6a35f58d6935af9d8bcb2918e77cf2e7371ab1e3c059e308257ba:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jh/Jhvq9MvG2JctlJCzxUeOKtKWOu-CErXP0g6EYcMi8pk.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K2/K2fQCerqynseUF9eeLrwQyQhjV_SJOnR35ahxOQOH4Y.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��B�����șo�$'�A�d��L���xR�U
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ls/LsCysQmA8eOxqOj2xfTI5HT0hmFxkgb9T-79Vfpkphk.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nq/NqQL4uxBADGd-m9HPI6owT0X79j5Ih03H3Tj1zUv0fc.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�d�-�K���`���8Y��3�/Y����a~K
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RN/RN_c4-q-QAwblsfNBzf70NZ91k0xUW5abQ85cDmIFZ8.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/cable.js?type=application/javascript&pipeline=self&id=1564f391045b488d2c0582cf7f5db843eefa68e8876ed55a6b27ef7f9c20be70:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/T_/T_SzItfIMNw-VpC5cTm_V-MwdXicKcejykRA_eZGBcg.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zg/ZguUWQxNrtIUWwdZcTog89HWZjwlg1b4B10YtdmGYxo.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%A��G�{h t�l�m�V���NE���f���
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"_file-digest:///usr/local/bundle/gems/actioncable-5.0.2/lib/assets/compiled/action_cable.js;TTI"2file-digest://app/assets/javascripts/cable.js;TTI"$file-digest://app/assets/config;TTI"1file-digest://app/assets/config/action_cable;TTI"$file-digest://app/assets/images;TTI"1file-digest://app/assets/images/action_cable;TTI")file-digest://app/assets/javascripts;TTI"6file-digest://app/assets/javascripts/action_cable;TTI")file-digest://app/assets/stylesheets;TTI"6file-digest://app/assets/stylesheets/action_cable;TTI"Ofile-digest:///usr/local/bundle/gems/actioncable-5.0.2/lib/assets/compiled;TTI"\file-digest:///usr/local/bundle/gems/actioncable-5.0.2/lib/assets/compiled/action_cable;TTI"2file-digest://app/assets/javascripts/channels;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dC/dCU95oHfJgwqhciDDqBRfdPqRoYltk9RsJijdjFJDFs.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dt/dtA0dxun-aGWHDbilfOw6VkR_pXBQ6Hclrh-DQvu-E4.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%TT4��
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gg/ggjn9TAGF7zuNOkhChHWmsgBW1JVopRz-Y2hMUg7810.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�aY}�)�vH`�=�T��y��-��0�@��g~�
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gy/gyVskbQyIOYyz_cK-QTT4kgiBOAsnZC9gN84kLLDYdE.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=27f4524145b9964025c2780760ed970db585c87a520eeff471b1aa5723bd4a14:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l_/l__yndgwOVdnrXF0F2Y92la2fbJ-bY8flE0NFs12AGY.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�d�-�K���`���8Y��3�/Y����a~K
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p7/p7shbLzQVrz5OW2TM-TaNcMg8gsq9aZWwa93dkSMTQY.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��B�����șo�$'�A�d��L���xR�U
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rJ/rJkoK89nBrho66t78LEv5znjqvofPuVMzAQMTuQbVBg.cache
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wD/wD6mw4ORb1J88B71fVPpf5RbRJ3TVgfnA77wJFO8xj4.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=f1a4bc25155700cc2577c3e5b5686e870ec01d2e7012450dfbc13f4d32988a0a:ET
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"2file-digest://app/assets/javascripts/cable.js;TTI"$file-digest://app/assets/config;TTI"1file-digest://app/assets/config/action_cable;TTI"$file-digest://app/assets/images;TTI"1file-digest://app/assets/images/action_cable;TTI")file-digest://app/assets/javascripts;TTI"6file-digest://app/assets/javascripts/action_cable;TTI")file-digest://app/assets/stylesheets;TTI"6file-digest://app/assets/stylesheets/action_cable;TTI"Ofile-digest:///usr/local/bundle/gems/actioncable-5.0.2/lib/assets/compiled;TTI"\file-digest:///usr/local/bundle/gems/actioncable-5.0.2/lib/assets/compiled/action_cable;TTI"_file-digest:///usr/local/bundle/gems/actioncable-5.0.2/lib/assets/compiled/action_cable.js;TTI"2file-digest://app/assets/javascripts/channels;TTF
|
data/spec/dummy/tmp/cache/assets/sprockets/v3.0/y_/y_wGqfMY79V5Y8Hzbzuc2ChuexYsrFvBkUfKNuMyTQI.cache
ADDED
Binary file
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
4
|
+
ENV['RAILS_ENV'] ||= 'test'
|
5
|
+
require File.expand_path('dummy/config/environment', __dir__)
|
6
|
+
# Prevent database truncation if the environment is production
|
7
|
+
abort('The Rails environment is running in production mode!') if Rails.env.production?
|
8
|
+
require 'pry-byebug'
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'rspec/rails'
|
11
|
+
# Add additional requires below this line. Rails is not loaded until this point!
|
12
|
+
|
13
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
14
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
15
|
+
# run as spec files by default. This means that files in spec/support that end
|
16
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
17
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
18
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
19
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
20
|
+
#
|
21
|
+
# The following line is provided for convenience purposes. It has the downside
|
22
|
+
# of increasing the boot-up time by auto-requiring all files in the support
|
23
|
+
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
24
|
+
# require only the support files necessary.
|
25
|
+
#
|
26
|
+
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
27
|
+
|
28
|
+
# Checks for pending migration and applies them before tests are run.
|
29
|
+
# If you are not using ActiveRecord, you can remove this line.
|
30
|
+
ActiveRecord::Migration.maintain_test_schema!
|
31
|
+
|
32
|
+
RSpec.configure do |config|
|
33
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
34
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
35
|
+
|
36
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
37
|
+
# examples within a transaction, remove the following line or assign false
|
38
|
+
# instead of true.
|
39
|
+
config.use_transactional_fixtures = true
|
40
|
+
|
41
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
42
|
+
# based on their file location, for example enabling you to call `get` and
|
43
|
+
# `post` in specs under `spec/controllers`.
|
44
|
+
#
|
45
|
+
# You can disable this behaviour by removing the line below, and instead
|
46
|
+
# explicitly tag your specs with their type, e.g.:
|
47
|
+
#
|
48
|
+
# RSpec.describe UsersController, :type => :controller do
|
49
|
+
# # ...
|
50
|
+
# end
|
51
|
+
#
|
52
|
+
# The different available types are documented in the features, such as in
|
53
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
54
|
+
config.infer_spec_type_from_file_location!
|
55
|
+
|
56
|
+
# Filter lines from Rails gems in backtraces.
|
57
|
+
config.filter_rails_from_backtrace!
|
58
|
+
# arbitrary gems may also be filtered via:
|
59
|
+
# config.filter_gems_from_backtrace("gem name")
|
60
|
+
end
|