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 +4 -4
- data/lib/aptible/auth/organization.rb +5 -0
- data/lib/aptible/auth/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: bc0c014308bf64c168ebe65c038aa66856b66928
|
4
|
+
data.tar.gz: f7545453c5366a9343a5fb44c720137b032bd7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/aptible/auth/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-resource
|