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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/yt/models/ownership.rb +5 -0
- data/lib/yt/version.rb +1 -1
- data/spec/requests/as_content_owner/match_policy_spec.rb +1 -0
- data/spec/requests/as_content_owner/ownership_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f679a170ffd18946f7b4922609c489a05913c081
|
|
4
|
+
data.tar.gz: f10004d3f1d9897080f717e074157dbbb82d662f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 119a8546b3bb9d5f9911058d18b546d2e04600d926914865048cb0481782e4b3866973d5e80bb75b8e9ef8f73f184aba09a75b88ad4fa5ede334138d6d86dabd
|
|
7
|
+
data.tar.gz: 7b37140a9f7ac1c07945c294ff214dccd1d3fb8c576b7636afa182edcd81f41b4cc0adc63a3bfdb00aa4ae3a210b90f3ed547a14ce32ca28ee1068aded418e16
|
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.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
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.
|
|
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*)
|
data/lib/yt/models/ownership.rb
CHANGED
|
@@ -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
|
data/lib/yt/version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|