configure-s3-website 1.7.4 → 1.7.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
  SHA1:
3
- metadata.gz: 1520dfada65dc18e62434f4374df69305fc87b01
4
- data.tar.gz: 65ca8ec93209289f9039628f3db2ae40f9306267
3
+ metadata.gz: 772c1776d6327d9b5f05962dc98c2db3993efbd8
4
+ data.tar.gz: 941789187e3608cdb2e7ab0a878ab8d06ea6818d
5
5
  SHA512:
6
- metadata.gz: c86f7290d8c4f61887eb05d8b0d1a623b8031ef279879d503277231beae3983ac64a9b763ecd740cb8bbd4395a6317921021b51341ab82577827794e60509f46
7
- data.tar.gz: 5b0d6d7a2bcf29909210afbd006facb81519a770ebae665bad370528a8bde4886e5565a838401c7c0dafb2b0c912f18fc615f91d06fb5fc3bb82b0f9ea04f665
6
+ metadata.gz: b5031cd1225cde3d2c30988ca8588f0b10ca9b67a115d1cb3c7ff2bda2405533f22638a15eac1f428dc05d1f6f8799f8f2445d412fb37fe04a1f981b96171850
7
+ data.tar.gz: 576061e3ca1fcb50e24af52dc9d924c8fee08082d0a9035e456cd10fb35cbbfbd21d4261760e6330c8d16a4e490b27e9c15c46dd1cf95370cc5aaa17f3c58255
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 1.7.5
6
+
7
+ * Fix CreateBucket broken in 1.7.4
8
+
5
9
  ## 1.7.4
6
10
 
7
11
  * Support all AWS regions
@@ -95,9 +95,14 @@ module ConfigureS3Website
95
95
  def self.create_bucket(config_source)
96
96
  s3(config_source).create_bucket({
97
97
  bucket: config_source.s3_bucket_name,
98
- create_bucket_configuration: {
99
- location_constraint: config_source.s3_endpoint
100
- }
98
+ create_bucket_configuration:
99
+ if config_source.s3_endpoint && config_source.s3_endpoint != 'us-east-1'
100
+ {
101
+ location_constraint: config_source.s3_endpoint
102
+ }
103
+ else
104
+ nil
105
+ end
101
106
  })
102
107
  puts "Created bucket %s in the %s Region" %
103
108
  [
@@ -1,3 +1,3 @@
1
1
  module ConfigureS3Website
2
- VERSION = '1.7.4'
2
+ VERSION = '1.7.5'
3
3
  end
@@ -76,9 +76,14 @@ describe ConfigureS3Website::S3Client do
76
76
  it 'calls the S3 CreateBucket API with the correct location constraint' do
77
77
  allow_any_instance_of(Aws::S3::Client).to receive(:create_bucket).with(
78
78
  hash_including(
79
- create_bucket_configuration: {
80
- location_constraint: conf[:region]
81
- }
79
+ create_bucket_configuration:
80
+ if conf[:region] == 'us-east-1'
81
+ nil
82
+ else
83
+ {
84
+ location_constraint: conf[:region]
85
+ }
86
+ end
82
87
  )
83
88
  )
84
89
  config_source = double('config_source')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configure-s3-website
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.4
4
+ version: 1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauri Lehmijoki