ncua 0.8.0 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ncua/credit_union/details_client.rb +6 -3
- data/lib/ncua/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: 2f643f3ceb2bed834401998512f2465ce49d16c7
|
4
|
+
data.tar.gz: 07ea5308d68f41bfbce97f1619c5bcd5dcdd30db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9378ae257eb88fc99dae84e2ba412442fe7091178fb295ddc57c19c62c3f3c73f0cb03ba701247ec69d79719f93727f4bf5b25f2b67c1f12c2e435b12b15637
|
7
|
+
data.tar.gz: ae4c3d8ab604976630800fc453acf2edf6a024673df951b8eea672a6bfe6bbe9ee6949f18f2dbb2a459ffcd5a5c7a8e788cd8cc63a5ebfb6ab86f97b6a814bd2
|
@@ -6,8 +6,9 @@ module NCUA
|
|
6
6
|
|
7
7
|
base_uri 'http://mapping.ncua.gov'
|
8
8
|
def get_details(charter_number)
|
9
|
-
|
10
|
-
|
9
|
+
charter_number = charter_number.to_s.strip
|
10
|
+
if charter_number.empty?
|
11
|
+
raise ArgumentError, "charter number cannot be nil or empty string"
|
11
12
|
end
|
12
13
|
|
13
14
|
response = execute_query(charter_number)
|
@@ -16,7 +17,9 @@ module NCUA
|
|
16
17
|
when 200...300
|
17
18
|
response
|
18
19
|
when 500...600
|
19
|
-
raise ServerError
|
20
|
+
raise ServerError, "the NCUA returned a #{response.code} error"
|
21
|
+
else
|
22
|
+
raise ServerError, "Unexpected Response: #{response.code}"
|
20
23
|
end
|
21
24
|
end
|
22
25
|
|
data/lib/ncua/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ncua
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Reznick
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|