beeswaxapi 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f864da1b76c76ca0709d9851fae8a28301f5390df3f0434851ff3c5a0ac9d3a5
4
- data.tar.gz: 2ce8ae284bdc19dfe2bfe25758475d8a571b2e63c50717f2a8dedc95483589ce
3
+ metadata.gz: a7119281bc4fd6fe32455376f7cccbc1463a6bedff69cb32a6041b47fc707c5a
4
+ data.tar.gz: e729180efe954547433dd69a609110ee1c6642f5a09cce64da306f197919b0c2
5
5
  SHA512:
6
- metadata.gz: 0adc5f9b58776d21cb41ede4135e22ac89acaad79df5f407e9914a56c6005360b8168518cf6fb938a7cc7b70277f42d8b10c01d2b5bfadb588aeca3504daaaf1
7
- data.tar.gz: 2fe420cf1ea6f94480c632d5f7b28349d8e386f48650da9d9eae785eaf93fba77e3b24bbeae129df5019d78b48f0d6ff3062ff7673bce38219d90263156345b5
6
+ metadata.gz: 88ca5ea54b61dfd428797f373307d750f6cdba57a7e237b9a75a4d633eeea6e6eb8d2af810880b507b111900ae916a4e48caea571eb9e860627121e1ecc9b42f
7
+ data.tar.gz: e2fb5c2ce90b900b67196a31243745c3e4c2023e33b6f468d3835b912af512c3658ffbb796b0afdb99d1b5b87cda7c8cd9551822ead79363751e0aa9f216868b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beeswaxapi (0.0.8)
4
+ beeswaxapi (0.0.10)
5
5
  dry-configurable (~> 0.7.0)
6
6
  dry-struct (~> 0.4.0)
7
7
  dry-types (~> 0.12.2)
@@ -8,10 +8,10 @@ module BeeswaxAPI
8
8
 
9
9
  # NOTE: get method returns document in body
10
10
  if origin_response.request.options[:method] == :get
11
- if parsed_response_body.key? :payload
12
- Response.new(parsed_response_body)
13
- else
11
+ if parsed_response_body.is_a?(Array)
14
12
  Response.new(payload: parsed_response_body)
13
+ else
14
+ Response.new(parsed_response_body)
15
15
  end
16
16
  else
17
17
  Response.new(parsed_response_body)
@@ -1,3 +1,3 @@
1
1
  module BeeswaxAPI
2
- VERSION = '0.0.9'.freeze
2
+ VERSION = '0.0.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beeswaxapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentyn Ostakh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-22 00:00:00.000000000 Z
11
+ date: 2017-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus