configure-s3-website 1.5.1 → 1.5.2
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 +13 -5
- data/changelog.md +4 -0
- data/lib/configure-s3-website/s3_client.rb +8 -1
- data/lib/configure-s3-website/version.rb +1 -1
- data/spec/endpoint_spec.rb +12 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDNhYmY2NGJlNDViMDU4NjFhYzdkY2ZkZGVhMmM1MmZlOGRiZmY4ZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ODhmMzJiNGUxMjk5NTcyM2Y5MzBhMDMxNTEyYTM1MzFiNGUwYmM3MA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YTljYzYwZjQ2OTU1MTFkZjQ5ZWJkYmE5MGQxZTdiZTQ3MzU0MWRhMzhlNGU3
|
10
|
+
MjFjYjVmNTM5ZTUzNjBkM2NmZTU1NDMxNzdmODhlOGU5OTQ3YzBhZGM0YzVk
|
11
|
+
MzQ1YjM5YWJhN2UyNDI2YjE1MDg3YmI5ZGE0MzJkMzA0NDc4MWY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MGFiMWRhMGVkNGJkMWRlNzcxMGVhZGMzNjdlMjZjNWVlODg4ZDUyNGE2YjRh
|
14
|
+
ZmRkZDg2NTQwODg1ZmE3NTIyMWZiOWFmZDBmOWMxNGFlOTU3ZmVkNGIyMTJi
|
15
|
+
ZTQzOWI4NmE4NzgwZGJlMzQzMDlkMGM0OTk1ODNkZDMxN2YxMjk=
|
data/changelog.md
CHANGED
@@ -143,11 +143,18 @@ module ConfigureS3Website
|
|
143
143
|
|
144
144
|
# http://docs.amazonwebservices.com/general/latest/gr/rande.html#s3_region
|
145
145
|
def location_constraints
|
146
|
+
eu_west_1_region = {
|
147
|
+
:region => 'EU (Ireland)',
|
148
|
+
:website_hostname => 's3-website-eu-west-1.amazonaws.com',
|
149
|
+
:endpoint => 's3-eu-west-1.amazonaws.com'
|
150
|
+
}
|
151
|
+
|
146
152
|
{
|
147
153
|
'' => { :region => 'US Standard', :endpoint => 's3.amazonaws.com', :website_endpoint => 's3-website-us-east-1.amazonaws.com' },
|
148
154
|
'us-west-2' => { :region => 'US West (Oregon)', :endpoint => 's3-us-west-2.amazonaws.com', :website_endpoint => 's3-website-us-west-2.amazonaws.com' },
|
149
155
|
'us-west-1' => { :region => 'US West (Northern California)', :endpoint => 's3-us-west-1.amazonaws.com', :website_endpoint => 's3-website-us-west-1.amazonaws.com' },
|
150
|
-
'EU' =>
|
156
|
+
'EU' => eu_west_1_region,
|
157
|
+
'eu-west-1' => eu_west_1_region,
|
151
158
|
'ap-southeast-1' => { :region => 'Asia Pacific (Singapore)', :endpoint => 's3-ap-southeast-1.amazonaws.com', :website_endpoint => 's3-website-ap-southeast-1.amazonaws.com' },
|
152
159
|
'ap-southeast-2' => { :region => 'Asia Pacific (Sydney)', :endpoint => 's3-ap-southeast-2.amazonaws.com', :website_endpoint => 's3-website-ap-southeast-2.amazonaws.com' },
|
153
160
|
'ap-northeast-1' => { :region => 'Asia Pacific (Tokyo)', :endpoint => 's3-ap-northeast-1.amazonaws.com', :website_endpoint => 's3-website-ap-northeast-1.amazonaws.com' },
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'configure-s3-website'
|
3
|
+
|
4
|
+
describe ConfigureS3Website::Endpoint do
|
5
|
+
it 'should return the same value for EU and eu-west-1' do
|
6
|
+
eu = ConfigureS3Website::Endpoint.new('EU')
|
7
|
+
eu_west_1 = ConfigureS3Website::Endpoint.new('eu-west-1')
|
8
|
+
eu.region.should eq(eu_west_1.region)
|
9
|
+
eu.hostname.should eq(eu_west_1.hostname)
|
10
|
+
eu.website_hostname.should eq(eu_west_1.website_hostname)
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configure-s3-website
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lauri Lehmijoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deep_merge
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/configure-s3-website/xml_helper.rb
|
186
186
|
- spec/cloudfront_client_spec.rb
|
187
187
|
- spec/config_source/file_config_source_spec.rb
|
188
|
+
- spec/endpoint_spec.rb
|
188
189
|
- spec/s3_client_spec.rb
|
189
190
|
- spec/sample_files/_config_file.yml
|
190
191
|
- spec/sample_files/_config_file_oregon.yml
|
@@ -201,17 +202,17 @@ require_paths:
|
|
201
202
|
- lib
|
202
203
|
required_ruby_version: !ruby/object:Gem::Requirement
|
203
204
|
requirements:
|
204
|
-
- - '>='
|
205
|
+
- - ! '>='
|
205
206
|
- !ruby/object:Gem::Version
|
206
207
|
version: '0'
|
207
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
209
|
requirements:
|
209
|
-
- - '>='
|
210
|
+
- - ! '>='
|
210
211
|
- !ruby/object:Gem::Version
|
211
212
|
version: '0'
|
212
213
|
requirements: []
|
213
214
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.
|
215
|
+
rubygems_version: 2.1.9
|
215
216
|
signing_key:
|
216
217
|
specification_version: 4
|
217
218
|
summary: Configure your AWS S3 bucket to function as a web site
|
@@ -239,6 +240,7 @@ test_files:
|
|
239
240
|
- features/support/vcr.rb
|
240
241
|
- spec/cloudfront_client_spec.rb
|
241
242
|
- spec/config_source/file_config_source_spec.rb
|
243
|
+
- spec/endpoint_spec.rb
|
242
244
|
- spec/s3_client_spec.rb
|
243
245
|
- spec/sample_files/_config_file.yml
|
244
246
|
- spec/sample_files/_config_file_oregon.yml
|