bootic_cli 0.1.5 → 0.1.6

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: 7aa5ee3a26bc615d60ed29ad539ec26e0dcd93ef
4
- data.tar.gz: bddcad8a2dc0424929eb073512d23466b43520d1
3
+ metadata.gz: d1cd34aea083a13ac4498a6ec83efabf0f4f389a
4
+ data.tar.gz: 2f5067838d8dccbcbf5eac65176ea9081c76674d
5
5
  SHA512:
6
- metadata.gz: 6bf8a7326f3e5e06771b2a31e738e659bce911382ec4b21b2c7359cc7374faafbab6fa0081d5065fe4e2debf5dae9ffbf0cbb6e904e05faa555b9defe49377ea
7
- data.tar.gz: a9e13727bdab19e8484c12d4c6a3fd5ec8b8fc8aacf4b4d4315a4122b02cf086eeb28756cd531d9d22f647182b241df1a34a06d734816c1a836b60e4b97dc344
6
+ metadata.gz: 0f749cc6438d2d8cb8d5088787bde841a458a48e5485fe9f59e2ec54b42ce028301bee5f5159ba6239ef57904dd9055bef67ae39a3992001493627df588c54ad
7
+ data.tar.gz: 8a6fb2e8535280f8db5175d834f1b4a4ca2a1cb1ff64a9c80b0eb38af7efd9b672cb29d38896e0d8c0e7e004844eb1ded66156c5cd776d01f2569dad659b10c9
@@ -57,6 +57,22 @@ module BooticCli
57
57
  end
58
58
  end
59
59
 
60
+ # use a null store instead of the default memory store
61
+ # so in btc console we don't cache resources forever
62
+ class NullCacheStore
63
+ def read(key)
64
+ nil
65
+ end
66
+
67
+ def delete(key)
68
+ nil
69
+ end
70
+
71
+ def write(key, value)
72
+ value
73
+ end
74
+ end
75
+
60
76
  def client
61
77
  @client ||= begin
62
78
  raise "First setup credentials and log in" unless ready?
@@ -65,6 +81,7 @@ module BooticCli
65
81
  c.client_secret = config[:client_secret]
66
82
  c.logger = Logger.new(STDOUT)
67
83
  c.logging = false
84
+ c.cache_store = NullCacheStore.new
68
85
  end
69
86
 
70
87
  BooticClient.client(:authorized, access_token: config[:access_token]) do |new_token|
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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.5
4
+ version: 0.1.6
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-06-01 00:00:00.000000000 Z
11
+ date: 2017-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor