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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +8 -7
- data/.rubocop.yml +7 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +71 -0
- data/Gemfile.lock +95 -81
- data/README.jp.md +2 -2
- data/README.md +2 -2
- data/example/api_clients/my_error_api_client.rb +1 -1
- data/example/api_clients/my_header_api_client.rb +1 -1
- data/example/api_clients/my_pagination_api_client.rb +2 -2
- data/example/api_clients/my_rest_api_client.rb +10 -10
- data/example/api_clients/my_status_api_client.rb +1 -1
- data/gemfiles/rails_7.1.gemfile +15 -0
- data/gemfiles/rails_7.2.gemfile +15 -0
- data/lib/my_api_client/base.rb +1 -1
- data/lib/my_api_client/error_handling.rb +1 -1
- data/lib/my_api_client/errors/network_error.rb +1 -1
- data/lib/my_api_client/errors.rb +1 -1
- data/lib/my_api_client/exceptions.rb +1 -1
- data/lib/my_api_client/params/params.rb +1 -1
- data/lib/my_api_client/params/request.rb +8 -8
- data/lib/my_api_client/request/basic.rb +2 -2
- data/lib/my_api_client/request/executor.rb +1 -1
- data/lib/my_api_client/request/pagination.rb +1 -3
- data/lib/my_api_client/request.rb +5 -5
- data/lib/my_api_client/rspec/matcher_helper.rb +3 -3
- data/lib/my_api_client/rspec/matchers/request_to.rb +1 -1
- data/lib/my_api_client/version.rb +1 -1
- data/my_api/Gemfile +1 -1
- data/my_api/Gemfile.lock +83 -71
- data/my_api/app/controllers/error_controller.rb +1 -1
- data/my_api/app/controllers/pagination_controller.rb +1 -1
- data/my_api/app/controllers/rest_controller.rb +4 -4
- data/my_api/app/controllers/status_controller.rb +1 -1
- data/my_api/spec/controllers/error_controller_spec.rb +4 -4
- data/my_api/spec/controllers/status_controller_spec.rb +3 -3
- data/my_api_client.gemspec +2 -1
- data/rails_app/rails_6.1/Gemfile.lock +73 -71
- data/rails_app/rails_7.0/Gemfile.lock +78 -76
- data/rails_app/rails_7.1/.dockerignore +31 -0
- data/rails_app/rails_7.1/.rspec +1 -0
- data/rails_app/rails_7.1/Dockerfile +55 -0
- data/rails_app/rails_7.1/Gemfile +16 -0
- data/rails_app/rails_7.1/Gemfile.lock +241 -0
- data/rails_app/rails_7.1/README.md +24 -0
- data/rails_app/rails_7.1/Rakefile +8 -0
- data/rails_app/rails_7.1/app/controllers/application_controller.rb +4 -0
- data/rails_app/rails_7.1/app/controllers/concerns/.keep +0 -0
- data/rails_app/rails_7.1/app/models/application_record.rb +5 -0
- data/rails_app/rails_7.1/app/models/concerns/.keep +0 -0
- data/rails_app/rails_7.1/bin/bundle +122 -0
- data/rails_app/rails_7.1/bin/docker-entrypoint +8 -0
- data/rails_app/rails_7.1/bin/rails +6 -0
- data/rails_app/rails_7.1/bin/rake +6 -0
- data/rails_app/rails_7.1/bin/setup +35 -0
- data/rails_app/rails_7.1/config/application.rb +46 -0
- data/rails_app/rails_7.1/config/boot.rb +5 -0
- data/rails_app/rails_7.1/config/credentials.yml.enc +1 -0
- data/rails_app/rails_7.1/config/database.yml +25 -0
- data/rails_app/rails_7.1/config/environment.rb +7 -0
- data/rails_app/rails_7.1/config/environments/development.rb +58 -0
- data/rails_app/rails_7.1/config/environments/production.rb +74 -0
- data/rails_app/rails_7.1/config/environments/test.rb +56 -0
- data/rails_app/rails_7.1/config/initializers/cors.rb +17 -0
- data/rails_app/rails_7.1/config/initializers/filter_parameter_logging.rb +10 -0
- data/rails_app/rails_7.1/config/initializers/inflections.rb +17 -0
- data/rails_app/rails_7.1/config/locales/en.yml +31 -0
- data/rails_app/rails_7.1/config/puma.rb +46 -0
- data/rails_app/rails_7.1/config/routes.rb +12 -0
- data/rails_app/rails_7.1/config.ru +8 -0
- data/rails_app/rails_7.1/db/seeds.rb +10 -0
- data/rails_app/rails_7.1/lib/tasks/.keep +0 -0
- data/rails_app/rails_7.1/public/robots.txt +2 -0
- data/rails_app/rails_7.1/spec/rails_helper.rb +13 -0
- data/rails_app/rails_7.1/spec/spec_helper.rb +13 -0
- data/rails_app/rails_7.1/storage/.keep +0 -0
- data/rails_app/rails_7.1/tmp/.keep +0 -0
- data/rails_app/rails_7.1/tmp/pids/.keep +0 -0
- data/rails_app/rails_7.1/tmp/storage/.keep +0 -0
- data/rails_app/rails_7.1/vendor/.keep +0 -0
- data/rails_app/rails_7.2/.dockerignore +42 -0
- data/rails_app/rails_7.2/.github/dependabot.yml +12 -0
- data/rails_app/rails_7.2/.github/workflows/ci.yml +55 -0
- data/rails_app/rails_7.2/.rspec +1 -0
- data/rails_app/rails_7.2/Dockerfile +62 -0
- data/rails_app/rails_7.2/Gemfile +15 -0
- data/rails_app/rails_7.2/Gemfile.lock +240 -0
- data/rails_app/rails_7.2/README.md +24 -0
- data/rails_app/rails_7.2/Rakefile +8 -0
- data/rails_app/rails_7.2/app/controllers/application_controller.rb +4 -0
- data/rails_app/rails_7.2/app/controllers/concerns/.keep +0 -0
- data/rails_app/rails_7.2/app/models/application_record.rb +5 -0
- data/rails_app/rails_7.2/app/models/concerns/.keep +0 -0
- data/rails_app/rails_7.2/bin/brakeman +9 -0
- data/rails_app/rails_7.2/bin/bundle +122 -0
- data/rails_app/rails_7.2/bin/docker-entrypoint +13 -0
- data/rails_app/rails_7.2/bin/rails +6 -0
- data/rails_app/rails_7.2/bin/rake +6 -0
- data/rails_app/rails_7.2/bin/rubocop +10 -0
- data/rails_app/rails_7.2/bin/setup +39 -0
- data/rails_app/rails_7.2/config/application.rb +46 -0
- data/rails_app/rails_7.2/config/boot.rb +5 -0
- data/rails_app/rails_7.2/config/credentials.yml.enc +1 -0
- data/rails_app/rails_7.2/config/database.yml +32 -0
- data/rails_app/rails_7.2/config/environment.rb +7 -0
- data/rails_app/rails_7.2/config/environments/development.rb +59 -0
- data/rails_app/rails_7.2/config/environments/production.rb +77 -0
- data/rails_app/rails_7.2/config/environments/test.rb +53 -0
- data/rails_app/rails_7.2/config/initializers/cors.rb +18 -0
- data/rails_app/rails_7.2/config/initializers/filter_parameter_logging.rb +10 -0
- data/rails_app/rails_7.2/config/initializers/inflections.rb +18 -0
- data/rails_app/rails_7.2/config/locales/en.yml +31 -0
- data/rails_app/rails_7.2/config/puma.rb +36 -0
- data/rails_app/rails_7.2/config/routes.rb +12 -0
- data/rails_app/rails_7.2/config.ru +8 -0
- data/rails_app/rails_7.2/db/seeds.rb +11 -0
- data/rails_app/rails_7.2/lib/tasks/.keep +0 -0
- data/rails_app/rails_7.2/public/robots.txt +3 -0
- data/rails_app/rails_7.2/spec/rails_helper.rb +13 -0
- data/rails_app/rails_7.2/spec/spec_helper.rb +13 -0
- data/rails_app/rails_7.2/storage/.keep +0 -0
- data/rails_app/rails_7.2/tmp/.keep +0 -0
- data/rails_app/rails_7.2/tmp/pids/.keep +0 -0
- data/rails_app/rails_7.2/tmp/storage/.keep +0 -0
- data/rails_app/rails_7.2/vendor/.keep +0 -0
- 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.
|
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.
|
14
|
-
actionpack (= 6.1.
|
15
|
-
activesupport (= 6.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.
|
19
|
-
actionpack (= 6.1.
|
20
|
-
activejob (= 6.1.
|
21
|
-
activerecord (= 6.1.
|
22
|
-
activestorage (= 6.1.
|
23
|
-
activesupport (= 6.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.
|
26
|
-
actionpack (= 6.1.
|
27
|
-
actionview (= 6.1.
|
28
|
-
activejob (= 6.1.
|
29
|
-
activesupport (= 6.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.
|
33
|
-
actionview (= 6.1.
|
34
|
-
activesupport (= 6.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.
|
40
|
-
actionpack (= 6.1.
|
41
|
-
activerecord (= 6.1.
|
42
|
-
activestorage (= 6.1.
|
43
|
-
activesupport (= 6.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.
|
46
|
-
activesupport (= 6.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.
|
52
|
-
activesupport (= 6.1.
|
51
|
+
activejob (6.1.7.8)
|
52
|
+
activesupport (= 6.1.7.8)
|
53
53
|
globalid (>= 0.3.6)
|
54
|
-
activemodel (6.1.
|
55
|
-
activesupport (= 6.1.
|
56
|
-
activerecord (6.1.
|
57
|
-
activemodel (= 6.1.
|
58
|
-
activesupport (= 6.1.
|
59
|
-
activestorage (6.1.
|
60
|
-
actionpack (= 6.1.
|
61
|
-
activejob (= 6.1.
|
62
|
-
activerecord (= 6.1.
|
63
|
-
activesupport (= 6.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.
|
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
|
76
|
+
concurrent-ruby (1.3.1)
|
77
77
|
crass (1.0.6)
|
78
78
|
diff-lcs (1.4.4)
|
79
|
-
erubi (1.
|
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.
|
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.
|
94
|
+
loofah (2.22.0)
|
95
95
|
crass (~> 1.0.2)
|
96
|
-
nokogiri (>= 1.
|
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.
|
103
|
-
minitest (5.
|
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.
|
107
|
-
mini_portile2 (~> 2.8.
|
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.
|
111
|
-
rack (2.2.
|
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.
|
115
|
-
actioncable (= 6.1.
|
116
|
-
actionmailbox (= 6.1.
|
117
|
-
actionmailer (= 6.1.
|
118
|
-
actionpack (= 6.1.
|
119
|
-
actiontext (= 6.1.
|
120
|
-
actionview (= 6.1.
|
121
|
-
activejob (= 6.1.
|
122
|
-
activemodel (= 6.1.
|
123
|
-
activerecord (= 6.1.
|
124
|
-
activestorage (= 6.1.
|
125
|
-
activesupport (= 6.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.
|
127
|
+
railties (= 6.1.7.8)
|
128
128
|
sprockets-rails (>= 2.0.0)
|
129
|
-
rails-dom-testing (2.0
|
130
|
-
activesupport (>=
|
129
|
+
rails-dom-testing (2.2.0)
|
130
|
+
activesupport (>= 5.0.0)
|
131
|
+
minitest
|
131
132
|
nokogiri (>= 1.6)
|
132
|
-
rails-html-sanitizer (1.
|
133
|
-
loofah (~> 2.
|
134
|
-
|
135
|
-
|
136
|
-
|
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.
|
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.
|
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.
|
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.
|
14
|
-
actionpack (= 7.0.
|
15
|
-
activesupport (= 7.0.
|
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.
|
19
|
-
actionpack (= 7.0.
|
20
|
-
activejob (= 7.0.
|
21
|
-
activerecord (= 7.0.
|
22
|
-
activestorage (= 7.0.
|
23
|
-
activesupport (= 7.0.
|
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.
|
29
|
-
actionpack (= 7.0.
|
30
|
-
actionview (= 7.0.
|
31
|
-
activejob (= 7.0.
|
32
|
-
activesupport (= 7.0.
|
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.
|
39
|
-
actionview (= 7.0.
|
40
|
-
activesupport (= 7.0.
|
41
|
-
rack (~> 2.0, >= 2.2.
|
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.
|
46
|
-
actionpack (= 7.0.
|
47
|
-
activerecord (= 7.0.
|
48
|
-
activestorage (= 7.0.
|
49
|
-
activesupport (= 7.0.
|
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.
|
53
|
-
activesupport (= 7.0.
|
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.
|
59
|
-
activesupport (= 7.0.
|
58
|
+
activejob (7.0.8.4)
|
59
|
+
activesupport (= 7.0.8.4)
|
60
60
|
globalid (>= 0.3.6)
|
61
|
-
activemodel (7.0.
|
62
|
-
activesupport (= 7.0.
|
63
|
-
activerecord (7.0.
|
64
|
-
activemodel (= 7.0.
|
65
|
-
activesupport (= 7.0.
|
66
|
-
activestorage (7.0.
|
67
|
-
actionpack (= 7.0.
|
68
|
-
activejob (= 7.0.
|
69
|
-
activerecord (= 7.0.
|
70
|
-
activesupport (= 7.0.
|
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.
|
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
|
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.
|
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.
|
94
|
-
activesupport (>=
|
95
|
-
i18n (1.
|
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.
|
102
|
+
loofah (2.22.0)
|
103
103
|
crass (~> 1.0.2)
|
104
|
-
nokogiri (>= 1.
|
104
|
+
nokogiri (>= 1.12.0)
|
105
105
|
mail (2.7.1)
|
106
106
|
mini_mime (>= 0.1.1)
|
107
|
-
marcel (1.0.
|
107
|
+
marcel (1.0.4)
|
108
108
|
method_source (1.0.0)
|
109
|
-
mini_mime (1.1.
|
110
|
-
minitest (5.
|
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.
|
127
|
+
nokogiri (1.16.5-x86_64-darwin)
|
128
128
|
racc (~> 1.4)
|
129
|
-
nokogiri (1.
|
129
|
+
nokogiri (1.16.5-x86_64-linux)
|
130
130
|
racc (~> 1.4)
|
131
131
|
public_suffix (5.0.1)
|
132
|
-
racc (1.
|
133
|
-
rack (2.2.
|
134
|
-
rack-test (
|
135
|
-
rack (>= 1.
|
136
|
-
rails (7.0.
|
137
|
-
actioncable (= 7.0.
|
138
|
-
actionmailbox (= 7.0.
|
139
|
-
actionmailer (= 7.0.
|
140
|
-
actionpack (= 7.0.
|
141
|
-
actiontext (= 7.0.
|
142
|
-
actionview (= 7.0.
|
143
|
-
activejob (= 7.0.
|
144
|
-
activemodel (= 7.0.
|
145
|
-
activerecord (= 7.0.
|
146
|
-
activestorage (= 7.0.
|
147
|
-
activesupport (= 7.0.
|
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.
|
150
|
-
rails-dom-testing (2.0
|
151
|
-
activesupport (>=
|
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.
|
154
|
-
loofah (~> 2.
|
155
|
-
|
156
|
-
|
157
|
-
|
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.
|
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
|