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.
- checksums.yaml +4 -4
- data/.dockerignore +8 -0
- data/.envrc.skeleton +0 -1
- data/.github/dependabot.yml +82 -7
- data/.github/workflows/ci.yml +334 -0
- data/.github/workflows/dependabot-auto-merge.yml +96 -0
- data/.github/workflows/release.yml +33 -0
- data/.github/workflows/rubocop_challenge.yml +33 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/AGENTS.md +128 -0
- data/CHANGELOG.md +54 -2
- data/CLAUDE.md +6 -0
- data/Dockerfile +22 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +67 -59
- data/README.md +398 -62
- data/docker-compose.yml +29 -0
- data/docs/runbooks/dependabot_pr_auto_merge.md +113 -0
- data/gemfiles/rails_7.2.gemfile +1 -1
- data/gemfiles/{rails_7.1.gemfile → rails_8.0.gemfile} +2 -2
- data/gemfiles/{rails_6.1.gemfile → rails_8.1.gemfile} +2 -2
- data/lib/my_api_client/default_error_handlers.rb +1 -1
- data/lib/my_api_client/errors/client_error.rb +5 -1
- data/lib/my_api_client/integrations/bugsnag.rb +1 -1
- data/lib/my_api_client/version.rb +1 -1
- data/lib/my_api_client.rb +1 -1
- data/my_api/.ruby-version +1 -1
- data/my_api/AGENTS.md +35 -0
- data/my_api/Dockerfile +25 -0
- data/my_api/Gemfile +5 -16
- data/my_api/Gemfile.lock +263 -228
- data/my_api/README.md +36 -25
- data/my_api/Rakefile +3 -2
- data/my_api/app/controllers/application_controller.rb +1 -2
- data/my_api/app/controllers/error_controller.rb +2 -2
- data/my_api/app/controllers/header_controller.rb +6 -3
- data/my_api/app/controllers/pagination_controller.rb +5 -15
- data/my_api/app/controllers/rest_controller.rb +12 -16
- data/my_api/app/controllers/status_controller.rb +3 -4
- data/my_api/config/application.rb +12 -67
- data/{rails_app/rails_6.1 → my_api}/config/boot.rb +1 -1
- data/{rails_app/rails_7.1 → my_api}/config/environment.rb +0 -2
- data/my_api/config/environments/development.rb +6 -6
- data/my_api/config/environments/production.rb +5 -8
- data/my_api/config/environments/test.rb +5 -6
- data/my_api/config/routes.rb +2 -10
- data/my_api/config.ru +2 -4
- data/my_api/public/index.html +10 -90
- data/{rails_app/rails_7.0 → my_api}/spec/rails_helper.rb +3 -4
- data/my_api/spec/requests/error_controller_spec.rb +18 -0
- data/my_api/spec/requests/pagination_controller_spec.rb +22 -0
- data/my_api/spec/requests/rest_controller_spec.rb +22 -0
- data/my_api/spec/requests/status_controller_spec.rb +20 -0
- data/my_api/spec/spec_helper.rb +15 -23
- data/my_api_client.gemspec +2 -2
- data/rails_app/AGENTS.md +13 -0
- data/rails_app/rails_7.2/Dockerfile +1 -1
- data/rails_app/rails_7.2/Gemfile +2 -0
- data/rails_app/rails_7.2/Gemfile.lock +143 -122
- data/rails_app/{rails_7.1 → rails_8.0}/.dockerignore +16 -2
- data/rails_app/{rails_6.1 → rails_8.0}/.gitattributes +2 -1
- data/rails_app/rails_8.0/.github/workflows/ci.yml +39 -0
- data/rails_app/{rails_6.1 → rails_8.0}/.gitignore +11 -7
- data/rails_app/rails_8.0/.rubocop.yml +8 -0
- data/rails_app/rails_8.0/.ruby-version +1 -0
- data/rails_app/{rails_7.1 → rails_8.0}/Dockerfile +28 -18
- data/rails_app/rails_8.0/Gemfile +15 -0
- data/rails_app/rails_8.0/Gemfile.lock +286 -0
- data/rails_app/{rails_6.1 → rails_8.0}/Rakefile +1 -3
- data/rails_app/{rails_7.1 → rails_8.0}/app/controllers/application_controller.rb +0 -2
- data/rails_app/rails_8.0/app/jobs/application_job.rb +7 -0
- data/rails_app/rails_8.0/app/mailers/application_mailer.rb +4 -0
- data/rails_app/{rails_7.0 → rails_8.0}/app/models/application_record.rb +0 -2
- data/rails_app/rails_8.0/app/views/layouts/mailer.html.erb +13 -0
- data/rails_app/rails_8.0/app/views/layouts/mailer.text.erb +1 -0
- data/rails_app/rails_8.0/bin/brakeman +7 -0
- data/rails_app/rails_8.0/bin/dev +2 -0
- data/rails_app/rails_8.0/bin/docker-entrypoint +14 -0
- data/rails_app/rails_8.0/bin/rails +4 -0
- data/rails_app/rails_8.0/bin/rake +4 -0
- data/rails_app/rails_8.0/bin/rubocop +8 -0
- data/rails_app/{rails_7.1 → rails_8.0}/bin/setup +11 -12
- data/rails_app/rails_8.0/bin/thrust +5 -0
- data/rails_app/{rails_7.1 → rails_8.0}/config/application.rb +14 -16
- data/rails_app/rails_8.0/config/boot.rb +3 -0
- data/rails_app/rails_8.0/config/cable.yml +10 -0
- data/rails_app/rails_8.0/config/credentials.yml.enc +1 -0
- data/rails_app/{rails_7.1 → rails_8.0}/config/database.yml +18 -2
- data/rails_app/{rails_6.1 → rails_8.0}/config/environment.rb +1 -3
- data/rails_app/rails_8.0/config/environments/development.rb +70 -0
- data/rails_app/rails_8.0/config/environments/production.rb +86 -0
- data/rails_app/{rails_7.1 → rails_8.0}/config/environments/test.rb +16 -19
- data/rails_app/{rails_7.1 → rails_8.0}/config/initializers/cors.rb +0 -1
- data/rails_app/{rails_7.1 → rails_8.0}/config/initializers/filter_parameter_logging.rb +2 -4
- data/rails_app/{rails_7.0 → rails_8.0}/config/initializers/inflections.rb +0 -1
- data/rails_app/rails_8.0/config/puma.rb +41 -0
- data/rails_app/{rails_7.1 → rails_8.0}/config/routes.rb +1 -3
- data/rails_app/rails_8.0/config/storage.yml +34 -0
- data/rails_app/{rails_7.1 → rails_8.0}/config.ru +1 -3
- data/rails_app/{rails_7.1 → rails_8.0}/db/seeds.rb +0 -1
- data/rails_app/{rails_7.1 → rails_8.0}/spec/rails_helper.rb +1 -1
- data/rails_app/rails_8.1/.dockerignore +45 -0
- data/rails_app/rails_8.1/.gitattributes +9 -0
- data/rails_app/rails_8.1/.github/workflows/ci.yml +52 -0
- data/rails_app/rails_8.1/.gitignore +33 -0
- data/rails_app/rails_8.1/.rspec +1 -0
- data/rails_app/rails_8.1/.rubocop.yml +8 -0
- data/rails_app/rails_8.1/.ruby-version +1 -0
- data/rails_app/rails_8.1/Dockerfile +68 -0
- data/rails_app/rails_8.1/Gemfile +15 -0
- data/rails_app/rails_8.1/Gemfile.lock +289 -0
- data/rails_app/{rails_7.0 → rails_8.1}/Rakefile +1 -3
- data/rails_app/{rails_6.1 → rails_8.1}/app/controllers/application_controller.rb +0 -2
- data/rails_app/rails_8.1/app/jobs/application_job.rb +7 -0
- data/rails_app/rails_8.1/app/mailers/application_mailer.rb +4 -0
- data/rails_app/{rails_7.1 → rails_8.1}/app/models/application_record.rb +0 -2
- data/rails_app/rails_8.1/app/views/layouts/mailer.html.erb +13 -0
- data/rails_app/rails_8.1/app/views/layouts/mailer.text.erb +1 -0
- data/rails_app/rails_8.1/bin/brakeman +7 -0
- data/rails_app/rails_8.1/bin/bundler-audit +6 -0
- data/rails_app/rails_8.1/bin/ci +6 -0
- data/rails_app/rails_8.1/bin/dev +2 -0
- data/rails_app/{rails_7.1 → rails_8.1}/bin/docker-entrypoint +1 -1
- data/rails_app/rails_8.1/bin/rails +4 -0
- data/rails_app/rails_8.1/bin/rake +4 -0
- data/rails_app/rails_8.1/bin/rubocop +8 -0
- data/rails_app/{rails_7.0 → rails_8.1}/bin/setup +13 -13
- data/rails_app/rails_8.1/bin/thrust +5 -0
- data/rails_app/{rails_6.1 → rails_8.1}/config/application.rb +19 -17
- data/rails_app/rails_8.1/config/boot.rb +3 -0
- data/rails_app/rails_8.1/config/bundler-audit.yml +5 -0
- data/rails_app/rails_8.1/config/cable.yml +10 -0
- data/rails_app/rails_8.1/config/ci.rb +19 -0
- data/rails_app/rails_8.1/config/credentials.yml.enc +1 -0
- data/rails_app/rails_8.1/config/database.yml +40 -0
- data/rails_app/{rails_7.0 → rails_8.1}/config/environment.rb +1 -3
- data/rails_app/rails_8.1/config/environments/development.rb +73 -0
- data/rails_app/rails_8.1/config/environments/production.rb +86 -0
- data/rails_app/rails_8.1/config/environments/test.rb +53 -0
- data/rails_app/{rails_7.0 → rails_8.1}/config/initializers/cors.rb +1 -2
- data/rails_app/rails_8.1/config/initializers/filter_parameter_logging.rb +8 -0
- data/rails_app/{rails_7.1 → rails_8.1}/config/initializers/inflections.rb +0 -1
- data/rails_app/rails_8.1/config/locales/en.yml +31 -0
- data/rails_app/rails_8.1/config/puma.rb +42 -0
- data/rails_app/rails_8.1/config/routes.rb +10 -0
- data/rails_app/rails_8.1/config/storage.yml +27 -0
- data/rails_app/{rails_7.0 → rails_8.1}/config.ru +1 -3
- data/rails_app/rails_8.1/db/seeds.rb +9 -0
- data/rails_app/{rails_6.1 → rails_8.1}/spec/rails_helper.rb +1 -2
- metadata +139 -136
- data/.circleci/config.yml +0 -344
- data/README.jp.md +0 -785
- data/gemfiles/rails_7.0.gemfile +0 -15
- data/my_api/.envrc.skeleton +0 -3
- data/my_api/.jetskeep +0 -1
- data/my_api/Procfile +0 -7
- data/my_api/app/helpers/application_helper.rb +0 -5
- data/my_api/app/jobs/application_job.rb +0 -7
- data/my_api/app/models/application_item.rb +0 -5
- data/my_api/config/dynamodb.yml +0 -22
- data/my_api/spec/controllers/error_controller_spec.rb +0 -43
- data/my_api/spec/controllers/header_controller_spec.rb +0 -33
- data/my_api/spec/controllers/pagination_controller_spec.rb +0 -73
- data/my_api/spec/controllers/rest_controller_spec.rb +0 -99
- data/my_api/spec/controllers/status_controller_spec.rb +0 -47
- data/my_api/spec/fixtures/payloads/posts-index.json +0 -51
- data/my_api/spec/fixtures/payloads/posts-show.json +0 -53
- data/rails_app/rails_6.1/.rspec +0 -3
- data/rails_app/rails_6.1/Gemfile +0 -17
- data/rails_app/rails_6.1/Gemfile.lock +0 -195
- data/rails_app/rails_6.1/app/models/application_record.rb +0 -5
- data/rails_app/rails_6.1/bin/bundle +0 -122
- data/rails_app/rails_6.1/bin/rails +0 -6
- data/rails_app/rails_6.1/bin/rake +0 -6
- data/rails_app/rails_6.1/bin/setup +0 -35
- data/rails_app/rails_6.1/config/credentials.yml.enc +0 -1
- data/rails_app/rails_6.1/config/database.yml +0 -25
- data/rails_app/rails_6.1/config/environments/development.rb +0 -59
- data/rails_app/rails_6.1/config/environments/production.rb +0 -97
- data/rails_app/rails_6.1/config/environments/test.rb +0 -51
- data/rails_app/rails_6.1/config/initializers/application_controller_renderer.rb +0 -9
- data/rails_app/rails_6.1/config/initializers/backtrace_silencers.rb +0 -10
- data/rails_app/rails_6.1/config/initializers/cors.rb +0 -17
- data/rails_app/rails_6.1/config/initializers/filter_parameter_logging.rb +0 -8
- data/rails_app/rails_6.1/config/initializers/inflections.rb +0 -17
- data/rails_app/rails_6.1/config/initializers/mime_types.rb +0 -5
- data/rails_app/rails_6.1/config/initializers/wrap_parameters.rb +0 -16
- data/rails_app/rails_6.1/config/locales/en.yml +0 -33
- data/rails_app/rails_6.1/config/routes.rb +0 -5
- data/rails_app/rails_6.1/config.ru +0 -8
- data/rails_app/rails_6.1/db/seeds.rb +0 -8
- data/rails_app/rails_7.0/Gemfile +0 -13
- data/rails_app/rails_7.0/Gemfile.lock +0 -212
- data/rails_app/rails_7.0/app/controllers/application_controller.rb +0 -4
- data/rails_app/rails_7.0/bin/bundle +0 -122
- data/rails_app/rails_7.0/bin/rails +0 -6
- data/rails_app/rails_7.0/bin/rake +0 -6
- data/rails_app/rails_7.0/config/application.rb +0 -41
- data/rails_app/rails_7.0/config/boot.rb +0 -5
- data/rails_app/rails_7.0/config/credentials.yml.enc +0 -1
- data/rails_app/rails_7.0/config/database.yml +0 -25
- data/rails_app/rails_7.0/config/environments/development.rb +0 -58
- data/rails_app/rails_7.0/config/environments/production.rb +0 -70
- data/rails_app/rails_7.0/config/environments/test.rb +0 -52
- data/rails_app/rails_7.0/config/initializers/filter_parameter_logging.rb +0 -8
- data/rails_app/rails_7.0/config/locales/en.yml +0 -33
- data/rails_app/rails_7.0/config/routes.rb +0 -8
- data/rails_app/rails_7.0/db/seeds.rb +0 -8
- data/rails_app/rails_7.1/Gemfile +0 -16
- data/rails_app/rails_7.1/Gemfile.lock +0 -241
- data/rails_app/rails_7.1/README.md +0 -24
- data/rails_app/rails_7.1/Rakefile +0 -8
- data/rails_app/rails_7.1/bin/bundle +0 -122
- data/rails_app/rails_7.1/bin/rails +0 -6
- data/rails_app/rails_7.1/bin/rake +0 -6
- data/rails_app/rails_7.1/config/boot.rb +0 -5
- data/rails_app/rails_7.1/config/credentials.yml.enc +0 -1
- data/rails_app/rails_7.1/config/environments/development.rb +0 -58
- data/rails_app/rails_7.1/config/environments/production.rb +0 -74
- data/rails_app/rails_7.1/config/puma.rb +0 -46
- data/rails_app/rails_7.1/public/robots.txt +0 -2
- data/rails_app/rails_7.1/spec/spec_helper.rb +0 -13
- data/rails_app/rails_7.1/vendor/.keep +0 -0
- data/rails_app/rails_7.2/.github/dependabot.yml +0 -12
- /data/rails_app/{rails_7.1 → rails_8.0}/.rspec +0 -0
- /data/rails_app/{rails_6.1 → rails_8.0}/README.md +0 -0
- /data/rails_app/{rails_6.1 → rails_8.0}/app/controllers/concerns/.keep +0 -0
- /data/rails_app/{rails_6.1/app/javascript → rails_8.0/app/models/concerns}/.keep +0 -0
- /data/rails_app/{rails_7.1 → rails_8.0}/config/locales/en.yml +0 -0
- /data/rails_app/{rails_6.1/app/models/concerns → rails_8.0/lib/tasks}/.keep +0 -0
- /data/rails_app/{rails_6.1/lib/tasks → rails_8.0/log}/.keep +0 -0
- /data/rails_app/{rails_6.1 → rails_8.0}/public/robots.txt +0 -0
- /data/rails_app/{rails_6.1/tmp → rails_8.0/script}/.keep +0 -0
- /data/rails_app/{rails_6.1 → rails_8.0}/spec/spec_helper.rb +0 -0
- /data/rails_app/{rails_6.1/tmp/pids → rails_8.0/storage}/.keep +0 -0
- /data/rails_app/{rails_6.1 → rails_8.0}/vendor/.keep +0 -0
- /data/rails_app/{rails_7.0 → rails_8.1}/README.md +0 -0
- /data/rails_app/{rails_7.1 → rails_8.1}/app/controllers/concerns/.keep +0 -0
- /data/rails_app/{rails_7.1 → rails_8.1}/app/models/concerns/.keep +0 -0
- /data/rails_app/{rails_7.1 → rails_8.1}/lib/tasks/.keep +0 -0
- /data/rails_app/{rails_7.1/storage → rails_8.1/log}/.keep +0 -0
- /data/rails_app/{rails_7.0 → rails_8.1}/public/robots.txt +0 -0
- /data/rails_app/{rails_7.1/tmp → rails_8.1/script}/.keep +0 -0
- /data/rails_app/{rails_7.0 → rails_8.1}/spec/spec_helper.rb +0 -0
- /data/rails_app/{rails_7.1/tmp/pids → rails_8.1/storage}/.keep +0 -0
- /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
|
|
4
|
+
require_relative "config/application"
|
|
7
5
|
|
|
8
6
|
Rails.application.load_tasks
|
|
@@ -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 @@
|
|
|
1
|
+
<%= yield %>
|
|
@@ -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,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
|
-
|
|
2
|
+
require "fileutils"
|
|
3
3
|
|
|
4
|
-
|
|
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
|
|
19
|
-
system
|
|
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!
|
|
24
|
+
system! "bin/rails db:prepare"
|
|
29
25
|
|
|
30
26
|
puts "\n== Removing old logs and tempfiles =="
|
|
31
|
-
system!
|
|
27
|
+
system! "bin/rails log:clear tmp:clear"
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
require_relative "boot"
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require 'rails'
|
|
3
|
+
require "rails"
|
|
6
4
|
# Pick the frameworks you want:
|
|
7
|
-
require
|
|
8
|
-
|
|
9
|
-
require
|
|
10
|
-
|
|
11
|
-
require
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
require
|
|
16
|
-
|
|
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
|
|
21
|
+
module Rails80
|
|
24
22
|
class Application < Rails::Application
|
|
25
23
|
# Initialize configuration defaults for originally generated Rails version.
|
|
26
|
-
config.load_defaults
|
|
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 @@
|
|
|
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
|
-
|
|
25
|
-
|
|
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
|
|
@@ -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
|