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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmYzY2NhN2JjMjNiZWRlOTZkY2ZiMjY0MzA1MDIzNTI5ZWFjMWYwOQ==
4
+ ZTEyZmE5YWI2NjhjODFjOGI1ZDkyNTUyYjBmMTJkNzRkODc4ZmUyMw==
5
5
  data.tar.gz: !binary |-
6
- YjA3MTliNWE4MDA3MDhlYzAzM2M1NzRlMWNhYzVjNzExYmRhNTE1MA==
6
+ NDA5YWIyZmY5MWE2MjNkYmMxN2M4MDE2MDY4ZjdjMzIxZjRmZDIwYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTU2NWQ2NTc4NGMzMzgxMmY1OTVlYTc1NDE5ODkxMDEyODJkNTliMDhhZTYx
10
- NzFlZjRmMDdkNTEwODZiMTA1YjJlYmFkMWZlMmIyNmIwNzZmNjdmZTFlNTVi
11
- ZjE2MWIzZDE1YTI3NWI3ZGM5MDNkOWUxMWEwOWNjYjg3YjM2MjE=
9
+ OTRmZmU0MTZmOWQ1OGE1ZTgxM2FjYzY4OTVkOWY1NWNhMWQ0ZTY0NTkzOTU2
10
+ MDhiNmY5NzJjZGMxZWUxYjRkMWFkNTVmNjExN2ZhMTQ2MWJlOWU0NjcyMDAz
11
+ MmI3MWRjYjdkOWEwYmI2YjdiZmJjM2Y0YTE5ODg1ZWI5M2Q4MjA=
12
12
  data.tar.gz: !binary |-
13
- ZWFlOTFkNTNkMTQ3MTFhMTA2YTBlYjczMzdiZTlmNTE4ZTM5ODhhM2E0ZjY0
14
- ZDMwYjhhOWMyMTc5YzdjMDUxNWEyOWMzNDE3ZjdmMDU0ODFkMjRlNmNlZjRj
15
- NzQ0OWUxNmUzYTg4MjQ1M2Y2NTliMjAwNTIwNDcxMTk2ZWRjYTg=
13
+ MmVlYzE0MWU1M2U1YzRhYjdlNmQ1YWU0Mzk4NDVmMjU5YWE1N2Q3ZDgyZjgz
14
+ Njc5ZTFkODBmMGFhYzk2YjdhNTk5ZjhjMTcxMTVjNGZiZmUwOGY0ZWQxMjI3
15
+ ZjAzMGU0ZWUyNjljMzgxYzA3ZTIzYzE5MzIzN2UyNmRjOTJkMzk=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-in-peace
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raffael Schmid