cnvrg 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0beee93f65465751907ec0a1e6b32533dbd7fe9c
4
- data.tar.gz: 884e1a8bd9396595548938fce44fee9cc26b9de5
3
+ metadata.gz: 53acce5736a0f9a2b5041190bc14a5b5996cbc51
4
+ data.tar.gz: 0012063a79c280613dcda77cd10821fe313bcebd
5
5
  SHA512:
6
- metadata.gz: 24bb1898330f8d764654f9d6ee1ba6a1ef04475cf6f9a3ac5d7366ff204be75be03e61516f98b84b220862d83ef275326e83fd5316bd4c37686bf3cf12e620ac
7
- data.tar.gz: 2bc73d116ab3e32c8b8e9c715d4d0db97d9b097e11901cb2ffc23047a8cb801c80625cfa0042c965186a7a2ac687b943ae2848845fbc29efe384ed2ffbab4a57
6
+ metadata.gz: 219c84d644fadbeeabfc54f9d2a23505487ab73b3dc6a0deaaece332f0093f7ac8830ec9be559a263adea6f6705f2372adc85cf6ded9a74df1224438eff6fa9a
7
+ data.tar.gz: 9c771c60e62ed395fc043920156c20d28c2fb802c805dbd128fd2391f953f0c83f5dde7137cac128341c11f5843e66c26b8ec23b938553e77fa50146fa89eedb
@@ -5604,6 +5604,9 @@ module Cnvrg
5604
5604
 
5605
5605
  def update_project_config(current_dir)
5606
5606
  @project = Cnvrg::Project.new(current_dir)
5607
+ #appearently, dataset tries to run this function.
5608
+ # this code VV handle this.
5609
+ return if @project.slug.blank?
5607
5610
  @project.fetch_project
5608
5611
  end
5609
5612
 
@@ -329,7 +329,7 @@ module Cnvrg
329
329
  owner = config[:owner] rescue nil
330
330
  name = config[:project_name] rescue nil
331
331
  if slug.blank? or owner.blank? or name.blank?
332
- raise StandardError.new("Cant change config without mendatory values")
332
+ return
333
333
  end
334
334
  File.open(@working_dir + "/.cnvrg/config.yml", "w+") {|f| f.write config.to_yaml}
335
335
  end
@@ -623,7 +623,7 @@ module Cnvrg
623
623
  def fetch_project
624
624
  resp = Cnvrg::API.request("users/#{@owner}/projects/#{@slug}/get_project", "GET")
625
625
  res = JSON.parse(resp['result']) rescue nil
626
- raise SignalException.new("Cant Find project in the server") if res.blank?
626
+ return if res.blank?
627
627
  config = self.get_config
628
628
  config[:is_git] = res['git']
629
629
  config[:project_name] = res['title']
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
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: 1.2.1
4
+ version: 1.2.2
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: 2019-01-23 00:00:00.000000000 Z
12
+ date: 2019-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler