aptible-auth 0.8.3 → 0.8.4

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: 7c2347052f691873a12ad17f95b306cee1960ad0
4
- data.tar.gz: 2ef4f91517cd606c5dccecdd7d7e5faea4a782a3
3
+ metadata.gz: 218a7e1bbe9b5692885404b720f8868b19b1ed30
4
+ data.tar.gz: 9562873042bbe23ddcab977cb9c096fe628777e5
5
5
  SHA512:
6
- metadata.gz: d81890b51d9da4393f337c54844a57690e54e5e538cc2246ab337a7ecf117e671cd9323c496434584328b9d541666bdc6e9ce4bfe7d6bc74c1893ae0bf3cd82c
7
- data.tar.gz: 858be01e41f4648344649ce4b9553f85752d8e060c165e75add5db283ee91d323416f46faba8c4a68b6dc8f067988a704f45e2d74e86099df054b5149e87c750
6
+ metadata.gz: 4ad15affa29559ad2ad55923363a98162d95dc002bf0bdc26094fb2ecc82a2ca63f8c15cfd571ea8219e5694929f0ad4e0568471e86c56e94f12722ce051e909
7
+ data.tar.gz: 88f5d22470555c91ca666ce4101a00748cc9625dc90d71cd9a8834d98d19eb480ae14207c60025a3dbbe16c746623ef14fa3e7794b9b68a5c2c30961810d22f5
@@ -61,10 +61,11 @@ module Aptible
61
61
  end
62
62
 
63
63
  def accounts
64
+ return @accounts if @accounts
64
65
  require 'aptible/api'
65
66
 
66
67
  accounts = Aptible::Api::Account.all(token: token, headers: headers)
67
- accounts.select do |account|
68
+ @accounts = accounts.select do |account|
68
69
  (link = account.links[:organization]) && link.href == href
69
70
  end
70
71
  end
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Auth
3
- VERSION = '0.8.3'
3
+ VERSION = '0.8.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-01 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-resource