chargify_api_ares 1.4.0 → 1.4.1

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: 62367586e39de024a3245e8153701eea9e7dd851
4
- data.tar.gz: 37ba219d0657aadc41105b87bde8296b5fc113a8
3
+ metadata.gz: f5d48fc637ec7a266839494a814abf7161a180d0
4
+ data.tar.gz: 0d239d9b8d6df630ed305f3313f820c443d48bdb
5
5
  SHA512:
6
- metadata.gz: 8a4d9d6fc46fc921fc178c69a88d9e816a67b90546e9b1780e8eb1572d7afddd32446afad673c4878e88510d032c5366c347a14ce56b2b06da55c667ae1c6913
7
- data.tar.gz: 4124335f71a4cfca894b5fd58e864926b32ecf4fb7785c3f26de7b7461af249672eb159b9d1155f73eae7202126256ca6ef4449ba8fe720e51d695d1f06db202
6
+ metadata.gz: 324ae2a30a0fb96918903d6803c08fc657811c15b46d6cad37bce584d372f05d7221d5a2efa6e119074744e506f091f419f765b0ac52f1136c14180ef568f939
7
+ data.tar.gz: 5f8ec8d8473f06a5b0318eba1e72753c8608af661f14dec2155fb8c17b24fdc0d5ace87d4b15cef9032a0947da23af1b7bba5efa366a42a2fc4a40118ec6c1c9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargify_api_ares (1.4.0)
4
+ chargify_api_ares (1.4.1)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.4.0 / Oct 6 2015
2
+
3
+ * Reverts custom `load_remote_errors` for Migration API (https://github.com/chargify/chargify_api_ares/pull/118)
4
+ * Adds a `Chargify::Statement.find_pdf` method (https://github.com/chargify/chargify_api_ares/pull/116)
5
+
1
6
  ## 1.3.5 / Aug 12 2015
2
7
 
3
8
  * Adds support for customer metadata
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.7'
5
5
 
6
6
  s.name = 'chargify_api_ares'
7
- s.version = '1.4.0'
8
- s.date = '2015-10-06'
7
+ s.version = '1.4.1'
8
+ s.date = '2015-11-12'
9
9
  s.summary = 'A Chargify API wrapper for Ruby using ActiveResource'
10
10
  s.description = ''
11
11
  s.authors = ["Chargify Development Team"]
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- chargify_api_ares (1.4.0)
4
+ chargify_api_ares (1.4.1)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- chargify_api_ares (1.4.0)
4
+ chargify_api_ares (1.4.1)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- chargify_api_ares (1.4.0)
4
+ chargify_api_ares (1.4.1)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -14,6 +14,7 @@ module Chargify
14
14
  self.attributes.delete('product')
15
15
  self.attributes.delete('credit_card')
16
16
  self.attributes.delete('bank_account')
17
+ self.attributes.delete('paypal_account')
17
18
 
18
19
  self.attributes, options = extract_uniqueness_token(attributes)
19
20
  self.prefix_options.merge!(options)
@@ -61,6 +62,8 @@ module Chargify
61
62
  credit_card
62
63
  elsif self.respond_to?('bank_account')
63
64
  bank_account
65
+ elsif self.respond_to?('paypal_account')
66
+ paypal_account
64
67
  end
65
68
  end
66
69
 
@@ -47,6 +47,7 @@ FactoryGirl.define do
47
47
  f.product Chargify::Product.new
48
48
  f.credit_card "CREDIT CARD"
49
49
  f.bank_account "BANK ACCOUNT"
50
+ f.paypal_account "PAYPAL ACCOUNT"
50
51
  end
51
52
 
52
53
  factory :component, :class => Chargify::Component do |f|
@@ -31,6 +31,12 @@ describe Chargify::Subscription, :fake_resource do
31
31
  @subscription.attributes['bank_account'].should be_blank
32
32
  end
33
33
 
34
+ it 'strips paypal account' do
35
+ @subscription.attributes['paypal_account'].should_not be_blank
36
+ @subscription.save!
37
+ @subscription.attributes['paypal_account'].should be_blank
38
+ end
39
+
34
40
  it "doesn't strip other attrs" do
35
41
  subscription = build(:subscription)
36
42
 
@@ -57,6 +63,11 @@ describe Chargify::Subscription, :fake_resource do
57
63
  @subscription.payment_profile.should == "BANK ACCOUNT"
58
64
  end
59
65
 
66
+ it 'returns paypal_account details' do
67
+ @subscription.paypal_account = "PAYPAL ACCOUNT"
68
+ @subscription.payment_profile.should == "PAYPAL ACCOUNT"
69
+ end
70
+
60
71
  end
61
72
 
62
73
  it 'creates a one-time charge' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargify_api_ares
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chargify Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-06 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource