configure-s3-website 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0dc0c1f7e9c8a9b4178d28e76269570104b4e00f
4
- data.tar.gz: 2db14780b5dcb4e509f5ba5491dc1461c65286f2
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDNhYmY2NGJlNDViMDU4NjFhYzdkY2ZkZGVhMmM1MmZlOGRiZmY4ZA==
5
+ data.tar.gz: !binary |-
6
+ ODhmMzJiNGUxMjk5NTcyM2Y5MzBhMDMxNTEyYTM1MzFiNGUwYmM3MA==
5
7
  SHA512:
6
- metadata.gz: 75a40ffb42b7dc31696adfd11370adb4a9a3914abff39d4bf63ee8600cb397035d454bf456d73897768ddb384357dd6243d84fe32f39985ebd29f5c0a0ac2424
7
- data.tar.gz: b371a1b9c539484c932e1d64631285ec88540e5a4ba03ebdb2c7692dfd9ec6d19305e95aa6cca78218ee145d5a9190b59bd768eb4b4a4d497daf78751f0e2923
8
+ metadata.gz: !binary |-
9
+ YTljYzYwZjQ2OTU1MTFkZjQ5ZWJkYmE5MGQxZTdiZTQ3MzU0MWRhMzhlNGU3
10
+ MjFjYjVmNTM5ZTUzNjBkM2NmZTU1NDMxNzdmODhlOGU5OTQ3YzBhZGM0YzVk
11
+ MzQ1YjM5YWJhN2UyNDI2YjE1MDg3YmI5ZGE0MzJkMzA0NDc4MWY=
12
+ data.tar.gz: !binary |-
13
+ MGFiMWRhMGVkNGJkMWRlNzcxMGVhZGMzNjdlMjZjNWVlODg4ZDUyNGE2YjRh
14
+ ZmRkZDg2NTQwODg1ZmE3NTIyMWZiOWFmZDBmOWMxNGFlOTU3ZmVkNGIyMTJi
15
+ ZTQzOWI4NmE4NzgwZGJlMzQzMDlkMGM0OTk1ODNkZDMxN2YxMjk=
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 1.5.2
6
+
7
+ * Support location constraint eu-west-1
8
+
5
9
  ## 1.5.1
6
10
 
7
11
  * Use the S3 website domain as the Cloudfront origin
@@ -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' => { :region => 'EU (Ireland)', :endpoint => 's3-eu-west-1.amazonaws.com', :website_endpoint => 's3-website-eu-west-1.amazonaws.com' },
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' },
@@ -1,3 +1,3 @@
1
1
  module ConfigureS3Website
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
@@ -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.1
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: 2013-11-24 00:00:00.000000000 Z
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.0.3
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