realogy 0.5.0 → 0.5.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: 1956befe99186c0f690a6062cf336f36f3327d74b7c6f0514d7703bc4b420ce7
4
- data.tar.gz: 1b04a0019d39011bec511cfe33a801efb38f6459e88c9cee566e442e630a173a
3
+ metadata.gz: 679a0fa71df27228dd89afcc6f0c209c9dbb8eeffe4bcedcf6cc6304083f209b
4
+ data.tar.gz: 1d904f39b5acb5ed5a7498d8e3d9456dbccf9c2a470942ed0f6e5970fb94ce4f
5
5
  SHA512:
6
- metadata.gz: c4d31c97eba0d008cba5c976a777a2dcaf1f5524fad8d11dc33f5af919d363d7a004f1ad27529ef94a8fa59d8ebe318770b0c2d979b52a0f8ef0e21f340f3f06
7
- data.tar.gz: ec22c1fa02006a364062d821641a844e34255ffa0dd6bbe70bde0503c3362dd295be946c9fca1920bf9efbcb074c05662a75da36275041ac388b1dbce63f72ce
6
+ metadata.gz: b5506401e89993ccf2228fbaa424bbe2db7412505e9b4426c9edf7ce176d5dd66306a76d325aadd0cd0363ac0e6cb2985c863c841b1bc3fd3bb625b8cc178dd1
7
+ data.tar.gz: 65214da3db7cd0f672ae0f27208574713eeccf181b811db77b0198b7053db7eef66362b382ad87adbc77f230696c6d84003db302c1cac2ec94ef02433922ba59
@@ -90,6 +90,7 @@ module Realogy
90
90
  request['Ocp-Apim-Subscription-Key'] = ENV["REALOGY_SUBSCRIPTION_KEY"]
91
91
  request['Authorization'] = "Bearer #{auth_token}"
92
92
  response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
93
+ http.max_retries = 10
93
94
  http.request(request)
94
95
  end
95
96
  return JSON(response.body)
@@ -103,6 +104,7 @@ module Realogy
103
104
  request['Ocp-Apim-Subscription-Key'] = ENV["REALOGY_SUBSCRIPTION_KEY"]
104
105
  request['Authorization'] = "Bearer #{auth_token}"
105
106
  response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
107
+ http.max_retries = 10
106
108
  http.request(request)
107
109
  end
108
110
  return JSON(response.body) rescue nil
@@ -1,3 +1,3 @@
1
1
  module Realogy
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund