yt 0.25.34 → 0.25.35

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64e0182b692673e85a2034e845aab91fa66f2bc8
4
- data.tar.gz: 3b83c49f209c349bf37ed7d1ed9f8587ccb1c044
3
+ metadata.gz: 2dec437252cd2418fc5ff1352347f2d1c03c8a5b
4
+ data.tar.gz: ba4235539102e153a98e03762e5708a6b1142cd8
5
5
  SHA512:
6
- metadata.gz: 51e88d3e24ada7ce564d5f9c17e2df718414bdd0d22265fbbbbc010e4772fcde9baab5039d32bce9255cc3e431c31f2ba2ad9287c21d8aaf44be16a2ca34c0ee
7
- data.tar.gz: ab3324eb79ad29a75ff6e943657d5ea737a9061cdf8e6729bfa36ff25e30af421aaba0bfbcbad842a98d9b388f428acd6a00ab860c880351741f9872441d9ee7
6
+ metadata.gz: 351eb09f09237648bf9ed6ef8954becd0df5b8f5d18020d02ce33276008ad79c4f163f5a643afdd7c0c741793c634ec149e9b1cf613de535f18b64d2cb3674a2
7
+ data.tar.gz: d1e4583f8f12b5d734431b45687f63f4e5db47fd03c1425fe2326dbc863b0afaec317b7c0c9b7654b7c0728207211ada7c985d73c2792b0bf183504bb9c748bc
@@ -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.25.35 - 2016-04-27
10
+
11
+ * [BUGFIX] Don’t try to eager load more than 50 assets at the time from claims
12
+
9
13
  ## 0.25.34 - 2016-04-20
10
14
 
11
15
  * [FEATURE] Add `ad_breaks` and `tp_ad_server_video_id` attribute to AdvertisingOptionsSet
@@ -28,7 +28,7 @@ module Yt
28
28
 
29
29
  def eager_load_items_from(items)
30
30
  if included_relationships.include? :asset
31
- asset_ids = items.map { |item| item['assetId'] }.uniq
31
+ asset_ids = items.map{|a| a.values_at 'videoId', 'assetId'}.to_h.values
32
32
  conditions = { id: asset_ids.join(','), fetch_metadata: 'effective' }
33
33
  assets = @parent.assets.where conditions
34
34
  items.each do |item|
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.25.34'
2
+ VERSION = '0.25.35'
3
3
  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.25.34
4
+ version: 0.25.35
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-04-20 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport