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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8d8f37477b030841d60ed2c4888ae199474c6f01a72474f5a7456ec17681eb6
4
- data.tar.gz: 7d71a7f33c78fbf236acd2dccbf1fffbee130636b3998c2c1e3e71a6ed71b3c0
3
+ metadata.gz: 420438541bb271acbd5087eeb32afa461f9970d6fea36bd8b7394ac7392a5364
4
+ data.tar.gz: 762b5f3cdc21a57aa4dcfca924bac0cb5138ecb85c6bd154bffc9d92c24bc8bc
5
5
  SHA512:
6
- metadata.gz: 268f1a1e09b5fbdd19d2458d4741548484a65f9a86427101dff8b65abebb087249c689775749ab662a1533ea9c2394e3b4b23409d8d2e1578b987fb42a2f62e7
7
- data.tar.gz: 19e92ffbda0b812657fae9fdd416309bbf1c69ed2543a094f624b6ad557a1d65b65908bbfbede9f3885684eaaf000edeef010aff2ad756d0c2e351dab41a32bd
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(region: ENV["AWS_REGION"] || "us-east-1")
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Publisher
4
- VERSION = "0.3.4"
4
+ VERSION = "0.3.5"
5
5
  end
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
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-06-18 00:00:00.000000000 Z
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