pindo 5.10.8 → 5.10.9
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/android.rb +1 -1
- data/lib/pindo/command/appstore.rb +1 -1
- data/lib/pindo/command/gplay.rb +1 -1
- data/lib/pindo/command/ios.rb +1 -1
- data/lib/pindo/module/pgyer/pgyerhelper.rb +21 -1
- data/lib/pindo/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: 8c3d3d71327983e1e8b29cdfc374dc5190660bb879c9b57d3b1d232ae71abd49
|
|
4
|
+
data.tar.gz: 055b9e6700820d99291453b66ea5e50d3282b99f9d56f04bd4379d07202bbd90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfa12cfe81ee2339b10b40756d8a1abfb34ff948a5ca3bea3e794ddc7c94e095a3e4e77814ea9fe30862f353fefabe1eb673982c31c3a0bd16faf7eb909a0216
|
|
7
|
+
data.tar.gz: dc83c15b2e492e07d2b5e15049df47987bdbc7f55da4bffae8bd8fa539e8dc21144cfa0cb1ed83efa373e83175fa431ad8cf90b0862836ff0d7e24860638a4c9
|
data/lib/pindo/command/gplay.rb
CHANGED
data/lib/pindo/command/ios.rb
CHANGED
|
@@ -535,14 +535,34 @@ module Pindo
|
|
|
535
535
|
|
|
536
536
|
# aws_client = AWSS3Client.new
|
|
537
537
|
aws_client = JPSClient::UploadClient.new(@pgyer_client)
|
|
538
|
+
|
|
539
|
+
# 开始上传主文件,记录开始时间
|
|
540
|
+
file_size_mb = File.size(ipa_file_upload) / (1024.0 * 1024.0)
|
|
541
|
+
puts "\n开始上传文件 (#{file_size_mb.round(2)} MB)..."
|
|
542
|
+
upload_start_time = Time.now
|
|
543
|
+
|
|
538
544
|
upload_res = aws_client.upload_file(binary_file:ipa_file_upload)
|
|
545
|
+
|
|
546
|
+
# 计算上传耗时
|
|
547
|
+
upload_duration = Time.now - upload_start_time
|
|
548
|
+
upload_speed = file_size_mb / upload_duration
|
|
549
|
+
puts "✅ 文件上传完成! 耗时: #{upload_duration.round(2)} 秒, 平均速度: #{upload_speed.round(2)} MB/s"
|
|
550
|
+
|
|
539
551
|
attach_key_url = nil
|
|
540
552
|
attachFileUrls = []
|
|
541
553
|
|
|
542
554
|
begin
|
|
543
555
|
if !addtach_file.nil? && File.exist?(addtach_file)
|
|
544
|
-
|
|
556
|
+
attach_size_mb = File.size(addtach_file) / (1024.0 * 1024.0)
|
|
557
|
+
puts "\n存在附件, 继续上传附件 (#{attach_size_mb.round(2)} MB)..."
|
|
558
|
+
attach_start_time = Time.now
|
|
559
|
+
|
|
545
560
|
attach_key_url = aws_client.upload_file(binary_file:addtach_file, isAttach:true)
|
|
561
|
+
|
|
562
|
+
# 计算附件上传耗时
|
|
563
|
+
attach_duration = Time.now - attach_start_time
|
|
564
|
+
attach_speed = attach_size_mb / attach_duration
|
|
565
|
+
puts "✅ 附件上传完成! 耗时: #{attach_duration.round(2)} 秒, 平均速度: #{attach_speed.round(2)} MB/s"
|
|
546
566
|
end
|
|
547
567
|
|
|
548
568
|
if !attach_key_url.nil?
|
data/lib/pindo/version.rb
CHANGED