bundle_cache 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/bundle_cache/cache.rb +5 -0
- 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: d2046e1c72ae066562822e3b5354ad511ab23aff
|
|
4
|
+
data.tar.gz: 0de2cb4e448ac4d0d3c6873e15a408e38f5d5924
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ec66813722ab3b14c58263d5cc1ccece53d7cca32a72ebbdf0510bba7793fc3aa8cf9d167d259f0577342529030439429fec2e7b824f2ff3d9912566c32133b
|
|
7
|
+
data.tar.gz: 0eeddaf83b98504bac9181c15e4cc5df20457efe7e609af11f7887695c2baa71637f922c3e0428b1a147308fe4944c8815e3e1fdd11c44e1c7893e5fc9348119
|
data/README.md
CHANGED
|
@@ -31,14 +31,14 @@ Add these to your Travis configuration:
|
|
|
31
31
|
bundler_args: --without development --path=~/.bundle
|
|
32
32
|
before_install:
|
|
33
33
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
|
34
|
-
- gem install bundler
|
|
34
|
+
- gem install bundler bundle_cache
|
|
35
35
|
- bundle_cache_install
|
|
36
36
|
after_script:
|
|
37
37
|
- bundle_cache
|
|
38
38
|
env:
|
|
39
39
|
global:
|
|
40
|
-
- BUNDLE_ARCHIVE="
|
|
41
|
-
- AWS_S3_BUCKET="
|
|
40
|
+
- BUNDLE_ARCHIVE="your_project_bundle"
|
|
41
|
+
- AWS_S3_BUCKET="your_bucket"
|
|
42
42
|
- RAILS_ENV=test
|
|
43
43
|
```
|
|
44
44
|
|
data/lib/bundle_cache/cache.rb
CHANGED
|
@@ -37,6 +37,11 @@ module BundleCache
|
|
|
37
37
|
puts "=> Preparing bundle archive"
|
|
38
38
|
`cd ~ && tar -cjf #{file_name} .bundle && split -b 5m -a 3 #{file_name} #{file_name}.`
|
|
39
39
|
|
|
40
|
+
if 1 == $?.exitstatus
|
|
41
|
+
puts "=> Archive failed. Please make sure '--path=~/.bundle' is added to bundle_args."
|
|
42
|
+
exit 1
|
|
43
|
+
end
|
|
44
|
+
|
|
40
45
|
parts_pattern = File.expand_path(File.join("~", "#{file_name}.*"))
|
|
41
46
|
parts = Dir.glob(parts_pattern).sort
|
|
42
47
|
|
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.5
|
|
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-08-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aws-sdk
|