allure-report-publisher 0.3.4 → 0.4.1
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 +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1132e1efd87442e566b7d11973bfa9569b85faecd82a833014fd39f2867cddb2
|
4
|
+
data.tar.gz: eecf66653a3e917813697531f27db7ee741c078268e0811a146cbdb7f9ce792f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b5cbf4cc0f09352aa146d3a9abae4633e83a52a55024968b67974b5ede202e536ee4fe7ea98021f056d6035de49cd7be88f84c42fbf2d7df0966ce15464aefd
|
7
|
+
data.tar.gz: 0cb3e6bb5f73d1d3fd8635d6b6c9312233bae29be531b5a74df6412f27a9743748b4e64056bb9c34d9c33b22d3de3d15482a4bed98f804164cc0b673b474ca42
|
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.
|
4
|
+
version: 0.4.1
|
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-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 1.93.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
22
|
+
version: 1.106.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 1.93.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
32
|
+
version: 1.106.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: dry-cli
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
- !ruby/object:Gem::Version
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
|
-
rubygems_version: 3.2.
|
199
|
+
rubygems_version: 3.2.22
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: Allure report uploader
|