cnvrg 1.6.26 → 1.6.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cnvrg/cli.rb +8 -6
- data/lib/cnvrg/datafiles.rb +1 -1
- 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: 1cd284862886ec5b09fd54d38793623e428fec3dbfac5fc6c46667c2e820a302
|
4
|
+
data.tar.gz: 7f3cce766ef0935b737ce0e95dcce47bf827bc4ab45579887fa51b9ec4a02b55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32562f3442ed727ab26ee6de3af75df36bd56d6c1515d653e697936c03624efa03d741610b7e960b67a7179b3f961b7d07efb71af0e3201ff15b08939aca3719
|
7
|
+
data.tar.gz: 8fbaad6c29f0f7e0ae504912505f36be91825263c3cb72b2ad73df5cc7944115e605eaf3e6711b526c1cbdf9d52572c488728d62a2ce86c5ee40aa9e1a5e99b3
|
data/lib/cnvrg/cli.rb
CHANGED
@@ -1229,14 +1229,16 @@ module Cnvrg
|
|
1229
1229
|
end
|
1230
1230
|
if commit.blank?
|
1231
1231
|
res = @datafiles.put_commit(@commit)
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1232
|
+
unless res.is_success?
|
1233
|
+
raise SignalException.new(1, res.msg)
|
1234
|
+
end
|
1235
1235
|
else
|
1236
1236
|
res = @datafiles.end_commit(@commit,false, success: true )
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1237
|
+
msg = res['result']
|
1238
|
+
response = Cnvrg::Result.new(Cnvrg::CLI.is_response_success(res, true), msg)
|
1239
|
+
unless response.is_success?
|
1240
|
+
raise SignalException.new(1, res.msg)
|
1241
|
+
end
|
1240
1242
|
end
|
1241
1243
|
log_message("Uploading files finished Successfully", Thor::Shell::Color::GREEN)
|
1242
1244
|
rescue SignalException => e
|
data/lib/cnvrg/datafiles.rb
CHANGED
@@ -914,7 +914,7 @@ module Cnvrg
|
|
914
914
|
begin
|
915
915
|
response = Cnvrg::API.request("#{base_resource}/commit/end", 'POST', {commit_sha1: commit_sha1,force:force, success: success, uploaded_files: uploaded_files})
|
916
916
|
Cnvrg::CLI.is_response_success(response, true)
|
917
|
-
|
917
|
+
return response
|
918
918
|
rescue => e
|
919
919
|
return false
|
920
920
|
end
|
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.6.
|
4
|
+
version: 1.6.27
|
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-02-
|
13
|
+
date: 2020-02-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|