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: e3bd727c53b48f456b23f1dcb09fbb9a4271760cfbef295c95bb1cb66a849b00
4
- data.tar.gz: d5dd1f925d9cfed668a952f33ded078720324b98ff49288f1da3fd919f8eb7b5
3
+ metadata.gz: c12bbf1aecbd6d521d9fbc5f82880f3ec1bf444941be7efb80ce5413876406b2
4
+ data.tar.gz: b70ea2cc5ff5470ff43a32de75dd95e202f1357d4a6984bec5b7d87c909058ea
5
5
  SHA512:
6
- metadata.gz: d1b34b624c51f51bbe9b712d6f960462dbac300d78e56a3b0afad160431d81ef700aefae334e34ba9446b3e4327ebe51047f5bbefbe43202d31755289154f20a
7
- data.tar.gz: e3afda2eba82ff9c2f52929ab9a7c5880f6951ff18c8d84429c1ed2b8747b4b4424755dc19e06fdfa61be644728d3edcdd26ff3f3455a009a9a96b0bc9b29e3b
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
- spec.attributes_hash[platform]["source_files"] = [] unless spec.attributes_hash[platform].nil?
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
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.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Antropov