yt 0.33.0 → 0.33.1
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/README.md +0 -1
- data/lib/yt/models/channel.rb +0 -4
- data/lib/yt/request.rb +1 -1
- data/lib/yt/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94422f128aee1411a90f1fcb39a28ef13afa5f456bf15e9722eddcc3139a46c0
|
4
|
+
data.tar.gz: a8ee06716cc4018e217da1eb98ec416511e00f6f760f88cd11ab2b7f24dd6f24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28cab7081f268473eca6e3165389bd40411955dbc96046e6523bf87b9de1b3e216d121fdfb68dd474bc354fc7c3591bd2c395a03d1baa0d43e5c4e9372b346b3
|
7
|
+
data.tar.gz: 98454281ad9a072638d3a3a2f28d58ab8435258d55c2c167d3ff8dd6b89daf225e2d10dc0d473f3ecece6e9cd2205d1ab9c8957eeb15faf6b8c7ed52209b4966
|
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.33.0 - 2020-10-19
|
10
|
+
|
11
|
+
* [BUGFIX] Only retry once when exchanging a refresh token
|
12
|
+
|
9
13
|
## 0.33.0 - 2020-04-10
|
10
14
|
|
11
15
|
If your code calls reports methods such as `views`, `likes`, or `reports`,
|
data/README.md
CHANGED
@@ -18,7 +18,6 @@ After [registering your app](#configuring-your-app), you can run commands like:
|
|
18
18
|
channel = Yt::Channel.new id: 'UCxO1tY8h1AhOz0T4ENwmpow'
|
19
19
|
channel.title #=> "Fullscreen"
|
20
20
|
channel.public? #=> true
|
21
|
-
channel.comment_count #=> 773
|
22
21
|
channel.videos.count #=> 12
|
23
22
|
```
|
24
23
|
|
data/lib/yt/models/channel.rb
CHANGED
@@ -197,10 +197,6 @@ module Yt
|
|
197
197
|
# @return [Integer] the number of times the channel has been viewed.
|
198
198
|
delegate :view_count, to: :statistics_set
|
199
199
|
|
200
|
-
# @!attribute [r] comment_count
|
201
|
-
# @return [Integer] the number of comments for the channel.
|
202
|
-
delegate :comment_count, to: :statistics_set
|
203
|
-
|
204
200
|
# @!attribute [r] video_count
|
205
201
|
# @return [Integer] the number of videos uploaded to the channel.
|
206
202
|
delegate :video_count, to: :statistics_set
|
data/lib/yt/request.rb
CHANGED
@@ -196,7 +196,7 @@ 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? && sleep_and_retry?(
|
199
|
+
refresh_token_and_retry? && sleep_and_retry?(1) ||
|
200
200
|
server_error? && sleep_and_retry?(3) ||
|
201
201
|
exceeded_quota? && sleep_and_retry?(3)
|
202
202
|
end
|
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.33.
|
4
|
+
version: 0.33.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: 2020-
|
11
|
+
date: 2020-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -294,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
294
294
|
- !ruby/object:Gem::Version
|
295
295
|
version: '0'
|
296
296
|
requirements: []
|
297
|
-
rubygems_version: 3.
|
297
|
+
rubygems_version: 3.1.2
|
298
298
|
signing_key:
|
299
299
|
specification_version: 4
|
300
300
|
summary: Yt makes it easy to interact with Youtube V3 API by providing a modular,
|