git-binary-cache 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/git-binary-cache.gemspec +1 -1
- data/lib/git_binary_cache/manager.rb +6 -0
- data/pkg/git-binary-cache-0.0.1.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca657996e806a2a63497c893e5813aea7cc92072
|
4
|
+
data.tar.gz: 99635e3345088d0eea6a4e9a248f1be7e088e0b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bd3c1ca79d84492d3c8f96cdfb91d3206027e8f7ab7839b929050cdf0adc65a060e6d1453b6ebc75f4c468727de92180933570490f1ae77f604e13c1fb574f2
|
7
|
+
data.tar.gz: f0690e5b5e86a09c455ed904a922503218cb72c6829fcd2f829315544926fb14929c5215ac17f9662ccd591f94972496aa957aea8e91e939fa7ee194079a77a4
|
data/CHANGELOG.md
ADDED
data/git-binary-cache.gemspec
CHANGED
@@ -184,6 +184,12 @@ module GitBinaryCache
|
|
184
184
|
raise GitBinaryCache::CacheMissingError, error
|
185
185
|
end
|
186
186
|
|
187
|
+
# Check if cache directory exists
|
188
|
+
unless Dir.exists?(File.join(cache_dir, '.git'))
|
189
|
+
error = "Cache directory clone is invalid for cache '#{name}'. Try to update the cache!"
|
190
|
+
raise GitBinaryCache::CacheCorruptedError, error
|
191
|
+
end
|
192
|
+
|
187
193
|
# Open the cache
|
188
194
|
git = Git.open(cache_dir)
|
189
195
|
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-binary-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleksiy Kovyrin
|
@@ -47,6 +47,7 @@ extensions: []
|
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
49
|
- bin/git-binary-cache
|
50
|
+
- CHANGELOG.md
|
50
51
|
- Gemfile
|
51
52
|
- Gemfile.lock
|
52
53
|
- git-binary-cache.gemspec
|