shoptet 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/shoptet.rb +1 -1
- data/lib/shoptet/request.rb +3 -3
- data/shoptet.gemspec +0 -2
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 671a3a74eccf368f260d0cf4706cb1ba166012164bb44460f66713e9dde87998
|
4
|
+
data.tar.gz: 37a1695eb6a8a84479169399d02663792c17dc15ffe0fb735ecf5a413a38e82e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7572c405b6db590e09e16a2232f5925c883964ec7d06ca009e1e7056494eb44fcb8e35513d460cc0d0c17066b7997c823f6960c2f2b59bfa77b65ced9dba4694
|
7
|
+
data.tar.gz: 80f326ab967e6641513d30791c1b140ab952a1df4552c446809ce469857181e657b322640fd60d3eaefe4c65097f60d83af3d333ec46df291340e16b532f8fff
|
data/Gemfile.lock
CHANGED
data/lib/shoptet.rb
CHANGED
data/lib/shoptet/request.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'net/http'
|
2
|
-
require '
|
2
|
+
require 'json'
|
3
3
|
|
4
4
|
class Shoptet
|
5
5
|
class Request
|
@@ -17,7 +17,7 @@ class Shoptet
|
|
17
17
|
end
|
18
18
|
|
19
19
|
response = handle_net_timeouts { http.request(request) }
|
20
|
-
parsed_body =
|
20
|
+
parsed_body = JSON.parse(response.body)
|
21
21
|
|
22
22
|
unless parsed_body
|
23
23
|
message = "Status code: #{response.code}, url: #{url}"
|
@@ -35,7 +35,7 @@ class Shoptet
|
|
35
35
|
handle_net_timeouts { http.request(request) }
|
36
36
|
end
|
37
37
|
|
38
|
-
|
38
|
+
JSON.parse(response.body)
|
39
39
|
end
|
40
40
|
|
41
41
|
private
|
data/shoptet.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoptet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Premysl Donat
|
@@ -10,20 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: oj
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: irb
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|