yandex-disk 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/lib/yandex/disk/client.rb +1 -3
- data/lib/yandex/disk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8763e1c52715aaa1e93b14e377bd2577938c650c
|
4
|
+
data.tar.gz: 02d3ab15e02077907cf4b8d8601e642b84f8948f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2507fd9f154fbb75dd268314dd5d5cb618821e02c8a048ab40d1d873138d6a38e7605e4ea3456f6ea3dd90ee0893872cb2ac3ed0e8d5ac591a7ebc5eadbf0d5
|
7
|
+
data.tar.gz: aec291b688b9ed778a23d8b77bc7e53617ca72c5d13e125f1be3c79172028389fa80bf69d89045564b79256a9ec52403d307e09108eb34d00e42803afa1b5a9a
|
data/README.md
CHANGED
@@ -62,9 +62,9 @@ Backup::Model.new(:my_backup, 'Description for my_backup') do
|
|
62
62
|
split_into_chunks_of 50
|
63
63
|
|
64
64
|
database PostgreSQL do |db|
|
65
|
-
db.name
|
66
|
-
db.username
|
67
|
-
db.password
|
65
|
+
db.name = 'pg_db_name'
|
66
|
+
db.username = 'username'
|
67
|
+
db.password = 'password'
|
68
68
|
end
|
69
69
|
|
70
70
|
compress_with Gzip
|
@@ -72,7 +72,7 @@ Backup::Model.new(:my_backup, 'Description for my_backup') do
|
|
72
72
|
store_with Yandex::Disk do |disk|
|
73
73
|
disk.access_token = 'YOUR_ACCESS_TOKEN'
|
74
74
|
disk.path = '/backups/'
|
75
|
-
disk.keep
|
75
|
+
disk.keep = 5
|
76
76
|
end
|
77
77
|
end
|
78
78
|
```
|
@@ -88,3 +88,8 @@ end
|
|
88
88
|
To run tests setup env var with your access_token and run `rake`
|
89
89
|
|
90
90
|
export YANDEX_DISK_TOKEN=e5d4aaa4ec2246558b510f7fef25b7b1
|
91
|
+
|
92
|
+
## Thanks for support and contribution
|
93
|
+
|
94
|
+
- [@aishek (Alexandr Borisov)](https://github.com/aishek)
|
95
|
+
- [@ilyario (Пономарев Илья)](https://github.com/ilyario)
|
data/lib/yandex/disk/client.rb
CHANGED
@@ -23,8 +23,6 @@ module Yandex
|
|
23
23
|
raise ArgumentError, 'No :access_token or :login and :password'
|
24
24
|
end
|
25
25
|
|
26
|
-
builder.response :follow_redirects
|
27
|
-
|
28
26
|
if faraday_configurator = options[:faraday_configurator]
|
29
27
|
faraday_configurator.call(builder)
|
30
28
|
else
|
@@ -138,4 +136,4 @@ module Yandex
|
|
138
136
|
end
|
139
137
|
end
|
140
138
|
end
|
141
|
-
end
|
139
|
+
end
|
data/lib/yandex/disk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yandex-disk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Korolev
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
139
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.2.
|
140
|
+
rubygems_version: 2.2.2
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: Ruby client for Yandex.Disk with backup gem support
|