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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bed4a0e8693604b4109a3b0064550dfd23e54eb
4
- data.tar.gz: f8d51f01edda1efd6cf2c1f44fced8f90e044b33
3
+ metadata.gz: d88cc558d8e85a8068b7391fbdb8d128cb47348b
4
+ data.tar.gz: 3ce716f091f380d73a9886a50867e731f23944b8
5
5
  SHA512:
6
- metadata.gz: d3d3f337b66c29dcb4d4babb0df898fb806cfa5942a0c529214ea24c72b015c670f52ce4df9ed487801e8e1415a864f5e7142e183f5a7685126ab39b3c203986
7
- data.tar.gz: 0ab710c94cb9f99fd13eabd6f0d3bb846f807afa1e93e2095b84c06c22ea14bdc598b3cdcf57b6417ba0b1e2705a4febb3545164027e88b0ea950e6249a58c1e
6
+ metadata.gz: db3bcc9e841de83bf0f761aecf71ad2f5d17d685d807e0ce12dc06d0b970ff00ffc040ad4912b289ce535c8d5bfdace7f17f7ca5a65553c0f5576c30eec48826
7
+ data.tar.gz: f27e12130e07f2d437020692638b4c1036d208da75cc8e3c378081c2d07412b8e5747c400b07ee1681f018e9ba26a4edc7839cd81d7f5fca00eee930b634aab0
@@ -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.
@@ -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'+.
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.28.1'
2
+ VERSION = '0.28.2'
3
3
  end
@@ -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.1
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: 2016-10-24 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport