bootic_cli 0.1.8 → 0.1.9

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: 3eb3060887b435d1d024f2f119ebb26303c48235
4
- data.tar.gz: 01667be1b54d948a23006a6c21be04a039bf9337
3
+ metadata.gz: 688263fa607dd97eb2335475ce3d9240906004ba
4
+ data.tar.gz: 7394dd12856ee4890df1de84d38e0afeab0069cb
5
5
  SHA512:
6
- metadata.gz: 9b5eac1a65a148f13af2c55efae0ba2ed5cebda7b34f8252fc926973f25e4bd0abf93c149787f3495943fe3b77c561098c79427ee29b4176017c4cadbf2eb428
7
- data.tar.gz: 526d0ede6175ccc6333ca33d432132e8ee00d49a2442677b49e250455604c29640f3006fd811e18f9c23853b49ef656670230580fc7ede5a1229361b5c5038e2
6
+ metadata.gz: ba9be7df26eeba72b2838e53428c2bd639ac0ffae48f79b909d59bd31f42b73091f9cf99ffb505952ab55baca1c2e73bdfc0333b50af0c2fe864c5ee3b316cf9
7
+ data.tar.gz: 7b6214feac9fcde7b16fa2a74c04b20af28e877d09274aca885a05a50861e4a72cd1224b92aa8df9092781082804c0da18a5e619bb20be6b0bdafde8f77c6896
@@ -6,6 +6,7 @@ module BooticCli
6
6
  class Session
7
7
  def initialize(store)
8
8
  @store = store
9
+ upgrade!
9
10
  end
10
11
 
11
12
  def needs_upgrade?
@@ -14,6 +15,7 @@ module BooticCli
14
15
 
15
16
  def upgrade!
16
17
  store.upgrade!
18
+ self
17
19
  end
18
20
 
19
21
  def setup?
@@ -31,8 +33,6 @@ module BooticCli
31
33
  end
32
34
 
33
35
  def setup(client_id, client_secret, auth_host: nil, api_root: nil)
34
- upgrade!
35
-
36
36
  store.transaction do
37
37
  store['client_id'] = client_id
38
38
  store['client_secret'] = client_secret
@@ -36,7 +36,7 @@ module BooticCli
36
36
 
37
37
  def needs_upgrade?
38
38
  transaction do
39
- store['version'].to_i < VERSION && store[DEFAULT_NAMESPACE].nil?
39
+ store['version'].to_i < VERSION
40
40
  end
41
41
  end
42
42
 
@@ -55,7 +55,7 @@ module BooticCli
55
55
  self[k] = v
56
56
  end
57
57
 
58
- self['version'] = VERSION
58
+ store['version'] = VERSION
59
59
  end
60
60
  end
61
61
 
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootic_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-30 00:00:00.000000000 Z
11
+ date: 2017-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor