aptible-auth 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/aptible-auth.gemspec +1 -0
- data/lib/aptible/auth/organization.rb +9 -0
- data/lib/aptible/auth/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c2347052f691873a12ad17f95b306cee1960ad0
|
4
|
+
data.tar.gz: 2ef4f91517cd606c5dccecdd7d7e5faea4a782a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d81890b51d9da4393f337c54844a57690e54e5e538cc2246ab337a7ecf117e671cd9323c496434584328b9d541666bdc6e9ce4bfe7d6bc74c1893ae0bf3cd82c
|
7
|
+
data.tar.gz: 858be01e41f4648344649ce4b9553f85752d8e060c165e75add5db283ee91d323416f46faba8c4a68b6dc8f067988a704f45e2d74e86099df054b5149e87c750
|
data/aptible-auth.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency 'stripe', '>= 1.13.0'
|
24
24
|
spec.add_dependency 'gem_config'
|
25
25
|
spec.add_dependency 'oauth2-aptible'
|
26
|
+
spec.add_dependency 'aptible-billforward'
|
26
27
|
|
27
28
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
28
29
|
spec.add_development_dependency 'aptible-tasks', '>= 0.2.0'
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'stripe'
|
2
|
+
require 'aptible/billforward'
|
2
3
|
|
3
4
|
module Aptible
|
4
5
|
module Auth
|
@@ -27,6 +28,14 @@ module Aptible
|
|
27
28
|
field :ops_alert_email
|
28
29
|
field :security_officer_id
|
29
30
|
field :billing_contact_id
|
31
|
+
field :billforward_account_id
|
32
|
+
|
33
|
+
def billforward_account
|
34
|
+
return nil if billforward_account_id.nil?
|
35
|
+
@billforward_account ||= Aptible::BillForward::Account.find(
|
36
|
+
billforward_account_id
|
37
|
+
)
|
38
|
+
end
|
30
39
|
|
31
40
|
def stripe_customer
|
32
41
|
return nil if stripe_customer_id.nil?
|
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.8.
|
4
|
+
version: 0.8.3
|
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-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-resource
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: aptible-billforward
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|