senec 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/senec/request.rb +2 -5
- data/lib/senec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 877e39b91e6ff1f4709131aaf96394db590396faad43d8648c88ab90cce1ca3a
|
4
|
+
data.tar.gz: bffeb00945d5a22ab11936299ec8d716283aa5c8283250c2ec337534f10af690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 966c843b9dfe626d753cf7ceafa1c030479a59c8bd076009e8406252147d09f11f239225b86c628a537eb87b538d5893503c6206579cf0c769d235e442035100
|
7
|
+
data.tar.gz: ca2fc0dfe72ce5934bc0ebeae1b2ac453f188031dbd0a2c515f135c892bc1d971fec9d81f9b7ccde604affdd0a6d312ee9dabfa349f00bd9df2ec97039e22734
|
data/lib/senec/request.rb
CHANGED
@@ -72,12 +72,9 @@ module Senec
|
|
72
72
|
def response
|
73
73
|
@response ||= begin
|
74
74
|
res = HTTP.post uri, json: Senec::BASIC_REQUEST
|
75
|
+
raise Senec::Error, res.status.to_s unless res.status.success?
|
75
76
|
|
76
|
-
|
77
|
-
JSON.parse(res.body)
|
78
|
-
else
|
79
|
-
throw "Failure: #{res.value}"
|
80
|
-
end
|
77
|
+
JSON.parse(res.body)
|
81
78
|
end
|
82
79
|
end
|
83
80
|
|
data/lib/senec/version.rb
CHANGED