bundle_cache 0.0.5 → 0.0.6

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: d2046e1c72ae066562822e3b5354ad511ab23aff
4
- data.tar.gz: 0de2cb4e448ac4d0d3c6873e15a408e38f5d5924
3
+ metadata.gz: e981ba034ee74cacabe68112da703ecc235143c6
4
+ data.tar.gz: fb4148b5189e9d41e9e0f42fd6b1c00c96119349
5
5
  SHA512:
6
- metadata.gz: 2ec66813722ab3b14c58263d5cc1ccece53d7cca32a72ebbdf0510bba7793fc3aa8cf9d167d259f0577342529030439429fec2e7b824f2ff3d9912566c32133b
7
- data.tar.gz: 0eeddaf83b98504bac9181c15e4cc5df20457efe7e609af11f7887695c2baa71637f922c3e0428b1a147308fe4944c8815e3e1fdd11c44e1c7893e5fc9348119
6
+ metadata.gz: 8956e3aee3dfdf9ed82a7bf22e709c679fb90fd678d8caac877cb9797f858576e5ef3217351894588d335f90bf179da10b6d0370fcb2b85b66480789cecafbd2
7
+ data.tar.gz: a7134211590bc96fd60409e17e7b89e8ffa794febb259c9972013a4928feaaf0ac89f495ee24b19b48ac130a31a74a9f9472e61d441285cc97ea2f0b156feae1
@@ -3,6 +3,10 @@
3
3
  architecture = `uname -m`.strip
4
4
  file_name = "#{ENV['BUNDLE_ARCHIVE']}-#{architecture}.tgz"
5
5
 
6
+ # See http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
7
+ region = ENV['AWS_S3_REGION'] || 'us-east-1'
8
+ endpoint = region == 'us-east-1' ? 's3.amazonaws.com' : "s3-#{region}.amazonaws.com"
9
+
6
10
  Dir.chdir(ENV['HOME'])
7
- `wget -O "remote_#{file_name}" "https://s3.amazonaws.com/#{ENV['AWS_S3_BUCKET']}/#{file_name}" && tar -xf "remote_#{file_name}"`
8
- `wget -O "remote_#{file_name}.sha2" "https://s3.amazonaws.com/#{ENV['AWS_S3_BUCKET']}/#{file_name}.sha2"`
11
+ `wget -O "remote_#{file_name}" "https://#{endpoint}/#{ENV['AWS_S3_BUCKET']}/#{file_name}" && tar -xf "remote_#{file_name}"`
12
+ `wget -O "remote_#{file_name}.sha2" "https://#{endpoint}/#{ENV['AWS_S3_BUCKET']}/#{file_name}.sha2"`
@@ -1,3 +1,3 @@
1
1
  module BundleCache
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Barendt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-15 00:00:00.000000000 Z
12
+ date: 2013-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk