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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f40c3531c36cdfba8d66f1a6a25fcb516ed15a30efe06583b3d223e46798bca
4
- data.tar.gz: 42fe053a9c1e6e1eed2780870d19770065cf916435796750a40239f6a7829030
3
+ metadata.gz: d001cd84ab783a9c6f3ba14d1399dae3bb6ff8d7c7ae743aea6cfa4366291559
4
+ data.tar.gz: '098e73b29a1aad794f7b280b26f3cfd3b5bee0e706740e8c4cdad28daabc11cf'
5
5
  SHA512:
6
- metadata.gz: bc2fbd4f27fd460612ccece726184cb9e5e1e71a4e616fbbf229728ab97ed0761f6a93c492ff0e617bf3bddf0bf38bd2793595ac945060c151bc6ffd35df699b
7
- data.tar.gz: 5a8b8c3bc42ee52c60671106a8845551f04f1eb753a2b558065abccfa5041ffabaf00780029c705c46d278ff041fbda47a2d88e397b2b06c33582331f9bf5790
6
+ metadata.gz: d307138f05c3dc3f12be15cc38403d468a3b4d52aa1512266a32b42ff8d93e36f56b2529a70719f54552340496b4f53756ce6448040fd1034e0e47fff3cc3714
7
+ data.tar.gz: '09ab5c36cec65518130573d6e85ad3bc0858bd65eef8854c93ed87dba11d9197fe6b5a124d0e8a15f2f5e3e655b2ec554113d75c3cd53096f8c3938bf2583bba'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kcache (1.0.0)
4
+ akcache (1.0.0)
5
5
  xcodeproj (~> 1.0)
6
6
 
7
7
  GEM
@@ -47,7 +47,7 @@ PLATFORMS
47
47
  universal-darwin-21
48
48
 
49
49
  DEPENDENCIES
50
- kcache!
50
+ akcache!
51
51
  rake (~> 13.0)
52
52
  rubocop (~> 1.7)
53
53
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kcache
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
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.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-08 00:00:00.000000000 Z
11
+ date: 2021-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj