aggcat 0.3.9 → 0.4.0

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: 2615e823110f1822fea36515c011d9fb95a370ce
4
- data.tar.gz: 30bbd9d2cce7b6f38be0f6f3bd93f653b602edaa
3
+ metadata.gz: ab0c6e9b22ff49963c78a07302e83aaa846abd8a
4
+ data.tar.gz: d9912a2c3d68bc93fe7ef90790eba73340a825ab
5
5
  SHA512:
6
- metadata.gz: 003ce91e8770c2c1e09994c0801056d9d2026ff6948f1b63b3c3efeac924fa7f3372da3e08b64df853e0cab33fd9f46f6b5f1daaee31333d5974b0326790a04d
7
- data.tar.gz: e519360ee466f84b7624628d6bfdbbcc5199814278177988d294fa465487e8588bac362c797e820a36b05a44b1567cad4fa8115f2ec0ecbecad3c2713ed9e134
6
+ metadata.gz: c74e838e70a3b0564cafe8be97e5fbe321d12d7742992bbc9fa36438f79c9cd94f553a3e9084c7df0ca4cbc15569dd03477bfd3a49ad2fbd1d5bb4b5da6b0fe6
7
+ data.tar.gz: 9ca6d14fc9a46972c397046a8f66222de4f6a323d2c3b0a2d109a7d49633a17817ab9465106bac5b1024d2384815e34d4fbfd006b1390809554989bdde77fd46
@@ -140,7 +140,7 @@ module Aggcat
140
140
 
141
141
  def credentials(institution_id, login_credentials)
142
142
  institution = institution(institution_id)
143
- raise ArgumentError.new("institution_id #{institution_id} is invalid") if institution.nil? || institution[:result][:institution_detail].nil?
143
+ raise ArgumentError.new("institution_id #{institution_id} is invalid") if institution.nil? || institution[:result].nil? || institution[:result][:institution_detail].nil?
144
144
  login_keys = institution[:result][:institution_detail][:keys][:key].select { |key| key[:display_flag] == 'true' }.sort { |a, b| a[:display_order].to_i <=> b[:display_order].to_i }
145
145
  if login_keys.length != login_credentials.length
146
146
  raise ArgumentError.new("institution_id #{institution_id} requires #{login_keys.length} credential fields but was given #{login_credentials.length} to authenticate with.")
@@ -1,3 +1,3 @@
1
1
  module Aggcat
2
- VERSION = '0.3.9'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene Drabkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-09 00:00:00.000000000 Z
11
+ date: 2015-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth