minato-utils 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.devcontainer/devcontainer.json +36 -0
- data/.devcontainer/docker-compose.yml +8 -0
- data/.gitlab-ci.yml +1 -1
- data/.rubocop.yml +36 -33
- data/Dockerfile +1 -0
- data/Gemfile +24 -8
- data/Gemfile.lock +170 -64
- data/compose.yml +11 -0
- data/lib/minato/utils/logger.rb +3 -2
- data/lib/minato/utils/version.rb +1 -1
- data/minato-ruby-utils.gemspec +36 -50
- data/release-notes.md +22 -17
- metadata +8 -186
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fd38910a4d87204ca3ec46f9ca1897bb092ce6e81c6be9ee9c84e517b035101
|
4
|
+
data.tar.gz: be4c68e576c242bec0dd3e0130da2e57872d5ce93471808d2f2e9dba27e0e95e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb29309723d871e21fdbe37f8aac9b348a06029147ca790ee95363b7184738acc01563b9f1cdabb06b4f118f79d2455eda4de35346565250a5c6b7112d7c21be
|
7
|
+
data.tar.gz: 594537e7ff89d02888def187c62f2b5999d6a605f615f47e88f793fe6258356bb8d722ca52c716b41163befa87296807ff4fa5a0c74e366fad4c1beb6e2bec9d
|
@@ -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/.gitlab-ci.yml
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
include:
|
2
|
-
|
2
|
+
- remote: https://gitlab.com/ferreri/minato/minato-ci/-/raw/v1.0.0/gem/.gitlab-ci.yml
|
data/.rubocop.yml
CHANGED
@@ -1,33 +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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
data/Dockerfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
FROM ruby:2.7.3
|
data/Gemfile
CHANGED
@@ -1,8 +1,24 @@
|
|
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
|
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
|
data/Gemfile.lock
CHANGED
@@ -1,100 +1,206 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
minato-utils (0.
|
4
|
+
minato-utils (0.5.2)
|
5
5
|
activesupport (~> 7.0.4)
|
6
6
|
httparty (~> 0.18)
|
7
|
-
simple_command (~> 0.1
|
7
|
+
simple_command (~> 1.0.1)
|
8
|
+
stackdriver (~> 0.21.1)
|
8
9
|
|
9
10
|
GEM
|
10
11
|
remote: https://rubygems.org/
|
11
12
|
specs:
|
12
|
-
activemodel (7.0.
|
13
|
-
activesupport (= 7.0.
|
14
|
-
activerecord (7.0.
|
15
|
-
activemodel (= 7.0.
|
16
|
-
activesupport (= 7.0.
|
17
|
-
activesupport (7.0.
|
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)
|
18
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
20
|
i18n (>= 1.6, < 2)
|
20
21
|
minitest (>= 5.1)
|
21
22
|
tzinfo (~> 2.0)
|
22
|
-
addressable (2.8.
|
23
|
-
public_suffix (>= 2.0.2, <
|
23
|
+
addressable (2.8.5)
|
24
|
+
public_suffix (>= 2.0.2, < 6.0)
|
24
25
|
ast (2.4.2)
|
26
|
+
base64 (0.2.0)
|
25
27
|
coderay (1.1.3)
|
26
|
-
concurrent-ruby (1.
|
28
|
+
concurrent-ruby (1.2.2)
|
27
29
|
crack (0.4.5)
|
28
30
|
rexml
|
31
|
+
csv (3.3.0)
|
29
32
|
database_cleaner-active_record (2.0.1)
|
30
33
|
activerecord (>= 5.a)
|
31
34
|
database_cleaner-core (~> 2.0.0)
|
32
35
|
database_cleaner-core (2.0.1)
|
33
|
-
diff-lcs (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)
|
43
|
+
faraday (~> 2.0)
|
44
|
+
gapic-common (0.21.1)
|
45
|
+
faraday (>= 1.9, < 3.a)
|
46
|
+
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)
|
53
|
+
google-cloud-env (>= 1.0, < 3.a)
|
54
|
+
google-cloud-errors (~> 1.0)
|
55
|
+
google-cloud-env (2.1.1)
|
56
|
+
faraday (>= 1.0, < 3.a)
|
57
|
+
google-cloud-error_reporting (0.43.0)
|
58
|
+
concurrent-ruby (~> 1.1)
|
59
|
+
google-cloud-core (~> 1.5)
|
60
|
+
google-cloud-error_reporting-v1beta1 (~> 0.0)
|
61
|
+
stackdriver-core (~> 1.3)
|
62
|
+
google-cloud-error_reporting-v1beta1 (0.10.0)
|
63
|
+
gapic-common (>= 0.21.1, < 2.a)
|
64
|
+
google-cloud-errors (~> 1.0)
|
65
|
+
google-cloud-errors (1.4.0)
|
66
|
+
google-cloud-logging (2.5.0)
|
67
|
+
concurrent-ruby (~> 1.1)
|
68
|
+
google-cloud-core (~> 1.5)
|
69
|
+
google-cloud-logging-v2 (>= 0.0, < 2.a)
|
70
|
+
stackdriver-core (~> 1.3)
|
71
|
+
google-cloud-logging-v2 (1.0.0)
|
72
|
+
gapic-common (>= 0.21.1, < 2.a)
|
73
|
+
google-cloud-errors (~> 1.0)
|
74
|
+
google-cloud-trace (0.44.0)
|
75
|
+
concurrent-ruby (~> 1.1)
|
76
|
+
google-cloud-core (~> 1.5)
|
77
|
+
google-cloud-trace-v1 (>= 0.0, < 2.a)
|
78
|
+
google-cloud-trace-v2 (>= 0.0, < 2.a)
|
79
|
+
stackdriver-core (~> 1.3)
|
80
|
+
google-cloud-trace-v1 (1.0.0)
|
81
|
+
gapic-common (>= 0.21.1, < 2.a)
|
82
|
+
google-cloud-errors (~> 1.0)
|
83
|
+
google-cloud-trace-v2 (1.0.0)
|
84
|
+
gapic-common (>= 0.21.1, < 2.a)
|
85
|
+
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)
|
92
|
+
grpc (~> 1.41)
|
93
|
+
googleapis-common-protos-types (1.15.0)
|
94
|
+
google-protobuf (>= 3.18, < 5.a)
|
95
|
+
googleauth (1.11.0)
|
96
|
+
faraday (>= 1.0, < 3.a)
|
97
|
+
google-cloud-env (~> 2.1)
|
98
|
+
jwt (>= 1.4, < 3.0)
|
99
|
+
multi_json (~> 1.11)
|
100
|
+
os (>= 0.9, < 2.0)
|
101
|
+
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)
|
110
|
+
googleapis-common-protos-types (~> 1.0)
|
34
111
|
hashdiff (1.0.1)
|
35
|
-
httparty (0.
|
36
|
-
|
112
|
+
httparty (0.22.0)
|
113
|
+
csv
|
114
|
+
mini_mime (>= 1.0.0)
|
37
115
|
multi_xml (>= 0.5.2)
|
38
|
-
i18n (1.
|
116
|
+
i18n (1.14.1)
|
39
117
|
concurrent-ruby (~> 1.0)
|
40
|
-
json (2.6.
|
118
|
+
json (2.6.3)
|
119
|
+
jwt (2.8.2)
|
120
|
+
base64
|
121
|
+
language_server-protocol (3.17.0.3)
|
41
122
|
method_source (1.0.0)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
minitest (5.16.3)
|
123
|
+
mini_mime (1.1.5)
|
124
|
+
minitest (5.20.0)
|
125
|
+
multi_json (1.15.0)
|
46
126
|
multi_xml (0.6.0)
|
47
|
-
|
48
|
-
|
127
|
+
os (1.1.4)
|
128
|
+
parallel (1.23.0)
|
129
|
+
parser (3.2.2.4)
|
49
130
|
ast (~> 2.4.1)
|
50
|
-
|
131
|
+
racc
|
132
|
+
pry (0.14.2)
|
51
133
|
coderay (~> 1.1)
|
52
134
|
method_source (~> 1.0)
|
53
|
-
public_suffix (
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
rspec-
|
62
|
-
rspec-
|
63
|
-
|
64
|
-
|
65
|
-
|
135
|
+
public_suffix (5.0.4)
|
136
|
+
racc (1.7.3)
|
137
|
+
rack (3.0.8)
|
138
|
+
rainbow (3.1.1)
|
139
|
+
rake (13.1.0)
|
140
|
+
regexp_parser (2.8.2)
|
141
|
+
rexml (3.2.6)
|
142
|
+
rspec (3.12.0)
|
143
|
+
rspec-core (~> 3.12.0)
|
144
|
+
rspec-expectations (~> 3.12.0)
|
145
|
+
rspec-mocks (~> 3.12.0)
|
146
|
+
rspec-core (3.12.2)
|
147
|
+
rspec-support (~> 3.12.0)
|
148
|
+
rspec-expectations (3.12.3)
|
66
149
|
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
-
rspec-support (~> 3.
|
68
|
-
rspec-mocks (3.
|
150
|
+
rspec-support (~> 3.12.0)
|
151
|
+
rspec-mocks (3.12.6)
|
69
152
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-support (3.
|
72
|
-
rubocop (1.
|
153
|
+
rspec-support (~> 3.12.0)
|
154
|
+
rspec-support (3.12.1)
|
155
|
+
rubocop (1.57.2)
|
156
|
+
json (~> 2.3)
|
157
|
+
language_server-protocol (>= 3.17.0)
|
73
158
|
parallel (~> 1.10)
|
74
|
-
parser (>= 3.
|
159
|
+
parser (>= 3.2.2.4)
|
75
160
|
rainbow (>= 2.2.2, < 4.0)
|
76
161
|
regexp_parser (>= 1.8, < 3.0)
|
77
|
-
rexml
|
78
|
-
rubocop-ast (>= 1.
|
162
|
+
rexml (>= 3.2.5, < 4.0)
|
163
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
79
164
|
ruby-progressbar (~> 1.7)
|
80
|
-
unicode-display_width (>=
|
81
|
-
rubocop-ast (1.
|
82
|
-
parser (>= 3.
|
83
|
-
rubocop-
|
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)
|
84
173
|
activesupport (>= 4.2.0)
|
85
174
|
rack (>= 1.1)
|
86
|
-
rubocop (>= 1.
|
175
|
+
rubocop (>= 1.33.0, < 2.0)
|
176
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
87
177
|
rubocop-rake (0.6.0)
|
88
178
|
rubocop (~> 1.0)
|
89
|
-
rubocop-rspec (2.
|
90
|
-
rubocop (~> 1.
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
179
|
+
rubocop-rspec (2.25.0)
|
180
|
+
rubocop (~> 1.40)
|
181
|
+
rubocop-capybara (~> 2.17)
|
182
|
+
rubocop-factory_bot (~> 2.22)
|
183
|
+
ruby-progressbar (1.13.0)
|
184
|
+
ruby2_keywords (0.0.5)
|
185
|
+
signet (0.19.0)
|
186
|
+
addressable (~> 2.8)
|
187
|
+
faraday (>= 0.17.5, < 3.a)
|
188
|
+
jwt (>= 1.5, < 3.0)
|
189
|
+
multi_json (~> 1.10)
|
190
|
+
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)
|
194
|
+
stackdriver (0.21.1)
|
195
|
+
google-cloud-error_reporting (~> 0.41)
|
196
|
+
google-cloud-logging (~> 2.1)
|
197
|
+
google-cloud-trace (~> 0.40)
|
198
|
+
stackdriver-core (1.6.0)
|
199
|
+
google-cloud-core (~> 1.2)
|
200
|
+
tzinfo (2.0.6)
|
95
201
|
concurrent-ruby (~> 1.0)
|
96
|
-
unicode-display_width (2.
|
97
|
-
webmock (3.
|
202
|
+
unicode-display_width (2.5.0)
|
203
|
+
webmock (3.19.1)
|
98
204
|
addressable (>= 2.8.0)
|
99
205
|
crack (>= 0.3.2)
|
100
206
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -111,14 +217,14 @@ DEPENDENCIES
|
|
111
217
|
json (~> 2.6)
|
112
218
|
minato-utils!
|
113
219
|
pry (~> 0.14)
|
114
|
-
rake (~>
|
115
|
-
rspec (~> 3.0)
|
116
|
-
rubocop (~> 1.
|
117
|
-
rubocop-rails (~> 2.
|
220
|
+
rake (~> 13.1.0)
|
221
|
+
rspec (~> 3.12.0)
|
222
|
+
rubocop (~> 1.57.2)
|
223
|
+
rubocop-rails (~> 2.22.2)
|
118
224
|
rubocop-rake (~> 0.6.0)
|
119
|
-
rubocop-rspec (~> 2.
|
120
|
-
sqlite3 (~> 1.
|
121
|
-
webmock (~> 3.
|
225
|
+
rubocop-rspec (~> 2.25.0)
|
226
|
+
sqlite3 (~> 1.6.9)
|
227
|
+
webmock (~> 3.19.1)
|
122
228
|
|
123
229
|
BUNDLED WITH
|
124
230
|
2.3.25
|
data/compose.yml
ADDED
data/lib/minato/utils/logger.rb
CHANGED
@@ -27,7 +27,7 @@ module Minato
|
|
27
27
|
return unless @logger
|
28
28
|
|
29
29
|
call :info,
|
30
|
-
message:
|
30
|
+
message: "Minato::Utils::Client starting request to #{host}#{path}",
|
31
31
|
http_request: request_data(method, host, path, options)
|
32
32
|
end
|
33
33
|
|
@@ -35,7 +35,7 @@ module Minato
|
|
35
35
|
return unless @logger
|
36
36
|
|
37
37
|
call :info,
|
38
|
-
message:
|
38
|
+
message: "Minato::Utils::Client receiving response from #{host}#{path}",
|
39
39
|
http_request: request_data(method, host, path, options),
|
40
40
|
http_response: response_data(response)
|
41
41
|
end
|
@@ -54,6 +54,7 @@ module Minato
|
|
54
54
|
}
|
55
55
|
|
56
56
|
data[:query] = options[:query] if options[:query]
|
57
|
+
data[:body] = options[:body] if options[:body]
|
57
58
|
@debug ? data.merge({ headers: options[:headers] }) : data
|
58
59
|
end
|
59
60
|
|
data/lib/minato/utils/version.rb
CHANGED
data/minato-ruby-utils.gemspec
CHANGED
@@ -1,50 +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', '~> 0.1
|
30
|
-
|
31
|
-
spec.
|
32
|
-
|
33
|
-
spec.
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
38
|
-
spec.add_development_dependency 'rubocop', '~> 1.23.0'
|
39
|
-
spec.add_development_dependency 'rubocop-rails', '~> 2.12.4'
|
40
|
-
spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
|
41
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 2.6.0'
|
42
|
-
spec.add_development_dependency 'sqlite3', '~> 1.4.2'
|
43
|
-
spec.add_development_dependency 'webmock', '~> 3.14'
|
44
|
-
|
45
|
-
spec.add_runtime_dependency 'stackdriver', '~> 0.21.1'
|
46
|
-
|
47
|
-
spec.metadata = {
|
48
|
-
'rubygems_mfa_required' => 'true'
|
49
|
-
}
|
50
|
-
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 = '>= 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
|
data/release-notes.md
CHANGED
@@ -1,17 +1,22 @@
|
|
1
|
-
# Release Notes
|
2
|
-
|
3
|
-
## v0.
|
4
|
-
|
5
|
-
### Compatibility Notes
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ferreri
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,196 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1
|
47
|
+
version: 1.0.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: activerecord
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 7.0.4
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 7.0.4
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: bundler
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '2.2'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '2.2'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: database_cleaner-active_record
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 2.0.1
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 2.0.1
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: json
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '2.6'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '2.6'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: pry
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0.14'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0.14'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rake
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '10.0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '10.0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '3.0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '3.0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rubocop
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 1.23.0
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 1.23.0
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rubocop-rails
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 2.12.4
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 2.12.4
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: rubocop-rake
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 0.6.0
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: 0.6.0
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: rubocop-rspec
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - "~>"
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: 2.6.0
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - "~>"
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 2.6.0
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: sqlite3
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 1.4.2
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 1.4.2
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: webmock
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - "~>"
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '3.14'
|
230
|
-
type: :development
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - "~>"
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: '3.14'
|
54
|
+
version: 1.0.1
|
237
55
|
- !ruby/object:Gem::Dependency
|
238
56
|
name: stackdriver
|
239
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -255,17 +73,21 @@ executables: []
|
|
255
73
|
extensions: []
|
256
74
|
extra_rdoc_files: []
|
257
75
|
files:
|
76
|
+
- ".devcontainer/devcontainer.json"
|
77
|
+
- ".devcontainer/docker-compose.yml"
|
258
78
|
- ".editorconfig"
|
259
79
|
- ".gitignore"
|
260
80
|
- ".gitlab-ci.yml"
|
261
81
|
- ".rubocop.yml"
|
262
82
|
- ".ruby-version"
|
83
|
+
- Dockerfile
|
263
84
|
- Gemfile
|
264
85
|
- Gemfile.lock
|
265
86
|
- README.md
|
266
87
|
- Rakefile
|
267
88
|
- bin/console
|
268
89
|
- bin/setup
|
90
|
+
- compose.yml
|
269
91
|
- lib/minato/utils.rb
|
270
92
|
- lib/minato/utils/base_command/base.rb
|
271
93
|
- lib/minato/utils/base_command/create.rb
|