ocean_package 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean_package/command.rb +12 -1
- data/lib/ocean_package/time_flow.rb +1 -1
- data/lib/ocean_package/version.rb +1 -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: 4beb89548c285e64c27224159246f8f87dece0f84dc2a52e7ea480463139bb28
|
4
|
+
data.tar.gz: b0e5607a4047d0d5c04e35c5f85dcc1dbe98101e985beec5795c6a0cc4a89ad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7901ef3622a6cb7c823565a50cb1abecd8785076c8873effb38493d13098f00c9c06e0bef0a60a46748aee27cf349143afbcbd5e1394f4d6e66d8d43a56ea43d
|
7
|
+
data.tar.gz: d5c2c4d52d7fed9e533af60a72fd7dd4bfd253f298b3da718259a23038c8dacdc2a1b9df4f275769079a1e284239343cdde6c409e470465329cc71e358a31058
|
@@ -187,6 +187,17 @@ module OceanPackage
|
|
187
187
|
seconds
|
188
188
|
end
|
189
189
|
|
190
|
+
# 总共时间,单位 分
|
191
|
+
def compute_total_time_minute
|
192
|
+
time1 = package.start_time
|
193
|
+
time2 = Time.now
|
194
|
+
minutes = (time2 - time1) / 60
|
195
|
+
|
196
|
+
Log.info("total time: #{minutes} minute")
|
197
|
+
|
198
|
+
minutes
|
199
|
+
end
|
200
|
+
|
190
201
|
# web hook 消息标题
|
191
202
|
def make_web_hook_message_title
|
192
203
|
"iOS 来新包啦~"
|
@@ -202,7 +213,7 @@ module OceanPackage
|
|
202
213
|
content += "当前平台: iOS \n\n"
|
203
214
|
content += "APP名称: " + ipa.display_name + "\n\n"
|
204
215
|
content += "当前版本: " + ipa.version + "(#{ipa.build_version})" + "\n\n"
|
205
|
-
content += "打包耗时: " + "#{
|
216
|
+
content += "打包耗时: " + "#{compute_total_time_minute}" + " 分钟" + "\n\n"
|
206
217
|
content += "发布环境: " + "#{package.configuration}" + "\n\n"
|
207
218
|
content += "更新描述: " + final_change_log + "\n\n"
|
208
219
|
content += "发布时间: " + Time.new.strftime("%Y年%m月%d日 %H时%M分%S秒") + "\n\n"
|