yt 0.24.0 → 0.24.1

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: f8721162ba728a25aa9a61c6d2ba3072fb3facad
4
- data.tar.gz: 425cfa108f9ac55f82794e8d54c701713af6e7ca
3
+ metadata.gz: 5a1296804c3320ad2205e26e299cc5e097eed56a
4
+ data.tar.gz: 617a292fcf328451cc2ca1d349d987f0ea6e51b3
5
5
  SHA512:
6
- metadata.gz: 774ce5a0883ffa386db4329ede3e5e078bd1bfcd2b248791ee738c0b5a33404db56f60868a29214d473ab96a2129101e4988902bb39e0a82752caf1af4addcaf
7
- data.tar.gz: 6a90e32f14edea3ce523c3e66bd7f5b8e7a7c073d2efa76595975ef22df86776b191a4279c6c5eb8c5f20b2f58abd28e790988efbec128c0a85dec68153bd783
6
+ metadata.gz: 31174ed5a91804f5f6b575283c9d6a023c506d01ccce381ca0b9553a1664cf3474d47daf85d33fc77decda03451c69b3189f3840a0af66c2a8bf273c00a5e440
7
+ data.tar.gz: 8c4ab2e8857d94dfb004d233b2aefc54303ae286041b354d58a7a463d55c5034af134609e759eed5aee6d5c88492a830db25d7381836edec08e437340f59d040
@@ -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.24.1 - 2015-07-01
10
+
11
+ * [BUGFIX] Don't raise error when YouTube returns a deleted video while eager loading
12
+
9
13
  ## 0.24.0 - 2015-05-21
10
14
 
11
15
  **How to upgrade**
data/README.md CHANGED
@@ -41,7 +41,7 @@ To install on your system, run
41
41
 
42
42
  To use inside a bundled Ruby project, add this line to the Gemfile:
43
43
 
44
- gem 'yt', '~> 0.24.0'
44
+ gem 'yt', '~> 0.24.1'
45
45
 
46
46
  Since the gem follows [Semantic Versioning](http://semver.org),
47
47
  indicating the full version in your Gemfile (~> *major*.*minor*.*patch*)
@@ -48,7 +48,7 @@ module Yt
48
48
  when 'statistics' then video.statistics_set.data
49
49
  when 'contentDetails' then video.content_detail.data
50
50
  end
51
- end
51
+ end if video
52
52
  end
53
53
 
54
54
  if include_category
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.24.0'
2
+ VERSION = '0.24.1'
3
3
  end
@@ -581,7 +581,7 @@ describe Yt::Channel, :partner do
581
581
  describe 'dislikes can be retrieved for a single country' do
582
582
  let(:country_code) { 'US' }
583
583
  let(:dislikes) { channel.dislikes since: date, by: by, in: location }
584
- let(:date) { 4.days.ago }
584
+ let(:date) { ENV['YT_TEST_PARTNER_VIDEO_DATE'] }
585
585
 
586
586
  context 'and grouped by day' do
587
587
  let(:by) { :day }
@@ -1405,7 +1405,7 @@ describe Yt::Channel, :partner do
1405
1405
  describe 'annotation clicks can be retrieved for a single country' do
1406
1406
  let(:country_code) { 'US' }
1407
1407
  let(:annotation_clicks) { channel.annotation_clicks since: date, by: by, in: location }
1408
- let(:date) { 4.days.ago }
1408
+ let(:date) { ENV['YT_TEST_PARTNER_VIDEO_DATE'] }
1409
1409
 
1410
1410
  context 'and grouped by day' do
1411
1411
  let(:by) { :day }
@@ -1504,7 +1504,7 @@ describe Yt::Channel, :partner do
1504
1504
  describe 'annotation click-through rate can be retrieved for a single country' do
1505
1505
  let(:country_code) { 'US' }
1506
1506
  let(:annotation_click_through_rate) { channel.annotation_click_through_rate since: date, by: by, in: location }
1507
- let(:date) { 4.days.ago }
1507
+ let(:date) { ENV['YT_TEST_PARTNER_VIDEO_DATE'] }
1508
1508
 
1509
1509
  context 'and grouped by day' do
1510
1510
  let(:by) { :day }
@@ -1579,7 +1579,7 @@ describe Yt::Channel, :partner do
1579
1579
  end
1580
1580
 
1581
1581
  describe 'annotation click-through rate can be grouped by country' do
1582
- let(:range) { {since: 4.days.ago, until: 3.days.ago} }
1582
+ let(:range) { {since: ENV['YT_TEST_PARTNER_VIDEO_DATE']} }
1583
1583
 
1584
1584
  specify 'with the :by option set to :country' do
1585
1585
  rate = channel.annotation_click_through_rate range.merge by: :country
@@ -22,7 +22,7 @@ describe Yt::Collections::Videos, :server_app do
22
22
  end
23
23
 
24
24
  specify 'with a chart parameter, only returns videos of that chart', :ruby2 do
25
- expect(videos.where(chart: 'mostPopular').size).to be 200
25
+ expect(videos.where(chart: 'mostPopular').size).to be 30
26
26
  end
27
27
 
28
28
  context 'with a list of parts' do
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.24.0
4
+ version: 0.24.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: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport