Ziggeo 2.18 → 2.19

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: d18b6fc48bad291624a7711bb7520b9ee019b3e840e25d5459f1fd73dc2704fe
4
- data.tar.gz: e01f52abed608851575a55557bd4d93a3c8826b43305a71d2402a942e1fd3a1f
3
+ metadata.gz: a4e0cd91d7d1c73a545b883a8691e57f607282b64fdcea650230e5d1c60009bc
4
+ data.tar.gz: fdc7dfb35427fe2080744b95c233501480158cce251cd3282d001dadeab22f10
5
5
  SHA512:
6
- metadata.gz: 6fefe2bc166b749895c0b940bf6c10a36f6c158f46a41e6c0a8d75351f8b228e6c2193ca697e7cc2aa5d0c435c4d74187182e9a46e2e1682c80e90864bdb7595
7
- data.tar.gz: 7c61c3a9a5584333703575f8d5b549203e6533512fbf4a232fd562fdd6a87e47dd9619a8d4a29fa6d64384f3107847ec2249830397a9807b5455e8681600ba7f
6
+ metadata.gz: 2ab45308457d11c599462a9c91236f2d216643c04bdf9878b17df3ada9c336b8649b9398be78b59ca26ddba5e8f13d69d1179d07e2abec8dee8a49435f33dbfc
7
+ data.tar.gz: 859395c07f33358941f44d870eca87e927328b300717175cef55b536a0bc77d38914ab6dc53136b61663f60d47470f87107b30d9d9358b271d3f81692b91f1c4
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ziggeo Ruby Server SDK 2.18
1
+ # Ziggeo Ruby Server SDK 2.19
2
2
 
3
3
  Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only
4
4
  two lines of code in your site, service or app. This is the Ruby Server SDK repository.
@@ -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 ).round(0) * @application.config.request_timeout_per_mb.to_i ).to_i;
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
- HTTMultiParty.send(method, url.to_s, body: data, basic_auth: auth, timeout: timeout_in_seconds)
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.18'
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-01-13 00:00:00.000000000 Z
11
+ date: 2020-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty