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 +4 -4
- data/lib/aggcat/client.rb +1 -1
- data/lib/aggcat/version.rb +1 -1
- 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: ab0c6e9b22ff49963c78a07302e83aaa846abd8a
|
4
|
+
data.tar.gz: d9912a2c3d68bc93fe7ef90790eba73340a825ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c74e838e70a3b0564cafe8be97e5fbe321d12d7742992bbc9fa36438f79c9cd94f553a3e9084c7df0ca4cbc15569dd03477bfd3a49ad2fbd1d5bb4b5da6b0fe6
|
7
|
+
data.tar.gz: 9ca6d14fc9a46972c397046a8f66222de4f6a323d2c3b0a2d109a7d49633a17817ab9465106bac5b1024d2384815e34d4fbfd006b1390809554989bdde77fd46
|
data/lib/aggcat/client.rb
CHANGED
@@ -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.")
|
data/lib/aggcat/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth
|