blackbook_client 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 992fb0e18ece80e1985c6a81046d005c56729f30d66c10c79a77bff52206ca9a
4
- data.tar.gz: 626b173e9284e9e04aeb9693349fb3c3ffcfd4e8a30a5b4370d55cc447548dc8
3
+ metadata.gz: 74f52105e54523d683ea1d2cd5a14c02856c9efa1e30c6dab416eac01f46466c
4
+ data.tar.gz: 28621ad6f8ed8e4ae7936327166f99ef43fa8639db46d63031c84c999c8ea775
5
5
  SHA512:
6
- metadata.gz: a44160727efe15ebd09eb927ad2c70c4e011ef507208f366584c7ad1bd27b2f8f5a66c42a3c742f5fbb7a9f91cca2abd0cab699bb9cb25c2c4cfb251fbad2518
7
- data.tar.gz: 23db590d43873e4563f0273c17b6c2a41d207f510487354d400ea4bbc958812e2cf02ee4ecf12cd7270b40fe7021691d8e60cd5136e20b8a173e6fd217336d6c
6
+ metadata.gz: be62b82232a8fee54babca17fa588e91012e2d9cf410fb6a2887ccdc1e4eff991e46bcd55c682df69d4cb48c6180061149243e011c9563c866e0d59abfc60aea
7
+ data.tar.gz: 02a91961160e0975c93c813129b9361ad01e9e050cce08e7a19cdbc47babd64bd18ecae73bc65300a58a240cddb2e5c12a4fb8cca5fd1db783396a0d25e29167
@@ -0,0 +1,18 @@
1
+ <!--
2
+ Please provide the following information:
3
+ -->
4
+
5
+ **- What I did**
6
+
7
+ **- How I did it**
8
+
9
+ **- How to verify it**
10
+
11
+ **- Description for the changelog**
12
+ <!--
13
+ Write a short (one line) summary that describes the changes in this
14
+ pull request for inclusion in the changelog:
15
+ -->
16
+
17
+
18
+ **- A picture of a cute animal (not mandatory but encouraged)**
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blackbook_client (1.0.0)
4
+ blackbook_client (1.0.1)
5
5
  httparty (~> 0.15)
6
6
 
7
7
  GEM
@@ -13,12 +13,12 @@ GEM
13
13
  safe_yaml (~> 1.0.0)
14
14
  diff-lcs (1.3)
15
15
  hashdiff (0.3.7)
16
- httparty (0.16.4)
16
+ httparty (0.17.1)
17
17
  mime-types (~> 3.0)
18
18
  multi_xml (>= 0.5.2)
19
- mime-types (3.2.2)
19
+ mime-types (3.3)
20
20
  mime-types-data (~> 3.2015)
21
- mime-types-data (3.2018.0812)
21
+ mime-types-data (3.2019.1009)
22
22
  multi_xml (0.6.0)
23
23
  public_suffix (3.0.1)
24
24
  rake (10.5.0)
@@ -6,7 +6,7 @@ module AutocompleteService
6
6
  def lookup_autocomplete(query_params = {})
7
7
  begin
8
8
  response = HTTParty.get(VEHICLE_AUTOCOMPLETE_URL, headers: headers, query: query_params)
9
- process_response(JSON.parse(response), :transformer)
9
+ process_response(JSON.parse(response.body), :transformer)
10
10
  rescue => e
11
11
  [{ error: e.to_s }, 500]
12
12
  end
@@ -1,3 +1,3 @@
1
1
  class BlackbookClient
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -8,7 +8,7 @@ module ChromedataService
8
8
 
9
9
  begin
10
10
  response = HTTParty.get(url, headers: headers, query: query_params)
11
- process_response(JSON.parse(response), :map_fields)
11
+ process_response(JSON.parse(response.body), :map_fields)
12
12
  rescue => e
13
13
  [{ error: e.to_s }, 500]
14
14
  end
@@ -11,7 +11,7 @@ module HttpRestClient
11
11
  def make_request(method, url, query_params = {})
12
12
  return unless [:get].include?(method)
13
13
  begin
14
- response = JSON.parse(HTTParty.send(method, url, headers: headers, query: query_params))
14
+ response = JSON.parse(HTTParty.send(method, url, headers: headers, query: query_params).body)
15
15
  status = 200
16
16
 
17
17
  if response['error_count'].positive? || message_with_error(response)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackbook_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Schmeichel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".github/PULL_REQUEST_TEMPLATE.md"
104
105
  - ".gitignore"
105
106
  - ".rspec"
106
107
  - ".ruby-gemset"