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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/decathlon/https.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75ced51ca25387dd63aab7ead0962a4a5e76021e6eedc86600c77fdb324cd35d
4
- data.tar.gz: 1d634bc7f46c7c3451e4a8a6044f0c3aeb59845c43db66aed68f83ab5df96594
3
+ metadata.gz: 8d46ddb59d450ec3761bcd5d53324cd08b0554fe3fe7d849c2ada98b484bc518
4
+ data.tar.gz: 12a7b55178da9e382a072edaaee764112731fa2ebc798258796a87a9d636cc8c
5
5
  SHA512:
6
- metadata.gz: de58b4bddd8439180b7020385379d7187e9873a931f09f5d5ff9eff21ab0973847cf0ab0b0cb0df43cea68a18698740da737bf9e7d3a6adba7ce8a8bb98576c7
7
- data.tar.gz: a278eed529f22f7c95f30a373f0ca692158cb31e5dbfe4d5af60af42d63d8187dcf841c3f35b66cbd4005758543cbd77d845009c4b98b163aefceb729611732a
6
+ metadata.gz: 82c4faadca6dc4306cf65692d216f641daa69f30872c0d92d5fb5adbdcfb5d62b06247a14e983b1c4315571239760ed5c48c5c629f13e109715ae51a0ae23e0d
7
+ data.tar.gz: 9ee3756d673f02ae12558a21b651e7c421728b33d6dee21a86dc5af73e34335bb9f54a342fe1319e3ab36728357b4caf2a9471e2f54a3e41e906624b5c5003b4
@@ -9,7 +9,7 @@ module Decathlon
9
9
  #
10
10
  module HTTPS
11
11
 
12
- VERSION = '0.1.3'
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.3
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-20 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler