minato-utils 0.5.2 → 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/.gitignore +1 -0
- data/.gitlab-ci.yml +4 -1
- data/.rubocop.yml +36 -36
- data/Dockerfile +1 -1
- data/Gemfile +23 -24
- data/Gemfile.lock +149 -123
- data/lib/minato/utils/exception.rb +1 -1
- data/lib/minato/utils/logger.rb +1 -0
- data/lib/minato/utils/response_handler.rb +2 -2
- data/lib/minato/utils/version.rb +1 -1
- data/minato-ruby-utils.gemspec +36 -36
- data/release-notes.md +22 -22
- metadata +9 -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
|
data/.gitignore
CHANGED
data/.gitlab-ci.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-rails
|
3
|
-
- rubocop-rspec
|
4
|
-
|
5
|
-
AllCops:
|
6
|
-
DisplayCopNames: true
|
7
|
-
DisplayStyleGuide: true
|
8
|
-
ExtraDetails: false
|
9
|
-
NewCops: enable
|
10
|
-
TargetRubyVersion: 2
|
11
|
-
|
12
|
-
Metrics/BlockLength:
|
13
|
-
IgnoredMethods: ['describe', 'it', 'context']
|
14
|
-
Max: 50
|
15
|
-
|
16
|
-
RSpec/EmptyExampleGroup:
|
17
|
-
Enabled: false
|
18
|
-
|
19
|
-
RSpec/ExampleLength:
|
20
|
-
Max: 50
|
21
|
-
|
22
|
-
RSpec/ImplicitExpect:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
RSpec/MultipleExpectations:
|
26
|
-
Enabled: false
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
1
|
+
require:
|
2
|
+
- rubocop-rails
|
3
|
+
- rubocop-rspec
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
DisplayCopNames: true
|
7
|
+
DisplayStyleGuide: true
|
8
|
+
ExtraDetails: false
|
9
|
+
NewCops: enable
|
10
|
+
TargetRubyVersion: 3.2
|
11
|
+
|
12
|
+
Metrics/BlockLength:
|
13
|
+
IgnoredMethods: ['describe', 'it', 'context']
|
14
|
+
Max: 50
|
15
|
+
|
16
|
+
RSpec/EmptyExampleGroup:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
RSpec/ExampleLength:
|
20
|
+
Max: 50
|
21
|
+
|
22
|
+
RSpec/ImplicitExpect:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
RSpec/MultipleExpectations:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Style/Documentation:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Layout/HashAlignment:
|
32
|
+
EnforcedColonStyle: table
|
33
|
+
EnforcedHashRocketStyle: table
|
34
|
+
|
35
|
+
Capybara/RSpec/PredicateMatcher:
|
36
|
+
Enabled: false
|
data/Dockerfile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
FROM ruby:2.
|
1
|
+
FROM ruby:3.2.0
|
data/Gemfile
CHANGED
@@ -1,24 +1,23 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source 'https://rubygems.org'
|
4
|
-
|
5
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
6
|
-
|
7
|
-
# Specify your gem's dependencies in minato-utils.gemspec
|
8
|
-
gemspec
|
9
|
-
|
10
|
-
group 'development' do
|
11
|
-
gem 'activerecord', '~>
|
12
|
-
gem '
|
13
|
-
gem '
|
14
|
-
gem '
|
15
|
-
gem '
|
16
|
-
gem '
|
17
|
-
gem '
|
18
|
-
gem 'rubocop', '~>
|
19
|
-
gem 'rubocop-
|
20
|
-
gem 'rubocop-
|
21
|
-
gem '
|
22
|
-
gem '
|
23
|
-
|
24
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
6
|
+
|
7
|
+
# Specify your gem's dependencies in minato-utils.gemspec
|
8
|
+
gemspec
|
9
|
+
|
10
|
+
group 'development' do
|
11
|
+
gem 'activerecord', '~> 8.0'
|
12
|
+
gem 'database_cleaner-active_record', '>= 2.1'
|
13
|
+
gem 'json', '~> 2.6'
|
14
|
+
gem 'pry', '~> 0.14'
|
15
|
+
gem 'rake', '~> 13.1.0'
|
16
|
+
gem 'rspec', '~> 3.12.0'
|
17
|
+
gem 'rubocop', '~> 1.63'
|
18
|
+
gem 'rubocop-rails', '~> 2.24'
|
19
|
+
gem 'rubocop-rake', '~> 0.6.0'
|
20
|
+
gem 'rubocop-rspec', '~> 2.27'
|
21
|
+
gem 'sqlite3', '>= 2.1'
|
22
|
+
gem 'webmock', '~> 3.19.1'
|
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,221 +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
|
-
csv (3.3.
|
32
|
-
database_cleaner-active_record (2.
|
44
|
+
csv (3.3.5)
|
45
|
+
database_cleaner-active_record (2.2.2)
|
33
46
|
activerecord (>= 5.a)
|
34
|
-
database_cleaner-core (~> 2.0
|
47
|
+
database_cleaner-core (~> 2.0)
|
35
48
|
database_cleaner-core (2.0.1)
|
36
|
-
diff-lcs (1.
|
37
|
-
|
38
|
-
|
39
|
-
faraday-net_http (>= 2.0, < 3.
|
40
|
-
|
41
|
-
|
42
|
-
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)
|
43
58
|
faraday (~> 2.0)
|
44
|
-
gapic-common (
|
59
|
+
gapic-common (1.2.0)
|
45
60
|
faraday (>= 1.9, < 3.a)
|
46
61
|
faraday-retry (>= 1.0, < 3.a)
|
47
|
-
google-
|
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)
|
53
70
|
google-cloud-env (>= 1.0, < 3.a)
|
54
71
|
google-cloud-errors (~> 1.0)
|
55
|
-
google-cloud-env (2.
|
72
|
+
google-cloud-env (2.3.1)
|
73
|
+
base64 (~> 0.2)
|
56
74
|
faraday (>= 1.0, < 3.a)
|
57
|
-
google-cloud-error_reporting (0.
|
75
|
+
google-cloud-error_reporting (0.44.0)
|
58
76
|
concurrent-ruby (~> 1.1)
|
59
77
|
google-cloud-core (~> 1.5)
|
60
78
|
google-cloud-error_reporting-v1beta1 (~> 0.0)
|
61
79
|
stackdriver-core (~> 1.3)
|
62
|
-
google-cloud-error_reporting-v1beta1 (0.
|
63
|
-
gapic-common (
|
80
|
+
google-cloud-error_reporting-v1beta1 (0.15.0)
|
81
|
+
gapic-common (~> 1.2)
|
64
82
|
google-cloud-errors (~> 1.0)
|
65
|
-
google-cloud-errors (1.
|
66
|
-
google-cloud-logging (2.
|
83
|
+
google-cloud-errors (1.5.0)
|
84
|
+
google-cloud-logging (2.6.0)
|
67
85
|
concurrent-ruby (~> 1.1)
|
68
86
|
google-cloud-core (~> 1.5)
|
69
87
|
google-cloud-logging-v2 (>= 0.0, < 2.a)
|
70
88
|
stackdriver-core (~> 1.3)
|
71
|
-
google-cloud-logging-v2 (1.
|
72
|
-
gapic-common (
|
89
|
+
google-cloud-logging-v2 (1.4.0)
|
90
|
+
gapic-common (~> 1.2)
|
73
91
|
google-cloud-errors (~> 1.0)
|
74
|
-
google-cloud-trace (0.
|
92
|
+
google-cloud-trace (0.45.0)
|
75
93
|
concurrent-ruby (~> 1.1)
|
76
94
|
google-cloud-core (~> 1.5)
|
77
95
|
google-cloud-trace-v1 (>= 0.0, < 2.a)
|
78
96
|
google-cloud-trace-v2 (>= 0.0, < 2.a)
|
79
97
|
stackdriver-core (~> 1.3)
|
80
|
-
google-cloud-trace-v1 (1.
|
81
|
-
gapic-common (
|
98
|
+
google-cloud-trace-v1 (1.5.0)
|
99
|
+
gapic-common (~> 1.2)
|
82
100
|
google-cloud-errors (~> 1.0)
|
83
|
-
google-cloud-trace-v2 (1.
|
84
|
-
gapic-common (
|
101
|
+
google-cloud-trace-v2 (1.4.0)
|
102
|
+
gapic-common (~> 1.2)
|
85
103
|
google-cloud-errors (~> 1.0)
|
86
|
-
google-
|
87
|
-
google-protobuf (
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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)
|
92
111
|
grpc (~> 1.41)
|
93
|
-
googleapis-common-protos-types (1.
|
94
|
-
google-protobuf (
|
95
|
-
googleauth (1.
|
112
|
+
googleapis-common-protos-types (1.21.0)
|
113
|
+
google-protobuf (~> 4.26)
|
114
|
+
googleauth (1.15.0)
|
96
115
|
faraday (>= 1.0, < 3.a)
|
97
|
-
google-cloud-env (~> 2.
|
98
|
-
|
116
|
+
google-cloud-env (~> 2.2)
|
117
|
+
google-logging-utils (~> 0.1)
|
118
|
+
jwt (>= 1.4, < 4.0)
|
99
119
|
multi_json (~> 1.11)
|
100
120
|
os (>= 0.9, < 2.0)
|
101
121
|
signet (>= 0.16, < 2.a)
|
102
|
-
grpc (1.
|
103
|
-
google-protobuf (
|
104
|
-
googleapis-common-protos-types (~> 1.0)
|
105
|
-
grpc (1.64.0-x86_64-darwin)
|
106
|
-
google-protobuf (~> 3.25)
|
107
|
-
googleapis-common-protos-types (~> 1.0)
|
108
|
-
grpc (1.64.0-x86_64-linux)
|
109
|
-
google-protobuf (~> 3.25)
|
122
|
+
grpc (1.75.0-aarch64-linux-gnu)
|
123
|
+
google-protobuf (>= 3.25, < 5.0)
|
110
124
|
googleapis-common-protos-types (~> 1.0)
|
111
|
-
hashdiff (1.
|
112
|
-
httparty (0.
|
125
|
+
hashdiff (1.2.1)
|
126
|
+
httparty (0.23.1)
|
113
127
|
csv
|
114
128
|
mini_mime (>= 1.0.0)
|
115
129
|
multi_xml (>= 0.5.2)
|
116
|
-
i18n (1.14.
|
130
|
+
i18n (1.14.7)
|
117
131
|
concurrent-ruby (~> 1.0)
|
118
|
-
json (2.
|
119
|
-
jwt (
|
132
|
+
json (2.14.1)
|
133
|
+
jwt (3.1.2)
|
120
134
|
base64
|
121
|
-
language_server-protocol (3.17.0.
|
122
|
-
|
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)
|
123
139
|
mini_mime (1.1.5)
|
124
|
-
minitest (5.
|
125
|
-
multi_json (1.
|
126
|
-
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
|
127
146
|
os (1.1.4)
|
128
|
-
parallel (1.
|
129
|
-
parser (3.
|
147
|
+
parallel (1.27.0)
|
148
|
+
parser (3.3.9.0)
|
130
149
|
ast (~> 2.4.1)
|
131
150
|
racc
|
132
|
-
|
151
|
+
prism (1.5.1)
|
152
|
+
pry (0.15.2)
|
133
153
|
coderay (~> 1.1)
|
134
154
|
method_source (~> 1.0)
|
135
|
-
public_suffix (
|
136
|
-
racc (1.
|
137
|
-
rack (3.
|
155
|
+
public_suffix (6.0.2)
|
156
|
+
racc (1.8.1)
|
157
|
+
rack (3.2.1)
|
138
158
|
rainbow (3.1.1)
|
139
159
|
rake (13.1.0)
|
140
|
-
regexp_parser (2.
|
141
|
-
rexml (3.
|
160
|
+
regexp_parser (2.11.3)
|
161
|
+
rexml (3.4.4)
|
142
162
|
rspec (3.12.0)
|
143
163
|
rspec-core (~> 3.12.0)
|
144
164
|
rspec-expectations (~> 3.12.0)
|
145
165
|
rspec-mocks (~> 3.12.0)
|
146
|
-
rspec-core (3.12.
|
166
|
+
rspec-core (3.12.3)
|
147
167
|
rspec-support (~> 3.12.0)
|
148
|
-
rspec-expectations (3.12.
|
168
|
+
rspec-expectations (3.12.4)
|
149
169
|
diff-lcs (>= 1.2.0, < 2.0)
|
150
170
|
rspec-support (~> 3.12.0)
|
151
|
-
rspec-mocks (3.12.
|
171
|
+
rspec-mocks (3.12.7)
|
152
172
|
diff-lcs (>= 1.2.0, < 2.0)
|
153
173
|
rspec-support (~> 3.12.0)
|
154
|
-
rspec-support (3.12.
|
155
|
-
rubocop (1.
|
174
|
+
rspec-support (3.12.2)
|
175
|
+
rubocop (1.80.2)
|
156
176
|
json (~> 2.3)
|
157
|
-
language_server-protocol (
|
177
|
+
language_server-protocol (~> 3.17.0.2)
|
178
|
+
lint_roller (~> 1.1.0)
|
158
179
|
parallel (~> 1.10)
|
159
|
-
parser (>= 3.
|
180
|
+
parser (>= 3.3.0.2)
|
160
181
|
rainbow (>= 2.2.2, < 4.0)
|
161
|
-
regexp_parser (>=
|
162
|
-
|
163
|
-
rubocop-ast (>= 1.28.1, < 2.0)
|
182
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
183
|
+
rubocop-ast (>= 1.46.0, < 2.0)
|
164
184
|
ruby-progressbar (~> 1.7)
|
165
|
-
unicode-display_width (>= 2.4.0, <
|
166
|
-
rubocop-ast (1.
|
167
|
-
parser (>= 3.
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
rubocop (~> 1.
|
172
|
-
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)
|
173
196
|
activesupport (>= 4.2.0)
|
197
|
+
lint_roller (~> 1.1)
|
174
198
|
rack (>= 1.1)
|
175
|
-
rubocop (>= 1.
|
176
|
-
rubocop-ast (>= 1.
|
199
|
+
rubocop (>= 1.75.0, < 2.0)
|
200
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
177
201
|
rubocop-rake (0.6.0)
|
178
202
|
rubocop (~> 1.0)
|
179
|
-
rubocop-rspec (2.
|
203
|
+
rubocop-rspec (2.31.0)
|
180
204
|
rubocop (~> 1.40)
|
181
205
|
rubocop-capybara (~> 2.17)
|
182
206
|
rubocop-factory_bot (~> 2.22)
|
207
|
+
rubocop-rspec_rails (~> 2.28)
|
208
|
+
rubocop-rspec_rails (2.29.1)
|
209
|
+
rubocop (~> 1.61)
|
183
210
|
ruby-progressbar (1.13.0)
|
184
|
-
|
185
|
-
signet (0.
|
211
|
+
securerandom (0.4.1)
|
212
|
+
signet (0.21.0)
|
186
213
|
addressable (~> 2.8)
|
187
214
|
faraday (>= 0.17.5, < 3.a)
|
188
|
-
jwt (>= 1.5, <
|
215
|
+
jwt (>= 1.5, < 4.0)
|
189
216
|
multi_json (~> 1.10)
|
190
217
|
simple_command (1.0.1)
|
191
|
-
sqlite3 (
|
192
|
-
sqlite3 (1.6.9-x86_64-darwin)
|
193
|
-
sqlite3 (1.6.9-x86_64-linux)
|
218
|
+
sqlite3 (2.7.3-aarch64-linux-gnu)
|
194
219
|
stackdriver (0.21.1)
|
195
220
|
google-cloud-error_reporting (~> 0.41)
|
196
221
|
google-cloud-logging (~> 2.1)
|
197
222
|
google-cloud-trace (~> 0.40)
|
198
|
-
stackdriver-core (1.
|
223
|
+
stackdriver-core (1.7.0)
|
199
224
|
google-cloud-core (~> 1.2)
|
225
|
+
timeout (0.4.3)
|
200
226
|
tzinfo (2.0.6)
|
201
227
|
concurrent-ruby (~> 1.0)
|
202
|
-
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)
|
203
232
|
webmock (3.19.1)
|
204
233
|
addressable (>= 2.8.0)
|
205
234
|
crack (>= 0.3.2)
|
206
235
|
hashdiff (>= 0.4.0, < 2.0.0)
|
207
236
|
|
208
237
|
PLATFORMS
|
209
|
-
|
210
|
-
x86_64-darwin-21
|
211
|
-
x86_64-linux
|
238
|
+
aarch64-linux
|
212
239
|
|
213
240
|
DEPENDENCIES
|
214
|
-
activerecord (~>
|
215
|
-
|
216
|
-
database_cleaner-active_record (~> 2.0.1)
|
241
|
+
activerecord (~> 8.0)
|
242
|
+
database_cleaner-active_record (>= 2.1)
|
217
243
|
json (~> 2.6)
|
218
244
|
minato-utils!
|
219
245
|
pry (~> 0.14)
|
220
246
|
rake (~> 13.1.0)
|
221
247
|
rspec (~> 3.12.0)
|
222
|
-
rubocop (~> 1.
|
223
|
-
rubocop-rails (~> 2.
|
248
|
+
rubocop (~> 1.63)
|
249
|
+
rubocop-rails (~> 2.24)
|
224
250
|
rubocop-rake (~> 0.6.0)
|
225
|
-
rubocop-rspec (~> 2.
|
226
|
-
sqlite3 (
|
251
|
+
rubocop-rspec (~> 2.27)
|
252
|
+
sqlite3 (>= 2.1)
|
227
253
|
webmock (~> 3.19.1)
|
228
254
|
|
229
255
|
BUNDLED WITH
|
230
|
-
2.
|
256
|
+
2.4.1
|
data/lib/minato/utils/logger.rb
CHANGED
@@ -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
@@ -1,36 +1,36 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
4
|
-
require 'minato/utils/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.authors = ['Ferreri']
|
8
|
-
spec.description = 'Library to share common functionality across services'
|
9
|
-
spec.email = ['contato@ferreri.co']
|
10
|
-
spec.homepage = 'https://gitlab.com/ferreri/minato-projects/minato-ruby-utils'
|
11
|
-
spec.license = 'MIT'
|
12
|
-
spec.name = 'minato-utils'
|
13
|
-
spec.summary = 'Minato Ruby Utils'
|
14
|
-
spec.version = Minato::Utils::VERSION
|
15
|
-
|
16
|
-
spec.required_ruby_version = '>= 2
|
17
|
-
|
18
|
-
# Specify which files should be added to the gem when it is released.
|
19
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
-
end
|
23
|
-
spec.bindir = 'exe'
|
24
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
-
spec.require_paths = ['lib']
|
26
|
-
|
27
|
-
spec.add_dependency 'activesupport', '~>
|
28
|
-
spec.add_dependency 'httparty', '~> 0.18'
|
29
|
-
spec.add_dependency 'simple_command', '~> 1.0.1'
|
30
|
-
|
31
|
-
spec.
|
32
|
-
|
33
|
-
spec.metadata = {
|
34
|
-
'rubygems_mfa_required' => 'true'
|
35
|
-
}
|
36
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
4
|
+
require 'minato/utils/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.authors = ['Ferreri']
|
8
|
+
spec.description = 'Library to share common functionality across services'
|
9
|
+
spec.email = ['contato@ferreri.co']
|
10
|
+
spec.homepage = 'https://gitlab.com/ferreri/minato-projects/minato-ruby-utils'
|
11
|
+
spec.license = 'MIT'
|
12
|
+
spec.name = 'minato-utils'
|
13
|
+
spec.summary = 'Minato Ruby Utils'
|
14
|
+
spec.version = Minato::Utils::VERSION
|
15
|
+
|
16
|
+
spec.required_ruby_version = '>= 3.2'
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = 'exe'
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ['lib']
|
26
|
+
|
27
|
+
spec.add_dependency 'activesupport', '~> 8.0'
|
28
|
+
spec.add_dependency 'httparty', '~> 0.18'
|
29
|
+
spec.add_dependency 'simple_command', '~> 1.0.1'
|
30
|
+
|
31
|
+
spec.add_dependency 'stackdriver', '~> 0.21.1'
|
32
|
+
|
33
|
+
spec.metadata = {
|
34
|
+
'rubygems_mfa_required' => 'true'
|
35
|
+
}
|
36
|
+
end
|
data/release-notes.md
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
# Release Notes
|
2
|
-
|
3
|
-
## v0.5.1 - November 27th, 2023
|
4
|
-
|
5
|
-
### Compatibility Notes
|
6
|
-
- `simple_command` library was updated.
|
7
|
-
|
8
|
-
## v0.2.2 - January 4th, 2022
|
9
|
-
|
10
|
-
### Compatibility Notes
|
11
|
-
|
12
|
-
- `return_headers` was removed from method `Minato::Utils::Client#request`<br/>
|
13
|
-
This renders `return_headers` as a hash key to `options` variable worthless, so
|
14
|
-
from now on you can assume that all requests will return a header regardless if
|
15
|
-
it's useful for the current invocation or not.
|
16
|
-
|
17
|
-
## v0.2.0 - December 20th, 2021
|
18
|
-
|
19
|
-
### Compatibility Notes
|
20
|
-
|
21
|
-
- `return_headers` was removed from method `Minato::Utils::Client#post`<br/>
|
22
|
-
Now you need to pass `return_headers` as a key to the hash parameter `options`.
|
1
|
+
# Release Notes
|
2
|
+
|
3
|
+
## v0.5.1 - November 27th, 2023
|
4
|
+
|
5
|
+
### Compatibility Notes
|
6
|
+
- `simple_command` library was updated.
|
7
|
+
|
8
|
+
## v0.2.2 - January 4th, 2022
|
9
|
+
|
10
|
+
### Compatibility Notes
|
11
|
+
|
12
|
+
- `return_headers` was removed from method `Minato::Utils::Client#request`<br/>
|
13
|
+
This renders `return_headers` as a hash key to `options` variable worthless, so
|
14
|
+
from now on you can assume that all requests will return a header regardless if
|
15
|
+
it's useful for the current invocation or not.
|
16
|
+
|
17
|
+
## v0.2.0 - December 20th, 2021
|
18
|
+
|
19
|
+
### Compatibility Notes
|
20
|
+
|
21
|
+
- `return_headers` was removed from method `Minato::Utils::Client#post`<br/>
|
22
|
+
Now you need to pass `return_headers` as a key to the hash parameter `options`.
|
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
|
@@ -112,7 +112,7 @@ licenses:
|
|
112
112
|
- MIT
|
113
113
|
metadata:
|
114
114
|
rubygems_mfa_required: 'true'
|
115
|
-
post_install_message:
|
115
|
+
post_install_message:
|
116
116
|
rdoc_options: []
|
117
117
|
require_paths:
|
118
118
|
- lib
|
@@ -120,15 +120,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
121
121
|
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '2
|
123
|
+
version: '3.2'
|
124
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
126
|
- - ">="
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
|
-
rubygems_version: 3.
|
131
|
-
signing_key:
|
130
|
+
rubygems_version: 3.4.19
|
131
|
+
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Minato Ruby Utils
|
134
134
|
test_files: []
|