xccache 1.0.1.rc15407754136 → 1.0.2
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/lib/xccache/cache/cachemap.rb +26 -10
- data/lib/xccache/installer/integration/build.rb +1 -1
- data/lib/xccache/installer.rb +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2357c61b242803e69f54fe2b9a4db8eef00deabb636dbd98e84a808bd6c3d56a
|
4
|
+
data.tar.gz: b4d9615136cb599bff14e73ef51472c6b6d3838acd5518d6e17ce9446275de4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b353117fdc74f92fe4c091d94936b55548b7f4b8450441dd51ebe6728b4513960af76f0278095b7f777aec0189c5c371c8a268a10092d1d522494b7da26e4f74
|
7
|
+
data.tar.gz: ab9c2d5bb982bb0d7c86703ca4d1ca84ab1a3b8598eb671400a0eee47ac1caf26ff54cf9d2567c47d35702eca071d909b648243d2fa194f0b982b3d879ec7cbb
|
@@ -28,16 +28,32 @@ module XCCache
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def print_stats
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
31
|
+
verbose = Config.instance.verbose?
|
32
|
+
colors = { :hit => "green", :missed => "yellow" }
|
33
|
+
descs = %i[hit missed ignored].to_h do |type|
|
34
|
+
colorize = proc { |s| colors.key?(type) ? s.send(colors[type]).dark : s.dark }
|
35
|
+
items = get_cache_data(type)
|
36
|
+
percent = cache_data.count.positive? ? items.count.to_f / cache_data.count * 100 : 0
|
37
|
+
desc = "#{type} #{percent.round}% (#{items.count}/#{cache_data.count})"
|
38
|
+
desc = desc.capitalize if verbose
|
39
|
+
desc = "#{desc} #{colorize.call(items.to_s)}" if verbose && !items.empty?
|
40
|
+
[type, desc]
|
41
|
+
end
|
42
|
+
if verbose
|
43
|
+
UI.info <<~DESC
|
44
|
+
-------------------------------------------------------------------
|
45
|
+
Cache stats
|
46
|
+
#{descs.values.map { |s| "• #{s}" }.join("\n")}
|
47
|
+
-------------------------------------------------------------------
|
48
|
+
DESC
|
49
|
+
else
|
50
|
+
UI.info <<~DESC
|
51
|
+
-------------------------------------------------------------------
|
52
|
+
Cache stats: #{descs.values.join(', ')}
|
53
|
+
To see the full stats, use --verbose in the xccache command
|
54
|
+
-------------------------------------------------------------------
|
55
|
+
DESC
|
56
|
+
end
|
41
57
|
end
|
42
58
|
|
43
59
|
def get_cache_data(type)
|
@@ -10,7 +10,7 @@ module XCCache
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def targets_to_build(options)
|
13
|
-
items = options[:targets] || []
|
13
|
+
items = (options[:targets] || []).map { |x| File.basename(x) }
|
14
14
|
items = config.cachemap.missed.map { |x| File.basename(x) } if items.empty?
|
15
15
|
targets = items.map { |x| umbrella_pkg.get_target(x) }
|
16
16
|
|
data/lib/xccache/installer.rb
CHANGED
@@ -87,7 +87,8 @@ module XCCache
|
|
87
87
|
|
88
88
|
def platforms_for_project(project)
|
89
89
|
project
|
90
|
-
.targets.
|
90
|
+
.targets.select(&:platform_name)
|
91
|
+
.map { |t| [t.platform_name.to_s, t.deployment_target] }
|
91
92
|
.sort.reverse.to_h # sort descendingly -> min value is picked for the hash
|
92
93
|
end
|
93
94
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xccache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thuyen Trinh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -162,9 +162,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
|
-
- - "
|
165
|
+
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version:
|
167
|
+
version: '0'
|
168
168
|
requirements: []
|
169
169
|
rubygems_version: 3.2.33
|
170
170
|
signing_key:
|