Ziggeo 2.18 → 2.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/classes/ZiggeoConnect.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e0cd91d7d1c73a545b883a8691e57f607282b64fdcea650230e5d1c60009bc
|
4
|
+
data.tar.gz: fdc7dfb35427fe2080744b95c233501480158cce251cd3282d001dadeab22f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ab45308457d11c599462a9c91236f2d216643c04bdf9878b17df3ada9c336b8649b9398be78b59ca26ddba5e8f13d69d1179d07e2abec8dee8a49435f33dbfc
|
7
|
+
data.tar.gz: 859395c07f33358941f44d870eca87e927328b300717175cef55b536a0bc77d38914ab6dc53136b61663f60d47470f87107b30d9d9358b271d3f81692b91f1c4
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
require 'json'
|
3
3
|
require 'httparty'
|
4
|
-
require 'httmultiparty'
|
5
4
|
|
6
5
|
class ZiggeoConnect
|
7
6
|
def initialize(application, baseuri)
|
@@ -34,10 +33,10 @@ class ZiggeoConnect
|
|
34
33
|
else
|
35
34
|
data = data.nil? ? {} : data;
|
36
35
|
data["file"] = File.new(file)
|
37
|
-
timeout_in_seconds = ( ( File.size(file).to_f / 2**20 ).
|
36
|
+
timeout_in_seconds = ( ( File.size(file).to_f / 2**20 ).ceil * @application.config.request_timeout_per_mb.to_i ).to_i;
|
38
37
|
|
39
38
|
begin
|
40
|
-
|
39
|
+
HTTParty.send(method, url.to_s, body: data, basic_auth: auth, timeout: timeout_in_seconds)
|
41
40
|
rescue Net::ReadTimeout => error
|
42
41
|
self.timeout_error_message timeout_in_seconds, error
|
43
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Ziggeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.19'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ziggeo, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|