aptible-auth 0.5.14 → 0.5.15

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: 89131a86b8f8c2f8eed6ce1f18a69f3420918985
4
- data.tar.gz: b433ee3b8bfee318189232e9ab53a0e228179ef0
3
+ metadata.gz: bc0c014308bf64c168ebe65c038aa66856b66928
4
+ data.tar.gz: f7545453c5366a9343a5fb44c720137b032bd7bd
5
5
  SHA512:
6
- metadata.gz: 3cc0678f9ada2872d1e0eb646239d254deeb043d81214ed2da47578e468477e3f16e9e8dd2dd76f8a3041b62a28f544f88051451a8008448eac85f7a49842fcd
7
- data.tar.gz: 2984fb6414a3a1fbe85e1dba87286b2822eec14e2f41ca685fcd608d8d9b099975d27f5f8aab161d90204489e33ca4e066b6776002c69229176ce46b47b3ae33
6
+ metadata.gz: 4f1a2454bde64eb256dc08e19f1e060dd0b39d529e727258915623f3f5f9988ecc317a292e092798d00ae769ee8ed822610d30141d5146478cd4fb702b565bfb
7
+ data.tar.gz: a952dac04ec1506cd25c531817e054caeade252608ee736634c913e411cbae81d12d49ba5486ce2f58f75b89163d67f8c25e40366e0a841e89c3d62d742c1912
@@ -18,6 +18,9 @@ module Aptible
18
18
  field :zip
19
19
  field :address
20
20
  field :stripe_customer_id
21
+ field :stripe_subscription_id
22
+ field :stripe_subscription_status
23
+ field :plan
21
24
 
22
25
  def stripe_customer
23
26
  return if stripe_customer_id.nil?
@@ -25,6 +28,8 @@ module Aptible
25
28
  end
26
29
 
27
30
  def can_manage_compliance?
31
+ # TODO: Refactor once Stripe migration from accounts is complete
32
+ return false if %w(development platform).include?(plan)
28
33
  accounts.map(&:type).include? 'production'
29
34
  end
30
35
 
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Auth
3
- VERSION = '0.5.14'
3
+ VERSION = '0.5.15'
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.5.14
4
+ version: 0.5.15
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-07-24 00:00:00.000000000 Z
11
+ date: 2014-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-resource