yt 0.30.0 → 0.30.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/yt/collections/reports.rb +2 -2
- data/lib/yt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85dc2f5c2b7be22fbac90192e295572b04c55a42
|
|
4
|
+
data.tar.gz: 4936ddb4ad8fecf00ea6da4a50816543ffae0e13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b13072d264a684c8985a4c992546b6f6656ad63658378a735b640384838b51cd33230f1480a49af385a94ead440d9f9fd4a70817eae2faa8f40dd8d3a13484b
|
|
7
|
+
data.tar.gz: 863c77c4356e5da31f0ab40dbd3ce6bf1d56ac7225a359a1cccf05733b2dfb1b5176b5087de7fecbdf22ef3c2766b5dcc918a308ceae9d856930e4fd4bbe074a
|
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.30.1 - 2017-04-14
|
|
10
|
+
|
|
11
|
+
* [IMPROVEMENT] Retry 3 times if YouTube responds with 503 Backend Error
|
|
12
|
+
|
|
9
13
|
## 0.30.0 - 2017-03-17
|
|
10
14
|
|
|
11
15
|
**How to upgrade**
|
|
@@ -105,7 +105,7 @@ module Yt
|
|
|
105
105
|
|
|
106
106
|
attr_writer :metrics
|
|
107
107
|
|
|
108
|
-
def within(days_range, country, state, dimension, videos,
|
|
108
|
+
def within(days_range, country, state, dimension, videos, max_retries = 3)
|
|
109
109
|
@days_range = days_range
|
|
110
110
|
@dimension = dimension
|
|
111
111
|
@country = country
|
|
@@ -145,7 +145,7 @@ module Yt
|
|
|
145
145
|
# same query is a workaround that works and can hardly cause any damage.
|
|
146
146
|
# Similarly, once in while YouTube responds with a random 503 error.
|
|
147
147
|
rescue Yt::Error => e
|
|
148
|
-
|
|
148
|
+
(max_retries > 0) && rescue?(e) ? sleep(3) && within(days_range, country, state, dimension, videos, max_retries - 1) : raise
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
private
|
data/lib/yt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.30.
|
|
4
|
+
version: 0.30.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Claudio Baccigalupo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|