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 +4 -4
- data/bin/bundle_cache_install +6 -2
- data/lib/bundle_cache/version.rb +1 -1
- 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: e981ba034ee74cacabe68112da703ecc235143c6
|
4
|
+
data.tar.gz: fb4148b5189e9d41e9e0f42fd6b1c00c96119349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8956e3aee3dfdf9ed82a7bf22e709c679fb90fd678d8caac877cb9797f858576e5ef3217351894588d335f90bf179da10b6d0370fcb2b85b66480789cecafbd2
|
7
|
+
data.tar.gz: a7134211590bc96fd60409e17e7b89e8ffa794febb259c9972013a4928feaaf0ac89f495ee24b19b48ac130a31a74a9f9472e61d441285cc97ea2f0b156feae1
|
data/bin/bundle_cache_install
CHANGED
@@ -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
|
8
|
-
`wget -O "remote_#{file_name}.sha2" "https
|
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"`
|
data/lib/bundle_cache/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|