configure-s3-website 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1
4
+
5
+ * Do not send the location constraint XML when using the standard region
6
+
3
7
  ## 1.1.0
4
8
 
5
9
  * Add support for non-standard AWS regions
@@ -60,11 +60,16 @@ module ConfigureS3Website
60
60
 
61
61
  def self.create_bucket(config_source)
62
62
  endpoint = Endpoint.new(config_source.s3_endpoint || '')
63
- body = %|
64
- <CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
65
- <LocationConstraint>#{endpoint.location_constraint}</LocationConstraint>
66
- </CreateBucketConfiguration >
67
- |
63
+ body = if endpoint.region == 'US Standard'
64
+ '' # The standard endpoint does not need a location constraint
65
+ else
66
+ %|
67
+ <CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
68
+ <LocationConstraint>#{endpoint.location_constraint}</LocationConstraint>
69
+ </CreateBucketConfiguration >
70
+ |
71
+ end
72
+
68
73
  call_s3_api(
69
74
  path = "/#{config_source.s3_bucket_name}",
70
75
  method = Net::HTTP::Put,
@@ -1,3 +1,3 @@
1
1
  module ConfigureS3Website
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
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.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -133,7 +133,6 @@ files:
133
133
  - .gitignore
134
134
  - .travis.yml
135
135
  - Gemfile
136
- - Gemfile.lock
137
136
  - LICENSE
138
137
  - README.md
139
138
  - Rakefile
@@ -1,54 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- configure-s3-website (1.0.0)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- addressable (2.3.2)
10
- aruba (0.4.11)
11
- childprocess (>= 0.2.3)
12
- cucumber (>= 1.1.1)
13
- ffi (>= 1.0.11)
14
- rspec (>= 2.7.0)
15
- builder (3.1.4)
16
- childprocess (0.3.6)
17
- ffi (~> 1.0, >= 1.0.6)
18
- crack (0.3.1)
19
- cucumber (1.2.1)
20
- builder (>= 2.1.2)
21
- diff-lcs (>= 1.1.3)
22
- gherkin (~> 2.11.0)
23
- json (>= 1.4.6)
24
- diff-lcs (1.1.3)
25
- ffi (1.2.0)
26
- gherkin (2.11.5)
27
- json (>= 1.4.6)
28
- json (1.7.5)
29
- rake (0.9.6)
30
- rspec (2.10.0)
31
- rspec-core (~> 2.10.0)
32
- rspec-expectations (~> 2.10.0)
33
- rspec-mocks (~> 2.10.0)
34
- rspec-core (2.10.1)
35
- rspec-expectations (2.10.0)
36
- diff-lcs (~> 1.1.3)
37
- rspec-mocks (2.10.1)
38
- vcr (2.3.0)
39
- webmock (1.8.11)
40
- addressable (>= 2.2.7)
41
- crack (>= 0.1.7)
42
-
43
- PLATFORMS
44
- ruby
45
-
46
- DEPENDENCIES
47
- aruba (~> 0.4.0)
48
- configure-s3-website!
49
- cucumber (~> 1.2.0)
50
- rake (~> 0.9.0)
51
- rspec (~> 2.10.0)
52
- rspec-expectations (~> 2.10.0)
53
- vcr (~> 2.3.0)
54
- webmock (~> 1.8.0)