cnvrg 1.5.0 → 1.5.1

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
  SHA256:
3
- metadata.gz: 7f9ea846489f30df4e7a770ef453e640e3dcaff0176ebbc6a4ae000bfbcba0e8
4
- data.tar.gz: 7f5bb7c85aaa16c43834bf705325470bacf8edd2bd342e8d5cf39bd853843136
3
+ metadata.gz: 0cf13d984dc819a8d10f1bf952684ae26d1848acfd753504c1348da47f56a35d
4
+ data.tar.gz: c2c2dafbc18ab16f276427a85e9c876249a962ce291a291cfca1f075d4eb11b4
5
5
  SHA512:
6
- metadata.gz: 30cc30763ae8758f8526eb8cac1ef559f3e39c649d521112c7f22908226719da771340907c5928f9ab86f3672fc5f37c1b3a2bd6dd09b8d2b1ac10fe809ad9ed
7
- data.tar.gz: f1f20925bd2b889676303efbcd657ba063f7bc28274ab074048ccc91a904ebb1046883d8a4854bf77f2c951b88c6b4f75cf468e5221a203a5ac3d0b4692d42c7
6
+ metadata.gz: db1a272b7a49e2be6688686f8ab79ff893e40f9d26b68b0453bdea6aa5cfc725cbdd374e5c2ca1716917d9cac97212f19cc8c926034dc5e7c406c2e2b01152f0
7
+ data.tar.gz: f56a4d203fb5b6fab9452767cafffc9f04da6374f52a5ed4957ff6689a4e3680d8b2d96010f2f2ddaa79b0015c2ab2642707a898f6d90ffdcd880ec633d02002
@@ -5059,7 +5059,7 @@ module Cnvrg
5059
5059
  end
5060
5060
 
5061
5061
  desc 'experiments', 'List project experiments'
5062
- method_option :id, :type => :string, :aliases => ["-id"], :desc => "Get info for specific experiments", :default => ""
5062
+ method_option :id, :type => :string, :aliases => ["--id"], :desc => "Get info for specific experiments", :default => ""
5063
5063
  method_option :tag, :type => :string, :aliases => ["-t"], :desc => "Get info for specific experiment tag", :default => ""
5064
5064
 
5065
5065
  def experiments
@@ -5078,13 +5078,12 @@ module Cnvrg
5078
5078
  end
5079
5079
  else
5080
5080
  result = @project.get_experiment(options['id'])
5081
- result = result["result"]["experiment"]
5081
+ result = result.to_h['experiment']
5082
5082
  if result
5083
5083
  if options["tag"].to_s.size == 0
5084
5084
  list = []
5085
5085
  list << result.keys
5086
5086
  list << result.values
5087
-
5088
5087
  print_table(list)
5089
5088
  else
5090
5089
  if result.keys.include? options["tag"]
@@ -607,6 +607,7 @@ module Cnvrg
607
607
 
608
608
  def get_experiment(slug)
609
609
  response = Cnvrg::API.request("users/#{self.owner}/projects/#{self.slug}/experiments/#{slug}", 'GET')
610
+ response['status']=200
610
611
  CLI.is_response_success(response)
611
612
  return response
612
613
  end
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
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.5.0
4
+ version: 1.5.1
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: 2019-07-15 00:00:00.000000000 Z
13
+ date: 2019-07-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler