big_session 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +32 -0
  3. data/.rubocop.yml +10 -0
  4. data/Gemfile +8 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +60 -0
  7. data/Rakefile +8 -0
  8. data/big_session.gemspec +44 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/examples/landing_page_app_and_core_app/README.md +3 -0
  12. data/examples/landing_page_app_and_core_app/app_core/.ruby-version +1 -0
  13. data/examples/landing_page_app_and_core_app/app_core/Dockerfile +22 -0
  14. data/examples/landing_page_app_and_core_app/app_core/Gemfile +66 -0
  15. data/examples/landing_page_app_and_core_app/app_core/Gemfile.lock +236 -0
  16. data/examples/landing_page_app_and_core_app/app_core/README.md +24 -0
  17. data/examples/landing_page_app_and_core_app/app_core/Rakefile +6 -0
  18. data/examples/landing_page_app_and_core_app/app_core/app/assets/config/manifest.js +3 -0
  19. data/examples/landing_page_app_and_core_app/app_core/app/assets/images/.keep +0 -0
  20. data/examples/landing_page_app_and_core_app/app_core/app/assets/javascripts/application.js +16 -0
  21. data/examples/landing_page_app_and_core_app/app_core/app/assets/javascripts/cable.js +13 -0
  22. data/examples/landing_page_app_and_core_app/app_core/app/assets/javascripts/channels/.keep +0 -0
  23. data/examples/landing_page_app_and_core_app/app_core/app/assets/stylesheets/application.css +15 -0
  24. data/examples/landing_page_app_and_core_app/app_core/app/channels/application_cable/channel.rb +4 -0
  25. data/examples/landing_page_app_and_core_app/app_core/app/channels/application_cable/connection.rb +4 -0
  26. data/examples/landing_page_app_and_core_app/app_core/app/controllers/application_controller.rb +12 -0
  27. data/examples/landing_page_app_and_core_app/app_core/app/controllers/concerns/.keep +0 -0
  28. data/examples/landing_page_app_and_core_app/app_core/app/controllers/conversions_controller.rb +8 -0
  29. data/examples/landing_page_app_and_core_app/app_core/app/helpers/application_helper.rb +2 -0
  30. data/examples/landing_page_app_and_core_app/app_core/app/jobs/application_job.rb +2 -0
  31. data/examples/landing_page_app_and_core_app/app_core/app/mailers/application_mailer.rb +4 -0
  32. data/examples/landing_page_app_and_core_app/app_core/app/models/application_record.rb +3 -0
  33. data/examples/landing_page_app_and_core_app/app_core/app/models/concerns/.keep +0 -0
  34. data/examples/landing_page_app_and_core_app/app_core/app/views/layouts/application.html.erb +15 -0
  35. data/examples/landing_page_app_and_core_app/app_core/app/views/layouts/mailer.html.erb +13 -0
  36. data/examples/landing_page_app_and_core_app/app_core/app/views/layouts/mailer.text.erb +1 -0
  37. data/examples/landing_page_app_and_core_app/app_core/bin/bundle +3 -0
  38. data/examples/landing_page_app_and_core_app/app_core/bin/rails +9 -0
  39. data/examples/landing_page_app_and_core_app/app_core/bin/rake +9 -0
  40. data/examples/landing_page_app_and_core_app/app_core/bin/setup +36 -0
  41. data/examples/landing_page_app_and_core_app/app_core/bin/spring +17 -0
  42. data/examples/landing_page_app_and_core_app/app_core/bin/update +31 -0
  43. data/examples/landing_page_app_and_core_app/app_core/bin/yarn +11 -0
  44. data/examples/landing_page_app_and_core_app/app_core/config.ru +5 -0
  45. data/examples/landing_page_app_and_core_app/app_core/config/application.rb +19 -0
  46. data/examples/landing_page_app_and_core_app/app_core/config/boot.rb +4 -0
  47. data/examples/landing_page_app_and_core_app/app_core/config/cable.yml +10 -0
  48. data/examples/landing_page_app_and_core_app/app_core/config/credentials.yml.enc +1 -0
  49. data/examples/landing_page_app_and_core_app/app_core/config/database.yml +88 -0
  50. data/examples/landing_page_app_and_core_app/app_core/config/environment.rb +5 -0
  51. data/examples/landing_page_app_and_core_app/app_core/config/environments/development.rb +78 -0
  52. data/examples/landing_page_app_and_core_app/app_core/config/environments/production.rb +94 -0
  53. data/examples/landing_page_app_and_core_app/app_core/config/environments/test.rb +46 -0
  54. data/examples/landing_page_app_and_core_app/app_core/config/initializers/application_controller_renderer.rb +8 -0
  55. data/examples/landing_page_app_and_core_app/app_core/config/initializers/assets.rb +14 -0
  56. data/examples/landing_page_app_and_core_app/app_core/config/initializers/backtrace_silencers.rb +7 -0
  57. data/examples/landing_page_app_and_core_app/app_core/config/initializers/big_session.rb +7 -0
  58. data/examples/landing_page_app_and_core_app/app_core/config/initializers/content_security_policy.rb +25 -0
  59. data/examples/landing_page_app_and_core_app/app_core/config/initializers/cookies_serializer.rb +5 -0
  60. data/examples/landing_page_app_and_core_app/app_core/config/initializers/filter_parameter_logging.rb +4 -0
  61. data/examples/landing_page_app_and_core_app/app_core/config/initializers/inflections.rb +16 -0
  62. data/examples/landing_page_app_and_core_app/app_core/config/initializers/mime_types.rb +4 -0
  63. data/examples/landing_page_app_and_core_app/app_core/config/initializers/wrap_parameters.rb +14 -0
  64. data/examples/landing_page_app_and_core_app/app_core/config/locales/en.yml +33 -0
  65. data/examples/landing_page_app_and_core_app/app_core/config/puma.rb +34 -0
  66. data/examples/landing_page_app_and_core_app/app_core/config/routes.rb +4 -0
  67. data/examples/landing_page_app_and_core_app/app_core/config/spring.rb +6 -0
  68. data/examples/landing_page_app_and_core_app/app_core/config/storage.yml +34 -0
  69. data/examples/landing_page_app_and_core_app/app_core/db/seeds.rb +7 -0
  70. data/examples/landing_page_app_and_core_app/app_core/entrypoint.sh +8 -0
  71. data/examples/landing_page_app_and_core_app/app_core/lib/assets/.keep +0 -0
  72. data/examples/landing_page_app_and_core_app/app_core/lib/tasks/.keep +0 -0
  73. data/examples/landing_page_app_and_core_app/app_core/log/.keep +0 -0
  74. data/examples/landing_page_app_and_core_app/app_core/package.json +5 -0
  75. data/examples/landing_page_app_and_core_app/app_core/public/404.html +67 -0
  76. data/examples/landing_page_app_and_core_app/app_core/public/422.html +67 -0
  77. data/examples/landing_page_app_and_core_app/app_core/public/500.html +66 -0
  78. data/examples/landing_page_app_and_core_app/app_core/public/apple-touch-icon-precomposed.png +0 -0
  79. data/examples/landing_page_app_and_core_app/app_core/public/apple-touch-icon.png +0 -0
  80. data/examples/landing_page_app_and_core_app/app_core/public/favicon.ico +0 -0
  81. data/examples/landing_page_app_and_core_app/app_core/public/robots.txt +1 -0
  82. data/examples/landing_page_app_and_core_app/app_core/storage/.keep +0 -0
  83. data/examples/landing_page_app_and_core_app/app_core/test/application_system_test_case.rb +5 -0
  84. data/examples/landing_page_app_and_core_app/app_core/test/controllers/.keep +0 -0
  85. data/examples/landing_page_app_and_core_app/app_core/test/fixtures/.keep +0 -0
  86. data/examples/landing_page_app_and_core_app/app_core/test/fixtures/files/.keep +0 -0
  87. data/examples/landing_page_app_and_core_app/app_core/test/helpers/.keep +0 -0
  88. data/examples/landing_page_app_and_core_app/app_core/test/integration/.keep +0 -0
  89. data/examples/landing_page_app_and_core_app/app_core/test/mailers/.keep +0 -0
  90. data/examples/landing_page_app_and_core_app/app_core/test/models/.keep +0 -0
  91. data/examples/landing_page_app_and_core_app/app_core/test/system/.keep +0 -0
  92. data/examples/landing_page_app_and_core_app/app_core/test/test_helper.rb +10 -0
  93. data/examples/landing_page_app_and_core_app/app_core/tmp/.keep +0 -0
  94. data/examples/landing_page_app_and_core_app/app_core/vendor/.keep +0 -0
  95. data/examples/landing_page_app_and_core_app/app_lp/.ruby-version +1 -0
  96. data/examples/landing_page_app_and_core_app/app_lp/Dockerfile +22 -0
  97. data/examples/landing_page_app_and_core_app/app_lp/Gemfile +66 -0
  98. data/examples/landing_page_app_and_core_app/app_lp/Gemfile.lock +256 -0
  99. data/examples/landing_page_app_and_core_app/app_lp/README.md +24 -0
  100. data/examples/landing_page_app_and_core_app/app_lp/Rakefile +6 -0
  101. data/examples/landing_page_app_and_core_app/app_lp/app/assets/config/manifest.js +3 -0
  102. data/examples/landing_page_app_and_core_app/app_lp/app/assets/images/.keep +0 -0
  103. data/examples/landing_page_app_and_core_app/app_lp/app/assets/javascripts/application.js +16 -0
  104. data/examples/landing_page_app_and_core_app/app_lp/app/assets/javascripts/cable.js +13 -0
  105. data/examples/landing_page_app_and_core_app/app_lp/app/assets/javascripts/channels/.keep +0 -0
  106. data/examples/landing_page_app_and_core_app/app_lp/app/assets/stylesheets/application.css +15 -0
  107. data/examples/landing_page_app_and_core_app/app_lp/app/channels/application_cable/channel.rb +4 -0
  108. data/examples/landing_page_app_and_core_app/app_lp/app/channels/application_cable/connection.rb +4 -0
  109. data/examples/landing_page_app_and_core_app/app_lp/app/controllers/application_controller.rb +10 -0
  110. data/examples/landing_page_app_and_core_app/app_lp/app/controllers/concerns/.keep +0 -0
  111. data/examples/landing_page_app_and_core_app/app_lp/app/controllers/conversions_controller.rb +13 -0
  112. data/examples/landing_page_app_and_core_app/app_lp/app/controllers/lps_controller.rb +3 -0
  113. data/examples/landing_page_app_and_core_app/app_lp/app/helpers/application_helper.rb +2 -0
  114. data/examples/landing_page_app_and_core_app/app_lp/app/jobs/application_job.rb +2 -0
  115. data/examples/landing_page_app_and_core_app/app_lp/app/mailers/application_mailer.rb +4 -0
  116. data/examples/landing_page_app_and_core_app/app_lp/app/models/application_record.rb +3 -0
  117. data/examples/landing_page_app_and_core_app/app_lp/app/models/concerns/.keep +0 -0
  118. data/examples/landing_page_app_and_core_app/app_lp/app/views/layouts/application.html.erb +15 -0
  119. data/examples/landing_page_app_and_core_app/app_lp/app/views/layouts/mailer.html.erb +13 -0
  120. data/examples/landing_page_app_and_core_app/app_lp/app/views/layouts/mailer.text.erb +1 -0
  121. data/examples/landing_page_app_and_core_app/app_lp/app/views/lps/show.html.haml +5 -0
  122. data/examples/landing_page_app_and_core_app/app_lp/bin/bundle +3 -0
  123. data/examples/landing_page_app_and_core_app/app_lp/bin/rails +9 -0
  124. data/examples/landing_page_app_and_core_app/app_lp/bin/rake +9 -0
  125. data/examples/landing_page_app_and_core_app/app_lp/bin/setup +36 -0
  126. data/examples/landing_page_app_and_core_app/app_lp/bin/spring +17 -0
  127. data/examples/landing_page_app_and_core_app/app_lp/bin/update +31 -0
  128. data/examples/landing_page_app_and_core_app/app_lp/bin/yarn +11 -0
  129. data/examples/landing_page_app_and_core_app/app_lp/config.ru +5 -0
  130. data/examples/landing_page_app_and_core_app/app_lp/config/application.rb +19 -0
  131. data/examples/landing_page_app_and_core_app/app_lp/config/boot.rb +4 -0
  132. data/examples/landing_page_app_and_core_app/app_lp/config/cable.yml +10 -0
  133. data/examples/landing_page_app_and_core_app/app_lp/config/credentials.yml.enc +1 -0
  134. data/examples/landing_page_app_and_core_app/app_lp/config/database.yml +88 -0
  135. data/examples/landing_page_app_and_core_app/app_lp/config/environment.rb +5 -0
  136. data/examples/landing_page_app_and_core_app/app_lp/config/environments/development.rb +77 -0
  137. data/examples/landing_page_app_and_core_app/app_lp/config/environments/production.rb +94 -0
  138. data/examples/landing_page_app_and_core_app/app_lp/config/environments/test.rb +46 -0
  139. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/application_controller_renderer.rb +8 -0
  140. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/assets.rb +14 -0
  141. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/backtrace_silencers.rb +7 -0
  142. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/big_session.rb +7 -0
  143. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/content_security_policy.rb +25 -0
  144. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/cookies_serializer.rb +5 -0
  145. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/filter_parameter_logging.rb +4 -0
  146. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/inflections.rb +16 -0
  147. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/mime_types.rb +4 -0
  148. data/examples/landing_page_app_and_core_app/app_lp/config/initializers/wrap_parameters.rb +14 -0
  149. data/examples/landing_page_app_and_core_app/app_lp/config/locales/en.yml +33 -0
  150. data/examples/landing_page_app_and_core_app/app_lp/config/puma.rb +34 -0
  151. data/examples/landing_page_app_and_core_app/app_lp/config/routes.rb +5 -0
  152. data/examples/landing_page_app_and_core_app/app_lp/config/spring.rb +6 -0
  153. data/examples/landing_page_app_and_core_app/app_lp/config/storage.yml +34 -0
  154. data/examples/landing_page_app_and_core_app/app_lp/db/seeds.rb +7 -0
  155. data/examples/landing_page_app_and_core_app/app_lp/entrypoint.sh +8 -0
  156. data/examples/landing_page_app_and_core_app/app_lp/lib/assets/.keep +0 -0
  157. data/examples/landing_page_app_and_core_app/app_lp/lib/tasks/.keep +0 -0
  158. data/examples/landing_page_app_and_core_app/app_lp/log/.keep +0 -0
  159. data/examples/landing_page_app_and_core_app/app_lp/package.json +5 -0
  160. data/examples/landing_page_app_and_core_app/app_lp/public/404.html +67 -0
  161. data/examples/landing_page_app_and_core_app/app_lp/public/422.html +67 -0
  162. data/examples/landing_page_app_and_core_app/app_lp/public/500.html +66 -0
  163. data/examples/landing_page_app_and_core_app/app_lp/public/apple-touch-icon-precomposed.png +0 -0
  164. data/examples/landing_page_app_and_core_app/app_lp/public/apple-touch-icon.png +0 -0
  165. data/examples/landing_page_app_and_core_app/app_lp/public/favicon.ico +0 -0
  166. data/examples/landing_page_app_and_core_app/app_lp/public/robots.txt +1 -0
  167. data/examples/landing_page_app_and_core_app/app_lp/storage/.keep +0 -0
  168. data/examples/landing_page_app_and_core_app/app_lp/test/application_system_test_case.rb +5 -0
  169. data/examples/landing_page_app_and_core_app/app_lp/test/controllers/.keep +0 -0
  170. data/examples/landing_page_app_and_core_app/app_lp/test/fixtures/.keep +0 -0
  171. data/examples/landing_page_app_and_core_app/app_lp/test/fixtures/files/.keep +0 -0
  172. data/examples/landing_page_app_and_core_app/app_lp/test/helpers/.keep +0 -0
  173. data/examples/landing_page_app_and_core_app/app_lp/test/integration/.keep +0 -0
  174. data/examples/landing_page_app_and_core_app/app_lp/test/mailers/.keep +0 -0
  175. data/examples/landing_page_app_and_core_app/app_lp/test/models/.keep +0 -0
  176. data/examples/landing_page_app_and_core_app/app_lp/test/system/.keep +0 -0
  177. data/examples/landing_page_app_and_core_app/app_lp/test/test_helper.rb +10 -0
  178. data/examples/landing_page_app_and_core_app/app_lp/tmp/.keep +0 -0
  179. data/examples/landing_page_app_and_core_app/app_lp/vendor/.keep +0 -0
  180. data/examples/landing_page_app_and_core_app/docker-compose.yml +26 -0
  181. data/lib/big_session.rb +15 -0
  182. data/lib/big_session/faraday.rb +35 -0
  183. data/lib/big_session/rack_middleware.rb +57 -0
  184. data/lib/big_session/session_id.rb +25 -0
  185. data/lib/big_session/version.rb +5 -0
  186. metadata +330 -0
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7
+ # Character.create(name: 'Luke', movie: movies.first)
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # Remove a potentially pre-existing server.pid for Rails.
5
+ rm -f /app/tmp/pids/server.pid
6
+
7
+ # Then exec the container's main process (what's set as CMD in the Dockerfile).
8
+ exec "$@"
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "app",
3
+ "private": true,
4
+ "dependencies": {}
5
+ }
@@ -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
+ .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>
@@ -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
+ .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>
@@ -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
+ .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>
@@ -0,0 +1 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
@@ -0,0 +1,5 @@
1
+ require "test_helper"
2
+
3
+ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
4
+ driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
5
+ end
@@ -0,0 +1,10 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+ require_relative '../config/environment'
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7
+ fixtures :all
8
+
9
+ # Add more helper methods to be used by all tests here...
10
+ end
@@ -0,0 +1,22 @@
1
+ FROM ruby:2.6.3
2
+
3
+ RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
4
+
5
+ RUN mkdir /app
6
+ WORKDIR /app
7
+
8
+ COPY Gemfile /app/Gemfile
9
+ COPY Gemfile.lock /app/Gemfile.lock
10
+ COPY ./big_session /app/big_session
11
+ RUN bundle install
12
+ COPY . /app
13
+
14
+ # Add a script to be executed every time the container starts.
15
+ COPY entrypoint.sh /usr/bin/
16
+ RUN chmod +x /usr/bin/entrypoint.sh
17
+ ENTRYPOINT ["entrypoint.sh"]
18
+
19
+ EXPOSE 3000
20
+
21
+ # Start the main process.
22
+ CMD ["rails", "server", "-b", "0.0.0.0"]
@@ -0,0 +1,66 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ ruby '2.6.3'
5
+
6
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7
+ gem 'rails', '~> 5.2.3'
8
+ # Use postgresql as the database for Active Record
9
+ gem 'pg', '>= 0.18', '< 2.0'
10
+ # Use Puma as the app server
11
+ gem 'puma', '~> 3.11'
12
+ # Use SCSS for stylesheets
13
+ gem 'sass-rails', '~> 5.0'
14
+ # Use Uglifier as compressor for JavaScript assets
15
+ gem 'uglifier', '>= 1.3.0'
16
+ # See https://github.com/rails/execjs#readme for more supported runtimes
17
+ # gem 'mini_racer', platforms: :ruby
18
+
19
+ # Use CoffeeScript for .coffee assets and views
20
+ gem 'coffee-rails', '~> 4.2'
21
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
22
+ gem 'turbolinks', '~> 5'
23
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
24
+ gem 'jbuilder', '~> 2.5'
25
+ # Use Redis adapter to run Action Cable in production
26
+ # gem 'redis', '~> 4.0'
27
+ # Use ActiveModel has_secure_password
28
+ # gem 'bcrypt', '~> 3.1.7'
29
+
30
+ # Use ActiveStorage variant
31
+ # gem 'mini_magick', '~> 4.8'
32
+
33
+ # Use Capistrano for deployment
34
+ # gem 'capistrano-rails', group: :development
35
+
36
+ # Reduces boot times through caching; required in config/boot.rb
37
+ gem 'bootsnap', '>= 1.1.0', require: false
38
+ gem 'faraday'
39
+ gem 'lograge'
40
+ gem 'haml-rails', '~> 1.0'
41
+ gem 'big_session'
42
+
43
+ group :development, :test do
44
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
45
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
46
+ end
47
+
48
+ group :development do
49
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
50
+ gem 'web-console', '>= 3.3.0'
51
+ gem 'listen', '>= 3.0.5', '< 3.2'
52
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
53
+ gem 'spring'
54
+ gem 'spring-watcher-listen', '~> 2.0.0'
55
+ end
56
+
57
+ group :test do
58
+ # Adds support for Capybara system testing and selenium driver
59
+ gem 'capybara', '>= 2.15'
60
+ gem 'selenium-webdriver'
61
+ # Easy installation and use of chromedriver to run system tests with Chrome
62
+ gem 'chromedriver-helper'
63
+ end
64
+
65
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
66
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
@@ -0,0 +1,256 @@
1
+ PATH
2
+ remote: big_session
3
+ specs:
4
+ big_session (0.1.0)
5
+ faraday (~> 0.15)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.2.3)
11
+ actionpack (= 5.2.3)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailer (5.2.3)
15
+ actionpack (= 5.2.3)
16
+ actionview (= 5.2.3)
17
+ activejob (= 5.2.3)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.2.3)
21
+ actionview (= 5.2.3)
22
+ activesupport (= 5.2.3)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.2.3)
28
+ activesupport (= 5.2.3)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.2.3)
34
+ activesupport (= 5.2.3)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.2.3)
37
+ activesupport (= 5.2.3)
38
+ activerecord (5.2.3)
39
+ activemodel (= 5.2.3)
40
+ activesupport (= 5.2.3)
41
+ arel (>= 9.0)
42
+ activestorage (5.2.3)
43
+ actionpack (= 5.2.3)
44
+ activerecord (= 5.2.3)
45
+ marcel (~> 0.3.1)
46
+ activesupport (5.2.3)
47
+ concurrent-ruby (~> 1.0, >= 1.0.2)
48
+ i18n (>= 0.7, < 2)
49
+ minitest (~> 5.1)
50
+ tzinfo (~> 1.1)
51
+ addressable (2.6.0)
52
+ public_suffix (>= 2.0.2, < 4.0)
53
+ archive-zip (0.12.0)
54
+ io-like (~> 0.3.0)
55
+ arel (9.0.0)
56
+ bindex (0.8.1)
57
+ bootsnap (1.4.4)
58
+ msgpack (~> 1.0)
59
+ builder (3.2.3)
60
+ byebug (11.0.1)
61
+ capybara (3.28.0)
62
+ addressable
63
+ mini_mime (>= 0.1.3)
64
+ nokogiri (~> 1.8)
65
+ rack (>= 1.6.0)
66
+ rack-test (>= 0.6.3)
67
+ regexp_parser (~> 1.5)
68
+ xpath (~> 3.2)
69
+ childprocess (1.0.1)
70
+ rake (< 13.0)
71
+ chromedriver-helper (2.1.1)
72
+ archive-zip (~> 0.10)
73
+ nokogiri (~> 1.8)
74
+ coffee-rails (4.2.2)
75
+ coffee-script (>= 2.2.0)
76
+ railties (>= 4.0.0)
77
+ coffee-script (2.4.1)
78
+ coffee-script-source
79
+ execjs
80
+ coffee-script-source (1.12.2)
81
+ concurrent-ruby (1.1.5)
82
+ crass (1.0.4)
83
+ erubi (1.8.0)
84
+ erubis (2.7.0)
85
+ execjs (2.7.0)
86
+ faraday (0.15.4)
87
+ multipart-post (>= 1.2, < 3)
88
+ ffi (1.11.1)
89
+ globalid (0.4.2)
90
+ activesupport (>= 4.2.0)
91
+ haml (5.1.2)
92
+ temple (>= 0.8.0)
93
+ tilt
94
+ haml-rails (1.0.0)
95
+ actionpack (>= 4.0.1)
96
+ activesupport (>= 4.0.1)
97
+ haml (>= 4.0.6, < 6.0)
98
+ html2haml (>= 1.0.1)
99
+ railties (>= 4.0.1)
100
+ html2haml (2.2.0)
101
+ erubis (~> 2.7.0)
102
+ haml (>= 4.0, < 6)
103
+ nokogiri (>= 1.6.0)
104
+ ruby_parser (~> 3.5)
105
+ i18n (1.6.0)
106
+ concurrent-ruby (~> 1.0)
107
+ io-like (0.3.0)
108
+ jbuilder (2.9.1)
109
+ activesupport (>= 4.2.0)
110
+ listen (3.1.5)
111
+ rb-fsevent (~> 0.9, >= 0.9.4)
112
+ rb-inotify (~> 0.9, >= 0.9.7)
113
+ ruby_dep (~> 1.2)
114
+ lograge (0.11.2)
115
+ actionpack (>= 4)
116
+ activesupport (>= 4)
117
+ railties (>= 4)
118
+ request_store (~> 1.0)
119
+ loofah (2.2.3)
120
+ crass (~> 1.0.2)
121
+ nokogiri (>= 1.5.9)
122
+ mail (2.7.1)
123
+ mini_mime (>= 0.1.1)
124
+ marcel (0.3.3)
125
+ mimemagic (~> 0.3.2)
126
+ method_source (0.9.2)
127
+ mimemagic (0.3.3)
128
+ mini_mime (1.0.2)
129
+ mini_portile2 (2.4.0)
130
+ minitest (5.11.3)
131
+ msgpack (1.3.1)
132
+ multipart-post (2.1.1)
133
+ nio4r (2.4.0)
134
+ nokogiri (1.10.4)
135
+ mini_portile2 (~> 2.4.0)
136
+ pg (1.1.4)
137
+ public_suffix (3.1.1)
138
+ puma (3.12.1)
139
+ rack (2.0.7)
140
+ rack-test (1.1.0)
141
+ rack (>= 1.0, < 3)
142
+ rails (5.2.3)
143
+ actioncable (= 5.2.3)
144
+ actionmailer (= 5.2.3)
145
+ actionpack (= 5.2.3)
146
+ actionview (= 5.2.3)
147
+ activejob (= 5.2.3)
148
+ activemodel (= 5.2.3)
149
+ activerecord (= 5.2.3)
150
+ activestorage (= 5.2.3)
151
+ activesupport (= 5.2.3)
152
+ bundler (>= 1.3.0)
153
+ railties (= 5.2.3)
154
+ sprockets-rails (>= 2.0.0)
155
+ rails-dom-testing (2.0.3)
156
+ activesupport (>= 4.2.0)
157
+ nokogiri (>= 1.6)
158
+ rails-html-sanitizer (1.2.0)
159
+ loofah (~> 2.2, >= 2.2.2)
160
+ railties (5.2.3)
161
+ actionpack (= 5.2.3)
162
+ activesupport (= 5.2.3)
163
+ method_source
164
+ rake (>= 0.8.7)
165
+ thor (>= 0.19.0, < 2.0)
166
+ rake (12.3.3)
167
+ rb-fsevent (0.10.3)
168
+ rb-inotify (0.10.0)
169
+ ffi (~> 1.0)
170
+ regexp_parser (1.6.0)
171
+ request_store (1.4.1)
172
+ rack (>= 1.4)
173
+ ruby_dep (1.5.0)
174
+ ruby_parser (3.13.1)
175
+ sexp_processor (~> 4.9)
176
+ rubyzip (1.2.3)
177
+ sass (3.7.4)
178
+ sass-listen (~> 4.0.0)
179
+ sass-listen (4.0.0)
180
+ rb-fsevent (~> 0.9, >= 0.9.4)
181
+ rb-inotify (~> 0.9, >= 0.9.7)
182
+ sass-rails (5.1.0)
183
+ railties (>= 5.2.0)
184
+ sass (~> 3.1)
185
+ sprockets (>= 2.8, < 4.0)
186
+ sprockets-rails (>= 2.0, < 4.0)
187
+ tilt (>= 1.1, < 3)
188
+ selenium-webdriver (3.142.3)
189
+ childprocess (>= 0.5, < 2.0)
190
+ rubyzip (~> 1.2, >= 1.2.2)
191
+ sexp_processor (4.12.1)
192
+ spring (2.1.0)
193
+ spring-watcher-listen (2.0.1)
194
+ listen (>= 2.7, < 4.0)
195
+ spring (>= 1.2, < 3.0)
196
+ sprockets (3.7.2)
197
+ concurrent-ruby (~> 1.0)
198
+ rack (> 1, < 3)
199
+ sprockets-rails (3.2.1)
200
+ actionpack (>= 4.0)
201
+ activesupport (>= 4.0)
202
+ sprockets (>= 3.0.0)
203
+ temple (0.8.1)
204
+ thor (0.20.3)
205
+ thread_safe (0.3.6)
206
+ tilt (2.0.9)
207
+ turbolinks (5.2.0)
208
+ turbolinks-source (~> 5.2)
209
+ turbolinks-source (5.2.0)
210
+ tzinfo (1.2.5)
211
+ thread_safe (~> 0.1)
212
+ uglifier (4.1.20)
213
+ execjs (>= 0.3.0, < 3)
214
+ web-console (3.7.0)
215
+ actionview (>= 5.0)
216
+ activemodel (>= 5.0)
217
+ bindex (>= 0.4.0)
218
+ railties (>= 5.0)
219
+ websocket-driver (0.7.1)
220
+ websocket-extensions (>= 0.1.0)
221
+ websocket-extensions (0.1.4)
222
+ xpath (3.2.0)
223
+ nokogiri (~> 1.8)
224
+
225
+ PLATFORMS
226
+ ruby
227
+
228
+ DEPENDENCIES
229
+ big_session!
230
+ bootsnap (>= 1.1.0)
231
+ byebug
232
+ capybara (>= 2.15)
233
+ chromedriver-helper
234
+ coffee-rails (~> 4.2)
235
+ faraday
236
+ haml-rails (~> 1.0)
237
+ jbuilder (~> 2.5)
238
+ listen (>= 3.0.5, < 3.2)
239
+ lograge
240
+ pg (>= 0.18, < 2.0)
241
+ puma (~> 3.11)
242
+ rails (~> 5.2.3)
243
+ sass-rails (~> 5.0)
244
+ selenium-webdriver
245
+ spring
246
+ spring-watcher-listen (~> 2.0.0)
247
+ turbolinks (~> 5)
248
+ tzinfo-data
249
+ uglifier (>= 1.3.0)
250
+ web-console (>= 3.3.0)
251
+
252
+ RUBY VERSION
253
+ ruby 2.6.3p62
254
+
255
+ BUNDLED WITH
256
+ 1.17.2