getaround_utils 0.1.14 → 0.1.15

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: 60fc9ba7221e390c7e38bafe4eb9081b92c2f7bbaa712ec6d406829119caa078
4
- data.tar.gz: 8e15c5d248d959feafa0e5c8138fdbb98b390ac3ea57cb3fe210664a06d62b65
3
+ metadata.gz: b8671aa5df0cff6fcdd61c14f485cb0a2779227101e47987fae561cd229f93e8
4
+ data.tar.gz: 39056e8a4fbeaa4578ff043c18f35c4cceb7847b1f2db4c9d5bd717e991681b1
5
5
  SHA512:
6
- metadata.gz: 1d82749e52098b299e05f1a86bbd7a1c0c41740b2f49a6ce141cfb59d3ca8d357c0934f986ae367e93b148acc40fb625ebefb46499e53ab508ef155fee3b6944
7
- data.tar.gz: 4f133ab4291622815841b92dbd195b89e8a04ba076c083536292ed6115b47a6aa1407a9ea4db0199b6f156c9da30bd61ae8b81f2a7abb4c34d6938249e9122c3
6
+ metadata.gz: 26caccab4e1d5a6d9d8dfc907ad6c594ddccb66c63080a0cd990626b9848a82bc8087b2db919e6144d6ee7ab96dfbcc6902811bfc8b514dae90568c3e89bdcfb
7
+ data.tar.gz: a32eada5a97eab675390304b20c721f57265ca381d73b1fd78aaaf0b2cc6efa8ee1c06b44ebff7d10d60471174351c31f3e79f3c7e1139baad56b54d0291061e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getaround_utils (0.1.14)
4
+ getaround_utils (0.1.15)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,10 +1,13 @@
1
1
  require 'json'
2
2
  require 'faraday'
3
+ require 'getaround_utils/utils/async_queue'
3
4
 
4
5
  class GetaroundUtils::Utils::HttpReporter
5
6
  class AsyncQueue < GetaroundUtils::Utils::AsyncQueue
6
7
  def self.perform(url:, params: {}, headers: {}, body: nil)
7
8
  Faraday.post(url) do |req|
9
+ req.options[:open_timeout] = 1
10
+ req.options[:timeout] = 1
8
11
  req.params = params
9
12
  req.headers = headers
10
13
  req.body = body
@@ -1,3 +1,3 @@
1
1
  module GetaroundUtils
2
- VERSION = '0.1.14'.freeze
2
+ VERSION = '0.1.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getaround_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drivy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-06 00:00:00.000000000 Z
12
+ date: 2020-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler