yt 0.25.39 → 0.25.40

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: b701173881774d821857b69ea48b6d4ac68e2ecc
4
- data.tar.gz: be5e5d66828e51030cb4404a10c959a0273cda54
3
+ metadata.gz: 4b0ee675025a4e3373b1281cfa5097498aec15ab
4
+ data.tar.gz: ea6970b4d354cebcc440ad32e0d7855ec437b936
5
5
  SHA512:
6
- metadata.gz: aa7e8bef3a6345f5f6797c751bdedfa6b130b27ca1d93b3f5b73ed6cec9cb9252e07b4c96608a3ea0227d42e87a7b507593621594de2a8c7864a0ecbfc45c73d
7
- data.tar.gz: b9e45f9d86ccec67cce14894b3f2c22587241951048d2710f75dbeb9115cf64040ee25d77ef2b30952cbbe21a15bc449355b2245d24899300a14779e54a20b76
6
+ metadata.gz: 2c3a000be6dc7c31d03964b9dc5f27442079e177fd4f867bc0a663833c709653d30c7c6dde977e4df8d6b675c45cb8fa63c8331537b1e0215a36bf19bb392221
7
+ data.tar.gz: 9203eb0e4dc5e84926e49b6c14830507753d7e52656c48da58816fb6637e14d3d332be9041f1acdd76d41ccace0f0aa8bf5e8e722ba3a00d110924d0df15a6ab
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.25.40 - 2016-09-19
10
+
11
+ * [IMPROVEMENT] Add `Yt::Claim#data` to access the policy of a claim
12
+
9
13
  ## 0.25.39 - 2016-06-15
10
14
 
11
15
  * [FEATURE] Add `by: :operating_system` option for reports, to return views (from a `content_owner.video`) by operating system.
@@ -31,9 +31,9 @@ module Yt
31
31
  # are at https://developers.google.com/youtube/v3/docs/search/list
32
32
  #
33
33
  # @example Return the first video of a channel (no requirements):
34
- # video.channels.first
34
+ # channel.videos.first
35
35
  # @example Return the first long video of a channel by video count:
36
- # video.channels.where(order: 'viewCount', video_duration: 'long').first
36
+ # channel.videos.where(order: 'viewCount', video_duration: 'long').first
37
37
  def where(requirements = {})
38
38
  self.tap do
39
39
  @items = []
@@ -59,4 +59,4 @@ module Yt
59
59
  end
60
60
  end
61
61
  end
62
- end
62
+ end
@@ -5,7 +5,7 @@ module Yt
5
5
  # Provides methods to interact with YouTube ContentID claims.
6
6
  # @see https://developers.google.com/youtube/partner/docs/v1/claims
7
7
  class Claim < Base
8
- attr_reader :auth
8
+ attr_reader :auth, :data
9
9
 
10
10
  def initialize(options = {})
11
11
  @data = options[:data]
data/lib/yt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.25.39'
2
+ VERSION = '0.25.40'
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.39
4
+ version: 0.25.40
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-06-15 00:00:00.000000000 Z
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -332,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
332
332
  version: '0'
333
333
  requirements: []
334
334
  rubyforge_project:
335
- rubygems_version: 2.6.4
335
+ rubygems_version: 2.6.6
336
336
  signing_key:
337
337
  specification_version: 4
338
338
  summary: Yt makes it easy to interact with Youtube V3 API by providing a modular,