my_api_client 1.1.0 → 1.3.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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +8 -7
  3. data/.rubocop.yml +7 -4
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +71 -0
  6. data/Gemfile.lock +95 -81
  7. data/README.jp.md +2 -2
  8. data/README.md +2 -2
  9. data/example/api_clients/my_error_api_client.rb +1 -1
  10. data/example/api_clients/my_header_api_client.rb +1 -1
  11. data/example/api_clients/my_pagination_api_client.rb +2 -2
  12. data/example/api_clients/my_rest_api_client.rb +10 -10
  13. data/example/api_clients/my_status_api_client.rb +1 -1
  14. data/gemfiles/rails_7.1.gemfile +15 -0
  15. data/gemfiles/rails_7.2.gemfile +15 -0
  16. data/lib/my_api_client/base.rb +1 -1
  17. data/lib/my_api_client/error_handling.rb +1 -1
  18. data/lib/my_api_client/errors/network_error.rb +1 -1
  19. data/lib/my_api_client/errors.rb +1 -1
  20. data/lib/my_api_client/exceptions.rb +1 -1
  21. data/lib/my_api_client/params/params.rb +1 -1
  22. data/lib/my_api_client/params/request.rb +8 -8
  23. data/lib/my_api_client/request/basic.rb +2 -2
  24. data/lib/my_api_client/request/executor.rb +1 -1
  25. data/lib/my_api_client/request/pagination.rb +1 -3
  26. data/lib/my_api_client/request.rb +5 -5
  27. data/lib/my_api_client/rspec/matcher_helper.rb +3 -3
  28. data/lib/my_api_client/rspec/matchers/request_to.rb +1 -1
  29. data/lib/my_api_client/version.rb +1 -1
  30. data/my_api/Gemfile +1 -1
  31. data/my_api/Gemfile.lock +83 -71
  32. data/my_api/app/controllers/error_controller.rb +1 -1
  33. data/my_api/app/controllers/pagination_controller.rb +1 -1
  34. data/my_api/app/controllers/rest_controller.rb +4 -4
  35. data/my_api/app/controllers/status_controller.rb +1 -1
  36. data/my_api/spec/controllers/error_controller_spec.rb +4 -4
  37. data/my_api/spec/controllers/status_controller_spec.rb +3 -3
  38. data/my_api_client.gemspec +2 -1
  39. data/rails_app/rails_6.1/Gemfile.lock +73 -71
  40. data/rails_app/rails_7.0/Gemfile.lock +78 -76
  41. data/rails_app/rails_7.1/.dockerignore +31 -0
  42. data/rails_app/rails_7.1/.rspec +1 -0
  43. data/rails_app/rails_7.1/Dockerfile +55 -0
  44. data/rails_app/rails_7.1/Gemfile +16 -0
  45. data/rails_app/rails_7.1/Gemfile.lock +241 -0
  46. data/rails_app/rails_7.1/README.md +24 -0
  47. data/rails_app/rails_7.1/Rakefile +8 -0
  48. data/rails_app/rails_7.1/app/controllers/application_controller.rb +4 -0
  49. data/rails_app/rails_7.1/app/controllers/concerns/.keep +0 -0
  50. data/rails_app/rails_7.1/app/models/application_record.rb +5 -0
  51. data/rails_app/rails_7.1/app/models/concerns/.keep +0 -0
  52. data/rails_app/rails_7.1/bin/bundle +122 -0
  53. data/rails_app/rails_7.1/bin/docker-entrypoint +8 -0
  54. data/rails_app/rails_7.1/bin/rails +6 -0
  55. data/rails_app/rails_7.1/bin/rake +6 -0
  56. data/rails_app/rails_7.1/bin/setup +35 -0
  57. data/rails_app/rails_7.1/config/application.rb +46 -0
  58. data/rails_app/rails_7.1/config/boot.rb +5 -0
  59. data/rails_app/rails_7.1/config/credentials.yml.enc +1 -0
  60. data/rails_app/rails_7.1/config/database.yml +25 -0
  61. data/rails_app/rails_7.1/config/environment.rb +7 -0
  62. data/rails_app/rails_7.1/config/environments/development.rb +58 -0
  63. data/rails_app/rails_7.1/config/environments/production.rb +74 -0
  64. data/rails_app/rails_7.1/config/environments/test.rb +56 -0
  65. data/rails_app/rails_7.1/config/initializers/cors.rb +17 -0
  66. data/rails_app/rails_7.1/config/initializers/filter_parameter_logging.rb +10 -0
  67. data/rails_app/rails_7.1/config/initializers/inflections.rb +17 -0
  68. data/rails_app/rails_7.1/config/locales/en.yml +31 -0
  69. data/rails_app/rails_7.1/config/puma.rb +46 -0
  70. data/rails_app/rails_7.1/config/routes.rb +12 -0
  71. data/rails_app/rails_7.1/config.ru +8 -0
  72. data/rails_app/rails_7.1/db/seeds.rb +10 -0
  73. data/rails_app/rails_7.1/lib/tasks/.keep +0 -0
  74. data/rails_app/rails_7.1/public/robots.txt +2 -0
  75. data/rails_app/rails_7.1/spec/rails_helper.rb +13 -0
  76. data/rails_app/rails_7.1/spec/spec_helper.rb +13 -0
  77. data/rails_app/rails_7.1/storage/.keep +0 -0
  78. data/rails_app/rails_7.1/tmp/.keep +0 -0
  79. data/rails_app/rails_7.1/tmp/pids/.keep +0 -0
  80. data/rails_app/rails_7.1/tmp/storage/.keep +0 -0
  81. data/rails_app/rails_7.1/vendor/.keep +0 -0
  82. data/rails_app/rails_7.2/.dockerignore +42 -0
  83. data/rails_app/rails_7.2/.github/dependabot.yml +12 -0
  84. data/rails_app/rails_7.2/.github/workflows/ci.yml +55 -0
  85. data/rails_app/rails_7.2/.rspec +1 -0
  86. data/rails_app/rails_7.2/Dockerfile +62 -0
  87. data/rails_app/rails_7.2/Gemfile +15 -0
  88. data/rails_app/rails_7.2/Gemfile.lock +240 -0
  89. data/rails_app/rails_7.2/README.md +24 -0
  90. data/rails_app/rails_7.2/Rakefile +8 -0
  91. data/rails_app/rails_7.2/app/controllers/application_controller.rb +4 -0
  92. data/rails_app/rails_7.2/app/controllers/concerns/.keep +0 -0
  93. data/rails_app/rails_7.2/app/models/application_record.rb +5 -0
  94. data/rails_app/rails_7.2/app/models/concerns/.keep +0 -0
  95. data/rails_app/rails_7.2/bin/brakeman +9 -0
  96. data/rails_app/rails_7.2/bin/bundle +122 -0
  97. data/rails_app/rails_7.2/bin/docker-entrypoint +13 -0
  98. data/rails_app/rails_7.2/bin/rails +6 -0
  99. data/rails_app/rails_7.2/bin/rake +6 -0
  100. data/rails_app/rails_7.2/bin/rubocop +10 -0
  101. data/rails_app/rails_7.2/bin/setup +39 -0
  102. data/rails_app/rails_7.2/config/application.rb +46 -0
  103. data/rails_app/rails_7.2/config/boot.rb +5 -0
  104. data/rails_app/rails_7.2/config/credentials.yml.enc +1 -0
  105. data/rails_app/rails_7.2/config/database.yml +32 -0
  106. data/rails_app/rails_7.2/config/environment.rb +7 -0
  107. data/rails_app/rails_7.2/config/environments/development.rb +59 -0
  108. data/rails_app/rails_7.2/config/environments/production.rb +77 -0
  109. data/rails_app/rails_7.2/config/environments/test.rb +53 -0
  110. data/rails_app/rails_7.2/config/initializers/cors.rb +18 -0
  111. data/rails_app/rails_7.2/config/initializers/filter_parameter_logging.rb +10 -0
  112. data/rails_app/rails_7.2/config/initializers/inflections.rb +18 -0
  113. data/rails_app/rails_7.2/config/locales/en.yml +31 -0
  114. data/rails_app/rails_7.2/config/puma.rb +36 -0
  115. data/rails_app/rails_7.2/config/routes.rb +12 -0
  116. data/rails_app/rails_7.2/config.ru +8 -0
  117. data/rails_app/rails_7.2/db/seeds.rb +11 -0
  118. data/rails_app/rails_7.2/lib/tasks/.keep +0 -0
  119. data/rails_app/rails_7.2/public/robots.txt +3 -0
  120. data/rails_app/rails_7.2/spec/rails_helper.rb +13 -0
  121. data/rails_app/rails_7.2/spec/spec_helper.rb +13 -0
  122. data/rails_app/rails_7.2/storage/.keep +0 -0
  123. data/rails_app/rails_7.2/tmp/.keep +0 -0
  124. data/rails_app/rails_7.2/tmp/pids/.keep +0 -0
  125. data/rails_app/rails_7.2/tmp/storage/.keep +0 -0
  126. data/rails_app/rails_7.2/vendor/.keep +0 -0
  127. metadata +107 -7
@@ -2,7 +2,7 @@ PATH
2
2
  remote: ../..
3
3
  specs:
4
4
  my_api_client (0.24.0)
5
- activesupport (>= 6.0.0)
5
+ activesupport (>= 6.1.0)
6
6
  faraday (>= 0.17.1)
7
7
  jsonpath
8
8
  sawyer (>= 0.8.2)
@@ -10,60 +10,60 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (6.1.5.1)
14
- actionpack (= 6.1.5.1)
15
- activesupport (= 6.1.5.1)
13
+ actioncable (6.1.7.8)
14
+ actionpack (= 6.1.7.8)
15
+ activesupport (= 6.1.7.8)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
- actionmailbox (6.1.5.1)
19
- actionpack (= 6.1.5.1)
20
- activejob (= 6.1.5.1)
21
- activerecord (= 6.1.5.1)
22
- activestorage (= 6.1.5.1)
23
- activesupport (= 6.1.5.1)
18
+ actionmailbox (6.1.7.8)
19
+ actionpack (= 6.1.7.8)
20
+ activejob (= 6.1.7.8)
21
+ activerecord (= 6.1.7.8)
22
+ activestorage (= 6.1.7.8)
23
+ activesupport (= 6.1.7.8)
24
24
  mail (>= 2.7.1)
25
- actionmailer (6.1.5.1)
26
- actionpack (= 6.1.5.1)
27
- actionview (= 6.1.5.1)
28
- activejob (= 6.1.5.1)
29
- activesupport (= 6.1.5.1)
25
+ actionmailer (6.1.7.8)
26
+ actionpack (= 6.1.7.8)
27
+ actionview (= 6.1.7.8)
28
+ activejob (= 6.1.7.8)
29
+ activesupport (= 6.1.7.8)
30
30
  mail (~> 2.5, >= 2.5.4)
31
31
  rails-dom-testing (~> 2.0)
32
- actionpack (6.1.5.1)
33
- actionview (= 6.1.5.1)
34
- activesupport (= 6.1.5.1)
32
+ actionpack (6.1.7.8)
33
+ actionview (= 6.1.7.8)
34
+ activesupport (= 6.1.7.8)
35
35
  rack (~> 2.0, >= 2.0.9)
36
36
  rack-test (>= 0.6.3)
37
37
  rails-dom-testing (~> 2.0)
38
38
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
39
- actiontext (6.1.5.1)
40
- actionpack (= 6.1.5.1)
41
- activerecord (= 6.1.5.1)
42
- activestorage (= 6.1.5.1)
43
- activesupport (= 6.1.5.1)
39
+ actiontext (6.1.7.8)
40
+ actionpack (= 6.1.7.8)
41
+ activerecord (= 6.1.7.8)
42
+ activestorage (= 6.1.7.8)
43
+ activesupport (= 6.1.7.8)
44
44
  nokogiri (>= 1.8.5)
45
- actionview (6.1.5.1)
46
- activesupport (= 6.1.5.1)
45
+ actionview (6.1.7.8)
46
+ activesupport (= 6.1.7.8)
47
47
  builder (~> 3.1)
48
48
  erubi (~> 1.4)
49
49
  rails-dom-testing (~> 2.0)
50
50
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
- activejob (6.1.5.1)
52
- activesupport (= 6.1.5.1)
51
+ activejob (6.1.7.8)
52
+ activesupport (= 6.1.7.8)
53
53
  globalid (>= 0.3.6)
54
- activemodel (6.1.5.1)
55
- activesupport (= 6.1.5.1)
56
- activerecord (6.1.5.1)
57
- activemodel (= 6.1.5.1)
58
- activesupport (= 6.1.5.1)
59
- activestorage (6.1.5.1)
60
- actionpack (= 6.1.5.1)
61
- activejob (= 6.1.5.1)
62
- activerecord (= 6.1.5.1)
63
- activesupport (= 6.1.5.1)
54
+ activemodel (6.1.7.8)
55
+ activesupport (= 6.1.7.8)
56
+ activerecord (6.1.7.8)
57
+ activemodel (= 6.1.7.8)
58
+ activesupport (= 6.1.7.8)
59
+ activestorage (6.1.7.8)
60
+ actionpack (= 6.1.7.8)
61
+ activejob (= 6.1.7.8)
62
+ activerecord (= 6.1.7.8)
63
+ activesupport (= 6.1.7.8)
64
64
  marcel (~> 1.0)
65
65
  mini_mime (>= 1.1.0)
66
- activesupport (6.1.5.1)
66
+ activesupport (6.1.7.8)
67
67
  concurrent-ruby (~> 1.0, >= 1.0.2)
68
68
  i18n (>= 1.6, < 2)
69
69
  minitest (>= 5.1)
@@ -73,10 +73,10 @@ GEM
73
73
  public_suffix (>= 2.0.2, < 6.0)
74
74
  builder (3.2.4)
75
75
  byebug (11.1.3)
76
- concurrent-ruby (1.1.10)
76
+ concurrent-ruby (1.3.1)
77
77
  crass (1.0.6)
78
78
  diff-lcs (1.4.4)
79
- erubi (1.10.0)
79
+ erubi (1.12.0)
80
80
  faraday (2.7.4)
81
81
  faraday-net_http (>= 2.0, < 3.1)
82
82
  ruby2_keywords (>= 0.0.4)
@@ -84,56 +84,58 @@ GEM
84
84
  ffi (1.14.2)
85
85
  globalid (1.0.1)
86
86
  activesupport (>= 5.0)
87
- i18n (1.12.0)
87
+ i18n (1.14.5)
88
88
  concurrent-ruby (~> 1.0)
89
89
  jsonpath (1.1.2)
90
90
  multi_json
91
91
  listen (3.3.3)
92
92
  rb-fsevent (~> 0.10, >= 0.10.3)
93
93
  rb-inotify (~> 0.9, >= 0.9.10)
94
- loofah (2.19.1)
94
+ loofah (2.22.0)
95
95
  crass (~> 1.0.2)
96
- nokogiri (>= 1.5.9)
96
+ nokogiri (>= 1.12.0)
97
97
  mail (2.7.1)
98
98
  mini_mime (>= 0.1.1)
99
99
  marcel (1.0.2)
100
100
  method_source (1.0.0)
101
101
  mini_mime (1.1.2)
102
- mini_portile2 (2.8.1)
103
- minitest (5.17.0)
102
+ mini_portile2 (2.8.7)
103
+ minitest (5.23.1)
104
104
  multi_json (1.15.0)
105
105
  nio4r (2.5.8)
106
- nokogiri (1.14.3)
107
- mini_portile2 (~> 2.8.0)
106
+ nokogiri (1.16.5)
107
+ mini_portile2 (~> 2.8.2)
108
108
  racc (~> 1.4)
109
109
  public_suffix (5.0.1)
110
- racc (1.6.2)
111
- rack (2.2.6.4)
110
+ racc (1.8.0)
111
+ rack (2.2.8.1)
112
112
  rack-test (1.1.0)
113
113
  rack (>= 1.0, < 3)
114
- rails (6.1.5.1)
115
- actioncable (= 6.1.5.1)
116
- actionmailbox (= 6.1.5.1)
117
- actionmailer (= 6.1.5.1)
118
- actionpack (= 6.1.5.1)
119
- actiontext (= 6.1.5.1)
120
- actionview (= 6.1.5.1)
121
- activejob (= 6.1.5.1)
122
- activemodel (= 6.1.5.1)
123
- activerecord (= 6.1.5.1)
124
- activestorage (= 6.1.5.1)
125
- activesupport (= 6.1.5.1)
114
+ rails (6.1.7.8)
115
+ actioncable (= 6.1.7.8)
116
+ actionmailbox (= 6.1.7.8)
117
+ actionmailer (= 6.1.7.8)
118
+ actionpack (= 6.1.7.8)
119
+ actiontext (= 6.1.7.8)
120
+ actionview (= 6.1.7.8)
121
+ activejob (= 6.1.7.8)
122
+ activemodel (= 6.1.7.8)
123
+ activerecord (= 6.1.7.8)
124
+ activestorage (= 6.1.7.8)
125
+ activesupport (= 6.1.7.8)
126
126
  bundler (>= 1.15.0)
127
- railties (= 6.1.5.1)
127
+ railties (= 6.1.7.8)
128
128
  sprockets-rails (>= 2.0.0)
129
- rails-dom-testing (2.0.3)
130
- activesupport (>= 4.2.0)
129
+ rails-dom-testing (2.2.0)
130
+ activesupport (>= 5.0.0)
131
+ minitest
131
132
  nokogiri (>= 1.6)
132
- rails-html-sanitizer (1.4.4)
133
- loofah (~> 2.19, >= 2.19.1)
134
- railties (6.1.5.1)
135
- actionpack (= 6.1.5.1)
136
- activesupport (= 6.1.5.1)
133
+ rails-html-sanitizer (1.6.0)
134
+ loofah (~> 2.21)
135
+ nokogiri (~> 1.14)
136
+ railties (6.1.7.8)
137
+ actionpack (= 6.1.7.8)
138
+ activesupport (= 6.1.7.8)
137
139
  method_source
138
140
  rake (>= 12.2)
139
141
  thor (~> 1.0)
@@ -171,12 +173,12 @@ GEM
171
173
  sprockets (>= 3.0.0)
172
174
  sqlite3 (1.4.2)
173
175
  thor (1.2.1)
174
- tzinfo (2.0.5)
176
+ tzinfo (2.0.6)
175
177
  concurrent-ruby (~> 1.0)
176
178
  websocket-driver (0.7.5)
177
179
  websocket-extensions (>= 0.1.0)
178
180
  websocket-extensions (0.1.5)
179
- zeitwerk (2.6.6)
181
+ zeitwerk (2.6.15)
180
182
 
181
183
  PLATFORMS
182
184
  ruby
@@ -2,7 +2,7 @@ PATH
2
2
  remote: ../..
3
3
  specs:
4
4
  my_api_client (0.24.0)
5
- activesupport (>= 6.0.0)
5
+ activesupport (>= 6.1.0)
6
6
  faraday (>= 0.17.1)
7
7
  jsonpath
8
8
  sawyer (>= 0.8.2)
@@ -10,67 +10,67 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.0.2.4)
14
- actionpack (= 7.0.2.4)
15
- activesupport (= 7.0.2.4)
13
+ actioncable (7.0.8.4)
14
+ actionpack (= 7.0.8.4)
15
+ activesupport (= 7.0.8.4)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
- actionmailbox (7.0.2.4)
19
- actionpack (= 7.0.2.4)
20
- activejob (= 7.0.2.4)
21
- activerecord (= 7.0.2.4)
22
- activestorage (= 7.0.2.4)
23
- activesupport (= 7.0.2.4)
18
+ actionmailbox (7.0.8.4)
19
+ actionpack (= 7.0.8.4)
20
+ activejob (= 7.0.8.4)
21
+ activerecord (= 7.0.8.4)
22
+ activestorage (= 7.0.8.4)
23
+ activesupport (= 7.0.8.4)
24
24
  mail (>= 2.7.1)
25
25
  net-imap
26
26
  net-pop
27
27
  net-smtp
28
- actionmailer (7.0.2.4)
29
- actionpack (= 7.0.2.4)
30
- actionview (= 7.0.2.4)
31
- activejob (= 7.0.2.4)
32
- activesupport (= 7.0.2.4)
28
+ actionmailer (7.0.8.4)
29
+ actionpack (= 7.0.8.4)
30
+ actionview (= 7.0.8.4)
31
+ activejob (= 7.0.8.4)
32
+ activesupport (= 7.0.8.4)
33
33
  mail (~> 2.5, >= 2.5.4)
34
34
  net-imap
35
35
  net-pop
36
36
  net-smtp
37
37
  rails-dom-testing (~> 2.0)
38
- actionpack (7.0.2.4)
39
- actionview (= 7.0.2.4)
40
- activesupport (= 7.0.2.4)
41
- rack (~> 2.0, >= 2.2.0)
38
+ actionpack (7.0.8.4)
39
+ actionview (= 7.0.8.4)
40
+ activesupport (= 7.0.8.4)
41
+ rack (~> 2.0, >= 2.2.4)
42
42
  rack-test (>= 0.6.3)
43
43
  rails-dom-testing (~> 2.0)
44
44
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
45
- actiontext (7.0.2.4)
46
- actionpack (= 7.0.2.4)
47
- activerecord (= 7.0.2.4)
48
- activestorage (= 7.0.2.4)
49
- activesupport (= 7.0.2.4)
45
+ actiontext (7.0.8.4)
46
+ actionpack (= 7.0.8.4)
47
+ activerecord (= 7.0.8.4)
48
+ activestorage (= 7.0.8.4)
49
+ activesupport (= 7.0.8.4)
50
50
  globalid (>= 0.6.0)
51
51
  nokogiri (>= 1.8.5)
52
- actionview (7.0.2.4)
53
- activesupport (= 7.0.2.4)
52
+ actionview (7.0.8.4)
53
+ activesupport (= 7.0.8.4)
54
54
  builder (~> 3.1)
55
55
  erubi (~> 1.4)
56
56
  rails-dom-testing (~> 2.0)
57
57
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
58
- activejob (7.0.2.4)
59
- activesupport (= 7.0.2.4)
58
+ activejob (7.0.8.4)
59
+ activesupport (= 7.0.8.4)
60
60
  globalid (>= 0.3.6)
61
- activemodel (7.0.2.4)
62
- activesupport (= 7.0.2.4)
63
- activerecord (7.0.2.4)
64
- activemodel (= 7.0.2.4)
65
- activesupport (= 7.0.2.4)
66
- activestorage (7.0.2.4)
67
- actionpack (= 7.0.2.4)
68
- activejob (= 7.0.2.4)
69
- activerecord (= 7.0.2.4)
70
- activesupport (= 7.0.2.4)
61
+ activemodel (7.0.8.4)
62
+ activesupport (= 7.0.8.4)
63
+ activerecord (7.0.8.4)
64
+ activemodel (= 7.0.8.4)
65
+ activesupport (= 7.0.8.4)
66
+ activestorage (7.0.8.4)
67
+ actionpack (= 7.0.8.4)
68
+ activejob (= 7.0.8.4)
69
+ activerecord (= 7.0.8.4)
70
+ activesupport (= 7.0.8.4)
71
71
  marcel (~> 1.0)
72
72
  mini_mime (>= 1.1.0)
73
- activesupport (7.0.2.4)
73
+ activesupport (7.0.8.4)
74
74
  concurrent-ruby (~> 1.0, >= 1.0.2)
75
75
  i18n (>= 1.6, < 2)
76
76
  minitest (>= 5.1)
@@ -78,36 +78,36 @@ GEM
78
78
  addressable (2.8.1)
79
79
  public_suffix (>= 2.0.2, < 6.0)
80
80
  builder (3.2.4)
81
- concurrent-ruby (1.1.10)
81
+ concurrent-ruby (1.3.1)
82
82
  crass (1.0.6)
83
83
  debug (1.4.0)
84
84
  irb (>= 1.3.6)
85
85
  reline (>= 0.2.7)
86
86
  diff-lcs (1.5.0)
87
87
  digest (3.1.0)
88
- erubi (1.10.0)
88
+ erubi (1.12.0)
89
89
  faraday (2.7.4)
