cocoapods-binary-artifactory-cache 0.0.9 → 0.0.11

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: e3bd727c53b48f456b23f1dcb09fbb9a4271760cfbef295c95bb1cb66a849b00
4
- data.tar.gz: d5dd1f925d9cfed668a952f33ded078720324b98ff49288f1da3fd919f8eb7b5
3
+ metadata.gz: e7c087bdefa1f9afe97d535f45dbc2a5f46e4ad847c80e7c74a6da1ab05e02a0
4
+ data.tar.gz: 208aabe594c56590ff327db17c00b4a3baf776bd4195d52c850be0bf96d6afe7
5
5
  SHA512:
6
- metadata.gz: d1b34b624c51f51bbe9b712d6f960462dbac300d78e56a3b0afad160431d81ef700aefae334e34ba9446b3e4327ebe51047f5bbefbe43202d31755289154f20a
7
- data.tar.gz: e3afda2eba82ff9c2f52929ab9a7c5880f6951ff18c8d84429c1ed2b8747b4b4424755dc19e06fdfa61be644728d3edcdd26ff3f3455a009a9a96b0bc9b29e3b
6
+ metadata.gz: ed770c505e4712b0b05ab0b3df992c83242474c0ec125f958a052788fb4d91cc3a40dca82f501dcbd81dbe7adb5795023156fb67e57bfe19a984c3b6169b4bad
7
+ data.tar.gz: 2757728b1969c5e6042afe7b057e87aba8e2f1c8f42e77d106d7ef06804288618bc4cd281c57ec19c9012a431ca6f539d2993bd39eeeb6555639cfe1277841a8
@@ -136,9 +136,27 @@ 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["public_header_files"] = []
148
+ spec.attributes_hash["preserve_paths"] = global_preserve_paths + global_source_files
140
149
  platforms.each do |platform|
141
- spec.attributes_hash[platform]["source_files"] = [] unless spec.attributes_hash[platform].nil?
150
+ next unless !spec.attributes_hash[platform].nil?
151
+ local_preserve_paths = []
152
+ local_preserve_paths = spec.attributes_hash[platform]["preserve_paths"] if spec.attributes_hash[platform]["preserve_paths"].is_a? Array
153
+ local_preserve_paths = [spec.attributes_hash[platform]["preserve_paths"]] if spec.attributes_hash[platform]["preserve_paths"].is_a? String
154
+ local_source_files = []
155
+ local_source_files = spec.attributes_hash[platform]["source_files"] if spec.attributes_hash[platform]["source_files"].is_a? Array
156
+ local_source_files = [spec.attributes_hash[platform]["source_files"]] if spec.attributes_hash[platform]["source_files"].is_a? String
157
+ spec.attributes_hash[platform]["preserve_paths"] = local_preserve_paths + local_source_files + global_source_files + global_preserve_paths
158
+ spec.attributes_hash[platform]["source_files"] = []
159
+ spec.attributes_hash[platform]["public_header_files"] = []
142
160
  end
143
161
  end
144
162
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-binary-artifactory-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Antropov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-30 00:00:00.000000000 Z
11
+ date: 2022-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods