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 +4 -4
- data/lib/cocoapods-ppbuild/Integration.rb +10 -3
- data/lib/cocoapods-ppbuild/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5814aba56288624bef19f4bf6bbeb81ce9b588f649602c530d8de4f88ff4bdfa
|
4
|
+
data.tar.gz: 56020bd0dde6cade57650ec2c892ea2221408ed5b6c7a49e2a71e81cd94addba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|
+
date: 2021-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|