yt 0.25.7 → 0.25.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/yt/request.rb +3 -1
- data/lib/yt/version.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: 068c42a4c077f87b4ec5d671ce71b18b2889d475
|
4
|
+
data.tar.gz: 02a18cd62ca2f68948d87f1288e7b932f443c0ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa07eb42c7568739d49a860cb8b5e6e1092ce6395ffb4c3c42660640ea104f138bea47d20b06ec8d8ce3aaf4211e81a7ddfe6c828b448fc88b26aa20aae4fb0d
|
7
|
+
data.tar.gz: ce6d7fec86527f4de2a9422e2786a3dacf126396aef1c46fcfec97cab831d82602860327dd246fa79578ea06accec496dbd526a5ea1fc5406f1ee210cdae9d1f
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ For more information about changelogs, check
|
|
6
6
|
[Keep a Changelog](http://keepachangelog.com) and
|
7
7
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
8
8
|
|
9
|
+
## 0.25.8 - 2015-09-10
|
10
|
+
|
11
|
+
* [FEATURE] Retry the same request up to 3 times if YouTube responds with "quotaExceeded"
|
12
|
+
|
9
13
|
## 0.25.7 - 2015-09-10
|
10
14
|
|
11
15
|
* [FEATURE] Retry the same request once if YouTube responds with "quotaExceeded"
|
data/lib/yt/request.rb
CHANGED
@@ -196,7 +196,9 @@ module Yt
|
|
196
196
|
# - when the user has reached the quota for requests/second, and waiting
|
197
197
|
# for a couple of seconds might solve the connection issues.
|
198
198
|
def run_again?
|
199
|
-
refresh_token_and_retry? ||
|
199
|
+
refresh_token_and_retry? ||
|
200
|
+
server_error? && sleep_and_retry? ||
|
201
|
+
exceeded_quota? && sleep_and_retry?(3)
|
200
202
|
end
|
201
203
|
|
202
204
|
# Returns the list of server errors worth retrying the request once.
|
data/lib/yt/version.rb
CHANGED