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 +4 -4
- data/Gemfile.lock +1 -1
- data/HISTORY.md +5 -0
- data/chargify_api_ares.gemspec +2 -2
- data/gemfiles/rails_3.gemfile.lock +1 -1
- data/gemfiles/rails_4.1.gemfile.lock +1 -1
- data/gemfiles/rails_4.gemfile.lock +1 -1
- data/lib/chargify_api_ares/resources/subscription.rb +3 -0
- data/spec/factories.rb +1 -0
- data/spec/resources/subscription_spec.rb +11 -0
- 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: f5d48fc637ec7a266839494a814abf7161a180d0
|
4
|
+
data.tar.gz: 0d239d9b8d6df630ed305f3313f820c443d48bdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 324ae2a30a0fb96918903d6803c08fc657811c15b46d6cad37bce584d372f05d7221d5a2efa6e119074744e506f091f419f765b0ac52f1136c14180ef568f939
|
7
|
+
data.tar.gz: 5f8ec8d8473f06a5b0318eba1e72753c8608af661f14dec2155fb8c17b24fdc0d5ace87d4b15cef9032a0947da23af1b7bba5efa366a42a2fc4a40118ec6c1c9
|
data/Gemfile.lock
CHANGED
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
|
data/chargify_api_ares.gemspec
CHANGED
@@ -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.
|
8
|
-
s.date = '2015-
|
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"]
|
@@ -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
|
|
data/spec/factories.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|