yt 0.28.1 → 0.28.2
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/models/video.rb +5 -0
- data/lib/yt/version.rb +1 -1
- data/spec/requests/as_account/video_spec.rb +6 -0
- data/spec/requests/as_server_app/video_spec.rb +1 -0
- 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: d88cc558d8e85a8068b7391fbdb8d128cb47348b
|
4
|
+
data.tar.gz: 3ce716f091f380d73a9886a50867e731f23944b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db3bcc9e841de83bf0f761aecf71ad2f5d17d685d807e0ce12dc06d0b970ff00ffc040ad4912b289ce535c8d5bfdace7f17f7ca5a65553c0f5576c30eec48826
|
7
|
+
data.tar.gz: f27e12130e07f2d437020692638b4c1036d208da75cc8e3c378081c2d07412b8e5747c400b07ee1681f018e9ba26a4edc7839cd81d7f5fca00eee930b634aab0
|
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.28.2 - 2017-01-09
|
10
|
+
|
11
|
+
* [FEATURE] Add `channel_url` to video.
|
12
|
+
|
9
13
|
## 0.28.1 - 2016-10-24
|
10
14
|
|
11
15
|
* [FEATURE] New `card impressions` report for video groups.
|
data/lib/yt/models/video.rb
CHANGED
@@ -37,6 +37,11 @@ module Yt
|
|
37
37
|
# @return [String] the title of the channel that the video belongs to.
|
38
38
|
delegate :channel_title, to: :snippet
|
39
39
|
|
40
|
+
# @return [<String>] the URL of the channel that the video belongs to.
|
41
|
+
def channel_url
|
42
|
+
"https://www.youtube.com/channel/#{channel_id}"
|
43
|
+
end
|
44
|
+
|
40
45
|
# @!attribute [r] live_broadcast_content
|
41
46
|
# @return [String] the type of live broadcast that the video contains.
|
42
47
|
# Possible values are: +'live'+, +'none'+, +'upcoming'+.
|
data/lib/yt/version.rb
CHANGED
@@ -20,6 +20,7 @@ describe Yt::Video, :device_app do
|
|
20
20
|
expect(video.tags).to be_an Array
|
21
21
|
expect(video.channel_id).to be_a String
|
22
22
|
expect(video.channel_title).to be_a String
|
23
|
+
expect(video.channel_url).to be_a String
|
23
24
|
expect(video.category_id).to be_a String
|
24
25
|
expect(video.live_broadcast_content).to be_a String
|
25
26
|
expect(video.view_count).to be_an Integer
|
@@ -431,6 +432,7 @@ describe Yt::Video, :device_app do
|
|
431
432
|
expect(video.tags).to be_an Array
|
432
433
|
expect(video.channel_id).to be_a String
|
433
434
|
expect(video.channel_title).to be_a String
|
435
|
+
expect(video.channel_url).to be_a String
|
434
436
|
expect(video.category_id).to be_a String
|
435
437
|
expect(video.live_broadcast_content).to be_a String
|
436
438
|
expect(video.view_count).to be_an Integer
|
@@ -836,6 +838,7 @@ describe Yt::Video, :device_app do
|
|
836
838
|
expect(video.tags).to be_an Array
|
837
839
|
expect(video.channel_id).to be_a String
|
838
840
|
expect(video.channel_title).to be_a String
|
841
|
+
expect(video.channel_url).to be_a String
|
839
842
|
expect(video.category_id).to be_a String
|
840
843
|
expect(video.live_broadcast_content).to be_a String
|
841
844
|
expect(video.view_count).to be_an Integer
|
@@ -1222,6 +1225,7 @@ describe Yt::Video, :device_app do
|
|
1222
1225
|
expect(video.tags).to be_an Array
|
1223
1226
|
expect(video.channel_id).to be_a String
|
1224
1227
|
expect(video.channel_title).to be_a String
|
1228
|
+
expect(video.channel_url).to be_a String
|
1225
1229
|
expect(video.category_id).to be_a String
|
1226
1230
|
expect(video.live_broadcast_content).to be_a String
|
1227
1231
|
expect(video.view_count).to be_an Integer
|
@@ -1627,6 +1631,7 @@ describe Yt::Video, :device_app do
|
|
1627
1631
|
expect(video.tags).to be_an Array
|
1628
1632
|
expect(video.channel_id).to be_a String
|
1629
1633
|
expect(video.channel_title).to be_a String
|
1634
|
+
expect(video.channel_url).to be_a String
|
1630
1635
|
expect(video.category_id).to be_a String
|
1631
1636
|
expect(video.live_broadcast_content).to be_a String
|
1632
1637
|
expect(video.view_count).to be_an Integer
|
@@ -2033,6 +2038,7 @@ describe Yt::Video, :device_app do
|
|
2033
2038
|
expect(video.tags).to be_an Array
|
2034
2039
|
expect(video.channel_id).to be_a String
|
2035
2040
|
expect(video.channel_title).to be_a String
|
2041
|
+
expect(video.channel_url).to be_a String
|
2036
2042
|
expect(video.category_id).to be_a String
|
2037
2043
|
expect(video.live_broadcast_content).to be_a String
|
2038
2044
|
expect(video.view_count).to be_an Integer
|
@@ -19,6 +19,7 @@ describe Yt::Video, :server_app do
|
|
19
19
|
expect(video.tags).to be_an Array
|
20
20
|
expect(video.channel_id).to be_a String
|
21
21
|
expect(video.channel_title).to be_a String
|
22
|
+
expect(video.channel_url).to be_a String
|
22
23
|
expect(video.category_id).to be_a String
|
23
24
|
expect(video.live_broadcast_content).to be_a String
|
24
25
|
end
|
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.28.
|
4
|
+
version: 0.28.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Baccigalupo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|