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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b9b30810a3e3392732bf1ee7e843267f19a01aa
4
- data.tar.gz: ac4cbb40ad2161c03d410f3cbec2054e059fa193
3
+ metadata.gz: 54b797799b0bf3ae13d2759c4c2f88143a3752b0
4
+ data.tar.gz: a6108a3c096ebc5fff49ae3ffe4c19b7ea960f21
5
5
  SHA512:
6
- metadata.gz: ce258ad0a147fe6125ad54ea652ea22c2e06f61459f137e5e1284873cd5f59e12a8cfe1d69aa489f77d20be228585f1a15cf652a0218f8147830ef785cb0826b
7
- data.tar.gz: ce3bc86d3f69fa81615420d177360f9d41848b12f7ed14cc176360afc7e4777c97d6f513e64982ec7fa9c7012fda3a549f2668bc2e4e51a0c265fc2e34e77102
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.0**
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
@@ -47,10 +47,12 @@ module Plaid
47
47
  end
48
48
  end
49
49
 
50
- def upgrade
51
- upgrade_to = 'auth' unless self.permissions.include? 'auth'
52
- upgrade_to = 'connect' unless self.permissions.include? 'connect'
53
- res = Plaid.post('upgrade',{access_token:self.access_token,upgrade_to:upgrade_to})
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
@@ -1,3 +1,3 @@
1
1
  module Plaid
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
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.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-06 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler