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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b15b8eb8f1ae6c0de3a7775dce9348e041ffe488527b0cd5712d8cca849c8167
4
- data.tar.gz: 6f84dacc6a354ce0fc3348d87b58c40d42bf2fdf29f260d83d7a28ea21006856
3
+ metadata.gz: 4beb89548c285e64c27224159246f8f87dece0f84dc2a52e7ea480463139bb28
4
+ data.tar.gz: b0e5607a4047d0d5c04e35c5f85dcc1dbe98101e985beec5795c6a0cc4a89ad5
5
5
  SHA512:
6
- metadata.gz: 42919ac94d8d2eaf38bb7392f6d3bef685d75cf8c6a9a344b174a707dd0aed93238c677235ada9ad2ee65ad26bb489bc8e25fad21e1f6fc058fafa00fb97d9fe
7
- data.tar.gz: fb4aa28a87cac101e7a42b858ff31d17549b3d2ac8afbccef06db7e8daa3bbdd2aa287dd3464616f914f922a9d333ccf4599e247041e09091324eb50bdeee395
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 += "打包耗时: " + "#{compute_total_time}" + "s" + "\n\n"
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"
@@ -109,7 +109,7 @@ module OceanPackage
109
109
  "notifyGroupTime" => @notify_group_time,
110
110
  "endTime" => @end_time
111
111
  }
112
- json
112
+ params
113
113
  end
114
114
 
115
115
  module Mixin
@@ -1,3 +1,3 @@
1
1
  module OceanPackage
2
- VERSION = "0.15.0"
2
+ VERSION = "0.16.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean_package
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ocean