cnvrg 0.8.6 → 0.8.7

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
  SHA1:
3
- metadata.gz: 819730717280428ac1ba231d43462cb827253cc1
4
- data.tar.gz: 95c1963b178296af0655d54b691b02895ced41ef
3
+ metadata.gz: a965b75d6d8d83299dc2b86018616999074eebfd
4
+ data.tar.gz: 4c055bf82b73eb7e703733d6224fcde4f01f732b
5
5
  SHA512:
6
- metadata.gz: 61563035b65f94b7d87354a6dcb783119179edf655cd6881595035417d15c6441b0337f48ae9de9b410136bd3133eb3254fb995af46ffbd67d785e09312aa3e2
7
- data.tar.gz: fda3bfcd38199e6c04c46a2c2ca7812182e58352c0a0c9d06898acca3f5de30178160d35ab6b6d86d640d7c89ecb1a773a562d44af369e652b5e476943aa8c21
6
+ metadata.gz: bd10aa25d773d1a1740e6262bfc81667a1fdd1ced6c5e2bd6064edf948714197e756d69103975209baa8c342c103f6930b8e906c153c6e7b27ddd21ede7a0e8b
7
+ data.tar.gz: 61773469785b7c4a677e5436c28e5321e5ba98b059db938849a716d7ec8bb34107573b13e65c561fdeee67c1bd76c5c99cbf2a60a76e3dfc23ae1511d8e12725
@@ -17,14 +17,14 @@ module Cnvrg
17
17
  if File.exist? home_dir+"/.cnvrg/config.yml"
18
18
  config = YAML.load_file(home_dir+"/.cnvrg/config.yml")
19
19
  else
20
- return "https://app.cnvrg.io/api"
20
+ return "https://superman.cnvrg.io/api"
21
21
  end
22
22
 
23
23
  rescue
24
- return "https://app.cnvrg.io/api"
24
+ return "https://superman.cnvrg.io/api"
25
25
  end
26
26
  if !config or config.empty? or config.to_h[:api].nil?
27
- return "https://app.cnvrg.io/api"
27
+ return "https://superman.cnvrg.io/api"
28
28
  else
29
29
  return config.to_h[:api]
30
30
  end
@@ -69,8 +69,8 @@ module Cnvrg
69
69
  s3_bucket = Aws::S3::Resource.new(client: client).bucket(bucket)
70
70
 
71
71
  #upload files
72
- files.keys.map do |file|
73
- # Parallel.map(files.keys, self.get_upload_options) do |file|
72
+ # files.keys.map do |file|
73
+ Parallel.map(files.keys, self.get_upload_options) do |file|
74
74
  resp = Cnvrg::Helpers.try_until_success{self.upload_single_file(files[file].merge(files_list[file]), s3_bucket, options: upload_options)}
75
75
  raise Exception.new("Cant upload #{file}") unless resp
76
76
  progress.progress += 1 if progress.present?
@@ -115,6 +115,7 @@ module Cnvrg
115
115
  def upload_single_file(file, bucket, options: {})
116
116
  path = file['path']
117
117
  absolute_path = file[:absolute_path]
118
+
118
119
  resp = bucket.object(path).
119
120
  upload_file(absolute_path, options)
120
121
  unless resp
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '0.8.6'
2
+ VERSION = '0.8.7'
3
3
  end
4
4
 
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: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-07 00:00:00.000000000 Z
12
+ date: 2018-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler