yandex-disk 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 57ed5ceebc98623641748f8f16b410c8b66118c4
4
- data.tar.gz: c832f15ada10ebdbb3c770138d34941a25c6e518
3
+ metadata.gz: 594c2fe0e03043ccfe2c59729a979de1cc17546d
4
+ data.tar.gz: ff19ea8d567b6275fce5f8e6df0bd1fff17d87a9
5
5
  SHA512:
6
- metadata.gz: f592e2c576488414f639f3985ece832deac747078e47f30987f562556027b9faa7e7094eeb55e3d9a0a287d68dc53a60ccc13cf17c2865a30b689fd479cae910
7
- data.tar.gz: fc156a49408e7235bda13f34c566235df523acef5a6bbda78bcad32890c7a2c9d6bbd149e7941623c28d1edab4ff8283c66cd98930db2482bdec0d05c4aebaae
6
+ metadata.gz: 40aac5503188a974d66c4d04e7285fd4e9b1f6aee9436e755d34524958409428df61ea483a7125007e2cd90021ac7d511a52175f030020038fe4788386f7ad81
7
+ data.tar.gz: b2015ab11b4b1e61a5ac60ade43fcbcdddd4a1784a33fed2adb4c19bffd7287492c6232f4d3bfd9518e519676aba10711d3b6d2510f5fc7cd08874f91e8e02dc
data/.gitignore CHANGED
@@ -14,4 +14,5 @@ rdoc
14
14
  spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
+ large-file.psd
17
18
  tmp
@@ -86,7 +86,7 @@ module Yandex
86
86
  @http.put do |req|
87
87
  req.url dest
88
88
  req.headers['Content-Type'] = 'application/binary'
89
- req.body = File.open(src)
89
+ req.body = Faraday::UploadIO.new(src, '')
90
90
  end
91
91
  end
92
92
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yandex
4
4
  module Disk
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
@@ -17,6 +17,10 @@ class YandexDiskTest < MiniTest::Unit::TestCase
17
17
  assert_equal File.read('README.md'), remote.body
18
18
  end
19
19
 
20
+ # def test_put_large_file
21
+ # assert @disk.put('large-file.psd', '/large-file.psd')
22
+ # end
23
+
20
24
  def test_put!
21
25
  assert_raises RuntimeError do
22
26
  begin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex-disk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-26 00:00:00.000000000 Z
11
+ date: 2013-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday