aggcat 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/aggcat/client.rb CHANGED
@@ -126,6 +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
130
  keys = institution[:result][:institution_detail][:keys][:key].sort { |a, b| a[:display_order] <=> b[:display_order] }
130
131
  hash = {
131
132
  keys[0][:name] => username,
@@ -1,3 +1,3 @@
1
1
  module Aggcat
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.8'
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.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-28 00:00:00.000000000 Z
12
+ date: 2013-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth