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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f657df59fb7b78293824c42202f1ca4d6739c4f9
4
- data.tar.gz: ce0f30bc259d27fbfc684308cdeccd6da268535e
3
+ metadata.gz: 7c2347052f691873a12ad17f95b306cee1960ad0
4
+ data.tar.gz: 2ef4f91517cd606c5dccecdd7d7e5faea4a782a3
5
5
  SHA512:
6
- metadata.gz: a3fe7e620cfa6e3e7122e5f37a6772f16111bf1a26a072c3135b87d946ed5fbdbf23a71d75e6f310485480a5be2a4de9d4dc2ab9e6690901bcfd33897a9c557e
7
- data.tar.gz: 01f2ea42fe022b2cfb9558c414139442fb3172bad1f4809c92bd43c20df2610d1df5b0288a11a842d17e918cd1c450de7a96c0700ad6f0a4e72d6e1e27f271a5
6
+ metadata.gz: d81890b51d9da4393f337c54844a57690e54e5e538cc2246ab337a7ecf117e671cd9323c496434584328b9d541666bdc6e9ce4bfe7d6bc74c1893ae0bf3cd82c
7
+ data.tar.gz: 858be01e41f4648344649ce4b9553f85752d8e060c165e75add5db283ee91d323416f46faba8c4a68b6dc8f067988a704f45e2d74e86099df054b5149e87c750
@@ -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?
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Auth
3
- VERSION = '0.8.2'
3
+ VERSION = '0.8.3'
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.2
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-09-10 00:00:00.000000000 Z
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