video_info 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +3 -0
- data/.rubocop.yml +2 -0
- data/lib/video_info/providers/vimeo.rb +1 -1
- data/lib/video_info/version.rb +1 -1
- data/spec/lib/video_info/providers/vimeo_spec.rb +12 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72c245255365b08898efdbbb934299fb28d7cde7
|
4
|
+
data.tar.gz: 4f22d1a8c36481e6443da20e3c9c7654fa4696cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30e74b2e1ebece18597776a137ad4b4e9de2bd634a36022c7b25d86f5248ab63c6e7229e512b5f09d73bd948286ad324d0cbc768559d1ef17b1751af6ca6efe0
|
7
|
+
data.tar.gz: 406f49ea05c3c540640472ba6d02a1d68b1184b163f72e891c85b4899a252b64b321806fc65d60f707cdee93101f505f2b78d15205f62efaf11442c8a6c62c08
|
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
@@ -41,7 +41,7 @@ class VideoInfo
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def _url_regex
|
44
|
-
/.*\.com\/(?:(?:groups\/[^\/]+\/videos\/)|(?:ondemand
|
44
|
+
/.*\.com\/(?:(?:groups\/[^\/]+\/videos\/)|(?:ondemand|channels)(?:(?:\/less\/)|(?:\/\w*\/))|(?:video\/))?([0-9]+).*$/
|
45
45
|
end
|
46
46
|
|
47
47
|
def _api_base
|
data/lib/video_info/version.rb
CHANGED
@@ -15,6 +15,11 @@ describe VideoInfo::Providers::Vimeo do
|
|
15
15
|
it { is_expected.to be_truthy }
|
16
16
|
end
|
17
17
|
|
18
|
+
context "with Vimeo Channels url" do
|
19
|
+
let(:url) { 'https://vimeo.com/channels/any_channel/111431415' }
|
20
|
+
it { is_expected.to be_truthy }
|
21
|
+
end
|
22
|
+
|
18
23
|
context "with vimeo album url" do
|
19
24
|
let(:url) { 'http://vimeo.com/album/2755718' }
|
20
25
|
it { is_expected.to be_falsey }
|
@@ -203,4 +208,11 @@ describe VideoInfo::Providers::Vimeo do
|
|
203
208
|
its(:video_id) { should eq '101677664' }
|
204
209
|
end
|
205
210
|
|
211
|
+
context "with video 111431415 in /channels/*/ url", :vcr do
|
212
|
+
subject { VideoInfo.new('https://vimeo.com/channels/some_channel1/111431415') }
|
213
|
+
|
214
|
+
its(:provider) { should eq 'Vimeo' }
|
215
|
+
its(:video_id) { should eq '111431415' }
|
216
|
+
end
|
217
|
+
|
206
218
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video_info
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -143,6 +143,8 @@ extensions: []
|
|
143
143
|
extra_rdoc_files: []
|
144
144
|
files:
|
145
145
|
- ".gitignore"
|
146
|
+
- ".hound.yml"
|
147
|
+
- ".rubocop.yml"
|
146
148
|
- ".travis.yml"
|
147
149
|
- Gemfile
|
148
150
|
- Guardfile
|