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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c0935db120a0696b34c40a6f73b2c3610848940fee0395d86655041bf934864
4
- data.tar.gz: 0337a78bdc208a9ba38c5e4a86d707d8e256f0a63a40a6274fd05fc35c40f270
3
+ metadata.gz: 8c3d3d71327983e1e8b29cdfc374dc5190660bb879c9b57d3b1d232ae71abd49
4
+ data.tar.gz: 055b9e6700820d99291453b66ea5e50d3282b99f9d56f04bd4379d07202bbd90
5
5
  SHA512:
6
- metadata.gz: 1065f8460b739d1d15843ea898f97c97f9e192180da44cc7bbb04a18c7d4f51c0e8491cdda16c3f849b7eda0fa775cba5913dace2396bdf5f366537f287d5dce
7
- data.tar.gz: eb8b7d8eb79bf371dd3ebab16d25116d6c8bcc98ed6b6fe99c5782392dae360d546e8f6cbe0ff551acb4f3b8fa8ee2d45c72f9abb1e2aa128d8c873ee4e35bd2
6
+ metadata.gz: dfa12cfe81ee2339b10b40756d8a1abfb34ff948a5ca3bea3e794ddc7c94e095a3e4e77814ea9fe30862f353fefabe1eb673982c31c3a0bd16faf7eb909a0216
7
+ data.tar.gz: dc83c15b2e492e07d2b5e15049df47987bdbc7f55da4bffae8bd8fa539e8dc21144cfa0cb1ed83efa373e83175fa431ad8cf90b0862836ff0d7e24860638a4c9
@@ -8,7 +8,7 @@ module Pindo
8
8
  class Command
9
9
  class Android < Command
10
10
  self.abstract_command = true
11
- self.summary = 'Android相关命令'
11
+ self.summary = 'Android开发相关命令'
12
12
  self.command = 'and'
13
13
  # self.command_name = 'and'
14
14
 
@@ -10,7 +10,7 @@ module Pindo
10
10
 
11
11
  class Appstore < Command
12
12
  self.abstract_command = true
13
- self.summary = 'appstore的相关命令'
13
+ self.summary = 'AppStore提交发布相关命令'
14
14
  end
15
15
 
16
16
  end
@@ -11,7 +11,7 @@ module Pindo
11
11
 
12
12
  class Gplay < Command
13
13
  self.abstract_command = true
14
- self.summary = 'Google Play商店的相关命令'
14
+ self.summary = 'Google Play提交发布相关命令'
15
15
  end
16
16
 
17
17
  end
@@ -9,7 +9,7 @@ module Pindo
9
9
 
10
10
  class Ios < Command
11
11
  self.abstract_command = true
12
- self.summary = 'iOS相关命令'
12
+ self.summary = 'iOS开发相关命令'
13
13
  end
14
14
 
15
15
  end
@@ -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
- puts "存在附件, 继续上传附件..."
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
@@ -6,7 +6,7 @@ require 'time'
6
6
 
7
7
  module Pindo
8
8
 
9
- VERSION = "5.10.8"
9
+ VERSION = "5.10.9"
10
10
 
11
11
  class VersionCheck
12
12
  RUBYGEMS_API = 'https://rubygems.org/api/v1/gems/pindo.json'
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.10.8
4
+ version: 5.10.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade