cocoapods-binary-artifactory-cache 0.0.9 → 0.0.10
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c12bbf1aecbd6d521d9fbc5f82880f3ec1bf444941be7efb80ce5413876406b2
|
|
4
|
+
data.tar.gz: b70ea2cc5ff5470ff43a32de75dd95e202f1357d4a6984bec5b7d87c909058ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b192f3bc274671ac13b52d61261536550330619c8b53a6468d531200bd5499255a8bbeaee170da1afc88a3a6682e10cd091935a92365430c43e25ea93de7ac39
|
|
7
|
+
data.tar.gz: 7f37cbfe15a4b5c77e306e18b917cb39f43a4e3816f91a40b49a45a2dfa718d16214ec1d2f9ad31aca3fd46232e9c286d4be25cba9dbe1807339143f65edec97
|
|
@@ -136,9 +136,25 @@ module Pod
|
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
def empty_source_files(spec, platforms)
|
|
139
|
+
global_preserve_paths = []
|
|
140
|
+
global_preserve_paths = spec.attributes_hash["preserve_paths"] if spec.attributes_hash["preserve_paths"].is_a? Array
|
|
141
|
+
global_preserve_paths = [spec.attributes_hash["preserve_paths"]] if spec.attributes_hash["preserve_paths"].is_a? String
|
|
142
|
+
global_source_files = []
|
|
143
|
+
global_source_files = spec.attributes_hash["source_files"] if spec.attributes_hash["source_files"].is_a? Array
|
|
144
|
+
global_source_files = [spec.attributes_hash["source_files"]] if spec.attributes_hash["source_files"].is_a? String
|
|
145
|
+
|
|
139
146
|
spec.attributes_hash["source_files"] = []
|
|
147
|
+
spec.attributes_hash["preserve_paths"] = global_preserve_paths + global_source_files
|
|
140
148
|
platforms.each do |platform|
|
|
141
|
-
|
|
149
|
+
next unless !spec.attributes_hash[platform].nil?
|
|
150
|
+
local_preserve_paths = []
|
|
151
|
+
local_preserve_paths = spec.attributes_hash[platform]["preserve_paths"] if spec.attributes_hash[platform]["preserve_paths"].is_a? Array
|
|
152
|
+
local_preserve_paths = [spec.attributes_hash[platform]["preserve_paths"]] if spec.attributes_hash[platform]["preserve_paths"].is_a? String
|
|
153
|
+
local_source_files = []
|
|
154
|
+
local_source_files = spec.attributes_hash[platform]["source_files"] if spec.attributes_hash[platform]["source_files"].is_a? Array
|
|
155
|
+
local_source_files = [spec.attributes_hash[platform]["source_files"]] if spec.attributes_hash[platform]["source_files"].is_a? String
|
|
156
|
+
spec.attributes_hash[platform]["preserve_paths"] = local_preserve_paths + local_source_files + global_source_files + global_preserve_paths
|
|
157
|
+
spec.attributes_hash[platform]["source_files"] = []
|
|
142
158
|
end
|
|
143
159
|
end
|
|
144
160
|
|