evvnt 0.2.4 → 0.2.5
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/Gemfile.lock +2 -2
- data/lib/evvnt/api.rb +6 -1
- data/lib/evvnt/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: f9f633a91ee4e2cc5d871291afc1a9dfb8dbcc45fe010b7302d4c2fb321251d7
|
4
|
+
data.tar.gz: c1e3b694b5ac2e145a3daf488fb87f6d3282f058af92cdb2ace05d526b03a494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00c1701788ddb1d74b93cd6efef5ed099daa48b303f7db515d2451c139e4c1f7032bc1b5b7512685036cf9d589676e7cd55a54d74c4d4fdc61588e3dc8bff0ae
|
7
|
+
data.tar.gz: 48543f95336c6d2eea522beb3983d0bcef90c475fdc67cb1307f5fcd934b5ee28bbfb1dd88d2f6cabb9e738a248ee63876cf2aee9296dd303e7486adaf85ab4a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
evvnt (0.2.
|
4
|
+
evvnt (0.2.5)
|
5
5
|
activesupport (>= 3.0)
|
6
6
|
httparty (>= 0.16.0)
|
7
7
|
oj
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
docile (1.1.5)
|
26
26
|
dotenv (2.2.1)
|
27
27
|
hashdiff (0.3.7)
|
28
|
-
httparty (0.16.
|
28
|
+
httparty (0.16.1)
|
29
29
|
multi_xml (>= 0.5.2)
|
30
30
|
i18n (0.9.5)
|
31
31
|
concurrent-ruby (~> 1.0)
|
data/lib/evvnt/api.rb
CHANGED
@@ -94,7 +94,12 @@ module Evvnt
|
|
94
94
|
end
|
95
95
|
|
96
96
|
def parse_error_response(body)
|
97
|
-
parse_body(body)
|
97
|
+
body_json = parse_body(body)
|
98
|
+
if body_json.key?("error")
|
99
|
+
body_json["error"]
|
100
|
+
else
|
101
|
+
body_json["errors"].join(", ")
|
102
|
+
end
|
98
103
|
end
|
99
104
|
|
100
105
|
# Ensure the path is the correct format with a leading slash and ".json" extension
|
data/lib/evvnt/version.rb
CHANGED