confyio 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/confy/http_client/error_handler.rb +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 991f2b1c5ea416118f21031808b69ca4aacab344
|
4
|
+
data.tar.gz: ab1fbb3ed62359a5f0aa371bc55cd4fa901cf349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d933ebb61f32b89db27584b26244ca5876f8772e13183fd1830b04aaefe03a6a10e0280f7c9609fb46ec6ab6315927945f58fd813cbda8005a8150e7c2357fb
|
7
|
+
data.tar.gz: e33bbae1d3ef39bb5b43cb93a8cf1d57200b25bae929a77e586bbe35528c5f56d53651a326c71b3ffa972555c234abc6a0d5ba05e6052e0686f50a4794617c32
|
@@ -11,14 +11,14 @@ module Confy
|
|
11
11
|
|
12
12
|
def call(env)
|
13
13
|
@app.call(env).on_complete do |env|
|
14
|
-
code = env
|
15
|
-
type = env
|
14
|
+
code = env.status
|
15
|
+
type = env.response_headers["content-type"]
|
16
16
|
|
17
17
|
case code
|
18
18
|
when 500...599
|
19
19
|
raise Confy::Error::ClientError.new("Error #{code}", code)
|
20
20
|
when 400...499
|
21
|
-
body = Confy::HttpClient::ResponseHandler.get_body(env
|
21
|
+
body = Confy::HttpClient::ResponseHandler.get_body(env)
|
22
22
|
message = ""
|
23
23
|
|
24
24
|
# If HTML, whole body is taken
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: confyio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavan Kumar Sunkara
|
@@ -14,16 +14,16 @@ dependencies:
|
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.9.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|