yt 0.25.0 → 0.25.1
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 +5 -1
- data/README.md +6 -3
- data/lib/yt/models/url.rb +2 -1
- data/lib/yt/version.rb +1 -1
- data/spec/models/url_spec.rb +7 -1
- 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: e9fd88acf793e77574d16b31819944cd77df882d
|
|
4
|
+
data.tar.gz: 7e535a7e4c88f91477f2ccc19ce7ad5d4c1968cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8eed1c36c8d41ae347a6bf9f951842446415efdf8bd9df139973122366fda9f772ffcf5aa7da08c87aa576c382c4364ddadfec8ebefa0717e9355874f5bea548
|
|
7
|
+
data.tar.gz: 0cd8c87df0590b986dd1e72d6f7332dc633505386cfe6514595591efa237828df096ae610cb72ba946edc5024543cb84c45220d0b9bfc26b09a982ac7e437824
|
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.1 - 2015-07-06
|
|
10
|
+
|
|
11
|
+
* [ENHANCEMENT] `Yt::Video.new` accepts embedded video url.
|
|
12
|
+
|
|
9
13
|
## 0.25.0 - 2015-06-29
|
|
10
14
|
|
|
11
15
|
**How to upgrade**
|
|
@@ -709,4 +713,4 @@ If you want the old behavior, replace `subscribe` with `subscribe!`:
|
|
|
709
713
|
|
|
710
714
|
* Support for authenticated resources: Youtube accounts and Google accounts
|
|
711
715
|
* Support for public Youtube resources: channels and videos
|
|
712
|
-
* Available actions for authenticated Youtube accounts: like a video, subscribe to a channel
|
|
716
|
+
* Available actions for authenticated Youtube accounts: like a video, subscribe to a channel
|
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.25.
|
|
44
|
+
gem 'yt', '~> 0.25.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*)
|
|
@@ -259,8 +259,11 @@ In order to use Yt you must register your app in the [Google Developers Console]
|
|
|
259
259
|
If you don’t have a registered app, browse to the console and select "Create Project":
|
|
260
260
|

|
|
261
261
|
|
|
262
|
-
When your project is ready, select APIs & Auth in the menu and enable Google+, YouTube Analytics and YouTube Data API:
|
|
263
|
-

|
|
264
|
+

|
|
265
|
+

|
|
266
|
+

|
|
264
267
|
|
|
265
268
|
The next step is to create an API key. Depending on the nature of your app, you should pick one of the following strategies.
|
|
266
269
|
|
data/lib/yt/models/url.rb
CHANGED
data/lib/yt/version.rb
CHANGED
data/spec/models/url_spec.rb
CHANGED
|
@@ -19,6 +19,12 @@ describe Yt::URL do
|
|
|
19
19
|
it {expect(url.id).to eq 'MESycYJytkU' }
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
context 'given an embed video URL' do
|
|
23
|
+
let(:text) { 'https://www.youtube.com/embed/MESycYJytkU' }
|
|
24
|
+
it {expect(url.kind).to eq :video }
|
|
25
|
+
it {expect(url.id).to eq 'MESycYJytkU' }
|
|
26
|
+
end
|
|
27
|
+
|
|
22
28
|
context 'given a playlist-embedded video URL' do
|
|
23
29
|
let(:text) { 'youtube.com/watch?v=MESycYJytkU&list=LLxO1tY8h1AhOz0T4ENwmpow' }
|
|
24
30
|
it {expect(url.kind).to eq :video }
|
|
@@ -69,4 +75,4 @@ describe Yt::URL do
|
|
|
69
75
|
let(:text) { 'https://www.youtube.com/user/Fullscreen/' }
|
|
70
76
|
it {expect(url.kind).to eq :channel }
|
|
71
77
|
end
|
|
72
|
-
end
|
|
78
|
+
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.
|
|
4
|
+
version: 0.25.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-06
|
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|