yadisk-client 1.11.1 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -9
  3. data/Gemfile.lock +8 -39
  4. data/README.md +8 -2
  5. data/lib/yadisk/version.rb +1 -1
  6. data/yadisk.gemspec +2 -2
  7. metadata +8 -41
  8. data/spec/lib/yadisk/client_spec.rb +0 -15
  9. data/spec/lib/yadisk/disk_spec.rb +0 -229
  10. data/spec/lib/yadisk/operation_spec.rb +0 -18
  11. data/spec/lib/yadisk/public_spec.rb +0 -45
  12. data/spec/lib/yadisk/trash_spec.rb +0 -43
  13. data/spec/spec_helper.rb +0 -38
  14. data/spec/support/cassette_helpers.rb +0 -23
  15. data/spec/test_data/test_file.txt +0 -1
  16. data/spec/vcr/disk/copy.yml +0 -52
  17. data/spec/vcr/disk/create_dir.yml +0 -52
  18. data/spec/vcr/disk/create_dir_error_409.yml +0 -54
  19. data/spec/vcr/disk/delete.yml +0 -50
  20. data/spec/vcr/disk/download.yml +0 -52
  21. data/spec/vcr/disk/get_meta.yml +0 -52
  22. data/spec/vcr/disk/info.yml +0 -57
  23. data/spec/vcr/disk/last_uploaded.yml +0 -52
  24. data/spec/vcr/disk/list_files.yml +0 -52
  25. data/spec/vcr/disk/list_public.yml +0 -52
  26. data/spec/vcr/disk/move.yml +0 -52
  27. data/spec/vcr/disk/publish.yml +0 -54
  28. data/spec/vcr/disk/unpublish.yml +0 -54
  29. data/spec/vcr/disk/update_meta.yml +0 -54
  30. data/spec/vcr/disk/upload.yml +0 -52
  31. data/spec/vcr/disk/upload_by_url.yml +0 -52
  32. data/spec/vcr/disk/upload_from_file.yml +0 -111
  33. data/spec/vcr/operation/status.yml +0 -52
  34. data/spec/vcr/public/link.yml +0 -52
  35. data/spec/vcr/public/meta.yml +0 -52
  36. data/spec/vcr/public/save.yml +0 -52
  37. data/spec/vcr/trash/delete.yml +0 -50
  38. data/spec/vcr/trash/list.yml +0 -52
  39. data/spec/vcr/trash/restore.yml +0 -52
  40. data/spec/vcr_setup.rb +0 -31
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: put
5
- uri: https://cloud-api.yandex.net/v1/disk/trash/resources/restore?path=yadisk_created_dir_857c8d0feba033c7559ade2c7c07fef3ae41c046
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Content-Type:
15
- - application/x-www-form-urlencoded
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
- response:
21
- status:
22
- code: 201
23
- message: CREATED
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Tue, 18 Oct 2022 13:14:55 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Content-Length:
32
- - '124'
33
- Connection:
34
- - keep-alive
35
- Access-Control-Allow-Methods:
36
- - PUT, OPTIONS
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- Yandex-Cloud-Request-Id:
40
- - omitted
41
- Cache-Control:
42
- - no-cache
43
- Access-Control-Allow-Origin:
44
- - "*"
45
- Access-Control-Allow-Headers:
46
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
47
- Authorization
48
- body:
49
- encoding: UTF-8
50
- string: '{"href":"https://cloud-api.yandex.net/v1/disk/resources?path=disk%3A%2Fyadisk_created_dir","method":"GET","templated":false}'
51
- recorded_at: Tue, 18 Oct 2022 13:14:55 GMT
52
- recorded_with: VCR 6.1.0
data/spec/vcr_setup.rb DELETED
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "vcr"
4
- require "webmock"
5
- require "webmock/rspec"
6
- require "addressable/uri"
7
-
8
- VCR.configure do |config|
9
- config.uri_parser = Addressable::URI
10
- config.cassette_library_dir = "spec/vcr"
11
- config.hook_into :webmock
12
- config.configure_rspec_metadata!
13
-
14
- config.filter_sensitive_data("[**********]") {|data|
15
- data.dig(:request, :headers, "Authorization", 0)
16
- }
17
-
18
- config.filter_sensitive_data("omitted") {|data|
19
- data.dig(:response, :headers, "Yandex-Cloud-Request-Id", 0)
20
- }
21
-
22
- config.before_record do |r|
23
- r.response.body.force_encoding(Encoding::UTF_8)
24
- end
25
-
26
- config.default_cassette_options = {
27
- record: :new_episodes,
28
- re_record_interval: 259_200,
29
- match_requests_on: %i[method uri body]
30
- }
31
- end