pindo 5.2.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ca5e3dbb878c537b082d578d30f1747dc3fad983b09c1de9806757999448f84
4
- data.tar.gz: 80bcd36c8a88a294f41fae77d522c65e800b39550afd052c589d8158d07e70e6
3
+ metadata.gz: a561c1feaf8f0db4288f67962bef0088d39619e150f72dbab71041c52490078c
4
+ data.tar.gz: 96b943c8c2388e351328dcf14bec1c0e500882c9bd14ee59684622c5d06b4896
5
5
  SHA512:
6
- metadata.gz: 060f5318addc7ab02dd102440a6fc0f41c497aab113670ea24ddbb1fa98dd08edece8a8d38cc2a1400f6bc9984fcd882dd9f4768e6c407535393bc28781e6dcd
7
- data.tar.gz: 71c5e364d6c179e0d28ce7084057bdc0218fd00c263c251aa5a066a85ae485905cb789a3972b7adba2e9e39d1bff0d0b01003b597573f768d0970c0361b3b6b7
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
- scheme_name = scheme_name.to_s.downcase.strip.gsub(/[\s\-_]/, '')
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(/[^\w\s]/, '').downcase
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
@@ -1,6 +1,7 @@
1
1
  module Pindo
2
2
 
3
- VERSION = "5.2.0"
3
+ VERSION = "5.2.1"
4
+
4
5
 
5
6
  class VersionCheck
6
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade