cnvrg 1.9.9.5 → 1.9.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cnvrg/datafiles.rb +3 -4
- data/lib/cnvrg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd47735837c5b994e5a7b614ac38dacabb094872e4edcefe92374a726874f6e4
|
4
|
+
data.tar.gz: 63029e65065352cf285d1321e73e2f51bab63518460a6ffcd69920c80a4ea833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c202546702f4c041f1d2bad1443240f35168b0a5c489503f1d9852e612f49ffd60a6b68c8066a02e39ba8e131451166121afeb68a063a5f040d1d9938a805ab
|
7
|
+
data.tar.gz: 6e5296dda882e2d9dcf9d06ec72b6c0ffe69a089aa82f846846dd7daa46f9ff698e25da3ce7fb0eb96d3c9488803d022d06065bcc7791adfa8f8bc75a1ce1cf5
|
data/lib/cnvrg/datafiles.rb
CHANGED
@@ -168,7 +168,7 @@ module Cnvrg
|
|
168
168
|
error = nil
|
169
169
|
upload_resp = nil
|
170
170
|
10.times do
|
171
|
-
upload_resp = Cnvrg::API.request(@base_resource + "upload_files", 'POST_JSON', {commit_sha1: commit_sha1, tree: tree,
|
171
|
+
upload_resp = Cnvrg::API.request(@base_resource + "upload_files", 'POST_JSON', {commit_sha1: commit_sha1, tree: tree, override: force, is_branch: new_branch, partial_commit: partial_commit})
|
172
172
|
if Cnvrg::CLI.is_response_success(upload_resp, false)
|
173
173
|
error = nil
|
174
174
|
break
|
@@ -197,20 +197,19 @@ module Cnvrg
|
|
197
197
|
|
198
198
|
files = results['files']
|
199
199
|
|
200
|
-
progressbar.progress += tree.keys.length - files.length if progressbar.present?
|
201
200
|
progress_semaphore = Mutex.new
|
202
201
|
upload_error_files = []
|
203
202
|
@temp_upload_progressbar.progress += tree.keys.length - files.length if @temp_upload_progressbar.present?
|
204
203
|
Parallel.map((files.keys), in_threads: threads) do |k|
|
205
204
|
o = tree[k].merge(files[k])
|
206
|
-
success = upload_single_file(o)
|
205
|
+
success = upload_single_file(nil, o)
|
207
206
|
if not success
|
208
207
|
upload_error_files << {absolute_path: o[:absolute_path]}
|
209
208
|
files.except!(k)
|
210
209
|
tree.except!(k)
|
211
210
|
Cnvrg::Logger.log_error_message("Error while upload single file #{o["path"]}")
|
212
211
|
end
|
213
|
-
progress_semaphore.synchronize {
|
212
|
+
progress_semaphore.synchronize { @temp_upload_progressbar.progress += 1 if @temp_upload_progressbar.present? }
|
214
213
|
end
|
215
214
|
|
216
215
|
blob_ids = files.values.map {|f| f['bv_id']}
|
data/lib/cnvrg/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cnvrg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.9.
|
4
|
+
version: 1.9.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yochay Ettun
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-07-
|
13
|
+
date: 2020-07-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|