pindo 5.1.6 → 5.2.1
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/pindo/command/ios/debug.rb +4 -2
- data/lib/pindo/version.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a561c1feaf8f0db4288f67962bef0088d39619e150f72dbab71041c52490078c
|
4
|
+
data.tar.gz: 96b943c8c2388e351328dcf14bec1c0e500882c9bd14ee59684622c5d06b4896
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4a8b41679577c9b5035823acc31cba29d53c76c9c18c1520fceed6a86732fb1362ab82282894014cfe03bd54259683cef312bde7b97ecc03bf999332f7e0442
|
7
|
+
data.tar.gz: 7ab80c263d97282ec8e361de3485a65a180219288203efc3b05b2f32cb3baab0a8b5a7fa324f9af630f4d94483c143022458a273c87d340ef8a9b4e5ec0b1dae
|
@@ -195,7 +195,9 @@ module Pindo
|
|
195
195
|
end
|
196
196
|
|
197
197
|
if !info_plist_path.nil? && File.exist?(info_plist_path) && !scheme_name.nil? && !scheme_name.empty?
|
198
|
-
|
198
|
+
|
199
|
+
scheme_name = scheme_name.to_s.gsub(/[^a-zA-Z0-9]/, '').downcase
|
200
|
+
|
199
201
|
info_plist_dict = Xcodeproj::Plist.read_from_path(info_plist_path)
|
200
202
|
info_plist_dict["CFBundleURLTypes"] = info_plist_dict["CFBundleURLTypes"] || []
|
201
203
|
# info_plist_dict["CFBundleURLTypes"] 中不存在CFBundleURLName为scheme_name的item
|
@@ -215,7 +217,7 @@ module Pindo
|
|
215
217
|
info_plist_dict["CFBundleURLTypes"] = info_plist_dict["CFBundleURLTypes"] || []
|
216
218
|
# info_plist_dict["CFBundleURLTypes"] 中不存在CFBundleURLName为bundleid的item
|
217
219
|
#bundle id去除. 特殊字符串,保留全小写
|
218
|
-
bundleid_scheme_valeu = bundleid_scheme_name.gsub(/[
|
220
|
+
bundleid_scheme_valeu = bundleid_scheme_name.gsub(/[^a-zA-Z0-9]/, '').downcase
|
219
221
|
|
220
222
|
if !bundleid_scheme_name.nil? || bundleid_scheme_name.empty? || !info_plist_dict["CFBundleURLTypes"].any? { |item| item["CFBundleURLName"] == bundleid_scheme_valeu }
|
221
223
|
item0 = {}
|
data/lib/pindo/version.rb
CHANGED