yandex-disk 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yandex/disk/backup/storage.rb +1 -1
- data/lib/yandex/disk/client.rb +2 -0
- data/lib/yandex/disk/version.rb +1 -1
- data/test/yandex_dist_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42f0c7884f42dcd37fefa77569a482362dfc6299
|
4
|
+
data.tar.gz: 671e00b8bd8266a902c279b358b99d7bb025f648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02063f9671ec83c4b79ee08f05c36f908aa79dc683e864a4378362cfac34888faebf02c1046c7c879089790df081c86243ff09132feb136da95873b61209ae50
|
7
|
+
data.tar.gz: 14eaa321bc25830b2a9ae6063e0d2b5f420c7638aeebaa892316bf6c5aa558a724add0b247ffb89cad8283683df6f4f4e49151b14ebfae83f7b06a7cd6c0cbc3
|
data/lib/yandex/disk/client.rb
CHANGED
@@ -8,6 +8,7 @@ module Yandex
|
|
8
8
|
class Client
|
9
9
|
|
10
10
|
def initialize options={}
|
11
|
+
@timeout = options[:timeout] || 300
|
11
12
|
@http = Faraday.new(:url => 'https://webdav.yandex.ru') do |builder|
|
12
13
|
builder.request :authorization, "OAuth", options[:access_token]
|
13
14
|
|
@@ -86,6 +87,7 @@ module Yandex
|
|
86
87
|
@http.put do |req|
|
87
88
|
req.url dest
|
88
89
|
req.headers['Content-Type'] = 'application/binary'
|
90
|
+
req.options[:timeout] = @timeout
|
89
91
|
req.body = Faraday::UploadIO.new(src, '')
|
90
92
|
end
|
91
93
|
end
|
data/lib/yandex/disk/version.rb
CHANGED
data/test/yandex_dist_test.rb
CHANGED