my_api_client 1.3.1 → 2.0.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 (248) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +8 -0
  3. data/.envrc.skeleton +0 -1
  4. data/.github/dependabot.yml +82 -7
  5. data/.github/workflows/ci.yml +334 -0
  6. data/.github/workflows/dependabot-auto-merge.yml +96 -0
  7. data/.github/workflows/release.yml +33 -0
  8. data/.github/workflows/rubocop_challenge.yml +33 -0
  9. data/.gitignore +1 -0
  10. data/.rubocop.yml +1 -1
  11. data/.ruby-version +1 -1
  12. data/AGENTS.md +128 -0
  13. data/CHANGELOG.md +54 -2
  14. data/CLAUDE.md +6 -0
  15. data/Dockerfile +22 -0
  16. data/Gemfile +1 -1
  17. data/Gemfile.lock +67 -59
  18. data/README.md +398 -62
  19. data/docker-compose.yml +29 -0
  20. data/docs/runbooks/dependabot_pr_auto_merge.md +113 -0
  21. data/gemfiles/rails_7.2.gemfile +1 -1
  22. data/gemfiles/{rails_7.1.gemfile → rails_8.0.gemfile} +2 -2
  23. data/gemfiles/{rails_6.1.gemfile → rails_8.1.gemfile} +2 -2
  24. data/lib/my_api_client/default_error_handlers.rb +1 -1
  25. data/lib/my_api_client/errors/client_error.rb +5 -1
  26. data/lib/my_api_client/integrations/bugsnag.rb +1 -1
  27. data/lib/my_api_client/version.rb +1 -1
  28. data/lib/my_api_client.rb +1 -1
  29. data/my_api/.ruby-version +1 -1
  30. data/my_api/AGENTS.md +35 -0
  31. data/my_api/Dockerfile +25 -0
  32. data/my_api/Gemfile +5 -16
  33. data/my_api/Gemfile.lock +263 -228
  34. data/my_api/README.md +36 -25
  35. data/my_api/Rakefile +3 -2
  36. data/my_api/app/controllers/application_controller.rb +1 -2
  37. data/my_api/app/controllers/error_controller.rb +2 -2
  38. data/my_api/app/controllers/header_controller.rb +6 -3
  39. data/my_api/app/controllers/pagination_controller.rb +5 -15
  40. data/my_api/app/controllers/rest_controller.rb +12 -16
  41. data/my_api/app/controllers/status_controller.rb +3 -4
  42. data/my_api/config/application.rb +12 -67
  43. data/{rails_app/rails_6.1 → my_api}/config/boot.rb +1 -1
  44. data/{rails_app/rails_7.1 → my_api}/config/environment.rb +0 -2
  45. data/my_api/config/environments/development.rb +6 -6
  46. data/my_api/config/environments/production.rb +5 -8
  47. data/my_api/config/environments/test.rb +5 -6
  48. data/my_api/config/routes.rb +2 -10
  49. data/my_api/config.ru +2 -4
  50. data/my_api/public/index.html +10 -90
  51. data/{rails_app/rails_7.0 → my_api}/spec/rails_helper.rb +3 -4
  52. data/my_api/spec/requests/error_controller_spec.rb +18 -0
  53. data/my_api/spec/requests/pagination_controller_spec.rb +22 -0
  54. data/my_api/spec/requests/rest_controller_spec.rb +22 -0
  55. data/my_api/spec/requests/status_controller_spec.rb +20 -0
  56. data/my_api/spec/spec_helper.rb +15 -23
  57. data/my_api_client.gemspec +2 -2
  58. data/rails_app/AGENTS.md +13 -0
  59. data/rails_app/rails_7.2/Dockerfile +1 -1
  60. data/rails_app/rails_7.2/Gemfile +2 -0
  61. data/rails_app/rails_7.2/Gemfile.lock +143 -122
  62. data/rails_app/{rails_7.1 → rails_8.0}/.dockerignore +16 -2
  63. data/rails_app/{rails_6.1 → rails_8.0}/.gitattributes +2 -1
  64. data/rails_app/rails_8.0/.github/workflows/ci.yml +39 -0
  65. data/rails_app/{rails_6.1 → rails_8.0}/.gitignore +11 -7
  66. data/rails_app/rails_8.0/.rubocop.yml +8 -0
  67. data/rails_app/rails_8.0/.ruby-version +1 -0
  68. data/rails_app/{rails_7.1 → rails_8.0}/Dockerfile +28 -18
  69. data/rails_app/rails_8.0/Gemfile +15 -0
  70. data/rails_app/rails_8.0/Gemfile.lock +286 -0
  71. data/rails_app/{rails_6.1 → rails_8.0}/Rakefile +1 -3
  72. data/rails_app/{rails_7.1 → rails_8.0}/app/controllers/application_controller.rb +0 -2
  73. data/rails_app/rails_8.0/app/jobs/application_job.rb +7 -0
  74. data/rails_app/rails_8.0/app/mailers/application_mailer.rb +4 -0
  75. data/rails_app/{rails_7.0 → rails_8.0}/app/models/application_record.rb +0 -2
  76. data/rails_app/rails_8.0/app/views/layouts/mailer.html.erb +13 -0
  77. data/rails_app/rails_8.0/app/views/layouts/mailer.text.erb +1 -0
  78. data/rails_app/rails_8.0/bin/brakeman +7 -0
  79. data/rails_app/rails_8.0/bin/dev +2 -0
  80. data/rails_app/rails_8.0/bin/docker-entrypoint +14 -0
  81. data/rails_app/rails_8.0/bin/rails +4 -0
  82. data/rails_app/rails_8.0/bin/rake +4 -0
  83. data/rails_app/rails_8.0/bin/rubocop +8 -0
  84. data/rails_app/{rails_7.1 → rails_8.0}/bin/setup +11 -12
  85. data/rails_app/rails_8.0/bin/thrust +5 -0
  86. data/rails_app/{rails_7.1 → rails_8.0}/config/application.rb +14 -16
  87. data/rails_app/rails_8.0/config/boot.rb +3 -0
  88. data/rails_app/rails_8.0/config/cable.yml +10 -0
  89. data/rails_app/rails_8.0/config/credentials.yml.enc +1 -0
  90. data/rails_app/{rails_7.1 → rails_8.0}/config/database.yml +18 -2
  91. data/rails_app/{rails_6.1 → rails_8.0}/config/environment.rb +1 -3
  92. data/rails_app/rails_8.0/config/environments/development.rb +70 -0
  93. data/rails_app/rails_8.0/config/environments/production.rb +86 -0
  94. data/rails_app/{rails_7.1 → rails_8.0}/config/environments/test.rb +16 -19
  95. data/rails_app/{rails_7.1 → rails_8.0}/config/initializers/cors.rb +0 -1
  96. data/rails_app/{rails_7.1 → rails_8.0}/config/initializers/filter_parameter_logging.rb +2 -4
  97. data/rails_app/{rails_7.0 → rails_8.0}/config/initializers/inflections.rb +0 -1
  98. data/rails_app/rails_8.0/config/puma.rb +41 -0
  99. data/rails_app/{rails_7.1 → rails_8.0}/config/routes.rb +1 -3
  100. data/rails_app/rails_8.0/config/storage.yml +34 -0
  101. data/rails_app/{rails_7.1 → rails_8.0}/config.ru +1 -3
  102. data/rails_app/{rails_7.1 → rails_8.0}/db/seeds.rb +0 -1
  103. data/rails_app/{rails_7.1 → rails_8.0}/spec/rails_helper.rb +1 -1
  104. data/rails_app/rails_8.1/.dockerignore +45 -0
  105. data/rails_app/rails_8.1/.gitattributes +9 -0
  106. data/rails_app/rails_8.1/.github/workflows/ci.yml +52 -0
  107. data/rails_app/rails_8.1/.gitignore +33 -0
  108. data/rails_app/rails_8.1/.rspec +1 -0
  109. data/rails_app/rails_8.1/.rubocop.yml +8 -0
  110. data/rails_app/rails_8.1/.ruby-version +1 -0
  111. data/rails_app/rails_8.1/Dockerfile +68 -0
  112. data/rails_app/rails_8.1/Gemfile +15 -0
  113. data/rails_app/rails_8.1/Gemfile.lock +289 -0
  114. data/rails_app/{rails_7.0 → rails_8.1}/Rakefile +1 -3
  115. data/rails_app/{rails_6.1 → rails_8.1}/app/controllers/application_controller.rb +0 -2
  116. data/rails_app/rails_8.1/app/jobs/application_job.rb +7 -0
  117. data/rails_app/rails_8.1/app/mailers/application_mailer.rb +4 -0
  118. data/rails_app/{rails_7.1 → rails_8.1}/app/models/application_record.rb +0 -2
  119. data/rails_app/rails_8.1/app/views/layouts/mailer.html.erb +13 -0
  120. data/rails_app/rails_8.1/app/views/layouts/mailer.text.erb +1 -0
  121. data/rails_app/rails_8.1/bin/brakeman +7 -0
  122. data/rails_app/rails_8.1/bin/bundler-audit +6 -0
  123. data/rails_app/rails_8.1/bin/ci +6 -0
  124. data/rails_app/rails_8.1/bin/dev +2 -0
  125. data/rails_app/{rails_7.1 → rails_8.1}/bin/docker-entrypoint +1 -1
  126. data/rails_app/rails_8.1/bin/rails +4 -0
  127. data/rails_app/rails_8.1/bin/rake +4 -0
  128. data/rails_app/rails_8.1/bin/rubocop +8 -0
  129. data/rails_app/{rails_7.0 → rails_8.1}/bin/setup +13 -13
  130. data/rails_app/rails_8.1/bin/thrust +5 -0
  131. data/rails_app/{rails_6.1 → rails_8.1}/config/application.rb +19 -17
  132. data/rails_app/rails_8.1/config/boot.rb +3 -0
  133. data/rails_app/rails_8.1/config/bundler-audit.yml +5 -0
  134. data/rails_app/rails_8.1/config/cable.yml +10 -0
  135. data/rails_app/rails_8.1/config/ci.rb +19 -0
  136. data/rails_app/rails_8.1/config/credentials.yml.enc +1 -0
  137. data/rails_app/rails_8.1/config/database.yml +40 -0
  138. data/rails_app/{rails_7.0 → rails_8.1}/config/environment.rb +1 -3
  139. data/rails_app/rails_8.1/config/environments/development.rb +73 -0
  140. data/rails_app/rails_8.1/config/environments/production.rb +86 -0
  141. data/rails_app/rails_8.1/config/environments/test.rb +53 -0
  142. data/rails_app/{rails_7.0 → rails_8.1}/config/initializers/cors.rb +1 -2
  143. data/rails_app/rails_8.1/config/initializers/filter_parameter_logging.rb +8 -0
  144. data/rails_app/{rails_7.1 → rails_8.1}/config/initializers/inflections.rb +0 -1
  145. data/rails_app/rails_8.1/config/locales/en.yml +31 -0
  146. data/rails_app/rails_8.1/config/puma.rb +42 -0
  147. data/rails_app/rails_8.1/config/routes.rb +10 -0
  148. data/rails_app/rails_8.1/config/storage.yml +27 -0
  149. data/rails_app/{rails_7.0 → rails_8.1}/config.ru +1 -3
  150. data/rails_app/rails_8.1/db/seeds.rb +9 -0
  151. data/rails_app/{rails_6.1 → rails_8.1}/spec/rails_helper.rb +1 -2
  152. metadata +139 -136
  153. data/.circleci/config.yml +0 -344
  154. data/README.jp.md +0 -785
  155. data/gemfiles/rails_7.0.gemfile +0 -15
  156. data/my_api/.envrc.skeleton +0 -3
  157. data/my_api/.jetskeep +0 -1
  158. data/my_api/Procfile +0 -7
  159. data/my_api/app/helpers/application_helper.rb +0 -5
  160. data/my_api/app/jobs/application_job.rb +0 -7
  161. data/my_api/app/models/application_item.rb +0 -5
  162. data/my_api/config/dynamodb.yml +0 -22
  163. data/my_api/spec/controllers/error_controller_spec.rb +0 -43
  164. data/my_api/spec/controllers/header_controller_spec.rb +0 -33
  165. data/my_api/spec/controllers/pagination_controller_spec.rb +0 -73
  166. data/my_api/spec/controllers/rest_controller_spec.rb +0 -99
  167. data/my_api/spec/controllers/status_controller_spec.rb +0 -47
  168. data/my_api/spec/fixtures/payloads/posts-index.json +0 -51
  169. data/my_api/spec/fixtures/payloads/posts-show.json +0 -53
  170. data/rails_app/rails_6.1/.rspec +0 -3
  171. data/rails_app/rails_6.1/Gemfile +0 -17
  172. data/rails_app/rails_6.1/Gemfile.lock +0 -195
  173. data/rails_app/rails_6.1/app/models/application_record.rb +0 -5
  174. data/rails_app/rails_6.1/bin/bundle +0 -122
  175. data/rails_app/rails_6.1/bin/rails +0 -6
  176. data/rails_app/rails_6.1/bin/rake +0 -6
  177. data/rails_app/rails_6.1/bin/setup +0 -35
  178. data/rails_app/rails_6.1/config/credentials.yml.enc +0 -1
  179. data/rails_app/rails_6.1/config/database.yml +0 -25
  180. data/rails_app/rails_6.1/config/environments/development.rb +0 -59
  181. data/rails_app/rails_6.1/config/environments/production.rb +0 -97
  182. data/rails_app/rails_6.1/config/environments/test.rb +0 -51
  183. data/rails_app/rails_6.1/config/initializers/application_controller_renderer.rb +0 -9
  184. data/rails_app/rails_6.1/config/initializers/backtrace_silencers.rb +0 -10
  185. data/rails_app/rails_6.1/config/initializers/cors.rb +0 -17
  186. data/rails_app/rails_6.1/config/initializers/filter_parameter_logging.rb +0 -8
  187. data/rails_app/rails_6.1/config/initializers/inflections.rb +0 -17
  188. data/rails_app/rails_6.1/config/initializers/mime_types.rb +0 -5
  189. data/rails_app/rails_6.1/config/initializers/wrap_parameters.rb +0 -16
  190. data/rails_app/rails_6.1/config/locales/en.yml +0 -33
  191. data/rails_app/rails_6.1/config/routes.rb +0 -5
  192. data/rails_app/rails_6.1/config.ru +0 -8
  193. data/rails_app/rails_6.1/db/seeds.rb +0 -8
  194. data/rails_app/rails_7.0/Gemfile +0 -13
  195. data/rails_app/rails_7.0/Gemfile.lock +0 -212
  196. data/rails_app/rails_7.0/app/controllers/application_controller.rb +0 -4
  197. data/rails_app/rails_7.0/bin/bundle +0 -122
  198. data/rails_app/rails_7.0/bin/rails +0 -6
  199. data/rails_app/rails_7.0/bin/rake +0 -6
  200. data/rails_app/rails_7.0/config/application.rb +0 -41
  201. data/rails_app/rails_7.0/config/boot.rb +0 -5
  202. data/rails_app/rails_7.0/config/credentials.yml.enc +0 -1
  203. data/rails_app/rails_7.0/config/database.yml +0 -25
  204. data/rails_app/rails_7.0/config/environments/development.rb +0 -58
  205. data/rails_app/rails_7.0/config/environments/production.rb +0 -70
  206. data/rails_app/rails_7.0/config/environments/test.rb +0 -52
  207. data/rails_app/rails_7.0/config/initializers/filter_parameter_logging.rb +0 -8
  208. data/rails_app/rails_7.0/config/locales/en.yml +0 -33
  209. data/rails_app/rails_7.0/config/routes.rb +0 -8
  210. data/rails_app/rails_7.0/db/seeds.rb +0 -8
  211. data/rails_app/rails_7.1/Gemfile +0 -16
  212. data/rails_app/rails_7.1/Gemfile.lock +0 -241
  213. data/rails_app/rails_7.1/README.md +0 -24
  214. data/rails_app/rails_7.1/Rakefile +0 -8
  215. data/rails_app/rails_7.1/bin/bundle +0 -122
  216. data/rails_app/rails_7.1/bin/rails +0 -6
  217. data/rails_app/rails_7.1/bin/rake +0 -6
  218. data/rails_app/rails_7.1/config/boot.rb +0 -5
  219. data/rails_app/rails_7.1/config/credentials.yml.enc +0 -1
  220. data/rails_app/rails_7.1/config/environments/development.rb +0 -58
  221. data/rails_app/rails_7.1/config/environments/production.rb +0 -74
  222. data/rails_app/rails_7.1/config/puma.rb +0 -46
  223. data/rails_app/rails_7.1/public/robots.txt +0 -2
  224. data/rails_app/rails_7.1/spec/spec_helper.rb +0 -13
  225. data/rails_app/rails_7.1/vendor/.keep +0 -0
  226. data/rails_app/rails_7.2/.github/dependabot.yml +0 -12
  227. /data/rails_app/{rails_7.1 → rails_8.0}/.rspec +0 -0
  228. /data/rails_app/{rails_6.1 → rails_8.0}/README.md +0 -0
  229. /data/rails_app/{rails_6.1 → rails_8.0}/app/controllers/concerns/.keep +0 -0
  230. /data/rails_app/{rails_6.1/app/javascript → rails_8.0/app/models/concerns}/.keep +0 -0
  231. /data/rails_app/{rails_7.1 → rails_8.0}/config/locales/en.yml +0 -0
  232. /data/rails_app/{rails_6.1/app/models/concerns → rails_8.0/lib/tasks}/.keep +0 -0
  233. /data/rails_app/{rails_6.1/lib/tasks → rails_8.0/log}/.keep +0 -0
  234. /data/rails_app/{rails_6.1 → rails_8.0}/public/robots.txt +0 -0
  235. /data/rails_app/{rails_6.1/tmp → rails_8.0/script}/.keep +0 -0
  236. /data/rails_app/{rails_6.1 → rails_8.0}/spec/spec_helper.rb +0 -0
  237. /data/rails_app/{rails_6.1/tmp/pids → rails_8.0/storage}/.keep +0 -0
  238. /data/rails_app/{rails_6.1 → rails_8.0}/vendor/.keep +0 -0
  239. /data/rails_app/{rails_7.0 → rails_8.1}/README.md +0 -0
  240. /data/rails_app/{rails_7.1 → rails_8.1}/app/controllers/concerns/.keep +0 -0
  241. /data/rails_app/{rails_7.1 → rails_8.1}/app/models/concerns/.keep +0 -0
  242. /data/rails_app/{rails_7.1 → rails_8.1}/lib/tasks/.keep +0 -0
  243. /data/rails_app/{rails_7.1/storage → rails_8.1/log}/.keep +0 -0
  244. /data/rails_app/{rails_7.0 → rails_8.1}/public/robots.txt +0 -0
  245. /data/rails_app/{rails_7.1/tmp → rails_8.1/script}/.keep +0 -0
  246. /data/rails_app/{rails_7.0 → rails_8.1}/spec/spec_helper.rb +0 -0
  247. /data/rails_app/{rails_7.1/tmp/pids → rails_8.1/storage}/.keep +0 -0
  248. /data/rails_app/{rails_7.1/tmp/storage → rails_8.1/vendor}/.keep +0 -0
@@ -0,0 +1,289 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ my_api_client (1.3.1)
5
+ activesupport (>= 7.2.0)
6
+ faraday (>= 0.17.1)
7
+ jsonpath
8
+ sawyer (>= 0.8.2)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ action_text-trix (2.1.18)
14
+ railties
15
+ actioncable (8.1.3)
16
+ actionpack (= 8.1.3)
17
+ activesupport (= 8.1.3)
18
+ nio4r (~> 2.0)
19
+ websocket-driver (>= 0.6.1)
20
+ zeitwerk (~> 2.6)
21
+ actionmailbox (8.1.3)
22
+ actionpack (= 8.1.3)
23
+ activejob (= 8.1.3)
24
+ activerecord (= 8.1.3)
25
+ activestorage (= 8.1.3)
26
+ activesupport (= 8.1.3)
27
+ mail (>= 2.8.0)
28
+ actionmailer (8.1.3)
29
+ actionpack (= 8.1.3)
30
+ actionview (= 8.1.3)
31
+ activejob (= 8.1.3)
32
+ activesupport (= 8.1.3)
33
+ mail (>= 2.8.0)
34
+ rails-dom-testing (~> 2.2)
35
+ actionpack (8.1.3)
36
+ actionview (= 8.1.3)
37
+ activesupport (= 8.1.3)
38
+ nokogiri (>= 1.8.5)
39
+ rack (>= 2.2.4)
40
+ rack-session (>= 1.0.1)
41
+ rack-test (>= 0.6.3)
42
+ rails-dom-testing (~> 2.2)
43
+ rails-html-sanitizer (~> 1.6)
44
+ useragent (~> 0.16)
45
+ actiontext (8.1.3)
46
+ action_text-trix (~> 2.1.15)
47
+ actionpack (= 8.1.3)
48
+ activerecord (= 8.1.3)
49
+ activestorage (= 8.1.3)
50
+ activesupport (= 8.1.3)
51
+ globalid (>= 0.6.0)
52
+ nokogiri (>= 1.8.5)
53
+ actionview (8.1.3)
54
+ activesupport (= 8.1.3)
55
+ builder (~> 3.1)
56
+ erubi (~> 1.11)
57
+ rails-dom-testing (~> 2.2)
58
+ rails-html-sanitizer (~> 1.6)
59
+ activejob (8.1.3)
60
+ activesupport (= 8.1.3)
61
+ globalid (>= 0.3.6)
62
+ activemodel (8.1.3)
63
+ activesupport (= 8.1.3)
64
+ activerecord (8.1.3)
65
+ activemodel (= 8.1.3)
66
+ activesupport (= 8.1.3)
67
+ timeout (>= 0.4.0)
68
+ activestorage (8.1.3)
69
+ actionpack (= 8.1.3)
70
+ activejob (= 8.1.3)
71
+ activerecord (= 8.1.3)
72
+ activesupport (= 8.1.3)
73
+ marcel (~> 1.0)
74
+ activesupport (8.1.3)
75
+ base64
76
+ bigdecimal
77
+ concurrent-ruby (~> 1.0, >= 1.3.1)
78
+ connection_pool (>= 2.2.5)
79
+ drb
80
+ i18n (>= 1.6, < 2)
81
+ json
82
+ logger (>= 1.4.2)
83
+ minitest (>= 5.1)
84
+ securerandom (>= 0.3)
85
+ tzinfo (~> 2.0, >= 2.0.5)
86
+ uri (>= 0.13.1)
87
+ addressable (2.9.0)
88
+ public_suffix (>= 2.0.2, < 8.0)
89
+ base64 (0.3.0)
90
+ benchmark (0.5.0)
91
+ bigdecimal (4.1.0)
92
+ builder (3.3.0)
93
+ cgi (0.5.2)
94
+ concurrent-ruby (1.3.7)
95
+ connection_pool (3.0.2)
96
+ crass (1.0.6)
97
+ date (3.5.1)
98
+ debug (1.11.1)
99
+ irb (~> 1.10)
100
+ reline (>= 0.3.8)
101
+ diff-lcs (1.6.2)
102
+ drb (2.2.3)
103
+ erb (6.0.4)
104
+ erubi (1.13.1)
105
+ faraday (2.14.3)
106
+ faraday-net_http (>= 2.0, < 3.5)
107
+ json
108
+ logger
109
+ faraday-net_http (3.4.4)
110
+ net-http (~> 0.5)
111
+ globalid (1.3.0)
112
+ activesupport (>= 6.1)
113
+ i18n (1.14.8)
114
+ concurrent-ruby (~> 1.0)
115
+ io-console (0.8.2)
116
+ irb (1.17.0)
117
+ pp (>= 0.6.0)
118
+ prism (>= 1.3.0)
119
+ rdoc (>= 4.0.0)
120
+ reline (>= 0.4.2)
121
+ json (2.19.9)
122
+ jsonpath (1.1.5)
123
+ multi_json
124
+ logger (1.7.0)
125
+ loofah (2.25.1)
126
+ crass (~> 1.0.2)
127
+ nokogiri (>= 1.12.0)
128
+ mail (2.9.0)
129
+ logger
130
+ mini_mime (>= 0.1.1)
131
+ net-imap
132
+ net-pop
133
+ net-smtp
134
+ marcel (1.1.0)
135
+ mini_mime (1.1.5)
136
+ minitest (6.0.2)
137
+ drb (~> 2.0)
138
+ prism (~> 1.5)
139
+ multi_json (1.19.1)
140
+ net-http (0.9.1)
141
+ uri (>= 0.11.1)
142
+ net-imap (0.6.4.1)
143
+ date
144
+ net-protocol
145
+ net-pop (0.1.2)
146
+ net-protocol
147
+ net-protocol (0.2.2)
148
+ timeout
149
+ net-smtp (0.5.1)
150
+ net-protocol
151
+ nio4r (2.7.5)
152
+ nokogiri (1.19.4-aarch64-linux-gnu)
153
+ racc (~> 1.4)
154
+ nokogiri (1.19.4-aarch64-linux-musl)
155
+ racc (~> 1.4)
156
+ nokogiri (1.19.4-arm-linux-gnu)
157
+ racc (~> 1.4)
158
+ nokogiri (1.19.4-arm-linux-musl)
159
+ racc (~> 1.4)
160
+ nokogiri (1.19.4-arm64-darwin)
161
+ racc (~> 1.4)
162
+ nokogiri (1.19.4-x86_64-darwin)
163
+ racc (~> 1.4)
164
+ nokogiri (1.19.4-x86_64-linux-gnu)
165
+ racc (~> 1.4)
166
+ nokogiri (1.19.4-x86_64-linux-musl)
167
+ racc (~> 1.4)
168
+ pp (0.6.3)
169
+ prettyprint
170
+ prettyprint (0.2.0)
171
+ prism (1.9.0)
172
+ psych (5.3.1)
173
+ date
174
+ stringio
175
+ public_suffix (7.0.5)
176
+ puma (7.2.0)
177
+ nio4r (~> 2.0)
178
+ racc (1.8.1)
179
+ rack (3.2.6)
180
+ rack-session (2.1.2)
181
+ base64 (>= 0.1.0)
182
+ rack (>= 3.0.0)
183
+ rack-test (2.2.0)
184
+ rack (>= 1.3)
185
+ rackup (2.3.1)
186
+ rack (>= 3)
187
+ rails (8.1.3)
188
+ actioncable (= 8.1.3)
189
+ actionmailbox (= 8.1.3)
190
+ actionmailer (= 8.1.3)
191
+ actionpack (= 8.1.3)
192
+ actiontext (= 8.1.3)
193
+ actionview (= 8.1.3)
194
+ activejob (= 8.1.3)
195
+ activemodel (= 8.1.3)
196
+ activerecord (= 8.1.3)
197
+ activestorage (= 8.1.3)
198
+ activesupport (= 8.1.3)
199
+ bundler (>= 1.15.0)
200
+ railties (= 8.1.3)
201
+ rails-dom-testing (2.3.0)
202
+ activesupport (>= 5.0.0)
203
+ minitest
204
+ nokogiri (>= 1.6)
205
+ rails-html-sanitizer (1.7.0)
206
+ loofah (~> 2.25)
207
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
208
+ railties (8.1.3)
209
+ actionpack (= 8.1.3)
210
+ activesupport (= 8.1.3)
211
+ irb (~> 1.13)
212
+ rackup (>= 1.0.0)
213
+ rake (>= 12.2)
214
+ thor (~> 1.0, >= 1.2.2)
215
+ tsort (>= 0.2)
216
+ zeitwerk (~> 2.6)
217
+ rake (13.4.2)
218
+ rdoc (7.2.0)
219
+ erb
220
+ psych (>= 4.0.0)
221
+ tsort
222
+ reline (0.6.3)
223
+ io-console (~> 0.5)
224
+ rspec-core (3.13.6)
225
+ rspec-support (~> 3.13.0)
226
+ rspec-expectations (3.13.5)
227
+ diff-lcs (>= 1.2.0, < 2.0)
228
+ rspec-support (~> 3.13.0)
229
+ rspec-mocks (3.13.8)
230
+ diff-lcs (>= 1.2.0, < 2.0)
231
+ rspec-support (~> 3.13.0)
232
+ rspec-rails (8.0.4)
233
+ actionpack (>= 7.2)
234
+ activesupport (>= 7.2)
235
+ railties (>= 7.2)
236
+ rspec-core (>= 3.13.0, < 5.0.0)
237
+ rspec-expectations (>= 3.13.0, < 5.0.0)
238
+ rspec-mocks (>= 3.13.0, < 5.0.0)
239
+ rspec-support (>= 3.13.0, < 5.0.0)
240
+ rspec-support (3.13.7)
241
+ sawyer (0.9.3)
242
+ addressable (>= 2.3.5)
243
+ faraday (>= 0.17.3, < 3)
244
+ securerandom (0.4.1)
245
+ sqlite3 (2.9.5-aarch64-linux-gnu)
246
+ sqlite3 (2.9.5-aarch64-linux-musl)
247
+ sqlite3 (2.9.5-arm-linux-gnu)
248
+ sqlite3 (2.9.5-arm-linux-musl)
249
+ sqlite3 (2.9.5-arm64-darwin)
250
+ sqlite3 (2.9.5-x86_64-darwin)
251
+ sqlite3 (2.9.5-x86_64-linux-gnu)
252
+ sqlite3 (2.9.5-x86_64-linux-musl)
253
+ stringio (3.2.0)
254
+ thor (1.5.0)
255
+ timeout (0.6.1)
256
+ tsort (0.2.0)
257
+ tzinfo (2.0.6)
258
+ concurrent-ruby (~> 1.0)
259
+ uri (1.1.1)
260
+ useragent (0.16.11)
261
+ websocket-driver (0.8.1)
262
+ base64
263
+ websocket-extensions (>= 0.1.0)
264
+ websocket-extensions (0.1.5)
265
+ zeitwerk (2.7.5)
266
+
267
+ PLATFORMS
268
+ aarch64-linux-gnu
269
+ aarch64-linux-musl
270
+ arm-linux-gnu
271
+ arm-linux-musl
272
+ arm64-darwin
273
+ x86_64-darwin
274
+ x86_64-linux-gnu
275
+ x86_64-linux-musl
276
+
277
+ DEPENDENCIES
278
+ benchmark
279
+ cgi
280
+ debug
281
+ my_api_client!
282
+ puma (>= 5.0)
283
+ rails (~> 8.1.3)
284
+ rspec-rails
285
+ sqlite3 (>= 2.1)
286
+ tzinfo-data
287
+
288
+ BUNDLED WITH
289
+ 2.7.2
@@ -1,8 +1,6 @@
1
- # frozen_string_literal: true
2
-
3
1
  # Add your own tasks in files placed in lib/tasks ending in .rake,
4
2
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
5
3
 
6
- require_relative 'config/application'
4
+ require_relative "config/application"
7
5
 
8
6
  Rails.application.load_tasks
@@ -1,4 +1,2 @@
1
- # frozen_string_literal: true
2
-
3
1
  class ApplicationController < ActionController::API
4
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,4 @@
1
+ class ApplicationMailer < ActionMailer::Base
2
+ default from: "from@example.com"
3
+ layout "mailer"
4
+ end
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  class ApplicationRecord < ActiveRecord::Base
4
2
  primary_abstract_class
5
3
  end
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
+ <style>
6
+ /* Email styles need to be inline */
7
+ </style>
8
+ </head>
9
+
10
+ <body>
11
+ <%= yield %>
12
+ </body>
13
+ </html>
@@ -0,0 +1 @@
1
+ <%= yield %>
@@ -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,6 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "../config/boot"
3
+ require "bundler/audit/cli"
4
+
5
+ ARGV.concat %w[ --config config/bundler-audit.yml ] if ARGV.empty? || ARGV.include?("check")
6
+ Bundler::Audit::CLI.start
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "../config/boot"
3
+ require "active_support/continuous_integration"
4
+
5
+ CI = ActiveSupport::ContinuousIntegration
6
+ require_relative "../config/ci.rb"
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ exec "./bin/rails", "server", *ARGV
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash -e
2
2
 
3
3
  # If running the rails server then create or migrate existing database
4
- if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
4
+ if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
5
5
  ./bin/rails db:prepare
6
6
  fi
7
7
 
@@ -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,8 @@
1
+ #!/usr/bin/env ruby
2
+ require "rubygems"
3
+ require "bundler/setup"
4
+
5
+ # Explicit RuboCop config increases performance slightly while avoiding config confusion.
6
+ ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__))
7
+
8
+ load Gem.bin_path("rubocop", "rubocop")
@@ -1,13 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: true
2
+ require "fileutils"
3
3
 
4
- require 'fileutils'
5
-
6
- # path to your application root.
7
- APP_ROOT = File.expand_path('..', __dir__)
4
+ APP_ROOT = File.expand_path("..", __dir__)
8
5
 
9
6
  def system!(*args)
10
- system(*args) || abort("\n== Command #{args} failed ==")
7
+ system(*args, exception: true)
11
8
  end
12
9
 
13
10
  FileUtils.chdir APP_ROOT do
@@ -15,9 +12,8 @@ FileUtils.chdir APP_ROOT do
15
12
  # This script is idempotent, so that you can run it at any time and get an expectable outcome.
16
13
  # Add necessary setup steps to this file.
17
14
 
18
- puts '== Installing dependencies =='
19
- system! 'gem install bundler --conservative'
20
- system('bundle check') || system!('bundle install')
15
+ puts "== Installing dependencies =="
16
+ system("bundle check") || system!("bundle install")
21
17
 
22
18
  # puts "\n== Copying sample files =="
23
19
  # unless File.exist?("config/database.yml")
@@ -25,11 +21,15 @@ FileUtils.chdir APP_ROOT do
25
21
  # end
26
22
 
27
23
  puts "\n== Preparing database =="
28
- system! 'bin/rails db:prepare'
24
+ system! "bin/rails db:prepare"
25
+ system! "bin/rails db:reset" if ARGV.include?("--reset")
29
26
 
30
27
  puts "\n== Removing old logs and tempfiles =="
31
- system! 'bin/rails log:clear tmp:clear'
28
+ system! "bin/rails log:clear tmp:clear"
32
29
 
33
- puts "\n== Restarting application server =="
34
- system! 'bin/rails restart'
30
+ unless ARGV.include?("--skip-server")
31
+ puts "\n== Starting development server =="
32
+ STDOUT.flush # flush the output before exec(2) so that it displays
33
+ exec "bin/dev"
34
+ end
35
35
  end
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ require "rubygems"
3
+ require "bundler/setup"
4
+
5
+ load Gem.bin_path("thruster", "thrust")
@@ -1,30 +1,32 @@
1
- # frozen_string_literal: true
1
+ require_relative "boot"
2
2
 
3
- require_relative 'boot'
4
-
5
- require 'rails'
3
+ require "rails"
6
4
  # Pick the frameworks you want:
7
- require 'active_model/railtie'
8
- # require "active_job/railtie"
9
- require 'active_record/railtie'
10
- # require "active_storage/engine"
11
- require 'action_controller/railtie'
12
- # require "action_mailer/railtie"
13
- # require "action_mailbox/engine"
14
- # require "action_text/engine"
15
- require 'action_view/railtie'
16
- # require "action_cable/engine"
17
- # require "sprockets/railtie"
5
+ require "active_model/railtie"
6
+ require "active_job/railtie"
7
+ require "active_record/railtie"
8
+ require "active_storage/engine"
9
+ require "action_controller/railtie"
10
+ require "action_mailer/railtie"
11
+ require "action_mailbox/engine"
12
+ require "action_text/engine"
13
+ require "action_view/railtie"
14
+ require "action_cable/engine"
18
15
  # require "rails/test_unit/railtie"
19
16
 
20
17
  # Require the gems listed in Gemfile, including any gems
21
18
  # you've limited to :test, :development, or :production.
22
19
  Bundler.require(*Rails.groups)
23
20
 
24
- module Rails61
21
+ module Rails81
25
22
  class Application < Rails::Application
26
23
  # Initialize configuration defaults for originally generated Rails version.
27
- config.load_defaults 6.1
24
+ config.load_defaults 8.1
25
+
26
+ # Please, add to the `ignore` list any other `lib` subdirectories that do
27
+ # not contain `.rb` files, or that should not be reloaded or eager loaded.
28
+ # Common ones are `templates`, `generators`, or `middleware`, for example.
29
+ config.autoload_lib(ignore: %w[assets tasks])
28
30
 
29
31
  # Configuration for the application, engines, and railties goes here.
30
32
  #
@@ -0,0 +1,3 @@
1
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
2
+
3
+ require "bundler/setup" # Set up gems listed in the Gemfile.
@@ -0,0 +1,5 @@
1
+ # Audit all gems listed in the Gemfile for known security problems by running bin/bundler-audit.
2
+ # CVEs that are not relevant to the application can be enumerated on the ignore list below.
3
+
4
+ ignore:
5
+ - CVE-THAT-DOES-NOT-APPLY
@@ -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: rails81_production
@@ -0,0 +1,19 @@
1
+ # Run using bin/ci
2
+
3
+ CI.run do
4
+ step "Setup", "bin/setup --skip-server"
5
+
6
+ step "Style: Ruby", "bin/rubocop"
7
+
8
+ step "Security: Gem audit", "bin/bundler-audit"
9
+ step "Security: Brakeman code analysis", "bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error"
10
+
11
+
12
+ # Optional: set a green GitHub commit status to unblock PR merge.
13
+ # Requires the `gh` CLI and `gh extension install basecamp/gh-signoff`.
14
+ # if success?
15
+ # step "Signoff: All systems go. Ready for merge and deploy.", "gh signoff"
16
+ # else
17
+ # failure "Signoff: CI failed. Do not merge or deploy.", "Fix the issues and try again."
18
+ # end
19
+ end
@@ -0,0 +1 @@
1
+ rjvJTAH8P6ANLK72VGvakBvOusdsC0Mn6AoB6d/VfXWbkiryfrt8lOFQkKkoLROYQyp9t1Uew9/enh/WkmdG/M1z+jqvqee2YN2ZbJ5pO5lA6KND/Z02XhrugzMVNpLkwIRrVXltUGwbD7GRGOr4ItSzcl071WWCC/OZJCgqv4TQ2MMtNq652rt3qGZ2Npd20AqQ3wsp8O3KpXIx6Ze0cn2QFC9L6TnKthCpRhbL/s8P+Y7NuTpaaAqTtDxz+DCdq+FMMBLxJJ/zGheRIQ1JAMkjSlBr0orbYrIHi2Kdb8lKKvF4QOxYerJRQq1uaCO2xAoLRBj5ZNiZBwoXEL+pzguepZRMXYjKEMQ7il/CeMhmB6JLQG2u5G4OcIqZB6eKWLsKAdMkeLSXxGfMpSTxYPE2P3yemDIeKTNWDFykyQ2aOjdnN20NKTHl+W5UGO5EKdxMqJGWOJkpPgXT8Wq8AM2lC5k9FBoNw2V3ww2hvuxM/kKEzugaV74z--Q5tlWiQ73D6Y1AX0--fJ01I9H7uMkK2WJp2ptu4A==
@@ -0,0 +1,40 @@
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
+ max_connections: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: storage/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: storage/test.sqlite3
22
+
23
+ # Store production database in the storage/ directory, which by default
24
+ # is mounted as a persistent Docker volume in config/deploy.yml.
25
+ production:
26
+ primary:
27
+ <<: *default
28
+ database: storage/production.sqlite3
29
+ cache:
30
+ <<: *default
31
+ database: storage/production_cache.sqlite3
32
+ migrations_paths: db/cache_migrate
33
+ queue:
34
+ <<: *default
35
+ database: storage/production_queue.sqlite3
36
+ migrations_paths: db/queue_migrate
37
+ cable:
38
+ <<: *default
39
+ database: storage/production_cable.sqlite3
40
+ migrations_paths: db/cable_migrate
@@ -1,7 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
1
  # Load the Rails application.
4
- require_relative 'application'
2
+ require_relative "application"
5
3
 
6
4
  # Initialize the Rails application.
7
5
  Rails.application.initialize!