awspec 1.24.0 → 1.24.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 653ceb92e32ac29da52acab4686ba388f0a025e10625a12bd6c3b63274d8f932
4
- data.tar.gz: 3b683d3e692ee603417b118fc1037e45c0be0248b01094197bb0b8a22880aeb9
3
+ metadata.gz: ccbb248dd9ff83f422a5d62d6463be302ee629861e3a29ebfb3b062313ccca4f
4
+ data.tar.gz: 14fb693105dafceb27095c0ec2af853422f5ed92ee877a69df66a4679a6acad1
5
5
  SHA512:
6
- metadata.gz: 79fc488d8e027e2aa9224c8fa53ba22ec50141c8acfdb62f1d4d403abb277a7ecbcc4cc7c81cd7b697da9ca3b1bc710abc4f3fc70a0f748a78aa1212abe13a66
7
- data.tar.gz: feebfffdc658273716fe7d3178521a857b06f919844211fdfd03035fef093a7450bbe6cf476d1d713cd393d8a903078334325a59326453ee860e36ff3c75e4b4
6
+ metadata.gz: 4d580f1de54fd8a7b5106d83f4b5b7320f2679d5eb58ef6d73009fb340bc7a0193b78f4f10d16601d9dacb5658a94936efd0af40699ef781229eef54c645e7f3
7
+ data.tar.gz: bf0f3fa1ab69f5945307284f1b3460bfadb9571c892601418dbfaee6536cd4269fdbc4b1c1631b438098dace53aeb49bdaa59773bc03d759ee3c709970c5b235
@@ -37,7 +37,11 @@ module Awspec::Helper
37
37
 
38
38
  def find_bucket_location(id)
39
39
  bucket_location = s3_client.get_bucket_location(bucket: id)
40
- bucket_location.location_constraint
40
+ if bucket_location.location_constraint.nil? || bucket_location.location_constraint.empty?
41
+ 'us-east-1'
42
+ else
43
+ bucket_location.location_constraint
44
+ end
41
45
  rescue Aws::S3::Errors::ServiceError
42
46
  nil
43
47
  end
@@ -120,7 +120,7 @@ Aws.config[:s3] = {
120
120
  ]
121
121
  },
122
122
  get_bucket_location: {
123
- location_constraint: 'us-east-1'
123
+ location_constraint: 'ap-northeast-1'
124
124
  },
125
125
  get_bucket_encryption: {
126
126
  server_side_encryption_configuration: {
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '1.24.0'
2
+ VERSION = '1.24.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-06 00:00:00.000000000 Z
11
+ date: 2021-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk