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,286 @@
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
+ actioncable (8.0.5)
14
+ actionpack (= 8.0.5)
15
+ activesupport (= 8.0.5)
16
+ nio4r (~> 2.0)
17
+ websocket-driver (>= 0.6.1)
18
+ zeitwerk (~> 2.6)
19
+ actionmailbox (8.0.5)
20
+ actionpack (= 8.0.5)
21
+ activejob (= 8.0.5)
22
+ activerecord (= 8.0.5)
23
+ activestorage (= 8.0.5)
24
+ activesupport (= 8.0.5)
25
+ mail (>= 2.8.0)
26
+ actionmailer (8.0.5)
27
+ actionpack (= 8.0.5)
28
+ actionview (= 8.0.5)
29
+ activejob (= 8.0.5)
30
+ activesupport (= 8.0.5)
31
+ mail (>= 2.8.0)
32
+ rails-dom-testing (~> 2.2)
33
+ actionpack (8.0.5)
34
+ actionview (= 8.0.5)
35
+ activesupport (= 8.0.5)
36
+ nokogiri (>= 1.8.5)
37
+ rack (>= 2.2.4)
38
+ rack-session (>= 1.0.1)
39
+ rack-test (>= 0.6.3)
40
+ rails-dom-testing (~> 2.2)
41
+ rails-html-sanitizer (~> 1.6)
42
+ useragent (~> 0.16)
43
+ actiontext (8.0.5)
44
+ actionpack (= 8.0.5)
45
+ activerecord (= 8.0.5)
46
+ activestorage (= 8.0.5)
47
+ activesupport (= 8.0.5)
48
+ globalid (>= 0.6.0)
49
+ nokogiri (>= 1.8.5)
50
+ actionview (8.0.5)
51
+ activesupport (= 8.0.5)
52
+ builder (~> 3.1)
53
+ erubi (~> 1.11)
54
+ rails-dom-testing (~> 2.2)
55
+ rails-html-sanitizer (~> 1.6)
56
+ activejob (8.0.5)
57
+ activesupport (= 8.0.5)
58
+ globalid (>= 0.3.6)
59
+ activemodel (8.0.5)
60
+ activesupport (= 8.0.5)
61
+ activerecord (8.0.5)
62
+ activemodel (= 8.0.5)
63
+ activesupport (= 8.0.5)
64
+ timeout (>= 0.4.0)
65
+ activestorage (8.0.5)
66
+ actionpack (= 8.0.5)
67
+ activejob (= 8.0.5)
68
+ activerecord (= 8.0.5)
69
+ activesupport (= 8.0.5)
70
+ marcel (~> 1.0)
71
+ activesupport (8.0.5)
72
+ base64
73
+ benchmark (>= 0.3)
74
+ bigdecimal
75
+ concurrent-ruby (~> 1.0, >= 1.3.1)
76
+ connection_pool (>= 2.2.5)
77
+ drb
78
+ i18n (>= 1.6, < 2)
79
+ logger (>= 1.4.2)
80
+ minitest (>= 5.1)
81
+ securerandom (>= 0.3)
82
+ tzinfo (~> 2.0, >= 2.0.5)
83
+ uri (>= 0.13.1)
84
+ addressable (2.9.0)
85
+ public_suffix (>= 2.0.2, < 8.0)
86
+ base64 (0.3.0)
87
+ benchmark (0.5.0)
88
+ bigdecimal (4.0.1)
89
+ builder (3.3.0)
90
+ cgi (0.5.1)
91
+ concurrent-ruby (1.3.7)
92
+ connection_pool (3.0.2)
93
+ crass (1.0.6)
94
+ date (3.5.1)
95
+ debug (1.11.1)
96
+ irb (~> 1.10)
97
+ reline (>= 0.3.8)
98
+ diff-lcs (1.6.2)
99
+ drb (2.2.3)
100
+ erb (6.0.4)
101
+ erubi (1.13.1)
102
+ faraday (2.14.3)
103
+ faraday-net_http (>= 2.0, < 3.5)
104
+ json
105
+ logger
106
+ faraday-net_http (3.4.4)
107
+ net-http (~> 0.5)
108
+ globalid (1.3.0)
109
+ activesupport (>= 6.1)
110
+ i18n (1.14.8)
111
+ concurrent-ruby (~> 1.0)
112
+ io-console (0.8.2)
113
+ irb (1.17.0)
114
+ pp (>= 0.6.0)
115
+ prism (>= 1.3.0)
116
+ rdoc (>= 4.0.0)
117
+ reline (>= 0.4.2)
118
+ json (2.19.9)
119
+ jsonpath (1.1.5)
120
+ multi_json
121
+ logger (1.7.0)
122
+ loofah (2.25.1)
123
+ crass (~> 1.0.2)
124
+ nokogiri (>= 1.12.0)
125
+ mail (2.9.0)
126
+ logger
127
+ mini_mime (>= 0.1.1)
128
+ net-imap
129
+ net-pop
130
+ net-smtp
131
+ marcel (1.1.0)
132
+ mini_mime (1.1.5)
133
+ minitest (6.0.2)
134
+ drb (~> 2.0)
135
+ prism (~> 1.5)
136
+ multi_json (1.19.1)
137
+ net-http (0.9.1)
138
+ uri (>= 0.11.1)
139
+ net-imap (0.6.4.1)
140
+ date
141
+ net-protocol
142
+ net-pop (0.1.2)
143
+ net-protocol
144
+ net-protocol (0.2.2)
145
+ timeout
146
+ net-smtp (0.5.1)
147
+ net-protocol
148
+ nio4r (2.7.5)
149
+ nokogiri (1.19.4-aarch64-linux-gnu)
150
+ racc (~> 1.4)
151
+ nokogiri (1.19.4-aarch64-linux-musl)
152
+ racc (~> 1.4)
153
+ nokogiri (1.19.4-arm-linux-gnu)
154
+ racc (~> 1.4)
155
+ nokogiri (1.19.4-arm-linux-musl)
156
+ racc (~> 1.4)
157
+ nokogiri (1.19.4-arm64-darwin)
158
+ racc (~> 1.4)
159
+ nokogiri (1.19.4-x86_64-darwin)
160
+ racc (~> 1.4)
161
+ nokogiri (1.19.4-x86_64-linux-gnu)
162
+ racc (~> 1.4)
163
+ nokogiri (1.19.4-x86_64-linux-musl)
164
+ racc (~> 1.4)
165
+ pp (0.6.3)
166
+ prettyprint
167
+ prettyprint (0.2.0)
168
+ prism (1.9.0)
169
+ psych (5.3.1)
170
+ date
171
+ stringio
172
+ public_suffix (7.0.5)
173
+ puma (7.2.0)
174
+ nio4r (~> 2.0)
175
+ racc (1.8.1)
176
+ rack (3.2.6)
177
+ rack-session (2.1.2)
178
+ base64 (>= 0.1.0)
179
+ rack (>= 3.0.0)
180
+ rack-test (2.2.0)
181
+ rack (>= 1.3)
182
+ rackup (2.3.1)
183
+ rack (>= 3)
184
+ rails (8.0.5)
185
+ actioncable (= 8.0.5)
186
+ actionmailbox (= 8.0.5)
187
+ actionmailer (= 8.0.5)
188
+ actionpack (= 8.0.5)
189
+ actiontext (= 8.0.5)
190
+ actionview (= 8.0.5)
191
+ activejob (= 8.0.5)
192
+ activemodel (= 8.0.5)
193
+ activerecord (= 8.0.5)
194
+ activestorage (= 8.0.5)
195
+ activesupport (= 8.0.5)
196
+ bundler (>= 1.15.0)
197
+ railties (= 8.0.5)
198
+ rails-dom-testing (2.3.0)
199
+ activesupport (>= 5.0.0)
200
+ minitest
201
+ nokogiri (>= 1.6)
202
+ rails-html-sanitizer (1.7.0)
203
+ loofah (~> 2.25)
204
+ 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)
205
+ railties (8.0.5)
206
+ actionpack (= 8.0.5)
207
+ activesupport (= 8.0.5)
208
+ irb (~> 1.13)
209
+ rackup (>= 1.0.0)
210
+ rake (>= 12.2)
211
+ thor (~> 1.0, >= 1.2.2)
212
+ tsort (>= 0.2)
213
+ zeitwerk (~> 2.6)
214
+ rake (13.4.2)
215
+ rdoc (7.2.0)
216
+ erb
217
+ psych (>= 4.0.0)
218
+ tsort
219
+ reline (0.6.3)
220
+ io-console (~> 0.5)
221
+ rspec-core (3.13.6)
222
+ rspec-support (~> 3.13.0)
223
+ rspec-expectations (3.13.5)
224
+ diff-lcs (>= 1.2.0, < 2.0)
225
+ rspec-support (~> 3.13.0)
226
+ rspec-mocks (3.13.8)
227
+ diff-lcs (>= 1.2.0, < 2.0)
228
+ rspec-support (~> 3.13.0)
229
+ rspec-rails (8.0.4)
230
+ actionpack (>= 7.2)
231
+ activesupport (>= 7.2)
232
+ railties (>= 7.2)
233
+ rspec-core (>= 3.13.0, < 5.0.0)
234
+ rspec-expectations (>= 3.13.0, < 5.0.0)
235
+ rspec-mocks (>= 3.13.0, < 5.0.0)
236
+ rspec-support (>= 3.13.0, < 5.0.0)
237
+ rspec-support (3.13.7)
238
+ sawyer (0.9.3)
239
+ addressable (>= 2.3.5)
240
+ faraday (>= 0.17.3, < 3)
241
+ securerandom (0.4.1)
242
+ sqlite3 (2.9.5-aarch64-linux-gnu)
243
+ sqlite3 (2.9.5-aarch64-linux-musl)
244
+ sqlite3 (2.9.5-arm-linux-gnu)
245
+ sqlite3 (2.9.5-arm-linux-musl)
246
+ sqlite3 (2.9.5-arm64-darwin)
247
+ sqlite3 (2.9.5-x86_64-darwin)
248
+ sqlite3 (2.9.5-x86_64-linux-gnu)
249
+ sqlite3 (2.9.5-x86_64-linux-musl)
250
+ stringio (3.2.0)
251
+ thor (1.5.0)
252
+ timeout (0.6.1)
253
+ tsort (0.2.0)
254
+ tzinfo (2.0.6)
255
+ concurrent-ruby (~> 1.0)
256
+ uri (1.1.1)
257
+ useragent (0.16.11)
258
+ websocket-driver (0.8.0)
259
+ base64
260
+ websocket-extensions (>= 0.1.0)
261
+ websocket-extensions (0.1.5)
262
+ zeitwerk (2.7.5)
263
+
264
+ PLATFORMS
265
+ aarch64-linux-gnu
266
+ aarch64-linux-musl
267
+ arm-linux-gnu
268
+ arm-linux-musl
269
+ arm64-darwin
270
+ x86_64-darwin
271
+ x86_64-linux-gnu
272
+ x86_64-linux-musl
273
+
274
+ DEPENDENCIES
275
+ benchmark
276
+ cgi
277
+ debug
278
+ my_api_client!
279
+ puma (>= 5.0)
280
+ rails (~> 8.0.4)
281
+ rspec-rails
282
+ sqlite3 (>= 2.1)
283
+ tzinfo-data
284
+
285
+ BUNDLED WITH
286
+ 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,2 @@
1
+ #!/usr/bin/env ruby
2
+ exec "./bin/rails", "server", *ARGV
@@ -0,0 +1,14 @@
1
+ #!/bin/bash -e
2
+
3
+ # Enable jemalloc for reduced memory usage and latency.
4
+ if [ -z "${LD_PRELOAD+x}" ]; then
5
+ LD_PRELOAD=$(find /usr/lib -name libjemalloc.so.2 -print -quit)
6
+ export LD_PRELOAD
7
+ fi
8
+
9
+ # If running the rails server then create or migrate existing database
10
+ if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
11
+ ./bin/rails db:prepare
12
+ fi
13
+
14
+ exec "${@}"
@@ -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,10 +1,7 @@
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
7
  system(*args, exception: true)
@@ -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,14 @@ 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"
29
25
 
30
26
  puts "\n== Removing old logs and tempfiles =="
31
- system! 'bin/rails log:clear tmp:clear'
27
+ system! "bin/rails log:clear tmp:clear"
32
28
 
33
- puts "\n== Restarting application server =="
34
- system! 'bin/rails restart'
29
+ unless ARGV.include?("--skip-server")
30
+ puts "\n== Starting development server =="
31
+ STDOUT.flush # flush the output before exec(2) so that it displays
32
+ exec "bin/dev"
33
+ end
35
34
  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,29 +1,27 @@
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"
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"
17
15
  # require "rails/test_unit/railtie"
18
16
 
19
17
  # Require the gems listed in Gemfile, including any gems
20
18
  # you've limited to :test, :development, or :production.
21
19
  Bundler.require(*Rails.groups)
22
20
 
23
- module Rails71
21
+ module Rails80
24
22
  class Application < Rails::Application
25
23
  # Initialize configuration defaults for originally generated Rails version.
26
- config.load_defaults 7.1
24
+ config.load_defaults 8.0
27
25
 
28
26
  # Please, add to the `ignore` list any other `lib` subdirectories that do
29
27
  # not contain `.rb` files, or that should not be reloaded or eager loaded.
@@ -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,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: rails80_production
@@ -0,0 +1 @@
1
+ WFYFUAxL4aZ3WtwQLA8tCDPxvwUI1VygaBWNagYiM4+wDbdRhwFV3GJOqJa1JmkzSu0D45n0cXgLTt9fh8YPmW1j7DnoeYNRrYEtedtZHK3FY3yNXXsG725yB3CmVHec5mfymZdb0yiVhRKVPxj9pvqMAolP6PL12AR8WRG0wPfrlf4m6qBeogZzcemHHINyn55yLqsl7RFrj4zzNg1o/SRcVYEnhNvUPzzpbULUrunmgG5ogtunUzW+HGS5t/1T1sF4wSyk3RztTalvHTSC4FulN0kKkMJwCjYJYBRdd7u3KBN511wj0ZprObBY0hHQkDA7Jy52EO15Q7TAnlGm202OJQhsjhbtAoYJpaN/ud56g+ErtrOyeb4jtOlZCN4sRnzUeKZ+/v065xvnQolQUpeCFEKjZBZLJxpNtt2BpOP9FzhSbjCMEwzRhA8q3P10G/0HhNIMg00NoUdeDBhmPA6fT1dgQ4+ZVBKv7w2+xeDqnENHCHtBreR9--PAAHmfQUthT0Jf3e--QGdl9yeHRXnaLdVCM8yZtg==
@@ -20,6 +20,22 @@ test:
20
20
  <<: *default
21
21
  database: storage/test.sqlite3
22
22
 
23
+
24
+ # Store production database in the storage/ directory, which by default
25
+ # is mounted as a persistent Docker volume in config/deploy.yml.
23
26
  production:
24
- <<: *default
25
- database: storage/production.sqlite3
27
+ primary:
28
+ <<: *default
29
+ database: storage/production.sqlite3
30
+ cache:
31
+ <<: *default
32
+ database: storage/production_cache.sqlite3
33
+ migrations_paths: db/cache_migrate
34
+ queue:
35
+ <<: *default
36
+ database: storage/production_queue.sqlite3
37
+ migrations_paths: db/queue_migrate
38
+ cable:
39
+ <<: *default
40
+ database: storage/production_cable.sqlite3
41
+ 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!
@@ -0,0 +1,70 @@
1
+ require "active_support/core_ext/integer/time"
2
+
3
+ Rails.application.configure do
4
+ # Settings specified here will take precedence over those in config/application.rb.
5
+
6
+ # Make code changes take effect immediately without server restart.
7
+ config.enable_reloading = true
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports.
13
+ config.consider_all_requests_local = true
14
+
15
+ # Enable server timing.
16
+ config.server_timing = true
17
+
18
+ # Enable/disable Action Controller caching. By default Action Controller caching is disabled.
19
+ # Run rails dev:cache to toggle Action Controller caching.
20
+ if Rails.root.join("tmp/caching-dev.txt").exist?
21
+ config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
22
+ else
23
+ config.action_controller.perform_caching = false
24
+ end
25
+
26
+ # Change to :null_store to avoid any caching.
27
+ config.cache_store = :memory_store
28
+
29
+ # Store uploaded files on the local file system (see config/storage.yml for options).
30
+ config.active_storage.service = :local
31
+
32
+ # Don't care if the mailer can't send.
33
+ config.action_mailer.raise_delivery_errors = false
34
+
35
+ # Make template changes take effect immediately.
36
+ config.action_mailer.perform_caching = false
37
+
38
+ # Set localhost to be used by links generated in mailer templates.
39
+ config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
40
+
41
+ # Print deprecation notices to the Rails logger.
42
+ config.active_support.deprecation = :log
43
+
44
+ # Raise an error on page load if there are pending migrations.
45
+ config.active_record.migration_error = :page_load
46
+
47
+ # Highlight code that triggered database queries in logs.
48
+ config.active_record.verbose_query_logs = true
49
+
50
+ # Append comments with runtime information tags to SQL queries in logs.
51
+ config.active_record.query_log_tags_enabled = true
52
+
53
+ # Highlight code that enqueued background job in logs.
54
+ config.active_job.verbose_enqueue_logs = true
55
+
56
+ # Raises error for missing translations.
57
+ # config.i18n.raise_on_missing_translations = true
58
+
59
+ # Annotate rendered view with file names.
60
+ config.action_view.annotate_rendered_view_with_filenames = true
61
+
62
+ # Uncomment if you wish to allow Action Cable access from any origin.
63
+ # config.action_cable.disable_request_forgery_protection = true
64
+
65
+ # Raise error when a before_action's only/except options reference missing actions.
66
+ config.action_controller.raise_on_missing_callback_actions = true
67
+
68
+ # Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
69
+ # config.generators.apply_rubocop_autocorrect_after_generate!
70
+ end