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 +4 -4
- data/lib/bootic_cli/session.rb +2 -2
- data/lib/bootic_cli/store.rb +2 -2
- data/lib/bootic_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 688263fa607dd97eb2335475ce3d9240906004ba
|
4
|
+
data.tar.gz: 7394dd12856ee4890df1de84d38e0afeab0069cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba9be7df26eeba72b2838e53428c2bd639ac0ffae48f79b909d59bd31f42b73091f9cf99ffb505952ab55baca1c2e73bdfc0333b50af0c2fe864c5ee3b316cf9
|
7
|
+
data.tar.gz: 7b6214feac9fcde7b16fa2a74c04b20af28e877d09274aca885a05a50861e4a72cd1224b92aa8df9092781082804c0da18a5e619bb20be6b0bdafde8f77c6896
|
data/lib/bootic_cli/session.rb
CHANGED
@@ -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
|
data/lib/bootic_cli/store.rb
CHANGED
@@ -36,7 +36,7 @@ module BooticCli
|
|
36
36
|
|
37
37
|
def needs_upgrade?
|
38
38
|
transaction do
|
39
|
-
store['version'].to_i < VERSION
|
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
|
-
|
58
|
+
store['version'] = VERSION
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
data/lib/bootic_cli/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|