cypress-on-rails 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +14 -14
  3. data/README.md +178 -22
  4. data/docs/authentication.md +30 -0
  5. data/docs/factory_bot_associations.md +14 -0
  6. data/lib/cypress_on_rails/configuration.rb +5 -0
  7. data/lib/cypress_on_rails/railtie.rb +10 -2
  8. data/lib/cypress_on_rails/vcr/insert_eject_middleware.rb +75 -0
  9. data/lib/cypress_on_rails/vcr/middleware_helpers.rb +51 -0
  10. data/lib/cypress_on_rails/vcr/use_cassette_middleware.rb +56 -0
  11. data/lib/cypress_on_rails/version.rb +1 -1
  12. data/lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb +8 -0
  13. data/lib/generators/cypress_on_rails/templates/spec/cypress/support/commands.js +22 -0
  14. data/lib/generators/cypress_on_rails/templates/spec/cypress/support/on-rails.js +1 -0
  15. data/lib/generators/cypress_on_rails/templates/spec/e2e/e2e_helper.rb.erb +0 -5
  16. data/spec/cypress_on_rails/configuration_spec.rb +4 -1
  17. data/spec/cypress_on_rails/vcr/insert_eject_middleware_spec.rb +177 -0
  18. data/spec/cypress_on_rails/vcr/use_cassette_middleware_spec.rb +68 -0
  19. data/specs_e2e/rails_6_1/.gitattributes +10 -0
  20. data/specs_e2e/rails_6_1/Gemfile +20 -0
  21. data/specs_e2e/{rails_5_2 → rails_6_1}/Rakefile +1 -1
  22. data/specs_e2e/rails_6_1/app/assets/stylesheets/application.css +15 -0
  23. data/specs_e2e/rails_6_1/app/jobs/application_job.rb +7 -0
  24. data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/layouts/application.html.erb +1 -1
  25. data/specs_e2e/rails_6_1/bin/bundle +114 -0
  26. data/specs_e2e/rails_6_1/bin/rails +5 -0
  27. data/specs_e2e/rails_6_1/bin/rake +5 -0
  28. data/specs_e2e/{rails_5_2 → rails_6_1}/bin/setup +15 -4
  29. data/specs_e2e/rails_6_1/bin/spring +14 -0
  30. data/specs_e2e/rails_6_1/bin/yarn +17 -0
  31. data/specs_e2e/rails_6_1/config/application.rb +34 -0
  32. data/specs_e2e/rails_6_1/config/boot.rb +4 -0
  33. data/specs_e2e/rails_6_1/config/cable.yml +10 -0
  34. data/specs_e2e/rails_6_1/config/credentials.yml.enc +1 -0
  35. data/specs_e2e/{rails_5_2 → rails_6_1}/config/database.yml +7 -0
  36. data/specs_e2e/{rails_5_2 → rails_6_1}/config/environment.rb +1 -1
  37. data/specs_e2e/{rails_5_2 → rails_6_1}/config/environments/development.rb +22 -5
  38. data/specs_e2e/rails_6_1/config/environments/production.rb +120 -0
  39. data/specs_e2e/{rails_5_2 → rails_6_1}/config/environments/test.rb +24 -7
  40. data/specs_e2e/rails_6_1/config/initializers/backtrace_silencers.rb +8 -0
  41. data/specs_e2e/{rails_5_2 → rails_6_1}/config/initializers/content_security_policy.rb +5 -0
  42. data/specs_e2e/{rails_4_2 → rails_6_1}/config/initializers/filter_parameter_logging.rb +3 -1
  43. data/specs_e2e/rails_6_1/config/initializers/permissions_policy.rb +11 -0
  44. data/specs_e2e/{rails_3_2 → rails_6_1}/config/initializers/wrap_parameters.rb +5 -1
  45. data/specs_e2e/{rails_5_2 → rails_6_1}/config/locales/en.yml +1 -1
  46. data/specs_e2e/rails_6_1/config/master.key +1 -0
  47. data/specs_e2e/rails_6_1/config/puma.rb +43 -0
  48. data/specs_e2e/rails_6_1/config/storage.yml +34 -0
  49. data/specs_e2e/{rails_5_2 → rails_6_1}/config.ru +2 -1
  50. data/specs_e2e/{rails_5_2 → rails_6_1}/db/migrate/20180621085832_create_posts.rb +1 -1
  51. data/specs_e2e/rails_6_1/package.json +8 -0
  52. data/specs_e2e/rails_6_1/playwright-report/index.html +71 -0
  53. data/specs_e2e/rails_6_1/public/robots.txt +1 -0
  54. data/specs_e2e/rails_6_1/test-results/.last-run.json +4 -0
  55. data/specs_e2e/{rails_4_2 → rails_6_1}/test.sh +22 -15
  56. data/specs_e2e/rails_7_2/.gitattributes +9 -0
  57. data/specs_e2e/rails_7_2/.gitignore +16 -0
  58. data/specs_e2e/rails_7_2/.rubocop.yml +8 -0
  59. data/specs_e2e/rails_7_2/Gemfile +11 -0
  60. data/specs_e2e/{rails_4_2 → rails_7_2}/Rakefile +1 -1
  61. data/specs_e2e/rails_7_2/app/assets/stylesheets/application.css +15 -0
  62. data/specs_e2e/rails_7_2/app/controllers/application_controller.rb +4 -0
  63. data/specs_e2e/rails_7_2/app/controllers/posts_controller.rb +58 -0
  64. data/specs_e2e/rails_7_2/app/helpers/posts_helper.rb +2 -0
  65. data/specs_e2e/rails_7_2/app/jobs/application_job.rb +7 -0
  66. data/specs_e2e/rails_7_2/app/models/application_record.rb +3 -0
  67. data/specs_e2e/rails_7_2/app/models/post.rb +2 -0
  68. data/specs_e2e/rails_7_2/app/views/layouts/application.html.erb +22 -0
  69. data/specs_e2e/rails_7_2/app/views/posts/_form.html.erb +32 -0
  70. data/specs_e2e/rails_7_2/app/views/posts/edit.html.erb +6 -0
  71. data/specs_e2e/rails_7_2/app/views/posts/index.html.erb +31 -0
  72. data/specs_e2e/rails_7_2/app/views/posts/new.html.erb +5 -0
  73. data/specs_e2e/rails_7_2/app/views/posts/show.html.erb +19 -0
  74. data/specs_e2e/rails_7_2/bin/brakeman +7 -0
  75. data/specs_e2e/rails_7_2/bin/bundle +109 -0
  76. data/specs_e2e/rails_7_2/bin/importmap +4 -0
  77. data/specs_e2e/rails_7_2/bin/rails +4 -0
  78. data/specs_e2e/rails_7_2/bin/rake +4 -0
  79. data/specs_e2e/rails_7_2/bin/setup +37 -0
  80. data/specs_e2e/rails_7_2/config/application.rb +37 -0
  81. data/specs_e2e/rails_7_2/config/boot.rb +4 -0
  82. data/specs_e2e/rails_7_2/config/cable.yml +10 -0
  83. data/specs_e2e/rails_7_2/config/credentials.yml.enc +1 -0
  84. data/specs_e2e/rails_7_2/config/database.yml +32 -0
  85. data/specs_e2e/{rails_4_2 → rails_7_2}/config/environment.rb +1 -1
  86. data/specs_e2e/rails_7_2/config/environments/development.rb +54 -0
  87. data/specs_e2e/rails_7_2/config/environments/production.rb +105 -0
  88. data/specs_e2e/rails_7_2/config/environments/test.rb +45 -0
  89. data/specs_e2e/rails_7_2/config/importmap.rb +7 -0
  90. data/specs_e2e/rails_7_2/config/initializers/content_security_policy.rb +25 -0
  91. data/specs_e2e/rails_7_2/config/initializers/filter_parameter_logging.rb +8 -0
  92. data/specs_e2e/{rails_5_2 → rails_7_2}/config/initializers/inflections.rb +4 -4
  93. data/specs_e2e/rails_7_2/config/initializers/permissions_policy.rb +13 -0
  94. data/specs_e2e/rails_7_2/config/locales/en.yml +31 -0
  95. data/specs_e2e/rails_7_2/config/master.key +1 -0
  96. data/specs_e2e/rails_7_2/config/puma.rb +34 -0
  97. data/specs_e2e/rails_7_2/config/routes.rb +5 -0
  98. data/specs_e2e/rails_7_2/config/storage.yml +34 -0
  99. data/specs_e2e/{rails_4_2 → rails_7_2}/config.ru +3 -1
  100. data/specs_e2e/rails_7_2/db/migrate/20180621085832_create_posts.rb +11 -0
  101. data/specs_e2e/rails_7_2/db/seeds.rb +9 -0
  102. data/specs_e2e/rails_7_2/db/test.sqlite3-shm +0 -0
  103. data/specs_e2e/rails_7_2/db/test.sqlite3-wal +0 -0
  104. data/specs_e2e/rails_7_2/package.json +8 -0
  105. data/specs_e2e/rails_7_2/playwright-report/index.html +71 -0
  106. data/specs_e2e/{rails_4_2 → rails_7_2}/public/404.html +6 -6
  107. data/specs_e2e/rails_7_2/public/406-unsupported-browser.html +66 -0
  108. data/specs_e2e/{rails_4_2 → rails_7_2}/public/422.html +6 -6
  109. data/specs_e2e/{rails_4_2 → rails_7_2}/public/500.html +6 -6
  110. data/specs_e2e/rails_7_2/public/icon.png +0 -0
  111. data/specs_e2e/rails_7_2/public/icon.svg +3 -0
  112. data/specs_e2e/rails_7_2/public/robots.txt +1 -0
  113. data/specs_e2e/rails_7_2/storage/test.sqlite3 +0 -0
  114. data/specs_e2e/rails_7_2/test/controllers/posts_controller_test.rb +48 -0
  115. data/specs_e2e/rails_7_2/test/cypress_fixtures/posts.yml +11 -0
  116. data/specs_e2e/rails_7_2/test/fixtures/posts.yml +11 -0
  117. data/specs_e2e/rails_7_2/test/models/post_test.rb +7 -0
  118. data/specs_e2e/rails_7_2/test-results/.last-run.json +4 -0
  119. data/specs_e2e/rails_7_2/test.sh +57 -0
  120. data/specs_e2e/rails_8/.gitattributes +9 -0
  121. data/specs_e2e/rails_8/.gitignore +16 -0
  122. data/specs_e2e/rails_8/.rubocop.yml +8 -0
  123. data/specs_e2e/rails_8/Gemfile +20 -0
  124. data/specs_e2e/{rails_3_2 → rails_8}/Rakefile +2 -3
  125. data/specs_e2e/rails_8/app/assets/stylesheets/application.css +10 -0
  126. data/specs_e2e/rails_8/app/controllers/application_controller.rb +4 -0
  127. data/specs_e2e/rails_8/app/controllers/posts_controller.rb +58 -0
  128. data/specs_e2e/rails_8/app/helpers/posts_helper.rb +2 -0
  129. data/specs_e2e/rails_8/app/jobs/application_job.rb +7 -0
  130. data/specs_e2e/rails_8/app/models/application_record.rb +3 -0
  131. data/specs_e2e/rails_8/app/models/post.rb +2 -0
  132. data/specs_e2e/rails_8/app/views/layouts/application.html.erb +27 -0
  133. data/specs_e2e/rails_8/app/views/posts/_form.html.erb +32 -0
  134. data/specs_e2e/rails_8/app/views/posts/edit.html.erb +6 -0
  135. data/specs_e2e/rails_8/app/views/posts/index.html.erb +31 -0
  136. data/specs_e2e/rails_8/app/views/posts/new.html.erb +5 -0
  137. data/specs_e2e/rails_8/app/views/posts/show.html.erb +19 -0
  138. data/specs_e2e/rails_8/bin/brakeman +7 -0
  139. data/specs_e2e/rails_8/bin/bundle +109 -0
  140. data/specs_e2e/rails_8/bin/dev +2 -0
  141. data/specs_e2e/rails_8/bin/importmap +4 -0
  142. data/specs_e2e/rails_8/bin/rails +4 -0
  143. data/specs_e2e/rails_8/bin/rake +4 -0
  144. data/specs_e2e/rails_8/bin/setup +34 -0
  145. data/specs_e2e/rails_8/bin/thrust +5 -0
  146. data/specs_e2e/rails_8/config/application.rb +27 -0
  147. data/specs_e2e/rails_8/config/boot.rb +4 -0
  148. data/specs_e2e/rails_8/config/cable.yml +17 -0
  149. data/specs_e2e/rails_8/config/cache.yml +16 -0
  150. data/specs_e2e/rails_8/config/credentials.yml.enc +1 -0
  151. data/specs_e2e/rails_8/config/database.yml +41 -0
  152. data/specs_e2e/rails_8/config/deploy.yml +116 -0
  153. data/specs_e2e/rails_8/config/environment.rb +5 -0
  154. data/specs_e2e/rails_8/config/environments/development.rb +57 -0
  155. data/specs_e2e/rails_8/config/environments/production.rb +90 -0
  156. data/specs_e2e/rails_8/config/environments/test.rb +45 -0
  157. data/specs_e2e/rails_8/config/importmap.rb +7 -0
  158. data/specs_e2e/rails_8/config/initializers/content_security_policy.rb +25 -0
  159. data/specs_e2e/rails_8/config/initializers/filter_parameter_logging.rb +8 -0
  160. data/specs_e2e/rails_8/config/initializers/inflections.rb +16 -0
  161. data/specs_e2e/rails_8/config/locales/en.yml +31 -0
  162. data/specs_e2e/rails_8/config/master.key +1 -0
  163. data/specs_e2e/rails_8/config/puma.rb +41 -0
  164. data/specs_e2e/rails_8/config/queue.yml +18 -0
  165. data/specs_e2e/rails_8/config/recurring.yml +10 -0
  166. data/specs_e2e/rails_8/config/routes.rb +5 -0
  167. data/specs_e2e/rails_8/config/storage.yml +34 -0
  168. data/specs_e2e/rails_8/config.ru +6 -0
  169. data/specs_e2e/rails_8/db/cable_schema.rb +11 -0
  170. data/specs_e2e/rails_8/db/cache_schema.rb +14 -0
  171. data/specs_e2e/rails_8/db/migrate/20180621085832_create_posts.rb +11 -0
  172. data/specs_e2e/rails_8/db/queue_schema.rb +129 -0
  173. data/specs_e2e/rails_8/db/seeds.rb +9 -0
  174. data/specs_e2e/rails_8/package.json +8 -0
  175. data/specs_e2e/rails_8/playwright-report/index.html +71 -0
  176. data/specs_e2e/rails_8/public/400.html +114 -0
  177. data/specs_e2e/rails_8/public/404.html +114 -0
  178. data/specs_e2e/rails_8/public/406-unsupported-browser.html +114 -0
  179. data/specs_e2e/rails_8/public/422.html +114 -0
  180. data/specs_e2e/rails_8/public/500.html +114 -0
  181. data/specs_e2e/rails_8/public/icon.png +0 -0
  182. data/specs_e2e/rails_8/public/icon.svg +3 -0
  183. data/specs_e2e/rails_8/public/robots.txt +1 -0
  184. data/specs_e2e/rails_8/storage/test.sqlite3 +0 -0
  185. data/specs_e2e/rails_8/storage/test.sqlite3-shm +0 -0
  186. data/specs_e2e/rails_8/storage/test.sqlite3-wal +0 -0
  187. data/specs_e2e/rails_8/test/application_system_test_case.rb +5 -0
  188. data/specs_e2e/rails_8/test/controllers/posts_controller_test.rb +48 -0
  189. data/specs_e2e/rails_8/test/cypress_fixtures/posts.yml +11 -0
  190. data/specs_e2e/rails_8/test/fixtures/posts.yml +11 -0
  191. data/specs_e2e/rails_8/test/models/post_test.rb +7 -0
  192. data/specs_e2e/rails_8/test/test_helper.rb +15 -0
  193. data/specs_e2e/rails_8/test-results/.last-run.json +4 -0
  194. data/specs_e2e/{rails_5_2 → rails_8}/test.sh +1 -1
  195. metadata +217 -150
  196. data/lib/cypress_on_rails/vcr_middleware.rb +0 -73
  197. data/spec/cypress_on_rails/vcr_middleware_spec.rb +0 -119
  198. data/specs_e2e/rails_3_2/.gitignore +0 -9
  199. data/specs_e2e/rails_3_2/.ruby_version +0 -1
  200. data/specs_e2e/rails_3_2/Gemfile +0 -7
  201. data/specs_e2e/rails_3_2/README.rdoc +0 -261
  202. data/specs_e2e/rails_3_2/app/assets/stylesheets/application.css +0 -13
  203. data/specs_e2e/rails_3_2/app/controllers/application_controller.rb +0 -3
  204. data/specs_e2e/rails_3_2/app/controllers/welcome_controller.rb +0 -4
  205. data/specs_e2e/rails_3_2/app/helpers/application_helper.rb +0 -2
  206. data/specs_e2e/rails_3_2/app/models/post.rb +0 -21
  207. data/specs_e2e/rails_3_2/app/views/layouts/application.html.erb +0 -13
  208. data/specs_e2e/rails_3_2/app/views/welcome/index.html.erb +0 -24
  209. data/specs_e2e/rails_3_2/bin/rails +0 -6
  210. data/specs_e2e/rails_3_2/config/application.rb +0 -68
  211. data/specs_e2e/rails_3_2/config/boot.rb +0 -6
  212. data/specs_e2e/rails_3_2/config/environment.rb +0 -5
  213. data/specs_e2e/rails_3_2/config/environments/development.rb +0 -31
  214. data/specs_e2e/rails_3_2/config/environments/production.rb +0 -64
  215. data/specs_e2e/rails_3_2/config/environments/test.rb +0 -35
  216. data/specs_e2e/rails_3_2/config/initializers/backtrace_silencers.rb +0 -7
  217. data/specs_e2e/rails_3_2/config/initializers/inflections.rb +0 -15
  218. data/specs_e2e/rails_3_2/config/initializers/mime_types.rb +0 -5
  219. data/specs_e2e/rails_3_2/config/initializers/secret_token.rb +0 -7
  220. data/specs_e2e/rails_3_2/config/initializers/session_store.rb +0 -8
  221. data/specs_e2e/rails_3_2/config/locales/en.yml +0 -5
  222. data/specs_e2e/rails_3_2/config/routes.rb +0 -60
  223. data/specs_e2e/rails_3_2/config.ru +0 -4
  224. data/specs_e2e/rails_3_2/public/404.html +0 -26
  225. data/specs_e2e/rails_3_2/public/422.html +0 -26
  226. data/specs_e2e/rails_3_2/public/500.html +0 -25
  227. data/specs_e2e/rails_3_2/public/robots.txt +0 -5
  228. data/specs_e2e/rails_3_2/test.sh +0 -50
  229. data/specs_e2e/rails_4_2/.gitignore +0 -12
  230. data/specs_e2e/rails_4_2/Gemfile +0 -11
  231. data/specs_e2e/rails_4_2/README.rdoc +0 -28
  232. data/specs_e2e/rails_4_2/app/assets/javascripts/using_vcr.js +0 -2
  233. data/specs_e2e/rails_4_2/app/assets/stylesheets/using_vcr.css +0 -4
  234. data/specs_e2e/rails_4_2/app/controllers/application_controller.rb +0 -5
  235. data/specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb +0 -10
  236. data/specs_e2e/rails_4_2/app/controllers/welcome_controller.rb +0 -4
  237. data/specs_e2e/rails_4_2/app/models/post.rb +0 -23
  238. data/specs_e2e/rails_4_2/app/views/layouts/application.html.erb +0 -12
  239. data/specs_e2e/rails_4_2/app/views/using_vcr/index.html.erb +0 -6
  240. data/specs_e2e/rails_4_2/app/views/using_vcr/record_cats.html.erb +0 -7
  241. data/specs_e2e/rails_4_2/app/views/welcome/index.html.erb +0 -24
  242. data/specs_e2e/rails_4_2/bin/bundle +0 -3
  243. data/specs_e2e/rails_4_2/bin/rails +0 -4
  244. data/specs_e2e/rails_4_2/bin/rake +0 -4
  245. data/specs_e2e/rails_4_2/bin/setup +0 -29
  246. data/specs_e2e/rails_4_2/config/application.rb +0 -32
  247. data/specs_e2e/rails_4_2/config/boot.rb +0 -3
  248. data/specs_e2e/rails_4_2/config/environments/development.rb +0 -25
  249. data/specs_e2e/rails_4_2/config/environments/production.rb +0 -64
  250. data/specs_e2e/rails_4_2/config/environments/test.rb +0 -42
  251. data/specs_e2e/rails_4_2/config/initializers/backtrace_silencers.rb +0 -7
  252. data/specs_e2e/rails_4_2/config/initializers/cookies_serializer.rb +0 -3
  253. data/specs_e2e/rails_4_2/config/initializers/session_store.rb +0 -3
  254. data/specs_e2e/rails_4_2/config/initializers/to_time_preserves_timezone.rb +0 -10
  255. data/specs_e2e/rails_4_2/config/initializers/wrap_parameters.rb +0 -9
  256. data/specs_e2e/rails_4_2/config/locales/en.yml +0 -23
  257. data/specs_e2e/rails_4_2/config/routes.rb +0 -61
  258. data/specs_e2e/rails_4_2/config/secrets.yml +0 -22
  259. data/specs_e2e/rails_4_2/package.json +0 -12
  260. data/specs_e2e/rails_4_2/playwright-report/index.html +0 -62
  261. data/specs_e2e/rails_4_2/public/favicon.ico +0 -0
  262. data/specs_e2e/rails_4_2/public/robots.txt +0 -5
  263. data/specs_e2e/rails_4_2/spec/fixtures/vcr_cassettes/cats.yml +0 -63
  264. data/specs_e2e/rails_5_2/Gemfile +0 -15
  265. data/specs_e2e/rails_5_2/app/assets/javascripts/posts.js +0 -2
  266. data/specs_e2e/rails_5_2/app/assets/stylesheets/posts.css +0 -4
  267. data/specs_e2e/rails_5_2/app/assets/stylesheets/scaffold.css +0 -80
  268. data/specs_e2e/rails_5_2/app/jobs/application_job.rb +0 -2
  269. data/specs_e2e/rails_5_2/app/views/welcome/index.html.erb +0 -5
  270. data/specs_e2e/rails_5_2/bin/bundle +0 -3
  271. data/specs_e2e/rails_5_2/bin/rails +0 -4
  272. data/specs_e2e/rails_5_2/bin/rake +0 -4
  273. data/specs_e2e/rails_5_2/bin/update +0 -25
  274. data/specs_e2e/rails_5_2/config/application.rb +0 -33
  275. data/specs_e2e/rails_5_2/config/boot.rb +0 -4
  276. data/specs_e2e/rails_5_2/config/credentials.yml.enc +0 -1
  277. data/specs_e2e/rails_5_2/config/environments/production.rb +0 -68
  278. data/specs_e2e/rails_5_2/config/initializers/backtrace_silencers.rb +0 -7
  279. data/specs_e2e/rails_5_2/config/initializers/filter_parameter_logging.rb +0 -4
  280. data/specs_e2e/rails_5_2/config/initializers/mime_types.rb +0 -4
  281. data/specs_e2e/rails_5_2/config/initializers/wrap_parameters.rb +0 -9
  282. data/specs_e2e/rails_5_2/config/master.key +0 -1
  283. data/specs_e2e/rails_5_2/public/favicon.ico +0 -0
  284. data/specs_e2e/rails_5_2/public/robots.txt +0 -1
  285. /data/specs_e2e/{rails_5_2 → rails_6_1}/.gitignore +0 -0
  286. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/controllers/application_controller.rb +0 -0
  287. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/controllers/posts_controller.rb +0 -0
  288. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/helpers/posts_helper.rb +0 -0
  289. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/models/application_record.rb +0 -0
  290. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/models/post.rb +0 -0
  291. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/_form.html.erb +0 -0
  292. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/edit.html.erb +0 -0
  293. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/index.html.erb +0 -0
  294. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/new.html.erb +0 -0
  295. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/show.html.erb +0 -0
  296. /data/specs_e2e/{rails_5_2 → rails_6_1}/config/initializers/application_controller_renderer.rb +0 -0
  297. /data/specs_e2e/{rails_5_2 → rails_6_1}/config/initializers/cookies_serializer.rb +0 -0
  298. /data/specs_e2e/{rails_4_2 → rails_6_1}/config/initializers/inflections.rb +0 -0
  299. /data/specs_e2e/{rails_4_2 → rails_6_1}/config/initializers/mime_types.rb +0 -0
  300. /data/specs_e2e/{rails_5_2 → rails_6_1}/config/routes.rb +0 -0
  301. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/404.html +0 -0
  302. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/422.html +0 -0
  303. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/500.html +0 -0
  304. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/apple-touch-icon-precomposed.png +0 -0
  305. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/apple-touch-icon.png +0 -0
  306. /data/specs_e2e/{rails_3_2 → rails_6_1}/public/favicon.ico +0 -0
  307. /data/specs_e2e/{rails_5_2 → rails_6_1}/test/controllers/posts_controller_test.rb +0 -0
  308. /data/specs_e2e/{rails_5_2 → rails_6_1}/test/cypress_fixtures/posts.yml +0 -0
  309. /data/specs_e2e/{rails_5_2 → rails_6_1}/test/fixtures/posts.yml +0 -0
  310. /data/specs_e2e/{rails_5_2 → rails_6_1}/test/models/post_test.rb +0 -0
  311. /data/specs_e2e/{rails_3_2/log → rails_6_1/vendor}/.keep +0 -0
  312. /data/specs_e2e/{rails_3_2/tmp → rails_7_2/vendor}/.keep +0 -0
  313. /data/specs_e2e/{rails_4_2/spec → rails_7_2/vendor/javascript}/.keep +0 -0
  314. /data/specs_e2e/{rails_5_2 → rails_8}/README.md +0 -0
  315. /data/specs_e2e/{rails_4_2/vendor → rails_8/storage}/.keep +0 -0
  316. /data/specs_e2e/{rails_5_2 → rails_8}/vendor/.keep +0 -0
  317. /data/specs_e2e/{rails_3_2/vendor/.gitkeep → rails_8/vendor/javascript/.keep} +0 -0
@@ -0,0 +1 @@
1
+ # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
@@ -0,0 +1,4 @@
1
+ {
2
+ "status": "passed",
3
+ "failedTests": []
4
+ }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  set -eo pipefail
3
3
 
4
- echo '--- testing rails 4.2'
4
+ echo '--- testing rails 6.1.7'
5
5
 
6
6
  echo '-- setting environment'
7
7
  export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -10,41 +10,48 @@ export BUNDLE_GEMFILE="$DIR/Gemfile"
10
10
  cd $DIR
11
11
 
12
12
  echo '-- bundle install'
13
- gem install bundler -v "~> 1.0" --conservative
14
13
  bundle --version
15
- bundle install --quiet --gemfile="$DIR/Gemfile" --retry 2 --path vendor/bundle
14
+ bundle config set --local path 'vendor/bundle'
15
+ bundle install --quiet --gemfile="$DIR/Gemfile" --retry 2
16
+
17
+ echo '-- migration'
18
+ bundle exec ./bin/rails db:drop || true
19
+ bundle exec ./bin/rails db:create db:migrate
16
20
 
17
21
  echo '-- cypress install'
18
- bundle exec ./bin/rails g cypress_on_rails:install --install_folder=spec --framework cypress --experimental --install_with=npm --force
19
- rm -vf spec/cypress/e2e/rails_examples/advance_factory_bot.cy.js
22
+ bundle exec ./bin/rails g cypress_on_rails:install --install_folder=test --framework cypress --install_with=npm --force
23
+ rm -vf test/cypress/e2e/rails_examples/using_vcr.cy.js
20
24
 
21
25
  echo '-- start rails server'
22
26
  # make sure the server is not running
23
27
  (kill -9 `cat ../server.pid` || true )
24
28
 
25
29
  bundle exec ./bin/rails server -p 5017 -e test -P ../server.pid &
26
- sleep 5 # give rails a chance to start up correctly
30
+ sleep 2 # give rails a chance to start up correctly
27
31
 
28
32
  echo '-- cypress run'
29
- cp -fv ../cypress.config.js spec/
33
+ cp -fv ../cypress.config.js test/
34
+ cd test
35
+ npx cypress install
30
36
  # if [ -z $CYPRESS_RECORD_KEY ]
31
37
  # then
32
- # npx cypress run -P ./spec
38
+ # npx cypress run
33
39
  # else
34
- npx cypress install
35
- npx cypress run -P ./spec # --record
40
+ npx cypress run # --record
36
41
  # fi
37
42
 
38
43
  echo '-- playwright install'
39
- bundle exec ./bin/rails g cypress_on_rails:install --install_folder=spec --framework playwright --experimental --install_with=npm --force
40
- rm -vf spec/playwright/e2e/rails_examples/advance_factory_bot.cy.js
44
+ cd ..
45
+ bundle exec ./bin/rails g cypress_on_rails:install --install_folder=test --framework playwright --install_with=npm --force
46
+ rm -vf test/playwright/e2e/rails_examples/using_vcr.cy.js
41
47
 
42
48
  echo '-- playwright run'
43
- cp -fv ../playwright.config.js spec/
44
- cd spec
49
+ cd test
50
+ cp -fv ../../playwright.config.js .
45
51
  npx playwright install-deps
46
52
  npx playwright install
47
- npx playwright test spec/playwright/e2e
53
+ npx playwright test test/playwright
54
+ # npx playwright show-report
48
55
 
49
56
  echo '-- stop rails server'
50
57
  kill -9 `cat ../../server.pid` || true
@@ -0,0 +1,9 @@
1
+ # See https://git-scm.com/docs/gitattributes for more about git attribute files.
2
+
3
+ # Mark the database schema as having been generated.
4
+ db/schema.rb linguist-generated
5
+
6
+ # Mark any vendored files as having been vendored.
7
+ vendor/* linguist-vendored
8
+ config/credentials/*.yml.enc diff=rails_credentials
9
+ config/credentials.yml.enc diff=rails_credentials
@@ -0,0 +1,16 @@
1
+ .bundle
2
+ test/node_modules
3
+ test/cypress.config.js
4
+ test/playwright.config.js
5
+ test/package.json
6
+ test/yarn.lock
7
+ test/cypress/
8
+ test/playwright/
9
+ test/playwright-report/
10
+ config/initializers/cypress_on_rails.rb
11
+ vendor/bundle
12
+ db/*.sqlite3
13
+ db/schema.rb
14
+ tmp/*
15
+ log/*
16
+ specs_e2e/server.pid
@@ -0,0 +1,8 @@
1
+ # Omakase Ruby styling for Rails
2
+ inherit_gem: { rubocop-rails-omakase: rubocop.yml }
3
+
4
+ # Overwrite or add rules to create your own house style
5
+ #
6
+ # # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
7
+ # Layout/SpaceInsideArrayLiteralBrackets:
8
+ # Enabled: false
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 7.2.2"
4
+ gem "sqlite3", ">= 1.4"
5
+ gem "puma", ">= 5.0"
6
+ gem "bootsnap", require: false
7
+
8
+ group :development, :test do
9
+ gem 'cypress-on-rails', path: '../../'
10
+ gem 'database_cleaner'
11
+ end
@@ -1,6 +1,6 @@
1
1
  # Add your own tasks in files placed in lib/tasks ending in .rake,
2
2
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
3
 
4
- require File.expand_path('../config/application', __FILE__)
4
+ require_relative "config/application"
5
5
 
6
6
  Rails.application.load_tasks
@@ -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, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
6
+ * 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
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,4 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
3
+ allow_browser versions: :modern
4
+ end
@@ -0,0 +1,58 @@
1
+ class PostsController < ApplicationController
2
+ before_action :set_post, only: [:show, :edit, :update, :destroy]
3
+
4
+ # GET /posts
5
+ def index
6
+ @posts = Post.all
7
+ end
8
+
9
+ # GET /posts/1
10
+ def show
11
+ end
12
+
13
+ # GET /posts/new
14
+ def new
15
+ @post = Post.new
16
+ end
17
+
18
+ # GET /posts/1/edit
19
+ def edit
20
+ end
21
+
22
+ # POST /posts
23
+ def create
24
+ @post = Post.new(post_params)
25
+
26
+ if @post.save
27
+ redirect_to @post, notice: 'Post was successfully created.'
28
+ else
29
+ render :new
30
+ end
31
+ end
32
+
33
+ # PATCH/PUT /posts/1
34
+ def update
35
+ if @post.update(post_params)
36
+ redirect_to @post, notice: 'Post was successfully updated.'
37
+ else
38
+ render :edit
39
+ end
40
+ end
41
+
42
+ # DELETE /posts/1
43
+ def destroy
44
+ @post.destroy
45
+ redirect_to posts_url, notice: 'Post was successfully destroyed.'
46
+ end
47
+
48
+ private
49
+ # Use callbacks to share common setup or constraints between actions.
50
+ def set_post
51
+ @post = Post.find(params[:id])
52
+ end
53
+
54
+ # Only allow a trusted parameter "white list" through.
55
+ def post_params
56
+ params.require(:post).permit(:title, :body, :published)
57
+ end
58
+ end
@@ -0,0 +1,2 @@
1
+ module PostsHelper
2
+ end
@@ -0,0 +1,7 @@
1
+ class ApplicationJob < ActiveJob::Base
2
+ # Automatically retry jobs that encountered a deadlock
3
+ # retry_on ActiveRecord::Deadlocked
4
+
5
+ # Most jobs are safe to ignore if the underlying records are no longer available
6
+ # discard_on ActiveJob::DeserializationError
7
+ end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ primary_abstract_class
3
+ end
@@ -0,0 +1,2 @@
1
+ class Post < ApplicationRecord
2
+ end
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title><%= content_for(:title) || "App" %></title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <meta name="apple-mobile-web-app-capable" content="yes">
7
+ <%= csrf_meta_tags %>
8
+ <%= csp_meta_tag %>
9
+
10
+ <%= yield :head %>
11
+
12
+ <link rel="manifest" href="/manifest.json">
13
+ <link rel="icon" href="/icon.png" type="image/png">
14
+ <link rel="icon" href="/icon.svg" type="image/svg+xml">
15
+ <link rel="apple-touch-icon" href="/icon.png">
16
+ <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
17
+ </head>
18
+
19
+ <body>
20
+ <%= yield %>
21
+ </body>
22
+ </html>
@@ -0,0 +1,32 @@
1
+ <%= form_with(model: post, local: true) do |form| %>
2
+ <% if post.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(post.errors.count, "error") %> prohibited this post from being saved:</h2>
5
+
6
+ <ul>
7
+ <% post.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :title %>
16
+ <%= form.text_field :title %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :body %>
21
+ <%= form.text_area :body %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= form.label :published %>
26
+ <%= form.check_box :published %>
27
+ </div>
28
+
29
+ <div class="actions">
30
+ <%= form.submit %>
31
+ </div>
32
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Post</h1>
2
+
3
+ <%= render 'form', post: @post %>
4
+
5
+ <%= link_to 'Show', @post %> |
6
+ <%= link_to 'Back', posts_path %>
@@ -0,0 +1,31 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Posts</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Title</th>
9
+ <th>Body</th>
10
+ <th>Published</th>
11
+ <th colspan="3"></th>
12
+ </tr>
13
+ </thead>
14
+
15
+ <tbody>
16
+ <% @posts.each do |post| %>
17
+ <tr>
18
+ <td><%= post.title %></td>
19
+ <td><%= post.body %></td>
20
+ <td><%= post.published %></td>
21
+ <td><%= link_to 'Show', post %></td>
22
+ <td><%= link_to 'Edit', edit_post_path(post) %></td>
23
+ <td><%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %></td>
24
+ </tr>
25
+ <% end %>
26
+ </tbody>
27
+ </table>
28
+
29
+ <br>
30
+
31
+ <%= link_to 'New Post', new_post_path %>
@@ -0,0 +1,5 @@
1
+ <h1>New Post</h1>
2
+
3
+ <%= render 'form', post: @post %>
4
+
5
+ <%= link_to 'Back', posts_path %>
@@ -0,0 +1,19 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Title:</strong>
5
+ <%= @post.title %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Body:</strong>
10
+ <%= @post.body %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Published:</strong>
15
+ <%= @post.published %>
16
+ </p>
17
+
18
+ <%= link_to 'Edit', edit_post_path(@post) %> |
19
+ <%= link_to 'Back', posts_path %>
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ require "rubygems"
3
+ require "bundler/setup"
4
+
5
+ ARGV.unshift("--ensure-latest")
6
+
7
+ load Gem.bin_path("brakeman", "brakeman")
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "rubygems"
12
+
13
+ m = Module.new do
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($0) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV["BUNDLER_VERSION"]
22
+ end
23
+
24
+ def cli_arg_version
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = $1
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV["BUNDLE_GEMFILE"]
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path("../Gemfile", __dir__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, ".locked")
51
+ else "#{gemfile}.lock"
52
+ end
53
+ File.expand_path(lockfile)
54
+ end
55
+
56
+ def lockfile_version
57
+ return unless File.file?(lockfile)
58
+ lockfile_contents = File.read(lockfile)
59
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
+ Regexp.last_match(1)
61
+ end
62
+
63
+ def bundler_requirement
64
+ @bundler_requirement ||=
65
+ env_var_version ||
66
+ cli_arg_version ||
67
+ bundler_requirement_for(lockfile_version)
68
+ end
69
+
70
+ def bundler_requirement_for(version)
71
+ return "#{Gem::Requirement.default}.a" unless version
72
+
73
+ bundler_gem_version = Gem::Version.new(version)
74
+
75
+ bundler_gem_version.approximate_recommendation
76
+ end
77
+
78
+ def load_bundler!
79
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
80
+
81
+ activate_bundler
82
+ end
83
+
84
+ def activate_bundler
85
+ gem_error = activation_error_handling do
86
+ gem "bundler", bundler_requirement
87
+ end
88
+ return if gem_error.nil?
89
+ require_error = activation_error_handling do
90
+ require "bundler/version"
91
+ end
92
+ return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
93
+ warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
94
+ exit 42
95
+ end
96
+
97
+ def activation_error_handling
98
+ yield
99
+ nil
100
+ rescue StandardError, LoadError => e
101
+ e
102
+ end
103
+ end
104
+
105
+ m.load_bundler!
106
+
107
+ if m.invoked_as_script?
108
+ load Gem.bin_path("bundler", "bundle")
109
+ end
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative "../config/application"
4
+ require "importmap/commands"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path("../config/application", __dir__)
3
+ require_relative "../config/boot"
4
+ require "rails/commands"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "../config/boot"
3
+ require "rake"
4
+ Rake.application.run
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env ruby
2
+ require "fileutils"
3
+
4
+ APP_ROOT = File.expand_path("..", __dir__)
5
+ APP_NAME = "app"
6
+
7
+ def system!(*args)
8
+ system(*args, exception: true)
9
+ end
10
+
11
+ FileUtils.chdir APP_ROOT do
12
+ # This script is a way to set up or update your development environment automatically.
13
+ # This script is idempotent, so that you can run it at any time and get an expectable outcome.
14
+ # Add necessary setup steps to this file.
15
+
16
+ puts "== Installing dependencies =="
17
+ system! "gem install bundler --conservative"
18
+ system("bundle check") || system!("bundle install")
19
+
20
+ # puts "\n== Copying sample files =="
21
+ # unless File.exist?("config/database.yml")
22
+ # FileUtils.cp "config/database.yml.sample", "config/database.yml"
23
+ # end
24
+
25
+ puts "\n== Preparing database =="
26
+ system! "bin/rails db:prepare"
27
+
28
+ puts "\n== Removing old logs and tempfiles =="
29
+ system! "bin/rails log:clear tmp:clear"
30
+
31
+ puts "\n== Restarting application server =="
32
+ system! "bin/rails restart"
33
+
34
+ # puts "\n== Configuring puma-dev =="
35
+ # system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}"
36
+ # system "curl -Is https://#{APP_NAME}.test/up | head -n 1"
37
+ end
@@ -0,0 +1,37 @@
1
+ require_relative "boot"
2
+
3
+ require 'logger'
4
+ require 'rails'
5
+ # Pick the frameworks you want:
6
+ require 'active_model/railtie'
7
+ require 'active_job/railtie'
8
+ require 'active_record/railtie'
9
+ require 'active_storage/engine'
10
+ require 'action_controller/railtie'
11
+ require 'action_text/engine'
12
+ require 'action_view/railtie'
13
+ require 'action_cable/engine'
14
+
15
+ # Require the gems listed in Gemfile, including any gems
16
+ # you've limited to :test, :development, or :production.
17
+ Bundler.require(*Rails.groups)
18
+
19
+ module App
20
+ class Application < Rails::Application
21
+ # Initialize configuration defaults for originally generated Rails version.
22
+ config.load_defaults 7.2
23
+
24
+ # Please, add to the `ignore` list any other `lib` subdirectories that do
25
+ # not contain `.rb` files, or that should not be reloaded or eager loaded.
26
+ # Common ones are `templates`, `generators`, or `middleware`, for example.
27
+ config.autoload_lib(ignore: %w[assets tasks])
28
+
29
+ # Configuration for the application, engines, and railties goes here.
30
+ #
31
+ # These settings can be overridden in specific environments using the files
32
+ # in config/environments, which are processed later.
33
+ #
34
+ # config.time_zone = "Central Time (US & Canada)"
35
+ # config.eager_load_paths << Rails.root.join("extras")
36
+ end
37
+ end
@@ -0,0 +1,4 @@
1
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
2
+
3
+ require "bundler/setup" # Set up gems listed in the Gemfile.
4
+ require "bootsnap/setup" # Speed up boot time by caching expensive operations.
@@ -0,0 +1,10 @@
1
+ development:
2
+ adapter: async
3
+
4
+ test:
5
+ adapter: test
6
+
7
+ production:
8
+ adapter: redis
9
+ url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
+ channel_prefix: app_production
@@ -0,0 +1 @@
1
+ oh98nG3RVyvWel7DHqGddaOy5TmoEiIXCIGfOzYwUIQCFsuRCjPXjhyPUpC/tk2vFxYla7+v1KjMTrPn7lf1/FCwq0iY/bHKUVuOhkBgS8rg0ovhVnUq92HYwmWKPHsQgDrRQRoGgZzsFs6tCgl8oKTJ6bwy6GnaYU/a020vqqd0TOOJViDWqo+hEy+ZmhZROJcEJ5swjTq2tZtJIkkXT0n9ug/ezKXxu2f9ABZS7UexaQuc7ILOnHv1TZ0zTwVS5vDV5zm48315jZpwq86jK1i8fsgzjf3r9W1YumNMT4W/uKef5UJGbmS/okaSgA8DF37vyUi7nlcFtXuJrMHJThBpjV1eB+A3fMzCAAAxM9/oNfUQddbPjVlIk/9lb1R/5cBe0oz7QyemzpKx0FWfVncPlJd7--lRNQXXXdHpDiWyxY--uRorsjITTUQAzA1y/d9NZA==
@@ -0,0 +1,32 @@
1
+ # SQLite. Versions 3.8.0 and up are supported.
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem "sqlite3"
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+
24
+ # SQLite3 write its data on the local filesystem, as such it requires
25
+ # persistent disks. If you are deploying to a managed service, you should
26
+ # make sure it provides disk persistence, as many don't.
27
+ #
28
+ # Similarly, if you deploy your application as a Docker container, you must
29
+ # ensure the database is located in a persisted volume.
30
+ production:
31
+ <<: *default
32
+ # database: path/to/persistent/storage/production.sqlite3
@@ -1,5 +1,5 @@
1
1
  # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
2
+ require_relative "application"
3
3
 
4
4
  # Initialize the Rails application.
5
5
  Rails.application.initialize!