plaid 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/plaid/user/user.rb +6 -4
- data/lib/plaid/version.rb +1 -1
- data/spec/plaid_spec.rb +7 -2
- 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: 54b797799b0bf3ae13d2759c4c2f88143a3752b0
|
4
|
+
data.tar.gz: a6108a3c096ebc5fff49ae3ffe4c19b7ea960f21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65dd20782147e7a46dc6e35db36ddf820d098c81faf817858024c8598ead84f7e45a709370541799a44914ef6f5ecf4d0d7fd00871502a100bfe9f4b9589fa3f
|
7
|
+
data.tar.gz: 484ec7075f8cf94783848d02829f63d88874ca0cf7848197a491c5b404b5ac8bbadfccb041fcf1a112f050672fef3d460a15343fd7ff986a5e3ec19aa1ce0358
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
# Plaid [![Build Status](https://travis-ci.org/plaid/plaid-ruby.svg?branch=release_v_1.0.0)](https://travis-ci.org/plaid/plaid-ruby)
|
1
|
+
# Plaid [![Build Status](https://travis-ci.org/plaid/plaid-ruby.svg?branch=release_v_1.0.0)](https://travis-ci.org/plaid/plaid-ruby) [![Gem Version](https://badge.fury.io/rb/plaid.svg)](http://badge.fury.io/rb/plaid)
|
2
2
|
|
3
3
|
Ruby bindings for the Plaid API
|
4
4
|
|
5
5
|
## Notes
|
6
6
|
|
7
|
-
Latest stable version: **1.1.
|
7
|
+
Latest stable version: **1.1.2**
|
8
8
|
|
9
9
|
Last stable version: 1.0.1
|
10
10
|
|
@@ -15,7 +15,7 @@ Last stable version: 1.0.1
|
|
15
15
|
Add this line to your application's Gemfile:
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem 'plaid'
|
18
|
+
gem 'plaid', "~> 1.1.1"
|
19
19
|
```
|
20
20
|
|
21
21
|
And install
|
data/lib/plaid/user/user.rb
CHANGED
@@ -47,10 +47,12 @@ module Plaid
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
def upgrade
|
51
|
-
|
52
|
-
|
53
|
-
|
50
|
+
def upgrade(api_level=nil)
|
51
|
+
if api_level.nil?
|
52
|
+
api_level = 'auth' unless self.permissions.include? 'auth'
|
53
|
+
api_level = 'connect' unless self.permissions.include? 'connect'
|
54
|
+
end
|
55
|
+
res = Plaid.post('upgrade',{access_token:self.access_token,upgrade_to:api_level})
|
54
56
|
build_user(res)
|
55
57
|
end
|
56
58
|
|
data/lib/plaid/version.rb
CHANGED
data/spec/plaid_spec.rb
CHANGED
@@ -382,12 +382,17 @@ describe Plaid do
|
|
382
382
|
connect_user = Plaid.add_user('connect','plaid_test','plaid_good','wells')
|
383
383
|
|
384
384
|
context 'auth upgrade is successful' do
|
385
|
-
connect_user.upgrade
|
385
|
+
connect_user.upgrade('auth')
|
386
386
|
it { expect(connect_user.get_auth).to be_truthy }
|
387
387
|
end
|
388
388
|
|
389
389
|
context 'connect upgrade is successful' do
|
390
|
-
auth_user.upgrade
|
390
|
+
auth_user.upgrade('connect')
|
391
|
+
it { expect(auth_user.get_connect).to be_truthy }
|
392
|
+
end
|
393
|
+
|
394
|
+
context 'connect upgrade is successful' do
|
395
|
+
auth_user.upgrade('info')
|
391
396
|
it { expect(auth_user.get_connect).to be_truthy }
|
392
397
|
end
|
393
398
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plaid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Crites
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|