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 +4 -4
- data/.devcontainer/devcontainer.json +36 -0
- data/.devcontainer/docker-compose.yml +8 -0
- data/.gitignore +1 -0
- data/.gitlab-ci.yml +4 -1
- data/.rubocop.yml +4 -4
- data/Dockerfile +1 -0
- data/Gemfile +6 -7
- data/Gemfile.lock +158 -128
- data/compose.yml +11 -0
- data/lib/minato/utils/exception.rb +1 -1
- data/lib/minato/utils/logger.rb +4 -2
- data/lib/minato/utils/response_handler.rb +2 -2
- data/lib/minato/utils/version.rb +1 -1
- data/minato-ruby-utils.gemspec +3 -3
- metadata +13 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75697ffc149238ead385297e9d08deddc52982f701d7c265bcbe6887be6e90d6
|
4
|
+
data.tar.gz: 4b10cc9d6b72de96e92c1ee318d576e06cfd25f78e7a3ce182ce1504865dbbc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
}
|
data/.gitignore
CHANGED
data/.gitlab-ci.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -7,7 +7,7 @@ AllCops:
|
|
7
7
|
DisplayStyleGuide: true
|
8
8
|
ExtraDetails: false
|
9
9
|
NewCops: enable
|
10
|
-
TargetRubyVersion: 2
|
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', '~>
|
12
|
-
gem '
|
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.
|
19
|
-
gem 'rubocop-rails', '~> 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.
|
22
|
-
gem 'sqlite3', '
|
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.
|
5
|
-
activesupport (~>
|
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 (
|
14
|
-
activesupport (=
|
15
|
-
activerecord (
|
16
|
-
activemodel (=
|
17
|
-
activesupport (=
|
18
|
-
|
19
|
-
|
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
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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.
|
29
|
-
|
39
|
+
concurrent-ruby (1.3.5)
|
40
|
+
connection_pool (2.5.4)
|
41
|
+
crack (1.0.0)
|
42
|
+
bigdecimal
|
30
43
|
rexml
|
31
|
-
|
44
|
+
csv (3.3.5)
|
45
|
+
database_cleaner-active_record (2.2.2)
|
32
46
|
activerecord (>= 5.a)
|
33
|
-
database_cleaner-core (~> 2.0
|
47
|
+
database_cleaner-core (~> 2.0)
|
34
48
|
database_cleaner-core (2.0.1)
|
35
|
-
diff-lcs (1.
|
36
|
-
|
37
|
-
|
38
|
-
faraday-net_http (>= 2.0, < 3.
|
39
|
-
|
40
|
-
|
41
|
-
faraday-
|
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 (
|
59
|
+
gapic-common (1.2.0)
|
44
60
|
faraday (>= 1.9, < 3.a)
|
45
61
|
faraday-retry (>= 1.0, < 3.a)
|
46
|
-
google-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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 (
|
55
|
-
|
56
|
-
|
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.
|
62
|
-
gapic-common (
|
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.
|
65
|
-
google-cloud-logging (2.
|
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 (
|
87
|
+
google-cloud-logging-v2 (>= 0.0, < 2.a)
|
69
88
|
stackdriver-core (~> 1.3)
|
70
|
-
google-cloud-logging-v2 (
|
71
|
-
gapic-common (
|
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.
|
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 (
|
77
|
-
google-cloud-trace-v2 (
|
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 (
|
80
|
-
gapic-common (
|
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 (
|
83
|
-
gapic-common (
|
101
|
+
google-cloud-trace-v2 (1.4.0)
|
102
|
+
gapic-common (~> 1.2)
|
84
103
|
google-cloud-errors (~> 1.0)
|
85
|
-
google-
|
86
|
-
google-protobuf (
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
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.
|
101
|
-
google-protobuf (
|
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
|
-
|
107
|
-
|
108
|
-
|
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.
|
130
|
+
i18n (1.14.7)
|
114
131
|
concurrent-ruby (~> 1.0)
|
115
|
-
json (2.
|
116
|
-
jwt (
|
117
|
-
|
118
|
-
|
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.
|
121
|
-
multi_json (1.
|
122
|
-
multi_xml (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.
|
125
|
-
parser (3.
|
147
|
+
parallel (1.27.0)
|
148
|
+
parser (3.3.9.0)
|
126
149
|
ast (~> 2.4.1)
|
127
150
|
racc
|
128
|
-
|
151
|
+
prism (1.5.1)
|
152
|
+
pry (0.15.2)
|
129
153
|
coderay (~> 1.1)
|
130
154
|
method_source (~> 1.0)
|
131
|
-
public_suffix (
|
132
|
-
racc (1.
|
133
|
-
rack (3.
|
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.
|
137
|
-
rexml (3.
|
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.
|
166
|
+
rspec-core (3.12.3)
|
143
167
|
rspec-support (~> 3.12.0)
|
144
|
-
rspec-expectations (3.12.
|
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.
|
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.
|
151
|
-
rubocop (1.
|
174
|
+
rspec-support (3.12.2)
|
175
|
+
rubocop (1.80.2)
|
152
176
|
json (~> 2.3)
|
153
|
-
language_server-protocol (
|
177
|
+
language_server-protocol (~> 3.17.0.2)
|
178
|
+
lint_roller (~> 1.1.0)
|
154
179
|
parallel (~> 1.10)
|
155
|
-
parser (>= 3.
|
180
|
+
parser (>= 3.3.0.2)
|
156
181
|
rainbow (>= 2.2.2, < 4.0)
|
157
|
-
regexp_parser (>=
|
158
|
-
|
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, <
|
162
|
-
rubocop-ast (1.
|
163
|
-
parser (>= 3.
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
rubocop (~> 1.
|
168
|
-
rubocop-
|
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.
|
172
|
-
rubocop-ast (>= 1.
|
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.
|
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
|
-
|
181
|
-
signet (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, <
|
215
|
+
jwt (>= 1.5, < 4.0)
|
185
216
|
multi_json (~> 1.10)
|
186
217
|
simple_command (1.0.1)
|
187
|
-
sqlite3 (
|
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.
|
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.
|
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
|
-
|
206
|
-
x86_64-darwin-21
|
207
|
-
x86_64-linux
|
238
|
+
aarch64-linux
|
208
239
|
|
209
240
|
DEPENDENCIES
|
210
|
-
activerecord (~>
|
211
|
-
|
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.
|
219
|
-
rubocop-rails (~> 2.
|
248
|
+
rubocop (~> 1.63)
|
249
|
+
rubocop-rails (~> 2.24)
|
220
250
|
rubocop-rake (~> 0.6.0)
|
221
|
-
rubocop-rspec (~> 2.
|
222
|
-
sqlite3 (
|
251
|
+
rubocop-rspec (~> 2.27)
|
252
|
+
sqlite3 (>= 2.1)
|
223
253
|
webmock (~> 3.19.1)
|
224
254
|
|
225
255
|
BUNDLED WITH
|
226
|
-
2.
|
256
|
+
2.4.1
|
data/compose.yml
ADDED
data/lib/minato/utils/logger.rb
CHANGED
@@ -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:
|
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:
|
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
|
data/lib/minato/utils/version.rb
CHANGED
data/minato-ruby-utils.gemspec
CHANGED
@@ -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
|
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', '~>
|
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.
|
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.
|
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:
|
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:
|
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:
|
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
|
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.
|
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: []
|