ZYPodWings 1.0.0 → 1.0.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/ZYPodWings.rb +3 -0
- 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: d42632c0c5265d334971a54b5214c4cbad9b882d290904e07458a2c3ab3ab551
|
4
|
+
data.tar.gz: e070317676659fbd2a9da9fd5466c6766dc72669400fe27463b802fa7b985472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8718dde1d60516a0a57edf05259c4d919cd202f266dcf0af20ac35d027a59cbf0fc3cc178512b82329998d69c94a1af1c3c6025dbef2cb187a27d6a48552de2f
|
7
|
+
data.tar.gz: 77f08cc9354bcc23ba5d08a4cfb978316ff33f1de1ed6366408cc31cc34668d4693a6f525ad5ff9af56fe1979df5668cb668e66f03f3cf412ae74ed9ce55fd24
|
data/lib/ZYPodWings.rb
CHANGED
@@ -190,6 +190,9 @@ def pod_config(params={"file_name" => "podConfig.json", "update_to_last" => true
|
|
190
190
|
local_pod_list = params.fetch("local_pod_list", [])
|
191
191
|
|
192
192
|
json_file_path = File.join($pwd_path, file_name)
|
193
|
+
if not File.exist? json_file_path
|
194
|
+
puts "找不到#{file_name} 文件,pod_config 已提前结束"
|
195
|
+
return
|
193
196
|
# 更新json文件(若有必要)
|
194
197
|
if need_update_to_last
|
195
198
|
update_pod_list(json_file_path)
|