minato-utils 0.5.1 → 0.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4790e5eac6a618b9d60b1334c1dddd21a86266d54254f23b7487fac0e58fddac
4
- data.tar.gz: 3677237c2352a7c541f89f333d1b482adff2a2a00d4fbd2328f5f42c1402008a
3
+ metadata.gz: 75697ffc149238ead385297e9d08deddc52982f701d7c265bcbe6887be6e90d6
4
+ data.tar.gz: 4b10cc9d6b72de96e92c1ee318d576e06cfd25f78e7a3ce182ce1504865dbbc3
5
5
  SHA512:
6
- metadata.gz: 966477253b0687515e0f884cb34c8ffc2904c398c064ed73b01a7dbc3d3be1bbeffd9c00ab2ebca6e9ec35354d3ed241ce6971f7ae6d272174bd1ad08f8b729b
7
- data.tar.gz: b0fd482a96802b487ffc884b451d5c32aa75064ab2db8bae193a261de5180cd5335b85ac45040ea3a2961446c825041d37d20abc92b804bb5952f3700d80852b
6
+ metadata.gz: 6dde07156482b818c839ef8ee0b85056aa04c2d8dc2b73369a0ec23b5bde65761cabeea2b099a6bb1877c5a5db22e1c1166db92c6a11ce6c22d01da9795590c6
7
+ data.tar.gz: 34afe313dcad36c149e6a26c41b747ae35dea68990380c74eebafc2edfa27db433f8de4b2fcc438ed52d8e538990faf7a3195abfbe4a3c493af995604fba9189
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "${localWorkspaceFolderBasename}",
3
+ "dockerComposeFile": [
4
+ "../compose.yml",
5
+ "docker-compose.yml"
6
+ ],
7
+ "service": "minato-ruby-utils",
8
+ "workspaceFolder": "/usr/src/api",
9
+ "features": {
10
+ "ghcr.io/devcontainers/features/common-utils:2": {},
11
+ "ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {
12
+ "plugins": "zsh-autosuggestions zsh-syntax-highlighting",
13
+ "omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-syntax-highlighting"
14
+ },
15
+ "ghcr.io/guiyomh/features/vim:0": {},
16
+ "ghcr.io/devcontainers/features/git:1.1.0": {}
17
+ },
18
+ "customizations": {
19
+ "vscode": {
20
+ "extensions": [
21
+ "eamodio.gitlens",
22
+ "redhat.vscode-yaml",
23
+ "EditorConfig.EditorConfig",
24
+ "GitLab.gitlab-workflow",
25
+ "MS-vsliveshare.vsliveshare"
26
+ ],
27
+ "settings": {
28
+ "terminal.integrated.defaultProfile.linux": "zsh",
29
+ "terminal.integrated.defaultProfile.windows": "zsh",
30
+ "terminal.integrated.defaultProfile.osx": "zsh"
31
+ }
32
+ }
33
+ },
34
+ "postCreateCommand": "bundle config --local GITLAB__COM gitlab-ci-token:$GITLAB_AUTH_TOKEN",
35
+ "postStartCommand": "bundle install"
36
+ }
@@ -0,0 +1,8 @@
1
+ version: '3.8'
2
+
3
+ services:
4
+ minato-ruby-utils:
5
+ volumes:
6
+ - .:/usr/src/api:cached
7
+ entrypoint: []
8
+ command: /bin/sh -c "while sleep 1000; do :; done"
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  *.gem
2
2
  *.code-workspace
3
3
  .rbenv-gemsets
4
+ .env
data/.gitlab-ci.yml CHANGED
@@ -1,2 +1,5 @@
1
1
  include:
2
- - remote: https://gitlab.com/ferreri/minato/minato-ci/-/raw/v1.0.0/gem/.gitlab-ci.yml
2
+ - remote: https://gitlab.com/ferreri/minato/minato-ci/-/raw/v2.1.0/presets/gem.gitlab-ci.yml
3
+
4
+ .common:
5
+ image: ruby:3.2
data/.rubocop.yml CHANGED
@@ -7,7 +7,7 @@ AllCops:
7
7
  DisplayStyleGuide: true
8
8
  ExtraDetails: false
9
9
  NewCops: enable
10
- TargetRubyVersion: 2.7.3
10
+ TargetRubyVersion: 3.2
11
11
 
12
12
  Metrics/BlockLength:
13
13
  IgnoredMethods: ['describe', 'it', 'context']
@@ -25,12 +25,12 @@ RSpec/ImplicitExpect:
25
25
  RSpec/MultipleExpectations:
26
26
  Enabled: false
27
27
 
28
- RSPec/VerifiedDoubleReference:
29
- EnforcedStyle: string
30
-
31
28
  Style/Documentation:
32
29
  Enabled: false
33
30
 
34
31
  Layout/HashAlignment:
35
32
  EnforcedColonStyle: table
36
33
  EnforcedHashRocketStyle: table
34
+
35
+ Capybara/RSpec/PredicateMatcher:
36
+ Enabled: false
data/Dockerfile ADDED
@@ -0,0 +1 @@
1
+ FROM ruby:3.2.0
data/Gemfile CHANGED
@@ -8,17 +8,16 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
8
8
  gemspec
9
9
 
10
10
  group 'development' do
11
- gem 'activerecord', '~> 7.0.4'
12
- gem 'bundler', '~> 2.2'
13
- gem 'database_cleaner-active_record', '~> 2.0.1'
11
+ gem 'activerecord', '~> 8.0'
12
+ gem 'database_cleaner-active_record', '>= 2.1'
14
13
  gem 'json', '~> 2.6'
15
14
  gem 'pry', '~> 0.14'
16
15
  gem 'rake', '~> 13.1.0'
17
16
  gem 'rspec', '~> 3.12.0'
18
- gem 'rubocop', '~> 1.57.2'
19
- gem 'rubocop-rails', '~> 2.22.2'
17
+ gem 'rubocop', '~> 1.63'
18
+ gem 'rubocop-rails', '~> 2.24'
20
19
  gem 'rubocop-rake', '~> 0.6.0'
21
- gem 'rubocop-rspec', '~> 2.25.0'
22
- gem 'sqlite3', '~> 1.6.9'
20
+ gem 'rubocop-rspec', '~> 2.27'
21
+ gem 'sqlite3', '>= 2.1'
23
22
  gem 'webmock', '~> 3.19.1'
24
23
  end
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minato-utils (0.5.0)
5
- activesupport (~> 7.0.4)
4
+ minato-utils (0.5.3)
5
+ activesupport (~> 8.0)
6
6
  httparty (~> 0.18)
7
7
  simple_command (~> 1.0.1)
8
8
  stackdriver (~> 0.21.1)
@@ -10,217 +10,247 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (7.0.8)
14
- activesupport (= 7.0.8)
15
- activerecord (7.0.8)
16
- activemodel (= 7.0.8)
17
- activesupport (= 7.0.8)
18
- activesupport (7.0.8)
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ activemodel (8.0.2.1)
14
+ activesupport (= 8.0.2.1)
15
+ activerecord (8.0.2.1)
16
+ activemodel (= 8.0.2.1)
17
+ activesupport (= 8.0.2.1)
18
+ timeout (>= 0.4.0)
19
+ activesupport (8.0.2.1)
20
+ base64
21
+ benchmark (>= 0.3)
22
+ bigdecimal
23
+ concurrent-ruby (~> 1.0, >= 1.3.1)
24
+ connection_pool (>= 2.2.5)
25
+ drb
20
26
  i18n (>= 1.6, < 2)
27
+ logger (>= 1.4.2)
21
28
  minitest (>= 5.1)
22
- tzinfo (~> 2.0)
23
- addressable (2.8.5)
24
- public_suffix (>= 2.0.2, < 6.0)
25
- ast (2.4.2)
26
- base64 (0.2.0)
29
+ securerandom (>= 0.3)
30
+ tzinfo (~> 2.0, >= 2.0.5)
31
+ uri (>= 0.13.1)
32
+ addressable (2.8.7)
33
+ public_suffix (>= 2.0.2, < 7.0)
34
+ ast (2.4.3)
35
+ base64 (0.3.0)
36
+ benchmark (0.4.1)
37
+ bigdecimal (3.2.3)
27
38
  coderay (1.1.3)
28
- concurrent-ruby (1.2.2)
29
- crack (0.4.5)
39
+ concurrent-ruby (1.3.5)
40
+ connection_pool (2.5.4)
41
+ crack (1.0.0)
42
+ bigdecimal
30
43
  rexml
31
- database_cleaner-active_record (2.0.1)
44
+ csv (3.3.5)
45
+ database_cleaner-active_record (2.2.2)
32
46
  activerecord (>= 5.a)
33
- database_cleaner-core (~> 2.0.0)
47
+ database_cleaner-core (~> 2.0)
34
48
  database_cleaner-core (2.0.1)
35
- diff-lcs (1.5.0)
36
- faraday (2.7.12)
37
- base64
38
- faraday-net_http (>= 2.0, < 3.1)
39
- ruby2_keywords (>= 0.0.4)
40
- faraday-net_http (3.0.2)
41
- faraday-retry (2.2.0)
49
+ diff-lcs (1.6.2)
50
+ drb (2.2.3)
51
+ faraday (2.13.4)
52
+ faraday-net_http (>= 2.0, < 3.5)
53
+ json
54
+ logger
55
+ faraday-net_http (3.4.1)
56
+ net-http (>= 0.5.0)
57
+ faraday-retry (2.3.2)
42
58
  faraday (~> 2.0)
43
- gapic-common (0.20.0)
59
+ gapic-common (1.2.0)
44
60
  faraday (>= 1.9, < 3.a)
45
61
  faraday-retry (>= 1.0, < 3.a)
46
- google-protobuf (~> 3.14)
47
- googleapis-common-protos (>= 1.3.12, < 2.a)
48
- googleapis-common-protos-types (>= 1.3.1, < 2.a)
49
- googleauth (~> 1.0)
50
- grpc (~> 1.36)
51
- google-cloud-core (1.6.0)
52
- google-cloud-env (~> 1.0)
62
+ google-cloud-env (~> 2.2)
63
+ google-logging-utils (~> 0.1)
64
+ google-protobuf (~> 4.26)
65
+ googleapis-common-protos (~> 1.6)
66
+ googleapis-common-protos-types (~> 1.15)
67
+ googleauth (~> 1.12)
68
+ grpc (~> 1.66)
69
+ google-cloud-core (1.8.0)
70
+ google-cloud-env (>= 1.0, < 3.a)
53
71
  google-cloud-errors (~> 1.0)
54
- google-cloud-env (1.6.0)
55
- faraday (>= 0.17.3, < 3.0)
56
- google-cloud-error_reporting (0.42.3)
72
+ google-cloud-env (2.3.1)
73
+ base64 (~> 0.2)
74
+ faraday (>= 1.0, < 3.a)
75
+ google-cloud-error_reporting (0.44.0)
57
76
  concurrent-ruby (~> 1.1)
58
77
  google-cloud-core (~> 1.5)
59
78
  google-cloud-error_reporting-v1beta1 (~> 0.0)
60
79
  stackdriver-core (~> 1.3)
61
- google-cloud-error_reporting-v1beta1 (0.8.0)
62
- gapic-common (>= 0.20.0, < 2.a)
80
+ google-cloud-error_reporting-v1beta1 (0.15.0)
81
+ gapic-common (~> 1.2)
63
82
  google-cloud-errors (~> 1.0)
64
- google-cloud-errors (1.3.1)
65
- google-cloud-logging (2.3.3)
83
+ google-cloud-errors (1.5.0)
84
+ google-cloud-logging (2.6.0)
66
85
  concurrent-ruby (~> 1.1)
67
86
  google-cloud-core (~> 1.5)
68
- google-cloud-logging-v2 (~> 0.0)
87
+ google-cloud-logging-v2 (>= 0.0, < 2.a)
69
88
  stackdriver-core (~> 1.3)
70
- google-cloud-logging-v2 (0.11.0)
71
- gapic-common (>= 0.20.0, < 2.a)
89
+ google-cloud-logging-v2 (1.4.0)
90
+ gapic-common (~> 1.2)
72
91
  google-cloud-errors (~> 1.0)
73
- google-cloud-trace (0.42.2)
92
+ google-cloud-trace (0.45.0)
74
93
  concurrent-ruby (~> 1.1)
75
94
  google-cloud-core (~> 1.5)
76
- google-cloud-trace-v1 (~> 0.0)
77
- google-cloud-trace-v2 (~> 0.0)
95
+ google-cloud-trace-v1 (>= 0.0, < 2.a)
96
+ google-cloud-trace-v2 (>= 0.0, < 2.a)
78
97
  stackdriver-core (~> 1.3)
79
- google-cloud-trace-v1 (0.7.0)
80
- gapic-common (>= 0.20.0, < 2.a)
98
+ google-cloud-trace-v1 (1.5.0)
99
+ gapic-common (~> 1.2)
81
100
  google-cloud-errors (~> 1.0)
82
- google-cloud-trace-v2 (0.7.0)
83
- gapic-common (>= 0.20.0, < 2.a)
101
+ google-cloud-trace-v2 (1.4.0)
102
+ gapic-common (~> 1.2)
84
103
  google-cloud-errors (~> 1.0)
85
- google-protobuf (3.25.1-x64-mingw32)
86
- google-protobuf (3.25.1-x86_64-darwin)
87
- google-protobuf (3.25.1-x86_64-linux)
88
- googleapis-common-protos (1.4.0)
89
- google-protobuf (~> 3.14)
90
- googleapis-common-protos-types (~> 1.2)
91
- grpc (~> 1.27)
92
- googleapis-common-protos-types (1.10.0)
93
- google-protobuf (~> 3.18)
94
- googleauth (1.8.1)
95
- faraday (>= 0.17.3, < 3.a)
96
- jwt (>= 1.4, < 3.0)
104
+ google-logging-utils (0.2.0)
105
+ google-protobuf (4.32.1-aarch64-linux-gnu)
106
+ bigdecimal
107
+ rake (>= 13)
108
+ googleapis-common-protos (1.9.0)
109
+ google-protobuf (~> 4.26)
110
+ googleapis-common-protos-types (~> 1.21)
111
+ grpc (~> 1.41)
112
+ googleapis-common-protos-types (1.21.0)
113
+ google-protobuf (~> 4.26)
114
+ googleauth (1.15.0)
115
+ faraday (>= 1.0, < 3.a)
116
+ google-cloud-env (~> 2.2)
117
+ google-logging-utils (~> 0.1)
118
+ jwt (>= 1.4, < 4.0)
97
119
  multi_json (~> 1.11)
98
120
  os (>= 0.9, < 2.0)
99
121
  signet (>= 0.16, < 2.a)
100
- grpc (1.59.2-x64-mingw32)
101
- google-protobuf (~> 3.24)
102
- googleapis-common-protos-types (~> 1.0)
103
- grpc (1.59.2-x86_64-darwin)
104
- google-protobuf (~> 3.24)
122
+ grpc (1.75.0-aarch64-linux-gnu)
123
+ google-protobuf (>= 3.25, < 5.0)
105
124
  googleapis-common-protos-types (~> 1.0)
106
- grpc (1.59.2-x86_64-linux)
107
- google-protobuf (~> 3.24)
108
- googleapis-common-protos-types (~> 1.0)
109
- hashdiff (1.0.1)
110
- httparty (0.21.0)
125
+ hashdiff (1.2.1)
126
+ httparty (0.23.1)
127
+ csv
111
128
  mini_mime (>= 1.0.0)
112
129
  multi_xml (>= 0.5.2)
113
- i18n (1.14.1)
130
+ i18n (1.14.7)
114
131
  concurrent-ruby (~> 1.0)
115
- json (2.6.3)
116
- jwt (2.7.1)
117
- language_server-protocol (3.17.0.3)
118
- method_source (1.0.0)
132
+ json (2.14.1)
133
+ jwt (3.1.2)
134
+ base64
135
+ language_server-protocol (3.17.0.5)
136
+ lint_roller (1.1.0)
137
+ logger (1.7.0)
138
+ method_source (1.1.0)
119
139
  mini_mime (1.1.5)
120
- minitest (5.20.0)
121
- multi_json (1.15.0)
122
- multi_xml (0.6.0)
140
+ minitest (5.25.5)
141
+ multi_json (1.17.0)
142
+ multi_xml (0.7.2)
143
+ bigdecimal (~> 3.1)
144
+ net-http (0.6.0)
145
+ uri
123
146
  os (1.1.4)
124
- parallel (1.23.0)
125
- parser (3.2.2.4)
147
+ parallel (1.27.0)
148
+ parser (3.3.9.0)
126
149
  ast (~> 2.4.1)
127
150
  racc
128
- pry (0.14.2)
151
+ prism (1.5.1)
152
+ pry (0.15.2)
129
153
  coderay (~> 1.1)
130
154
  method_source (~> 1.0)
131
- public_suffix (5.0.4)
132
- racc (1.7.3)
133
- rack (3.0.8)
155
+ public_suffix (6.0.2)
156
+ racc (1.8.1)
157
+ rack (3.2.1)
134
158
  rainbow (3.1.1)
135
159
  rake (13.1.0)
136
- regexp_parser (2.8.2)
137
- rexml (3.2.6)
160
+ regexp_parser (2.11.3)
161
+ rexml (3.4.4)
138
162
  rspec (3.12.0)
139
163
  rspec-core (~> 3.12.0)
140
164
  rspec-expectations (~> 3.12.0)
141
165
  rspec-mocks (~> 3.12.0)
142
- rspec-core (3.12.2)
166
+ rspec-core (3.12.3)
143
167
  rspec-support (~> 3.12.0)
144
- rspec-expectations (3.12.3)
168
+ rspec-expectations (3.12.4)
145
169
  diff-lcs (>= 1.2.0, < 2.0)
146
170
  rspec-support (~> 3.12.0)
147
- rspec-mocks (3.12.6)
171
+ rspec-mocks (3.12.7)
148
172
  diff-lcs (>= 1.2.0, < 2.0)
149
173
  rspec-support (~> 3.12.0)
150
- rspec-support (3.12.1)
151
- rubocop (1.57.2)
174
+ rspec-support (3.12.2)
175
+ rubocop (1.80.2)
152
176
  json (~> 2.3)
153
- language_server-protocol (>= 3.17.0)
177
+ language_server-protocol (~> 3.17.0.2)
178
+ lint_roller (~> 1.1.0)
154
179
  parallel (~> 1.10)
155
- parser (>= 3.2.2.4)
180
+ parser (>= 3.3.0.2)
156
181
  rainbow (>= 2.2.2, < 4.0)
157
- regexp_parser (>= 1.8, < 3.0)
158
- rexml (>= 3.2.5, < 4.0)
159
- rubocop-ast (>= 1.28.1, < 2.0)
182
+ regexp_parser (>= 2.9.3, < 3.0)
183
+ rubocop-ast (>= 1.46.0, < 2.0)
160
184
  ruby-progressbar (~> 1.7)
161
- unicode-display_width (>= 2.4.0, < 3.0)
162
- rubocop-ast (1.30.0)
163
- parser (>= 3.2.1.0)
164
- rubocop-capybara (2.19.0)
165
- rubocop (~> 1.41)
166
- rubocop-factory_bot (2.24.0)
167
- rubocop (~> 1.33)
168
- rubocop-rails (2.22.2)
185
+ unicode-display_width (>= 2.4.0, < 4.0)
186
+ rubocop-ast (1.46.0)
187
+ parser (>= 3.3.7.2)
188
+ prism (~> 1.4)
189
+ rubocop-capybara (2.22.1)
190
+ lint_roller (~> 1.1)
191
+ rubocop (~> 1.72, >= 1.72.1)
192
+ rubocop-factory_bot (2.27.1)
193
+ lint_roller (~> 1.1)
194
+ rubocop (~> 1.72, >= 1.72.1)
195
+ rubocop-rails (2.33.3)
169
196
  activesupport (>= 4.2.0)
197
+ lint_roller (~> 1.1)
170
198
  rack (>= 1.1)
171
- rubocop (>= 1.33.0, < 2.0)
172
- rubocop-ast (>= 1.30.0, < 2.0)
199
+ rubocop (>= 1.75.0, < 2.0)
200
+ rubocop-ast (>= 1.44.0, < 2.0)
173
201
  rubocop-rake (0.6.0)
174
202
  rubocop (~> 1.0)
175
- rubocop-rspec (2.25.0)
203
+ rubocop-rspec (2.31.0)
176
204
  rubocop (~> 1.40)
177
205
  rubocop-capybara (~> 2.17)
178
206
  rubocop-factory_bot (~> 2.22)
207
+ rubocop-rspec_rails (~> 2.28)
208
+ rubocop-rspec_rails (2.29.1)
209
+ rubocop (~> 1.61)
179
210
  ruby-progressbar (1.13.0)
180
- ruby2_keywords (0.0.5)
181
- signet (0.18.0)
211
+ securerandom (0.4.1)
212
+ signet (0.21.0)
182
213
  addressable (~> 2.8)
183
214
  faraday (>= 0.17.5, < 3.a)
184
- jwt (>= 1.5, < 3.0)
215
+ jwt (>= 1.5, < 4.0)
185
216
  multi_json (~> 1.10)
186
217
  simple_command (1.0.1)
187
- sqlite3 (1.6.9-x64-mingw32)
188
- sqlite3 (1.6.9-x86_64-darwin)
189
- sqlite3 (1.6.9-x86_64-linux)
218
+ sqlite3 (2.7.3-aarch64-linux-gnu)
190
219
  stackdriver (0.21.1)
191
220
  google-cloud-error_reporting (~> 0.41)
192
221
  google-cloud-logging (~> 2.1)
193
222
  google-cloud-trace (~> 0.40)
194
- stackdriver-core (1.5.0)
223
+ stackdriver-core (1.7.0)
195
224
  google-cloud-core (~> 1.2)
225
+ timeout (0.4.3)
196
226
  tzinfo (2.0.6)
197
227
  concurrent-ruby (~> 1.0)
198
- unicode-display_width (2.5.0)
228
+ unicode-display_width (3.2.0)
229
+ unicode-emoji (~> 4.1)
230
+ unicode-emoji (4.1.0)
231
+ uri (1.0.3)
199
232
  webmock (3.19.1)
200
233
  addressable (>= 2.8.0)
201
234
  crack (>= 0.3.2)
202
235
  hashdiff (>= 0.4.0, < 2.0.0)
203
236
 
204
237
  PLATFORMS
205
- x64-mingw32
206
- x86_64-darwin-21
207
- x86_64-linux
238
+ aarch64-linux
208
239
 
209
240
  DEPENDENCIES
210
- activerecord (~> 7.0.4)
211
- bundler (~> 2.2)
212
- database_cleaner-active_record (~> 2.0.1)
241
+ activerecord (~> 8.0)
242
+ database_cleaner-active_record (>= 2.1)
213
243
  json (~> 2.6)
214
244
  minato-utils!
215
245
  pry (~> 0.14)
216
246
  rake (~> 13.1.0)
217
247
  rspec (~> 3.12.0)
218
- rubocop (~> 1.57.2)
219
- rubocop-rails (~> 2.22.2)
248
+ rubocop (~> 1.63)
249
+ rubocop-rails (~> 2.24)
220
250
  rubocop-rake (~> 0.6.0)
221
- rubocop-rspec (~> 2.25.0)
222
- sqlite3 (~> 1.6.9)
251
+ rubocop-rspec (~> 2.27)
252
+ sqlite3 (>= 2.1)
223
253
  webmock (~> 3.19.1)
224
254
 
225
255
  BUNDLED WITH
226
- 2.3.25
256
+ 2.4.1
data/compose.yml ADDED
@@ -0,0 +1,11 @@
1
+ services:
2
+ minato-ruby-utils:
3
+ environment:
4
+ GITLAB_AUTH_TOKEN: ${GITLAB_AUTH_TOKEN}
5
+ build: .
6
+ volumes:
7
+ - .:/usr/src/api
8
+ - bundle:/home/rails/.bundle
9
+
10
+ volumes:
11
+ bundle:
@@ -19,7 +19,7 @@ module Minato
19
19
 
20
20
  class NetworkException < SerializableError
21
21
  def initialize(response)
22
- super(response)
22
+ super
23
23
  @body = Minato::Utils::Helpers.parse_json(response.body)
24
24
  end
25
25
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'logger'
3
4
  require_relative 'configuration'
4
5
 
5
6
  module Minato
@@ -27,7 +28,7 @@ module Minato
27
28
  return unless @logger
28
29
 
29
30
  call :info,
30
- message: 'Minato::Utils::Client starting request',
31
+ message: "Minato::Utils::Client starting request to #{host}#{path}",
31
32
  http_request: request_data(method, host, path, options)
32
33
  end
33
34
 
@@ -35,7 +36,7 @@ module Minato
35
36
  return unless @logger
36
37
 
37
38
  call :info,
38
- message: 'Minato::Utils::Client receiving response',
39
+ message: "Minato::Utils::Client receiving response from #{host}#{path}",
39
40
  http_request: request_data(method, host, path, options),
40
41
  http_response: response_data(response)
41
42
  end
@@ -54,6 +55,7 @@ module Minato
54
55
  }
55
56
 
56
57
  data[:query] = options[:query] if options[:query]
58
+ data[:body] = options[:body] if options[:body]
57
59
  @debug ? data.merge({ headers: options[:headers] }) : data
58
60
  end
59
61
 
@@ -12,8 +12,6 @@ module Minato
12
12
  Response.new(response)
13
13
  end
14
14
 
15
- private
16
-
17
15
  EXCEPTION_HANDLERS_MAP = {
18
16
  400 => 'bad_request',
19
17
  401 => 'unauthorized',
@@ -27,6 +25,8 @@ module Minato
27
25
  503 => 'service_unavailable'
28
26
  }.freeze
29
27
 
28
+ private
29
+
30
30
  def response_error?(response)
31
31
  response.code >= 400
32
32
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minato
4
4
  module Utils
5
- VERSION = '0.5.1'
5
+ VERSION = '0.5.3'
6
6
  end
7
7
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.summary = 'Minato Ruby Utils'
14
14
  spec.version = Minato::Utils::VERSION
15
15
 
16
- spec.required_ruby_version = '>= 2.7'
16
+ spec.required_ruby_version = '>= 3.2'
17
17
 
18
18
  # Specify which files should be added to the gem when it is released.
19
19
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -24,11 +24,11 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.add_dependency 'activesupport', '~> 7.0.4'
27
+ spec.add_dependency 'activesupport', '~> 8.0'
28
28
  spec.add_dependency 'httparty', '~> 0.18'
29
29
  spec.add_dependency 'simple_command', '~> 1.0.1'
30
30
 
31
- spec.add_runtime_dependency 'stackdriver', '~> 0.21.1'
31
+ spec.add_dependency 'stackdriver', '~> 0.21.1'
32
32
 
33
33
  spec.metadata = {
34
34
  'rubygems_mfa_required' => 'true'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minato-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferreri
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-27 00:00:00.000000000 Z
11
+ date: 2025-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.4
19
+ version: '8.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 7.0.4
26
+ version: '8.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: httparty
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,17 +73,21 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".devcontainer/devcontainer.json"
77
+ - ".devcontainer/docker-compose.yml"
76
78
  - ".editorconfig"
77
79
  - ".gitignore"
78
80
  - ".gitlab-ci.yml"
79
81
  - ".rubocop.yml"
80
82
  - ".ruby-version"
83
+ - Dockerfile
81
84
  - Gemfile
82
85
  - Gemfile.lock
83
86
  - README.md
84
87
  - Rakefile
85
88
  - bin/console
86
89
  - bin/setup
90
+ - compose.yml
87
91
  - lib/minato/utils.rb
88
92
  - lib/minato/utils/base_command/base.rb
89
93
  - lib/minato/utils/base_command/create.rb
@@ -108,7 +112,7 @@ licenses:
108
112
  - MIT
109
113
  metadata:
110
114
  rubygems_mfa_required: 'true'
111
- post_install_message:
115
+ post_install_message:
112
116
  rdoc_options: []
113
117
  require_paths:
114
118
  - lib
@@ -116,15 +120,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
120
  requirements:
117
121
  - - ">="
118
122
  - !ruby/object:Gem::Version
119
- version: '2.7'
123
+ version: '3.2'
120
124
  required_rubygems_version: !ruby/object:Gem::Requirement
121
125
  requirements:
122
126
  - - ">="
123
127
  - !ruby/object:Gem::Version
124
128
  version: '0'
125
129
  requirements: []
126
- rubygems_version: 3.1.6
127
- signing_key:
130
+ rubygems_version: 3.4.19
131
+ signing_key:
128
132
  specification_version: 4
129
133
  summary: Minato Ruby Utils
130
134
  test_files: []