pindo 4.7.9 → 4.8.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: 6aaeca7f069b61265bf65ea62d49bf8b3d3e64ccf2755475a68c37afa54b12fb
4
- data.tar.gz: 980495658d7accae82e4bf4f11913892edfb0efeaae49438e9003f9a67aed5f2
3
+ metadata.gz: 26a76bb1d95b970919b4b386f52841ddc4cb21ac22a7b5d433c7fcc88b6030da
4
+ data.tar.gz: e0f0eb7ec08a2fca3489b0d469fe23eaa0f34ea9d88bcb209b50df822f42e406
5
5
  SHA512:
6
- metadata.gz: f89ffccfccdd56678fe98cac69f9eb621276a264aa93bd7bdd55d78995220cfc25b199c6f1da3b4ebf7a03e7b3a86b75568e8a252da3089c2211f088c0195e33
7
- data.tar.gz: 566ff17b4b945007869f8acdce6d5e7bb10ec688973f82ad92aeb7e10dd12e9ddf4fb570424b3892813af57601d821ac867c586a3dbc9b967b7e0d9e5763ba50
6
+ metadata.gz: 9d95421e56c75ed51b5d75b7e84aa2e7dba6c566379d6cc23e3966aa616dc15f0c433552b5963c04ae36f488891dc80b1f2ac8b79f0069d166daaaf59c942bd0
7
+ data.tar.gz: a3c6c60f5398b336f17a79bff657a4eb0b28882328828fc05507bbe38a03e4785f455492dffd0800df788d686351ecc3376a88e8e69bd3e2268337417571f2f6
@@ -100,8 +100,6 @@ module Pindo
100
100
  puts "文件大小: #{total_m}M"
101
101
  puts "上传路径: #{upload_path_key}"
102
102
  puts "切片大小: 5 MB"
103
- puts "最大线程数: #{task_num}"
104
- puts
105
103
 
106
104
  upload_result = nil
107
105
 
@@ -110,7 +108,17 @@ module Pindo
110
108
 
111
109
  upload_id= result_data["data"]["uploadId"]
112
110
  @upload_params_list = result_data["data"]["uploadParamsList"]
111
+ task_num = @upload_params_list.length
112
+ if task_num < 2
113
+ task_num = 2
114
+ end
113
115
 
116
+ if task_num > 100
117
+ task_num = 100
118
+ end
119
+
120
+ puts "最大线程数: #{task_num}"
121
+ puts
114
122
 
115
123
  Funlog.instance.fancyinfo_start("开始上传...")
116
124
  @upload_eTags = []
@@ -121,7 +129,7 @@ module Pindo
121
129
  multi_task_upload_data_req(task_num:task_num)
122
130
 
123
131
  result_data = post_upload_finish_req(upload_path_key:upload_path_key, upload_id:upload_id, eTags:@upload_eTags)
124
- puts result_data
132
+
125
133
  if result_data["code"] == 200
126
134
  upload_result = upload_path_key
127
135
  Funlog.instance.fancyinfo_success("文件#{@upload_binary_file} 上传成功! 😎😎😎")
data/lib/pindo/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Pindo
2
2
 
3
- VERSION = "4.7.9"
3
+ VERSION = "4.8.0"
4
4
 
5
5
  class VersionCheck
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.9
4
+ version: 4.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-23 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide