akcache 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/kcache/version.rb +1 -1
- data/lib/kcache.rb +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d001cd84ab783a9c6f3ba14d1399dae3bb6ff8d7c7ae743aea6cfa4366291559
|
4
|
+
data.tar.gz: '098e73b29a1aad794f7b280b26f3cfd3b5bee0e706740e8c4cdad28daabc11cf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d307138f05c3dc3f12be15cc38403d468a3b4d52aa1512266a32b42ff8d93e36f56b2529a70719f54552340496b4f53756ce6448040fd1034e0e47fff3cc3714
|
7
|
+
data.tar.gz: '09ab5c36cec65518130573d6e85ad3bc0858bd65eef8854c93ed87dba11d9197fe6b5a124d0e8a15f2f5e3e655b2ec554113d75c3cd53096f8c3938bf2583bba'
|
data/Gemfile.lock
CHANGED
data/lib/kcache/version.rb
CHANGED
data/lib/kcache.rb
CHANGED
@@ -440,7 +440,14 @@ $file_md5_hash = {}
|
|
440
440
|
puts "<INFO> #{command} should succeed"
|
441
441
|
return false
|
442
442
|
end
|
443
|
-
|
443
|
+
|
444
|
+
already_target_cache_dirs = Dir.glob(get_cache_root + "/" + target.name + "-" + target_md5 + "-*")
|
445
|
+
already_target_cache_dirs.each do |path|
|
446
|
+
if File.exist? path
|
447
|
+
raise unless system "rm -rf \"#{path}\""
|
448
|
+
end
|
449
|
+
end
|
450
|
+
|
444
451
|
target_cache_dir = get_cache_root + "/" + target.name + "-" + target_md5 + "-" + (Time.now.to_f * 1000).to_i.to_s
|
445
452
|
if File.exist? target_cache_dir
|
446
453
|
puts "<INFO> #{target_cache_dir} should not exist"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akcache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yusheng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|