allure-report-publisher 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/allure_report_publisher/lib/uploaders/s3.rb +9 -1
- data/lib/allure_report_publisher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 420438541bb271acbd5087eeb32afa461f9970d6fea36bd8b7394ac7392a5364
|
4
|
+
data.tar.gz: 762b5f3cdc21a57aa4dcfca924bac0cb5138ecb85c6bd154bffc9d92c24bc8bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b348c695ea4c51981aa0c02f1a7172ec10789109adfb9ad11262612e394694b0d15ef82fbfaba85e4fe3c7d8e2407b6a17afce78eeeabe94e41b271da62de983
|
7
|
+
data.tar.gz: 39fa239c54ea236ae902e1cf203bbb643495c94f140d2d06e8e3a1c37b408b2c8dac1ff6acc839fe4fa30cc7ef1ebcc5a69c7f47e4096949d88dd6c7592abeaa
|
data/README.md
CHANGED
@@ -66,6 +66,12 @@ Multiple cloud storage providers are supported
|
|
66
66
|
|
67
67
|
Requires environment variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` or credentials file `~/.aws/credentials`
|
68
68
|
|
69
|
+
Additional configuration:
|
70
|
+
|
71
|
+
- `AWS_REGION`: configure s3 region, default: `us-east-1`
|
72
|
+
- `AWS_FORCE_PATH_STYLE`: when set to true, the bucket name is always left in the request URI and never moved to the host as a sub-domain, default: `false`
|
73
|
+
- `AWS_ENDPOINT`: custom s3 endpoint when used with other s3 compatible storage
|
74
|
+
|
69
75
|
## Google Cloud Storage
|
70
76
|
|
71
77
|
Requires on of the following environment variables.
|
@@ -11,7 +11,7 @@ module Publisher
|
|
11
11
|
#
|
12
12
|
# @return [Aws::S3::Client]
|
13
13
|
def client
|
14
|
-
@client ||= Aws::S3::Client.new(
|
14
|
+
@client ||= Aws::S3::Client.new(client_args)
|
15
15
|
rescue Aws::Sigv4::Errors::MissingCredentialsError
|
16
16
|
raise(<<~MSG.strip)
|
17
17
|
missing aws credentials, provide credentials with one of the following options:
|
@@ -20,6 +20,14 @@ module Publisher
|
|
20
20
|
MSG
|
21
21
|
end
|
22
22
|
|
23
|
+
def client_args
|
24
|
+
@client_args ||= {
|
25
|
+
region: ENV["AWS_REGION"] || "us-east-1",
|
26
|
+
force_path_style: ENV["AWS_FORCE_PATH_STYLE"] == "true",
|
27
|
+
endpoint: ENV["AWS_ENDPOINT"]
|
28
|
+
}.compact
|
29
|
+
end
|
30
|
+
|
23
31
|
# Report url
|
24
32
|
#
|
25
33
|
# @return [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-report-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrejs Cunskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|