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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dd2f8906b3f6e897f3d1e2e7b65e7e921b671e5
4
- data.tar.gz: aaf81d2d0937af67247fbea29a2e6fa461d1cc1d
3
+ metadata.gz: ca657996e806a2a63497c893e5813aea7cc92072
4
+ data.tar.gz: 99635e3345088d0eea6a4e9a248f1be7e088e0b1
5
5
  SHA512:
6
- metadata.gz: 210cf4842866498a5e6e0a92dd841f311413e805c4728827085226bf3df11827fa49efd3b0999eea4b373d3e7b9e7d4b5195ab005fe9fe38042de30edb036034
7
- data.tar.gz: 940366a2cbd192beaa238b38e5b5b9b4b781dbcedf86310c4ba2c5bd02ae5c17bf3b2fded972ca7940701a73d6852a0ef93ce08702fecc2c3b221e9f83433976
6
+ metadata.gz: 6bd3c1ca79d84492d3c8f96cdfb91d3206027e8f7ab7839b929050cdf0adc65a060e6d1453b6ebc75f4c468727de92180933570490f1ae77f604e13c1fb574f2
7
+ data.tar.gz: f0690e5b5e86a09c455ed904a922503218cb72c6829fcd2f829315544926fb14929c5215ac17f9662ccd591f94972496aa957aea8e91e939fa7ee194079a77a4
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Git-Based Binary Files Cache Changelog
2
+
3
+ ### 0.0.2 / 2015-03-10
4
+
5
+ * Bugfix release: properly handle situations when cache directory exists, but .git is missing.
6
+
7
+ ### 0.0.1 / 2015-03-10
8
+
9
+ * Initial release.
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'git-binary-cache'
4
- s.version = '0.0.1'
4
+ s.version = '0.0.2'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = [ 'Oleksiy Kovyrin' ]
7
7
  s.email = [ 'alexey@kovyrin.net' ]
@@ -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.1
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