rest-in-peace 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/rest_in_peace/faraday/raise_errors_middleware.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTEyZmE5YWI2NjhjODFjOGI1ZDkyNTUyYjBmMTJkNzRkODc4ZmUyMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDA5YWIyZmY5MWE2MjNkYmMxN2M4MDE2MDY4ZjdjMzIxZjRmZDIwYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTRmZmU0MTZmOWQ1OGE1ZTgxM2FjYzY4OTVkOWY1NWNhMWQ0ZTY0NTkzOTU2
|
10
|
+
MDhiNmY5NzJjZGMxZWUxYjRkMWFkNTVmNjExN2ZhMTQ2MWJlOWU0NjcyMDAz
|
11
|
+
MmI3MWRjYjdkOWEwYmI2YjdiZmJjM2Y0YTE5ODg1ZWI5M2Q4MjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmVlYzE0MWU1M2U1YzRhYjdlNmQ1YWU0Mzk4NDVmMjU5YWE1N2Q3ZDgyZjgz
|
14
|
+
Njc5ZTFkODBmMGFhYzk2YjdhNTk5ZjhjMTcxMTVjNGZiZmUwOGY0ZWQxMjI3
|
15
|
+
ZjAzMGU0ZWUyNjljMzgxYzA3ZTIzYzE5MzIzN2UyNmRjOTJkMzk=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.1
|
@@ -8,15 +8,15 @@ module RESTinPeace
|
|
8
8
|
def on_complete(env)
|
9
9
|
case env[:status]
|
10
10
|
when 404
|
11
|
-
raise Faraday::Error::ResourceNotFound, response_values(env)
|
11
|
+
raise ::Faraday::Error::ResourceNotFound, response_values(env)
|
12
12
|
when 407
|
13
13
|
# mimic the behavior that we get with proxy requests with HTTPS
|
14
|
-
raise Faraday::Error::ConnectionFailed, %{407 "Proxy Authentication Required "}
|
14
|
+
raise ::Faraday::Error::ConnectionFailed, %{407 "Proxy Authentication Required "}
|
15
15
|
when 422
|
16
16
|
# do not raise an error as 422 from a rails app means validation errors
|
17
17
|
# and response body contains the validation errors
|
18
18
|
when CLIENT_ERROR_STATUSES
|
19
|
-
raise Faraday::Error::ClientError, response_values(env)
|
19
|
+
raise ::Faraday::Error::ClientError, response_values(env)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|