aggcat 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/aggcat/client.rb CHANGED
@@ -126,7 +126,7 @@ module Aggcat
126
126
 
127
127
  def credentials(institution_id, username, password)
128
128
  institution = institution(institution_id)
129
- raise ArgumentError.new("institution_id #{institution_id} is invalid") if institution.nil?
129
+ raise ArgumentError.new("institution_id #{institution_id} is invalid") if institution.nil? || institution[:result][:institution_detail].empty?
130
130
  keys = institution[:result][:institution_detail][:keys][:key].sort { |a, b| a[:display_order] <=> b[:display_order] }
131
131
  hash = {
132
132
  keys[0][:name] => username,
@@ -1,3 +1,3 @@
1
1
  module Aggcat
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: