pubsub_notifier 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +9 -3
- data/lib/generators/rails/templates/notifier.tt +2 -1
- data/lib/generators/rspec/notifier_generator.rb +1 -1
- data/lib/pubsub_notifier/proxy.rb +1 -1
- data/lib/pubsub_notifier/version.rb +1 -1
- data/spec/integration_spec.rb +15 -0
- data/spec/lib/acts_as_notifier_spec.rb +38 -0
- data/spec/lib/base_spec.rb +55 -0
- data/spec/lib/broadcasters/active_job_broadcaster_spec.rb +33 -0
- data/spec/lib/broadcasters_spec.rb +21 -0
- data/spec/lib/client_spec.rb +33 -0
- data/spec/lib/config_spec.rb +7 -0
- data/spec/lib/proxy_spec.rb +60 -0
- data/spec/lib/pubsub_spec.rb +14 -0
- data/spec/lib/slack_client_spec.rb +22 -0
- data/spec/pubsub_notifier_spec.rb +38 -20
- data/spec/rails/rails-4.2.9/README.rdoc +28 -0
- data/spec/rails/rails-4.2.9/Rakefile +6 -0
- data/spec/rails/rails-4.2.9/app/assets/javascripts/application.js +16 -0
- data/spec/rails/rails-4.2.9/app/assets/stylesheets/application.css +15 -0
- data/spec/rails/rails-4.2.9/app/controllers/application_controller.rb +5 -0
- data/spec/rails/rails-4.2.9/app/helpers/application_helper.rb +2 -0
- data/spec/rails/rails-4.2.9/app/mailers/application_mailer.rb +4 -0
- data/spec/rails/rails-4.2.9/app/mailers/post_mailer.rb +13 -0
- data/spec/rails/rails-4.2.9/app/mailers/user_mailer.rb +13 -0
- data/spec/rails/rails-4.2.9/app/models/post.rb +6 -0
- data/spec/rails/rails-4.2.9/app/models/register.rb +9 -0
- data/spec/rails/rails-4.2.9/app/models/user.rb +6 -0
- data/spec/{support → rails/rails-4.2.9/app}/notifiers/application_notifier.rb +0 -0
- data/spec/rails/rails-4.2.9/app/notifiers/post_notifier.rb +12 -0
- data/spec/rails/rails-4.2.9/app/notifiers/user_notifier.rb +12 -0
- data/spec/rails/rails-4.2.9/app/views/layouts/application.html.erb +14 -0
- data/spec/rails/rails-4.2.9/app/views/layouts/mailer.html.erb +5 -0
- data/spec/rails/rails-4.2.9/app/views/layouts/mailer.text.erb +1 -0
- data/spec/rails/rails-4.2.9/app/views/post_mailer/failure.html.erb +5 -0
- data/spec/rails/rails-4.2.9/app/views/post_mailer/failure.text.erb +3 -0
- data/spec/rails/rails-4.2.9/app/views/user_mailer/success.html.erb +5 -0
- data/spec/rails/rails-4.2.9/app/views/user_mailer/success.text.erb +3 -0
- data/spec/rails/rails-4.2.9/bin/bundle +3 -0
- data/spec/rails/rails-4.2.9/bin/rails +4 -0
- data/spec/rails/rails-4.2.9/bin/rake +4 -0
- data/spec/rails/rails-4.2.9/bin/setup +29 -0
- data/spec/rails/rails-4.2.9/config.ru +4 -0
- data/spec/rails/rails-4.2.9/config/application.rb +35 -0
- data/spec/rails/rails-4.2.9/config/boot.rb +3 -0
- data/spec/rails/rails-4.2.9/config/database.yml +25 -0
- data/spec/rails/rails-4.2.9/config/environment.rb +8 -0
- data/spec/rails/rails-4.2.9/config/environments/development.rb +28 -0
- data/spec/rails/rails-4.2.9/config/environments/production.rb +67 -0
- data/spec/rails/rails-4.2.9/config/environments/test.rb +43 -0
- data/spec/rails/rails-4.2.9/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails/rails-4.2.9/config/initializers/cookies_serializer.rb +3 -0
- data/spec/rails/rails-4.2.9/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/rails/rails-4.2.9/config/initializers/inflections.rb +16 -0
- data/spec/rails/rails-4.2.9/config/initializers/mime_types.rb +4 -0
- data/spec/rails/rails-4.2.9/config/initializers/pubsub_notifier.rb +10 -0
- data/spec/rails/rails-4.2.9/config/initializers/session_store.rb +3 -0
- data/spec/rails/rails-4.2.9/config/initializers/to_time_preserves_timezone.rb +10 -0
- data/spec/rails/rails-4.2.9/config/initializers/wrap_parameters.rb +14 -0
- data/spec/rails/rails-4.2.9/config/locales/en.yml +23 -0
- data/spec/rails/rails-4.2.9/config/routes.rb +56 -0
- data/spec/rails/rails-4.2.9/config/secrets.yml +22 -0
- data/spec/rails/rails-4.2.9/db/migrate/20170714092725_create_users.rb +9 -0
- data/spec/rails/rails-4.2.9/db/migrate/20170714092727_create_posts.rb +9 -0
- data/spec/rails/rails-4.2.9/db/schema.rb +28 -0
- data/spec/rails/rails-4.2.9/db/seeds.rb +7 -0
- data/spec/rails/rails-4.2.9/db/test.sqlite3 +0 -0
- data/spec/rails/rails-4.2.9/log/test.log +272 -0
- data/spec/rails/rails-4.2.9/public/404.html +67 -0
- data/spec/rails/rails-4.2.9/public/422.html +67 -0
- data/spec/rails/rails-4.2.9/public/500.html +66 -0
- data/spec/rails/rails-4.2.9/public/favicon.ico +0 -0
- data/spec/rails/rails-4.2.9/public/robots.txt +5 -0
- data/spec/rails/rails-5.0.4/README.md +24 -0
- data/spec/rails/rails-5.0.4/Rakefile +6 -0
- data/spec/rails/rails-5.0.4/app/assets/config/manifest.js +3 -0
- data/spec/rails/rails-5.0.4/app/assets/javascripts/application.js +15 -0
- data/spec/rails/rails-5.0.4/app/assets/javascripts/cable.js +13 -0
- data/spec/rails/rails-5.0.4/app/assets/stylesheets/application.css +15 -0
- data/spec/rails/rails-5.0.4/app/channels/application_cable/channel.rb +4 -0
- data/spec/rails/rails-5.0.4/app/channels/application_cable/connection.rb +4 -0
- data/spec/rails/rails-5.0.4/app/controllers/application_controller.rb +3 -0
- data/spec/rails/rails-5.0.4/app/helpers/application_helper.rb +2 -0
- data/spec/rails/rails-5.0.4/app/jobs/application_job.rb +2 -0
- data/spec/rails/rails-5.0.4/app/mailers/application_mailer.rb +4 -0
- data/spec/rails/rails-5.0.4/app/mailers/post_mailer.rb +14 -0
- data/spec/rails/rails-5.0.4/app/mailers/user_mailer.rb +14 -0
- data/spec/rails/rails-5.0.4/app/models/application_record.rb +3 -0
- data/spec/rails/rails-5.0.4/app/models/post.rb +6 -0
- data/spec/rails/rails-5.0.4/app/models/register.rb +9 -0
- data/spec/rails/rails-5.0.4/app/models/user.rb +6 -0
- data/spec/rails/rails-5.0.4/app/notifiers/application_notifier.rb +2 -0
- data/spec/rails/rails-5.0.4/app/notifiers/post_notifier.rb +12 -0
- data/spec/rails/rails-5.0.4/app/notifiers/user_notifier.rb +12 -0
- data/spec/rails/rails-5.0.4/app/views/layouts/application.html.erb +14 -0
- data/spec/rails/rails-5.0.4/app/views/layouts/mailer.html.erb +13 -0
- data/spec/rails/rails-5.0.4/app/views/layouts/mailer.text.erb +1 -0
- data/spec/rails/rails-5.0.4/app/views/post_mailer/failure.html.erb +5 -0
- data/spec/rails/rails-5.0.4/app/views/post_mailer/failure.text.erb +3 -0
- data/spec/rails/rails-5.0.4/app/views/user_mailer/success.html.erb +5 -0
- data/spec/rails/rails-5.0.4/app/views/user_mailer/success.text.erb +3 -0
- data/spec/rails/rails-5.0.4/bin/bundle +3 -0
- data/spec/rails/rails-5.0.4/bin/rails +4 -0
- data/spec/rails/rails-5.0.4/bin/rake +4 -0
- data/spec/rails/rails-5.0.4/bin/setup +34 -0
- data/spec/rails/rails-5.0.4/bin/update +29 -0
- data/spec/rails/rails-5.0.4/config.ru +5 -0
- data/spec/rails/rails-5.0.4/config/application.rb +25 -0
- data/spec/rails/rails-5.0.4/config/boot.rb +3 -0
- data/spec/rails/rails-5.0.4/config/cable.yml +9 -0
- data/spec/rails/rails-5.0.4/config/database.yml +25 -0
- data/spec/rails/rails-5.0.4/config/environment.rb +8 -0
- data/spec/rails/rails-5.0.4/config/environments/development.rb +47 -0
- data/spec/rails/rails-5.0.4/config/environments/production.rb +78 -0
- data/spec/rails/rails-5.0.4/config/environments/test.rb +43 -0
- data/spec/rails/rails-5.0.4/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/rails/rails-5.0.4/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails/rails-5.0.4/config/initializers/cookies_serializer.rb +5 -0
- data/spec/rails/rails-5.0.4/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/rails/rails-5.0.4/config/initializers/inflections.rb +16 -0
- data/spec/rails/rails-5.0.4/config/initializers/mime_types.rb +4 -0
- data/spec/rails/rails-5.0.4/config/initializers/new_framework_defaults.rb +26 -0
- data/spec/rails/rails-5.0.4/config/initializers/pubsub_notifier.rb +10 -0
- data/spec/rails/rails-5.0.4/config/initializers/session_store.rb +3 -0
- data/spec/rails/rails-5.0.4/config/initializers/wrap_parameters.rb +14 -0
- data/spec/rails/rails-5.0.4/config/locales/en.yml +23 -0
- data/spec/rails/rails-5.0.4/config/puma.rb +47 -0
- data/spec/rails/rails-5.0.4/config/routes.rb +3 -0
- data/spec/rails/rails-5.0.4/config/secrets.yml +22 -0
- data/spec/rails/rails-5.0.4/db/migrate/20170714092740_create_users.rb +9 -0
- data/spec/rails/rails-5.0.4/db/migrate/20170714092741_create_posts.rb +9 -0
- data/spec/rails/rails-5.0.4/db/schema.rb +27 -0
- data/spec/rails/rails-5.0.4/db/seeds.rb +7 -0
- data/spec/rails/rails-5.0.4/db/test.sqlite3 +0 -0
- data/spec/rails/rails-5.0.4/log/test.log +723 -0
- data/spec/rails/rails-5.0.4/public/404.html +67 -0
- data/spec/rails/rails-5.0.4/public/422.html +67 -0
- data/spec/rails/rails-5.0.4/public/500.html +66 -0
- data/spec/rails/rails-5.0.4/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/rails/rails-5.0.4/public/apple-touch-icon.png +0 -0
- data/spec/rails/rails-5.0.4/public/favicon.ico +0 -0
- data/spec/rails/rails-5.0.4/public/robots.txt +5 -0
- data/spec/rails/rails-5.1.2/README.md +24 -0
- data/spec/rails/rails-5.1.2/Rakefile +6 -0
- data/spec/rails/rails-5.1.2/app/assets/config/manifest.js +3 -0
- data/spec/rails/rails-5.1.2/app/assets/javascripts/application.js +15 -0
- data/spec/rails/rails-5.1.2/app/assets/javascripts/cable.js +13 -0
- data/spec/rails/rails-5.1.2/app/assets/stylesheets/application.css +15 -0
- data/spec/rails/rails-5.1.2/app/channels/application_cable/channel.rb +4 -0
- data/spec/rails/rails-5.1.2/app/channels/application_cable/connection.rb +4 -0
- data/spec/rails/rails-5.1.2/app/controllers/application_controller.rb +3 -0
- data/spec/rails/rails-5.1.2/app/helpers/application_helper.rb +2 -0
- data/spec/rails/rails-5.1.2/app/jobs/application_job.rb +2 -0
- data/spec/rails/rails-5.1.2/app/mailers/application_mailer.rb +4 -0
- data/spec/rails/rails-5.1.2/app/mailers/post_mailer.rb +14 -0
- data/spec/rails/rails-5.1.2/app/mailers/user_mailer.rb +14 -0
- data/spec/rails/rails-5.1.2/app/models/application_record.rb +3 -0
- data/spec/rails/rails-5.1.2/app/models/post.rb +6 -0
- data/spec/rails/rails-5.1.2/app/models/register.rb +9 -0
- data/spec/rails/rails-5.1.2/app/models/user.rb +6 -0
- data/spec/rails/rails-5.1.2/app/notifiers/application_notifier.rb +2 -0
- data/spec/rails/rails-5.1.2/app/notifiers/post_notifier.rb +12 -0
- data/spec/rails/rails-5.1.2/app/notifiers/user_notifier.rb +12 -0
- data/spec/rails/rails-5.1.2/app/views/layouts/application.html.erb +14 -0
- data/spec/rails/rails-5.1.2/app/views/layouts/mailer.html.erb +13 -0
- data/spec/rails/rails-5.1.2/app/views/layouts/mailer.text.erb +1 -0
- data/spec/rails/rails-5.1.2/app/views/post_mailer/failure.html.erb +5 -0
- data/spec/rails/rails-5.1.2/app/views/post_mailer/failure.text.erb +3 -0
- data/spec/rails/rails-5.1.2/app/views/user_mailer/success.html.erb +5 -0
- data/spec/rails/rails-5.1.2/app/views/user_mailer/success.text.erb +3 -0
- data/spec/rails/rails-5.1.2/bin/bundle +3 -0
- data/spec/rails/rails-5.1.2/bin/rails +4 -0
- data/spec/rails/rails-5.1.2/bin/rake +4 -0
- data/spec/rails/rails-5.1.2/bin/setup +38 -0
- data/spec/rails/rails-5.1.2/bin/update +29 -0
- data/spec/rails/rails-5.1.2/bin/yarn +11 -0
- data/spec/rails/rails-5.1.2/config.ru +5 -0
- data/spec/rails/rails-5.1.2/config/application.rb +31 -0
- data/spec/rails/rails-5.1.2/config/boot.rb +3 -0
- data/spec/rails/rails-5.1.2/config/cable.yml +10 -0
- data/spec/rails/rails-5.1.2/config/database.yml +25 -0
- data/spec/rails/rails-5.1.2/config/environment.rb +8 -0
- data/spec/rails/rails-5.1.2/config/environments/development.rb +47 -0
- data/spec/rails/rails-5.1.2/config/environments/production.rb +83 -0
- data/spec/rails/rails-5.1.2/config/environments/test.rb +43 -0
- data/spec/rails/rails-5.1.2/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/rails/rails-5.1.2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails/rails-5.1.2/config/initializers/cookies_serializer.rb +5 -0
- data/spec/rails/rails-5.1.2/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/rails/rails-5.1.2/config/initializers/inflections.rb +16 -0
- data/spec/rails/rails-5.1.2/config/initializers/mime_types.rb +4 -0
- data/spec/rails/rails-5.1.2/config/initializers/pubsub_notifier.rb +10 -0
- data/spec/rails/rails-5.1.2/config/initializers/wrap_parameters.rb +14 -0
- data/spec/rails/rails-5.1.2/config/locales/en.yml +33 -0
- data/spec/rails/rails-5.1.2/config/puma.rb +56 -0
- data/spec/rails/rails-5.1.2/config/routes.rb +3 -0
- data/spec/rails/rails-5.1.2/config/secrets.yml +32 -0
- data/spec/rails/rails-5.1.2/db/migrate/20170714092754_create_users.rb +9 -0
- data/spec/rails/rails-5.1.2/db/migrate/20170714092755_create_posts.rb +9 -0
- data/spec/rails/rails-5.1.2/db/schema.rb +27 -0
- data/spec/rails/rails-5.1.2/db/seeds.rb +7 -0
- data/spec/rails/rails-5.1.2/db/test.sqlite3 +0 -0
- data/spec/rails/rails-5.1.2/log/test.log +917 -0
- data/spec/rails/rails-5.1.2/package.json +5 -0
- data/spec/rails/rails-5.1.2/public/404.html +67 -0
- data/spec/rails/rails-5.1.2/public/422.html +67 -0
- data/spec/rails/rails-5.1.2/public/500.html +66 -0
- data/spec/rails/rails-5.1.2/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/rails/rails-5.1.2/public/apple-touch-icon.png +0 -0
- data/spec/rails/rails-5.1.2/public/favicon.ico +0 -0
- data/spec/rails/rails-5.1.2/public/robots.txt +1 -0
- data/spec/spec_helper.rb +43 -7
- data/spec/support/rails_template.rb +57 -0
- metadata +413 -11
- data/spec/support/models/member.rb +0 -6
- data/spec/support/models/user.rb +0 -6
- data/spec/support/notifiers/admin_notifier.rb +0 -13
- data/spec/support/notifiers/user_notifier.rb +0 -13
@@ -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
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require_tree .
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
+
// You can generate new channels where WebSocket features live using the rails generate channel command.
|
3
|
+
//
|
4
|
+
//= require action_cable
|
5
|
+
//= require_self
|
6
|
+
//= require_tree ./channels
|
7
|
+
|
8
|
+
(function() {
|
9
|
+
this.App || (this.App = {});
|
10
|
+
|
11
|
+
App.cable = ActionCable.createConsumer();
|
12
|
+
|
13
|
+
}).call(this);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class PostMailer < ApplicationMailer
|
2
|
+
acts_as_notifier
|
3
|
+
|
4
|
+
# Subject can be set in your I18n file at config/locales/en.yml
|
5
|
+
# with the following lookup:
|
6
|
+
#
|
7
|
+
# en.post_mailer.failure.subject
|
8
|
+
#
|
9
|
+
def failure(recipient)
|
10
|
+
@greeting = "Hi"
|
11
|
+
|
12
|
+
mail to: "to@example.org"
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class UserMailer < ApplicationMailer
|
2
|
+
acts_as_notifier
|
3
|
+
|
4
|
+
# Subject can be set in your I18n file at config/locales/en.yml
|
5
|
+
# with the following lookup:
|
6
|
+
#
|
7
|
+
# en.user_mailer.success.subject
|
8
|
+
#
|
9
|
+
def success(recipient)
|
10
|
+
@greeting = "Hi"
|
11
|
+
|
12
|
+
mail to: "to@example.org"
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class PostNotifier < ApplicationNotifier
|
2
|
+
use :logger
|
3
|
+
# use :slack, channel: '#general', username: 'username', icon_emoji: ':grinning:'
|
4
|
+
|
5
|
+
def success(recipient)
|
6
|
+
notify_success("#{self.class}##{__method__} called with #{recipient.class}.")
|
7
|
+
end
|
8
|
+
|
9
|
+
def failure(recipient)
|
10
|
+
notify_failure("#{self.class}##{__method__} called with #{recipient.class}.")
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class UserNotifier < ApplicationNotifier
|
2
|
+
use :logger
|
3
|
+
# use :slack, channel: '#general', username: 'username', icon_emoji: ':grinning:'
|
4
|
+
|
5
|
+
def success(recipient)
|
6
|
+
notify_success("#{self.class}##{__method__} called with #{recipient.class}.")
|
7
|
+
end
|
8
|
+
|
9
|
+
def failure(recipient)
|
10
|
+
notify_failure("#{self.class}##{__method__} called with #{recipient.class}.")
|
11
|
+
end
|
12
|
+
end
|