alert_message 1.1.8 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +5 -5
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +2 -2
  4. data/Gemfile +0 -2
  5. data/README.md +21 -34
  6. data/Rakefile +4 -19
  7. data/alert_message.gemspec +6 -6
  8. data/lib/generators/alert_message/templates/_alerts.html.erb +1 -1
  9. data/lib/version/version.rb +1 -1
  10. data/spec/spec_helper.rb +4 -12
  11. data/vendor/assets/javascripts/alert_message.js +13 -0
  12. metadata +27 -122
  13. data/spec/alert_message/alert_message_spec.rb +0 -10
  14. data/spec/alert_message/version_spec.rb +0 -10
  15. data/spec/dummy/Gemfile +0 -8
  16. data/spec/dummy/Rakefile +0 -6
  17. data/spec/dummy/app/assets/images/.keep +0 -0
  18. data/spec/dummy/app/assets/javascripts/application.js +0 -14
  19. data/spec/dummy/app/assets/stylesheets/application.css +0 -16
  20. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  21. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  22. data/spec/dummy/app/controllers/home_controller.rb +0 -5
  23. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  24. data/spec/dummy/app/helpers/home_helper.rb +0 -2
  25. data/spec/dummy/app/mailers/.keep +0 -0
  26. data/spec/dummy/app/models/.keep +0 -0
  27. data/spec/dummy/app/models/concerns/.keep +0 -0
  28. data/spec/dummy/app/views/home/index.html.erb +0 -1
  29. data/spec/dummy/app/views/layouts/_alerts.html.erb +0 -10
  30. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  31. data/spec/dummy/bin/bundle +0 -3
  32. data/spec/dummy/bin/rails +0 -4
  33. data/spec/dummy/bin/rake +0 -4
  34. data/spec/dummy/bin/setup +0 -29
  35. data/spec/dummy/config.ru +0 -4
  36. data/spec/dummy/config/application.rb +0 -30
  37. data/spec/dummy/config/boot.rb +0 -5
  38. data/spec/dummy/config/database.yml +0 -25
  39. data/spec/dummy/config/environment.rb +0 -5
  40. data/spec/dummy/config/environments/development.rb +0 -41
  41. data/spec/dummy/config/environments/production.rb +0 -79
  42. data/spec/dummy/config/environments/test.rb +0 -42
  43. data/spec/dummy/config/initializers/assets.rb +0 -11
  44. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  45. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
  46. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  47. data/spec/dummy/config/initializers/inflections.rb +0 -16
  48. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  49. data/spec/dummy/config/initializers/session_store.rb +0 -3
  50. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  51. data/spec/dummy/config/locales/en.yml +0 -23
  52. data/spec/dummy/config/locales/simple_form.en.yml +0 -31
  53. data/spec/dummy/config/routes.rb +0 -5
  54. data/spec/dummy/config/secrets.yml +0 -22
  55. data/spec/dummy/db/migrate/20160713200802_create_content_builder_categories.rb +0 -10
  56. data/spec/dummy/db/migrate/20160713200803_create_content_builders.rb +0 -15
  57. data/spec/dummy/db/migrate/20160713200804_create_content_builder_images.rb +0 -10
  58. data/spec/dummy/db/schema.rb +0 -44
  59. data/spec/dummy/lib/assets/.keep +0 -0
  60. data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +0 -13
  61. data/spec/dummy/log/.keep +0 -0
  62. data/spec/dummy/log/development.log +0 -214
  63. data/spec/dummy/public/404.html +0 -67
  64. data/spec/dummy/public/422.html +0 -67
  65. data/spec/dummy/public/500.html +0 -66
  66. data/spec/dummy/public/favicon.ico +0 -0
  67. data/spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/1/center_example.jpg +0 -0
  68. data/spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/1/example.jpg +0 -0
  69. data/spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/1/left_or_right_example.jpg +0 -0
  70. data/spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/2/center_example.jpg +0 -0
  71. data/spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/2/example.jpg +0 -0
  72. data/spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/2/left_or_right_example.jpg +0 -0
  73. data/spec/features/alert_message_spec.rb +0 -20
  74. data/vendor/assets/javascripts/alert_message.coffee +0 -13
@@ -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
- 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>
@@ -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
- 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>
@@ -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
- 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
@@ -1,20 +0,0 @@
1
- require 'spec_helper'
2
-
3
- feature 'show message', type: :feature do
4
-
5
- selectors = %w(error danger notice success)
6
-
7
- selectors.each do |selector|
8
- scenario "with valid selector" do
9
- visit home_path(message: selector)
10
- expect(page).to have_selector(".alert-message-#{selector}")
11
- expect(page).to have_text("test #{selector} message")
12
- end
13
- end
14
-
15
- scenario "with invalid selector" do
16
- visit home_path(message: "wrong_selector")
17
- expect(page).to have_selector(".alert-message-notice")
18
- expect(page).to have_text("test wrong_selector message")
19
- end
20
- end
@@ -1,13 +0,0 @@
1
- $ ->
2
- alerts = $('.alert-message')
3
- alerts.addClass('alert-message--visible')
4
-
5
- setTimeout (->
6
- alerts.removeClass('alert-message--visible')
7
- return
8
- ), 10000
9
-
10
- alerts.click ->
11
- alerts.removeClass('alert-message--visible')
12
- return
13
- return