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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fd38910a4d87204ca3ec46f9ca1897bb092ce6e81c6be9ee9c84e517b035101
4
- data.tar.gz: be4c68e576c242bec0dd3e0130da2e57872d5ce93471808d2f2e9dba27e0e95e
3
+ metadata.gz: 75697ffc149238ead385297e9d08deddc52982f701d7c265bcbe6887be6e90d6
4
+ data.tar.gz: 4b10cc9d6b72de96e92c1ee318d576e06cfd25f78e7a3ce182ce1504865dbbc3
5
5
  SHA512:
6
- metadata.gz: cb29309723d871e21fdbe37f8aac9b348a06029147ca790ee95363b7184738acc01563b9f1cdabb06b4f118f79d2455eda4de35346565250a5c6b7112d7c21be
7
- data.tar.gz: 594537e7ff89d02888def187c62f2b5999d6a605f615f47e88f793fe6258356bb8d722ca52c716b41163befa87296807ff4fa5a0c74e366fad4c1beb6e2bec9d
6
+ metadata.gz: 6dde07156482b818c839ef8ee0b85056aa04c2d8dc2b73369a0ec23b5bde65761cabeea2b099a6bb1877c5a5db22e1c1166db92c6a11ce6c22d01da9795590c6
7
+ data.tar.gz: 34afe313dcad36c149e6a26c41b747ae35dea68990380c74eebafc2edfa27db433f8de4b2fcc438ed52d8e538990faf7a3195abfbe4a3c493af995604fba9189
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
@@ -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.7.3
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
- RSPec/VerifiedDoubleReference:
29
- EnforcedStyle: string
30
-
31
- Style/Documentation:
32
- Enabled: false
33
-
34
- Layout/HashAlignment:
35
- EnforcedColonStyle: table
36
- EnforcedHashRocketStyle: table
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.7.3
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', '~> 7.0.4'
12
- gem 'bundler', '~> 2.2'
13
- gem 'database_cleaner-active_record', '~> 2.0.1'
14
- gem 'json', '~> 2.6'
15
- gem 'pry', '~> 0.14'
16
- gem 'rake', '~> 13.1.0'
17
- gem 'rspec', '~> 3.12.0'
18
- gem 'rubocop', '~> 1.57.2'
19
- gem 'rubocop-rails', '~> 2.22.2'
20
- gem 'rubocop-rake', '~> 0.6.0'
21
- gem 'rubocop-rspec', '~> 2.25.0'
22
- gem 'sqlite3', '~> 1.6.9'
23
- gem 'webmock', '~> 3.19.1'
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.2)
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,221 +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
- csv (3.3.0)
32
- database_cleaner-active_record (2.0.1)
44
+ csv (3.3.5)
45
+ database_cleaner-active_record (2.2.2)
33
46
  activerecord (>= 5.a)
34
- database_cleaner-core (~> 2.0.0)
47
+ database_cleaner-core (~> 2.0)
35
48
  database_cleaner-core (2.0.1)
36
- diff-lcs (1.5.0)
37
- faraday (2.8.1)
38
- base64
39
- faraday-net_http (>= 2.0, < 3.1)
40
- ruby2_keywords (>= 0.0.4)
41
- faraday-net_http (3.0.2)
42
- faraday-retry (2.2.1)
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 (0.21.1)
59
+ gapic-common (1.2.0)
45
60
  faraday (>= 1.9, < 3.a)
46
61
  faraday-retry (>= 1.0, < 3.a)
47
- google-protobuf (~> 3.18)
48
- googleapis-common-protos (>= 1.4.0, < 2.a)
49
- googleapis-common-protos-types (>= 1.11.0, < 2.a)
50
- googleauth (~> 1.9)
51
- grpc (~> 1.59)
52
- google-cloud-core (1.7.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)
53
70
  google-cloud-env (>= 1.0, < 3.a)
54
71
  google-cloud-errors (~> 1.0)
55
- google-cloud-env (2.1.1)
72
+ google-cloud-env (2.3.1)
73
+ base64 (~> 0.2)
56
74
  faraday (>= 1.0, < 3.a)
57
- google-cloud-error_reporting (0.43.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.10.0)
63
- gapic-common (>= 0.21.1, < 2.a)
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.4.0)
66
- google-cloud-logging (2.5.0)
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.0.0)
72
- gapic-common (>= 0.21.1, < 2.a)
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.44.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.0.0)
81
- gapic-common (>= 0.21.1, < 2.a)
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.0.0)
84
- gapic-common (>= 0.21.1, < 2.a)
101
+ google-cloud-trace-v2 (1.4.0)
102
+ gapic-common (~> 1.2)
85
103
  google-cloud-errors (~> 1.0)
86
- google-protobuf (3.25.3-x64-mingw32)
87
- google-protobuf (3.25.3-x86_64-darwin)
88
- google-protobuf (3.25.3-x86_64-linux)
89
- googleapis-common-protos (1.6.0)
90
- google-protobuf (>= 3.18, < 5.a)
91
- googleapis-common-protos-types (~> 1.7)
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.15.0)
94
- google-protobuf (>= 3.18, < 5.a)
95
- googleauth (1.11.0)
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.1)
98
- jwt (>= 1.4, < 3.0)
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.64.0-x64-mingw32)
103
- google-protobuf (~> 3.25)
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.0.1)
112
- httparty (0.22.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.1)
130
+ i18n (1.14.7)
117
131
  concurrent-ruby (~> 1.0)
118
- json (2.6.3)
119
- jwt (2.8.2)
132
+ json (2.14.1)
133
+ jwt (3.1.2)
120
134
  base64
121
- language_server-protocol (3.17.0.3)
122
- method_source (1.0.0)
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.20.0)
125
- multi_json (1.15.0)
126
- 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
127
146
  os (1.1.4)
128
- parallel (1.23.0)
129
- parser (3.2.2.4)
147
+ parallel (1.27.0)
148
+ parser (3.3.9.0)
130
149
  ast (~> 2.4.1)
131
150
  racc
132
- pry (0.14.2)
151
+ prism (1.5.1)
152
+ pry (0.15.2)
133
153
  coderay (~> 1.1)
134
154
  method_source (~> 1.0)
135
- public_suffix (5.0.4)
136
- racc (1.7.3)
137
- rack (3.0.8)
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.8.2)
141
- rexml (3.2.6)
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.2)
166
+ rspec-core (3.12.3)
147
167
  rspec-support (~> 3.12.0)
148
- rspec-expectations (3.12.3)
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.6)
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.1)
155
- rubocop (1.57.2)
174
+ rspec-support (3.12.2)
175
+ rubocop (1.80.2)
156
176
  json (~> 2.3)
157
- language_server-protocol (>= 3.17.0)
177
+ language_server-protocol (~> 3.17.0.2)
178
+ lint_roller (~> 1.1.0)
158
179
  parallel (~> 1.10)
159
- parser (>= 3.2.2.4)
180
+ parser (>= 3.3.0.2)
160
181
  rainbow (>= 2.2.2, < 4.0)
161
- regexp_parser (>= 1.8, < 3.0)
162
- rexml (>= 3.2.5, < 4.0)
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, < 3.0)
166
- rubocop-ast (1.30.0)
167
- parser (>= 3.2.1.0)
168
- rubocop-capybara (2.19.0)
169
- rubocop (~> 1.41)
170
- rubocop-factory_bot (2.24.0)
171
- rubocop (~> 1.33)
172
- 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)
173
196
  activesupport (>= 4.2.0)
197
+ lint_roller (~> 1.1)
174
198
  rack (>= 1.1)
175
- rubocop (>= 1.33.0, < 2.0)
176
- rubocop-ast (>= 1.30.0, < 2.0)
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.25.0)
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
- ruby2_keywords (0.0.5)
185
- signet (0.19.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, < 3.0)
215
+ jwt (>= 1.5, < 4.0)
189
216
  multi_json (~> 1.10)
190
217
  simple_command (1.0.1)
191
- sqlite3 (1.6.9-x64-mingw32)
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.6.0)
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.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)
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
- x64-mingw32
210
- x86_64-darwin-21
211
- x86_64-linux
238
+ aarch64-linux
212
239
 
213
240
  DEPENDENCIES
214
- activerecord (~> 7.0.4)
215
- bundler (~> 2.2)
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.57.2)
223
- rubocop-rails (~> 2.22.2)
248
+ rubocop (~> 1.63)
249
+ rubocop-rails (~> 2.24)
224
250
  rubocop-rake (~> 0.6.0)
225
- rubocop-rspec (~> 2.25.0)
226
- sqlite3 (~> 1.6.9)
251
+ rubocop-rspec (~> 2.27)
252
+ sqlite3 (>= 2.1)
227
253
  webmock (~> 3.19.1)
228
254
 
229
255
  BUNDLED WITH
230
- 2.3.25
256
+ 2.4.1
@@ -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
@@ -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.2'
5
+ VERSION = '0.5.3'
6
6
  end
7
7
  end
@@ -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.7'
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', '~> 7.0.4'
28
- spec.add_dependency 'httparty', '~> 0.18'
29
- spec.add_dependency 'simple_command', '~> 1.0.1'
30
-
31
- spec.add_runtime_dependency 'stackdriver', '~> 0.21.1'
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.2
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: 2024-07-10 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
@@ -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.7'
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.1.6
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: []