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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b90d814761168667e43372f1966e30a2d5a821568bcf28d913dffcbda6b033c7
4
- data.tar.gz: c72d65d79f183cad5002bd2c14f940e6d51a9ef7a869bac12172a5bcc4ddbc76
3
+ metadata.gz: 1cd284862886ec5b09fd54d38793623e428fec3dbfac5fc6c46667c2e820a302
4
+ data.tar.gz: 7f3cce766ef0935b737ce0e95dcce47bf827bc4ab45579887fa51b9ec4a02b55
5
5
  SHA512:
6
- metadata.gz: d093bd678b362dc9297e69a3b1454811e036c2eaf476aab4083df5da5e18492d6951fda662f02818b52776c43c6b6881c624db205066b5cf0ee314ec6a187588
7
- data.tar.gz: 06f86968182f724358ffe7d241afaa8dfcc9c6b834cabae3c75b82e2326b286abc547dd9458b9a3c1a984d846abc7611b54379dadea934ca0c5d767d61b721d0
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
- #unless res.is_success?
1233
- # raise SignalException.new(1, res.msg)
1234
- #end
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
- #unless res.is_success?
1238
- # raise SignalException.new(1, res.msg)
1239
- #end
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
@@ -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
- #return response
917
+ return response
918
918
  rescue => e
919
919
  return false
920
920
  end
data/lib/cnvrg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cnvrg
2
- VERSION = '1.6.26'
2
+ VERSION = '1.6.27'
3
3
  end
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.26
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-23 00:00:00.000000000 Z
13
+ date: 2020-02-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler