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 +4 -4
- data/README.md +2 -2
- data/changelog.md +4 -0
- data/lib/s3_website/endpoint.rb +8 -1
- data/s3_website.gemspec +1 -1
- data/spec/lib/endpoint_spec.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46b9acd801794609373680934e09e07552a90894
|
4
|
+
data.tar.gz: cb28b546a1e74db949e5583f39561aeee9a129d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
data/lib/s3_website/endpoint.rb
CHANGED
@@ -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' =>
|
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
data/spec/lib/endpoint_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|