minato-utils 0.5.1 → 0.5.2
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/.rubocop.yml +36 -36
- data/Dockerfile +1 -0
- data/Gemfile +24 -24
- data/Gemfile.lock +53 -49
- 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 -36
- data/release-notes.md +22 -22
- metadata +6 -2
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/.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: 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,24 +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
|
|
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', '~> 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,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
minato-utils (0.5.
|
|
4
|
+
minato-utils (0.5.2)
|
|
5
5
|
activesupport (~> 7.0.4)
|
|
6
6
|
httparty (~> 0.18)
|
|
7
7
|
simple_command (~> 1.0.1)
|
|
@@ -28,92 +28,96 @@ GEM
|
|
|
28
28
|
concurrent-ruby (1.2.2)
|
|
29
29
|
crack (0.4.5)
|
|
30
30
|
rexml
|
|
31
|
+
csv (3.3.0)
|
|
31
32
|
database_cleaner-active_record (2.0.1)
|
|
32
33
|
activerecord (>= 5.a)
|
|
33
34
|
database_cleaner-core (~> 2.0.0)
|
|
34
35
|
database_cleaner-core (2.0.1)
|
|
35
36
|
diff-lcs (1.5.0)
|
|
36
|
-
faraday (2.
|
|
37
|
+
faraday (2.8.1)
|
|
37
38
|
base64
|
|
38
39
|
faraday-net_http (>= 2.0, < 3.1)
|
|
39
40
|
ruby2_keywords (>= 0.0.4)
|
|
40
41
|
faraday-net_http (3.0.2)
|
|
41
|
-
faraday-retry (2.2.
|
|
42
|
+
faraday-retry (2.2.1)
|
|
42
43
|
faraday (~> 2.0)
|
|
43
|
-
gapic-common (0.
|
|
44
|
+
gapic-common (0.21.1)
|
|
44
45
|
faraday (>= 1.9, < 3.a)
|
|
45
46
|
faraday-retry (>= 1.0, < 3.a)
|
|
46
|
-
google-protobuf (~> 3.
|
|
47
|
-
googleapis-common-protos (>= 1.
|
|
48
|
-
googleapis-common-protos-types (>= 1.
|
|
49
|
-
googleauth (~> 1.
|
|
50
|
-
grpc (~> 1.
|
|
51
|
-
google-cloud-core (1.
|
|
52
|
-
google-cloud-env (
|
|
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)
|
|
53
54
|
google-cloud-errors (~> 1.0)
|
|
54
|
-
google-cloud-env (1.
|
|
55
|
-
faraday (>= 0
|
|
56
|
-
google-cloud-error_reporting (0.
|
|
55
|
+
google-cloud-env (2.1.1)
|
|
56
|
+
faraday (>= 1.0, < 3.a)
|
|
57
|
+
google-cloud-error_reporting (0.43.0)
|
|
57
58
|
concurrent-ruby (~> 1.1)
|
|
58
59
|
google-cloud-core (~> 1.5)
|
|
59
60
|
google-cloud-error_reporting-v1beta1 (~> 0.0)
|
|
60
61
|
stackdriver-core (~> 1.3)
|
|
61
|
-
google-cloud-error_reporting-v1beta1 (0.
|
|
62
|
-
gapic-common (>= 0.
|
|
62
|
+
google-cloud-error_reporting-v1beta1 (0.10.0)
|
|
63
|
+
gapic-common (>= 0.21.1, < 2.a)
|
|
63
64
|
google-cloud-errors (~> 1.0)
|
|
64
|
-
google-cloud-errors (1.
|
|
65
|
-
google-cloud-logging (2.
|
|
65
|
+
google-cloud-errors (1.4.0)
|
|
66
|
+
google-cloud-logging (2.5.0)
|
|
66
67
|
concurrent-ruby (~> 1.1)
|
|
67
68
|
google-cloud-core (~> 1.5)
|
|
68
|
-
google-cloud-logging-v2 (
|
|
69
|
+
google-cloud-logging-v2 (>= 0.0, < 2.a)
|
|
69
70
|
stackdriver-core (~> 1.3)
|
|
70
|
-
google-cloud-logging-v2 (0.
|
|
71
|
-
gapic-common (>= 0.
|
|
71
|
+
google-cloud-logging-v2 (1.0.0)
|
|
72
|
+
gapic-common (>= 0.21.1, < 2.a)
|
|
72
73
|
google-cloud-errors (~> 1.0)
|
|
73
|
-
google-cloud-trace (0.
|
|
74
|
+
google-cloud-trace (0.44.0)
|
|
74
75
|
concurrent-ruby (~> 1.1)
|
|
75
76
|
google-cloud-core (~> 1.5)
|
|
76
|
-
google-cloud-trace-v1 (
|
|
77
|
-
google-cloud-trace-v2 (
|
|
77
|
+
google-cloud-trace-v1 (>= 0.0, < 2.a)
|
|
78
|
+
google-cloud-trace-v2 (>= 0.0, < 2.a)
|
|
78
79
|
stackdriver-core (~> 1.3)
|
|
79
|
-
google-cloud-trace-v1 (0.
|
|
80
|
-
gapic-common (>= 0.
|
|
80
|
+
google-cloud-trace-v1 (1.0.0)
|
|
81
|
+
gapic-common (>= 0.21.1, < 2.a)
|
|
81
82
|
google-cloud-errors (~> 1.0)
|
|
82
|
-
google-cloud-trace-v2 (0.
|
|
83
|
-
gapic-common (>= 0.
|
|
83
|
+
google-cloud-trace-v2 (1.0.0)
|
|
84
|
+
gapic-common (>= 0.21.1, < 2.a)
|
|
84
85
|
google-cloud-errors (~> 1.0)
|
|
85
|
-
google-protobuf (3.25.
|
|
86
|
-
google-protobuf (3.25.
|
|
87
|
-
google-protobuf (3.25.
|
|
88
|
-
googleapis-common-protos (1.
|
|
89
|
-
google-protobuf (
|
|
90
|
-
googleapis-common-protos-types (~> 1.
|
|
91
|
-
grpc (~> 1.
|
|
92
|
-
googleapis-common-protos-types (1.
|
|
93
|
-
google-protobuf (
|
|
94
|
-
googleauth (1.
|
|
95
|
-
faraday (>= 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)
|
|
96
98
|
jwt (>= 1.4, < 3.0)
|
|
97
99
|
multi_json (~> 1.11)
|
|
98
100
|
os (>= 0.9, < 2.0)
|
|
99
101
|
signet (>= 0.16, < 2.a)
|
|
100
|
-
grpc (1.
|
|
101
|
-
google-protobuf (~> 3.
|
|
102
|
+
grpc (1.64.0-x64-mingw32)
|
|
103
|
+
google-protobuf (~> 3.25)
|
|
102
104
|
googleapis-common-protos-types (~> 1.0)
|
|
103
|
-
grpc (1.
|
|
104
|
-
google-protobuf (~> 3.
|
|
105
|
+
grpc (1.64.0-x86_64-darwin)
|
|
106
|
+
google-protobuf (~> 3.25)
|
|
105
107
|
googleapis-common-protos-types (~> 1.0)
|
|
106
|
-
grpc (1.
|
|
107
|
-
google-protobuf (~> 3.
|
|
108
|
+
grpc (1.64.0-x86_64-linux)
|
|
109
|
+
google-protobuf (~> 3.25)
|
|
108
110
|
googleapis-common-protos-types (~> 1.0)
|
|
109
111
|
hashdiff (1.0.1)
|
|
110
|
-
httparty (0.
|
|
112
|
+
httparty (0.22.0)
|
|
113
|
+
csv
|
|
111
114
|
mini_mime (>= 1.0.0)
|
|
112
115
|
multi_xml (>= 0.5.2)
|
|
113
116
|
i18n (1.14.1)
|
|
114
117
|
concurrent-ruby (~> 1.0)
|
|
115
118
|
json (2.6.3)
|
|
116
|
-
jwt (2.
|
|
119
|
+
jwt (2.8.2)
|
|
120
|
+
base64
|
|
117
121
|
language_server-protocol (3.17.0.3)
|
|
118
122
|
method_source (1.0.0)
|
|
119
123
|
mini_mime (1.1.5)
|
|
@@ -178,7 +182,7 @@ GEM
|
|
|
178
182
|
rubocop-factory_bot (~> 2.22)
|
|
179
183
|
ruby-progressbar (1.13.0)
|
|
180
184
|
ruby2_keywords (0.0.5)
|
|
181
|
-
signet (0.
|
|
185
|
+
signet (0.19.0)
|
|
182
186
|
addressable (~> 2.8)
|
|
183
187
|
faraday (>= 0.17.5, < 3.a)
|
|
184
188
|
jwt (>= 1.5, < 3.0)
|
|
@@ -191,7 +195,7 @@ GEM
|
|
|
191
195
|
google-cloud-error_reporting (~> 0.41)
|
|
192
196
|
google-cloud-logging (~> 2.1)
|
|
193
197
|
google-cloud-trace (~> 0.40)
|
|
194
|
-
stackdriver-core (1.
|
|
198
|
+
stackdriver-core (1.6.0)
|
|
195
199
|
google-cloud-core (~> 1.2)
|
|
196
200
|
tzinfo (2.0.6)
|
|
197
201
|
concurrent-ruby (~> 1.0)
|
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,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 = '>= 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,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.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
|
|
@@ -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
|