90
90
  faraday-net_http (>= 2.0, < 3.1)
91
91
  ruby2_keywords (>= 0.0.4)
92
92
  faraday-net_http (3.0.2)
93
- globalid (1.0.1)
94
- activesupport (>= 5.0)
95
- i18n (1.12.0)
93
+ globalid (1.2.1)
94
+ activesupport (>= 6.1)
95
+ i18n (1.14.5)
96
96
  concurrent-ruby (~> 1.0)
97
97
  io-console (0.5.9)
98
98
  irb (1.4.1)
99
99
  reline (>= 0.3.0)
100
100
  jsonpath (1.1.2)
101
101
  multi_json
102
- loofah (2.19.1)
102
+ loofah (2.22.0)
103
103
  crass (~> 1.0.2)
104
- nokogiri (>= 1.5.9)
104
+ nokogiri (>= 1.12.0)
105
105
  mail (2.7.1)
106
106
  mini_mime (>= 0.1.1)
107
- marcel (1.0.2)
107
+ marcel (1.0.4)
108
108
  method_source (1.0.0)
109
- mini_mime (1.1.2)
110
- minitest (5.17.0)
109
+ mini_mime (1.1.5)
110
+ minitest (5.23.1)
111
111
  multi_json (1.15.0)
112
112
  net-imap (0.2.3)
113
113
  digest
@@ -124,37 +124,39 @@ GEM
124
124
  net-protocol
125
125
  timeout
126
126
  nio4r (2.5.8)
127
- nokogiri (1.14.3-x86_64-darwin)
127
+ nokogiri (1.16.5-x86_64-darwin)
128
128
  racc (~> 1.4)
129
- nokogiri (1.14.3-x86_64-linux)
129
+ nokogiri (1.16.5-x86_64-linux)
130
130
  racc (~> 1.4)
131
131
  public_suffix (5.0.1)
132
- racc (1.6.2)
133
- rack (2.2.6.4)
134
- rack-test (1.1.0)
135
- rack (>= 1.0, < 3)
136
- rails (7.0.2.4)
137
- actioncable (= 7.0.2.4)
138
- actionmailbox (= 7.0.2.4)
139
- actionmailer (= 7.0.2.4)
140
- actionpack (= 7.0.2.4)
141
- actiontext (= 7.0.2.4)
142
- actionview (= 7.0.2.4)
143
- activejob (= 7.0.2.4)
144
- activemodel (= 7.0.2.4)
145
- activerecord (= 7.0.2.4)
146
- activestorage (= 7.0.2.4)
147
- activesupport (= 7.0.2.4)
132
+ racc (1.8.0)
133
+ rack (2.2.9)
134
+ rack-test (2.1.0)
135
+ rack (>= 1.3)
136
+ rails (7.0.8.4)
137
+ actioncable (= 7.0.8.4)
138
+ actionmailbox (= 7.0.8.4)
139
+ actionmailer (= 7.0.8.4)
140
+ actionpack (= 7.0.8.4)
141
+ actiontext (= 7.0.8.4)
142
+ actionview (= 7.0.8.4)
143
+ activejob (= 7.0.8.4)
144
+ activemodel (= 7.0.8.4)
145
+ activerecord (= 7.0.8.4)
146
+ activestorage (= 7.0.8.4)
147
+ activesupport (= 7.0.8.4)
148
148
  bundler (>= 1.15.0)
149
- railties (= 7.0.2.4)
150
- rails-dom-testing (2.0.3)
151
- activesupport (>= 4.2.0)
149
+ railties (= 7.0.8.4)
150
+ rails-dom-testing (2.2.0)
151
+ activesupport (>= 5.0.0)
152
+ minitest
152
153
  nokogiri (>= 1.6)
153
- rails-html-sanitizer (1.4.4)
154
- loofah (~> 2.19, >= 2.19.1)
155
- railties (7.0.2.4)
156
- actionpack (= 7.0.2.4)
157
- activesupport (= 7.0.2.4)
154
+ rails-html-sanitizer (1.6.0)
155
+ loofah (~> 2.21)
156
+ nokogiri (~> 1.14)
157
+ railties (7.0.8.4)
158
+ actionpack (= 7.0.8.4)
159
+ activesupport (= 7.0.8.4)
158
160
  method_source
159
161
  rake (>= 12.2)
160
162
  thor (~> 1.0)
@@ -187,7 +189,7 @@ GEM
187
189
  strscan (3.0.1)
188
190
  thor (1.2.1)
189
191
  timeout (0.2.0)
190
- tzinfo (2.0.5)
192
+ tzinfo (2.0.6)
191
193
  concurrent-ruby (~> 1.0)
192
194
  websocket-driver (0.7.5)
193
195
  websocket-extensions (>= 0.1.0)
@@ -0,0 +1,31 @@
1
+ # See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.
2
+
3
+ # Ignore git directory.
4
+ /.git/
5
+
6
+ # Ignore bundler config.
7
+ /.bundle
8
+
9
+ # Ignore all environment files (except templates).
10
+ /.env*
11
+ !/.env*.erb
12
+
13
+ # Ignore all default key files.
14
+ /config/master.key
15
+ /config/credentials/*.key
16
+
17
+ # Ignore all logfiles and tempfiles.
18
+ /log/*
19
+ /tmp/*
20
+ !/log/.keep
21
+ !/tmp/.keep
22
+
23
+ # Ignore pidfiles, but keep the directory.
24
+ /tmp/pids/*
25
+ !/tmp/pids/.keep
26
+
27
+ # Ignore storage (uploaded files in development and any SQLite databases).
28
+ /storage/*
29
+ !/storage/.keep
30
+ /tmp/storage/*
31
+ !/tmp/storage/.keep
@@ -0,0 +1 @@
1
+ --require spec_helper
@@ -0,0 +1,55 @@
1
+ # syntax = docker/dockerfile:1
2
+
3
+ # Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
4
+ ARG RUBY_VERSION=3.1.6
5
+ FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
6
+
7
+ # Rails app lives here
8
+ WORKDIR /rails
9
+
10
+ # Set production environment
11
+ ENV RAILS_ENV="production" \
12
+ BUNDLE_DEPLOYMENT="1" \
13
+ BUNDLE_PATH="/usr/local/bundle" \
14
+ BUNDLE_WITHOUT="development"
15
+
16
+
17
+ # Throw-away build stage to reduce size of final image
18
+ FROM base as build
19
+
20
+ # Install packages needed to build gems
21
+ RUN apt-get update -qq && \
22
+ apt-get install --no-install-recommends -y build-essential git pkg-config
23
+
24
+ # Install application gems
25
+ COPY Gemfile Gemfile.lock ./
26
+ RUN bundle install && \
27
+ rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git
28
+
29
+ # Copy application code
30
+ COPY . .
31
+
32
+
33
+ # Final stage for app image
34
+ FROM base
35
+
36
+ # Install packages needed for deployment
37
+ RUN apt-get update -qq && \
38
+ apt-get install --no-install-recommends -y curl libsqlite3-0 && \
39
+ rm -rf /var/lib/apt/lists /var/cache/apt/archives
40
+
41
+ # Copy built artifacts: gems, application
42
+ COPY --from=build /usr/local/bundle /usr/local/bundle
43
+ COPY --from=build /rails /rails
44
+
45
+ # Run and own only the runtime files as a non-root user for security
46
+ RUN useradd rails --create-home --shell /bin/bash && \
47
+ chown -R rails:rails db log storage tmp
48
+ USER rails:rails
49
+
50
+ # Entrypoint prepares the database.
51
+ ENTRYPOINT ["/rails/bin/docker-entrypoint"]
52
+
53
+ # Start the server by default, this can be overwritten at runtime
54
+ EXPOSE 3000
55
+ CMD ["./bin/rails", "server"]
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gem 'my_api_client', path: '../..'
6
+ gem 'rails', '~> 7.1.4'
7
+ gem 'sqlite3', '>= 1.4'
8
+
9
+ group :development, :test do
10
+ gem 'debug', platforms: %i[mri windows]
11
+ gem 'rspec-rails'
12
+ end
13
+
14
+ group :development do
15
+ gem 'error_highlight', '>= 0.4.0', platforms: [:ruby]
16
+ end