gaah 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/gaah/api_client.rb +5 -2
- data/lib/gaah/exceptions.rb +2 -0
- data/lib/gaah/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzU0MmE2NmJmMWY4YWNkYjdkMmQ5MGZjZjg5ZTAyOGZhM2Q0YWY4YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDU2MTM3OTE4OThiZWNhOGRiOGEwNTI2Zjc0NzRkODI2NzdiODcxNg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTY5NjY0ZWI3ZTdiYjc0MjJkZWVhYzczYTM4ZjdjNjk5Nzc4MjYyM2IyNDBi
|
10
|
+
ZDQ2MGVlYmZmYzFiNjA2MDFmMzU5OGNlMTkxYWQ1YWEwNWJhZjQ0M2QyZjNh
|
11
|
+
ZGM3YzRiZTE1YjI3ZjI1MzVmZDVjYWFhZTNhYzNmNzk4NDVlODA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWRkNWQ2MmNiYjUwN2QzNmMzZTM2OGJjMGMxNTQ5NzE5NTExOGY4ODgzMmU1
|
14
|
+
NmIyYjIyODg1YjdlYzAxZGJiMDI2OTRiMGMzNzA4ZjIwNWRiOGE0ZTAyZGU3
|
15
|
+
NTQwMDI1OWM5ODdlNjM0YmIwNzAyNzgzOGY5ZTE4NDJkNWIwNjk=
|
data/lib/gaah/api_client.rb
CHANGED
@@ -54,9 +54,12 @@ module Gaah
|
|
54
54
|
raise Gaah::HTTPForbidden
|
55
55
|
elsif response.is_a? Net::HTTPUnauthorized
|
56
56
|
raise Gaah::HTTPUnauthorized
|
57
|
-
|
58
|
-
|
57
|
+
elsif response.is_a? Net::HTTPBadRequest
|
58
|
+
raise Gaah::HTTPBadRequest
|
59
|
+
elsif response.code.start_with?('2')
|
59
60
|
response
|
61
|
+
else
|
62
|
+
raise Gaah::UnknownHTTPException.new(response.code)
|
60
63
|
end
|
61
64
|
end
|
62
65
|
end
|
data/lib/gaah/exceptions.rb
CHANGED
data/lib/gaah/version.rb
CHANGED