yt 0.13.1 → 0.13.2

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: 4fe56c0423dd32708ff76d6cd83822240083da24
4
- data.tar.gz: 4476e45c37289f58c0591341eb10a7629c12d23b
3
+ metadata.gz: f679a170ffd18946f7b4922609c489a05913c081
4
+ data.tar.gz: f10004d3f1d9897080f717e074157dbbb82d662f
5
5
  SHA512:
6
- metadata.gz: 2178bb4652a6d4f681ec37338d7d6ed25cefa6852e56fef7dd9b7add019331894e2187bc7637a7266a3bf5a75ee33c58de2b8d678a790267b21144ed908c9d39
7
- data.tar.gz: 38d3b5b43deb2e5c409b2847689af5b7a4a67f8ca0179c1b6bb6942eed11beea75022be6381c32b55f861eaa07ce7855338c70066db4b30a739df06e86bf9576
6
+ metadata.gz: 119a8546b3bb9d5f9911058d18b546d2e04600d926914865048cb0481782e4b3866973d5e80bb75b8e9ef8f73f184aba09a75b88ad4fa5ede334138d6d86dabd
7
+ data.tar.gz: 7b37140a9f7ac1c07945c294ff214dccd1d3fb8c576b7636afa182edcd81f41b4cc0adc63a3bfdb00aa4ae3a210b90f3ed547a14ce32ca28ee1068aded418e16
@@ -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.13.2 - 2014-10-01
10
+
11
+ * [FEATURE] Add `release!` to Ownership.
12
+
9
13
  ## 0.13.1 - 2014-09-18
10
14
 
11
15
  * [BUGFIX] Make list videos by id work for exactly 50 ids.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
-
2
+ gem 'pry'
3
3
  # Specify your gem's dependencies in yt.gemspec
4
4
  gemspec
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.13.1'
44
+ gem 'yt', '~> 0.13.2'
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*)
@@ -24,6 +24,11 @@ module Yt
24
24
  update general: [{ratio: 100, owner: @auth.owner_name, type: :exclude}]
25
25
  end
26
26
 
27
+ # Releases 100% of the general ownership of the asset from @auth.
28
+ def release!
29
+ update general: [{ratio: 0, owner: @auth.owner_name, type: :exclude}]
30
+ end
31
+
27
32
  # @return [Array<RightOwner>] a list that identifies the owners of an
28
33
  # asset and the territories where each owner has ownership.
29
34
  # General asset ownership is used for all types of assets and is the
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.13.1'
2
+ VERSION = '0.13.2'
3
3
  end
@@ -5,6 +5,7 @@ describe Yt::MatchPolicy, :partner do
5
5
  subject(:match_policy) { Yt::MatchPolicy.new asset_id: asset_id, auth: $content_owner }
6
6
 
7
7
  context 'given an asset managed by the authenticated Content Owner' do
8
+ before { Yt::Ownership.new(asset_id: asset_id, auth: $content_owner).obtain! }
8
9
  let(:asset_id) { ENV['YT_TEST_PARTNER_ASSET_ID'] }
9
10
 
10
11
  describe 'the asset match policy can be updated' do
@@ -15,5 +15,9 @@ describe Yt::Ownership, :partner do
15
15
  describe 'the complete ownership can be obtained' do
16
16
  it { expect(ownership.obtain!).to be true }
17
17
  end
18
+
19
+ describe 'the complete ownership can be released' do
20
+ it { expect(ownership.release!).to be true }
21
+ end
18
22
  end
19
23
  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.13.1
4
+ version: 0.13.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: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport