cocoapods-ppbuild 1.0.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4d8400efa95565f34739f086c1c7a65b260f5b34df388e03633d8f5a2216c63
4
- data.tar.gz: 740423aaa87dee1df082830b910469fb77b2af8b8ff1f294a6c2ff52559b0375
3
+ metadata.gz: 5814aba56288624bef19f4bf6bbeb81ce9b588f649602c530d8de4f88ff4bdfa
4
+ data.tar.gz: 56020bd0dde6cade57650ec2c892ea2221408ed5b6c7a49e2a71e81cd94addba
5
5
  SHA512:
6
- metadata.gz: 6e16e6f0a08d29705ff44917b46d449199f7a8cb0dcbfe2fc660019828e9cad7bc3981a9dd6513e18f016b195f4c49f8a417d55ebac99c0ff6d369abef10cf7e
7
- data.tar.gz: 4109f534f1848b4147e94aa03406f5e9a8e1ec2395c8210cbcd2f62a1b3c42c0da9d5dca047a7b097057f97451bd8a8424ec65204e6d54c64ed0bec5c0a43731
6
+ metadata.gz: 860d510a8fb04429890d099d88fd953ff5d2c0b7b3c2991245bbe211da8efb4601a302c6174178d491d7fc60dc595139b6d5a198b1aab35e566e9aa4dad66294
7
+ data.tar.gz: ae896e12c09e34ec9cded032c303c14c9b383b9401e0c293cae9f082fbbe3f04f5720b71f267b1d46950496d30922afe320a5e9af808f22ea8a010cdd0ef3df0
@@ -51,7 +51,10 @@ module Pod
51
51
  FileUtils.cp_r source, target, :remove_destination => true
52
52
  else
53
53
  FileUtils.cp source, target
54
- end
54
+ end
55
+ if not target.exist?
56
+ raise "资源导入失败:#{target}"
57
+ end
55
58
  end
56
59
  end
57
60
 
@@ -74,8 +77,7 @@ module Pod
74
77
  end
75
78
  target_folder.rmtree if target_folder.exist?
76
79
  target_folder.mkpath
77
-
78
-
80
+
79
81
  walk(real_file_folder) do |child|
80
82
  source = child
81
83
 
@@ -283,6 +285,11 @@ module Pod
283
285
  spec.attributes_hash["resource_bundles"] = nil
284
286
  spec.attributes_hash["resources"] ||= []
285
287
  spec.attributes_hash["resources"] += bundle_names.map{|n| n+".bundle"}
288
+ elsif spec.attributes_hash['ios']["resource_bundles"]
289
+ bundle_names = spec.attributes_hash['ios']["resource_bundles"].keys
290
+ spec.attributes_hash['ios']["resource_bundles"] = nil
291
+ spec.attributes_hash['ios']["resources"] ||= []
292
+ spec.attributes_hash['ios']["resources"] += bundle_names.map{|n| n+".bundle"}
286
293
  end
287
294
 
288
295
  # to avoid the warning of missing license
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPpbuild
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-ppbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 彭懂
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler