yt 0.25.7 → 0.25.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b810fefdbabe409e4af5f086ba9b6423812249c
4
- data.tar.gz: 2cc04a37afd86e0bb7333b59a4c9196c2acbc049
3
+ metadata.gz: 068c42a4c077f87b4ec5d671ce71b18b2889d475
4
+ data.tar.gz: 02a18cd62ca2f68948d87f1288e7b932f443c0ec
5
5
  SHA512:
6
- metadata.gz: bcc361e5f7fc1763e85298d605125ce82f0e7a68dbe8a36ca5626fc69fea3fcc7be068288e71c294d0e1fc5fdd0afff9b95ae1731f21e27f109928e2ffaa4a9f
7
- data.tar.gz: e294831648f38525a06b6795a6d779492a218d2ac939e6a2951ca564210983324c676b94e0c1c0d96de288592721f331dd3decbaa690a0ad2122a7e5d46824e7
6
+ metadata.gz: aa07eb42c7568739d49a860cb8b5e6e1092ce6395ffb4c3c42660640ea104f138bea47d20b06ec8d8ce3aaf4211e81a7ddfe6c828b448fc88b26aa20aae4fb0d
7
+ data.tar.gz: ce6d7fec86527f4de2a9422e2786a3dacf126396aef1c46fcfec97cab831d82602860327dd246fa79578ea06accec496dbd526a5ea1fc5406f1ee210cdae9d1f
@@ -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"
@@ -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? || (server_error? || exceeded_quota?) && sleep_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.
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.25.7'
2
+ VERSION = '0.25.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.7
4
+ version: 0.25.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo