s3_website 1.4.3 → 1.4.4

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: 208d40e7394f351f16e3c11d4a857a2e543f77fb
4
- data.tar.gz: 96e32328e1f597c5d250fbdaaeaeeff0412f5d61
3
+ metadata.gz: 46b9acd801794609373680934e09e07552a90894
4
+ data.tar.gz: cb28b546a1e74db949e5583f39561aeee9a129d5
5
5
  SHA512:
6
- metadata.gz: 799c38a2c236ae443e349851e3e310b994fbeefd187901cdd243328e7db1e639a23cc1ef98e29737883e48a0dbcd844378f2172de318772066e73687904a974d
7
- data.tar.gz: 734d32ec218423df0fc0747cdf3f32415921d104f67dc8098a630af2fa276a43ee9b5bad3350fe023a5a36a10ab11a6f848fd93825b6a3d04ae63642e744f15a
6
+ metadata.gz: 27a47e5a17eea3fef9e5b0a7c64bf9b06666263ed8ce7893fdf5942e9e8ce674054f688593cac9b80b6d9f3b222da619cc4ffb0199de063ccd7abefc7393ff73
7
+ data.tar.gz: 29ca62a70b449c1e6c9e171ceb7b6d5fd5f396e41830be3d046273808e7e8a9399f7137a9aebe79382a78fc8eb7f04d2c24ff242dbcbdbc9cb6dc15356ca46b5
data/README.md CHANGED
@@ -322,8 +322,7 @@ You can increase the concurrency level by adding the following setting into the
322
322
  concurrency_level: <integer>
323
323
  ```
324
324
 
325
- You can speed up the `s3_website push` operation by increasing the concurrency
326
- level. However, because S3 throttles connections, there's an upper limit to the
325
+ However, because S3 throttles connections, there's an upper limit to the
327
326
  level of parallelism. If you start to see end-of-file errors, decrease the
328
327
  concurrency level. Conversely, if you don't experience any errors, you can
329
328
  increase the concurrency level and thus benefit from faster uploads.
@@ -389,6 +388,7 @@ Contributors (in alphabetical order)
389
388
  * Chris Kelly
390
389
  * Chris Moos
391
390
  * David Michael Barr
391
+ * Greg Karékinian
392
392
  * László Bácsi
393
393
  * Mason Turner
394
394
  * Michael Bleigh
data/changelog.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 1.4.4
6
+
7
+ * Add support for eu-west-1 as a location constraint
8
+
5
9
  ## 1.4.3
6
10
 
7
11
  * Decrease the default concurrency level to 3
@@ -15,11 +15,18 @@ module S3Website
15
15
 
16
16
  # http://docs.amazonwebservices.com/general/latest/gr/rande.html#s3_region
17
17
  def location_constraints
18
+ eu_west_1_region = {
19
+ :region => 'EU (Ireland)',
20
+ :website_hostname => 's3-website-eu-west-1.amazonaws.com',
21
+ :endpoint => 's3-eu-west-1.amazonaws.com'
22
+ }
23
+
18
24
  {
19
25
  'us-east-1' => { :region => 'US Standard', :website_hostname => 's3-website-us-east-1.amazonaws.com', :endpoint => 's3.amazonaws.com' },
20
26
  'us-west-2' => { :region => 'US West (Oregon)', :website_hostname => 's3-website-us-west-2.amazonaws.com', :endpoint => 's3-us-west-2.amazonaws.com' },
21
27
  'us-west-1' => { :region => 'US West (Northern California)', :website_hostname => 's3-website-us-west-1.amazonaws.com', :endpoint => 's3-us-west-1.amazonaws.com' },
22
- 'EU' => { :region => 'EU (Ireland)', :website_hostname => 's3-website-eu-west-1.amazonaws.com', :endpoint => 's3-eu-west-1.amazonaws.com' },
28
+ 'EU' => eu_west_1_region,
29
+ 'eu-west-1' => eu_west_1_region,
23
30
  'ap-southeast-1' => { :region => 'Asia Pacific (Singapore)', :website_hostname => 's3-website-ap-southeast-1.amazonaws.com', :endpoint => 's3-ap-southeast-1.amazonaws.com' },
24
31
  'ap-southeast-2' => { :region => 'Asia Pacific (Sydney)', :website_hostname => 's3-website-ap-southeast-2.amazonaws.com', :endpoint => 's3-ap-southeast-2.amazonaws.com' },
25
32
  'ap-northeast-1' => { :region => 'Asia Pacific (Tokyo)', :website_hostname => 's3-website-ap-northeast-1.amazonaws.com', :endpoint => 's3-ap-northeast-1.amazonaws.com' },
data/s3_website.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "s3_website"
6
- s.version = "1.4.3"
6
+ s.version = "1.4.4"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Lauri Lehmijoki"]
9
9
  s.email = ["lauri.lehmijoki@iki.fi"]
@@ -17,11 +17,15 @@ describe S3Website::Endpoint do
17
17
  endpoint.location_constraint.should eq('EU')
18
18
  end
19
19
 
20
+ it 'takes eu-west-1 as an alias for EU' do
21
+ endpoint = S3Website::Endpoint.new('eu-west-1')
22
+ endpoint.location_constraint.should eq('eu-west-1')
23
+ S3Website::Endpoint.new.location_constraints['EU'].should eq(S3Website::Endpoint.new.location_constraints['eu-west-1'])
24
+ end
25
+
20
26
  it 'fails if the location constraint is invalid' do
21
27
  expect {
22
28
  S3Website::Endpoint.new('andromeda')
23
29
  }.to raise_error
24
30
  end
25
31
  end
26
-
27
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_website
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
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-09-22 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk