shoptet 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shoptet/request.rb +4 -4
- data/lib/shoptet.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: 58902b1d779978f5c26c0dfe99770ff3a61a23deeaf475d6cffbce3f19e64a2e
|
4
|
+
data.tar.gz: d93a5b924492487a45469e325f5e9cf5aa32bd5c23c79aa63b7c481061f31feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3aca14df29ce6d5aeab5f18cf14c2c10f12c95f469f8373667ccd374f13724732834ec6bfcf834d02d3c2e3feb9a5c7dd5e87be369c5364df1f25ea1d2ab41c
|
7
|
+
data.tar.gz: 32eb961e391035af210e061005826e258f3e2ef21a9de79f2a16334bf0afbbb3e4c215c64eb1ed2b2f4b23cbb23a75d14efae789b2512ade49ea827d9c5dfeb2
|
data/lib/shoptet/request.rb
CHANGED
@@ -16,7 +16,7 @@ class Shoptet
|
|
16
16
|
request[key] = value
|
17
17
|
end
|
18
18
|
|
19
|
-
response =
|
19
|
+
response = handle_connection_errors { http.request(request) }
|
20
20
|
parsed_body = JSON.parse(response.body)
|
21
21
|
|
22
22
|
unless parsed_body
|
@@ -32,7 +32,7 @@ class Shoptet
|
|
32
32
|
request.set_form_data(body)
|
33
33
|
|
34
34
|
response = Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
|
35
|
-
|
35
|
+
handle_connection_errors { http.request(request) }
|
36
36
|
end
|
37
37
|
|
38
38
|
JSON.parse(response.body)
|
@@ -50,7 +50,7 @@ class Shoptet
|
|
50
50
|
end
|
51
51
|
|
52
52
|
response = Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
|
53
|
-
|
53
|
+
handle_connection_errors { http.request(request) }
|
54
54
|
end
|
55
55
|
|
56
56
|
JSON.parse(response.body)
|
@@ -63,7 +63,7 @@ class Shoptet
|
|
63
63
|
end
|
64
64
|
|
65
65
|
response = Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
|
66
|
-
|
66
|
+
handle_connection_errors { http.request(request) }
|
67
67
|
end
|
68
68
|
|
69
69
|
JSON.parse(response.body)
|
data/lib/shoptet.rb
CHANGED