kontena-cli 0.12.1 → 0.12.2

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: b4c7616444c2dfd31cc66c625d49168d8ab8623d
4
- data.tar.gz: f28c78f100bed2695c99b12d5ed757dfd0e4eaa3
3
+ metadata.gz: 80051d1935bfe26b6329e55e0882bdfa258e8f0a
4
+ data.tar.gz: 6e8f530986b63ea42ae6cbea1d6e49fff58ae255
5
5
  SHA512:
6
- metadata.gz: b594019efe570386ebbf644888636a28f31ed88c0fe01425322dce0057fd232f1707d70e82899aefac3576a179ebccc87726a4b90e53a5c473bc354320947dcb
7
- data.tar.gz: 9202690e4f3cff809576272a11108351266b97c421c189fbfe742c4f7d0ccc1c90e143a182f754c09a586f37a4f1a23a33724ea8f848352f0167fce50045c06f
6
+ metadata.gz: 492795681335987f1d07c21cc030809ebcdd5730e50d8eebc53513080ef4a8897ca42a87f7d688c134d4d317e967d5db4d22329725056988aec07447ee40a956
7
+ data.tar.gz: d24cac271b35117bfc903c3ef06f783dc959aeb581fa33bef64df9e04c3f5966fcd17996218b2e517243a60dbb14144bfc3b82b864c976e25ea4c35cfe404398
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.1
1
+ 0.12.2
@@ -100,6 +100,8 @@ module Kontena
100
100
  else
101
101
  ENV['KONTENA_GRID'] || current_master['grid']
102
102
  end
103
+ rescue ArgumentError => e
104
+ nil
103
105
  end
104
106
 
105
107
  def current_master_index
@@ -46,6 +46,10 @@ describe Kontena::Cli::Common do
46
46
  expect(subject.current_grid).to eq('foo_grid')
47
47
  end
48
48
 
49
+ it 'returns nil if settings are not present' do
50
+ allow(subject).to receive(:current_master).and_raise(ArgumentError)
51
+ expect(subject.current_grid).to be_nil
52
+ end
49
53
  end
50
54
 
51
55
  describe '#api_url' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler