decathlon-https 0.1.3 → 0.1.4
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/decathlon/https.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d46ddb59d450ec3761bcd5d53324cd08b0554fe3fe7d849c2ada98b484bc518
|
|
4
|
+
data.tar.gz: 12a7b55178da9e382a072edaaee764112731fa2ebc798258796a87a9d636cc8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82c4faadca6dc4306cf65692d216f641daa69f30872c0d92d5fb5adbdcfb5d62b06247a14e983b1c4315571239760ed5c48c5c629f13e109715ae51a0ae23e0d
|
|
7
|
+
data.tar.gz: 9ee3756d673f02ae12558a21b651e7c421728b33d6dee21a86dc5af73e34335bb9f54a342fe1319e3ab36728357b4caf2a9471e2f54a3e41e906624b5c5003b4
|
data/lib/decathlon/https.rb
CHANGED
|
@@ -9,7 +9,7 @@ module Decathlon
|
|
|
9
9
|
#
|
|
10
10
|
module HTTPS
|
|
11
11
|
|
|
12
|
-
VERSION = '0.1.
|
|
12
|
+
VERSION = '0.1.4'
|
|
13
13
|
|
|
14
14
|
def self.json_api_request(base_url: '', params: {}, verb: :get, headers: {}, return_http_status_code: false)
|
|
15
15
|
|
|
@@ -74,7 +74,7 @@ module Decathlon
|
|
|
74
74
|
# Parse the response body based on response content header
|
|
75
75
|
#
|
|
76
76
|
if response['content-type'].match(/application\/json/)
|
|
77
|
-
JSON.parse(response.body.to_s, symbolize_names: true)
|
|
77
|
+
body = JSON.parse(response.body.to_s, symbolize_names: true)
|
|
78
78
|
else
|
|
79
79
|
body = response.body.to_s
|
|
80
80
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decathlon-https
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jack Hayter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-09-
|
|
11
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|