video_info 2.3.2 → 2.3.3

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: 04d3f54bf42142ef1fe7edd84e12bdf78de7c122
4
- data.tar.gz: cc88ccc69c640dd3808b923539a89c70b9d680b8
3
+ metadata.gz: 72c245255365b08898efdbbb934299fb28d7cde7
4
+ data.tar.gz: 4f22d1a8c36481e6443da20e3c9c7654fa4696cc
5
5
  SHA512:
6
- metadata.gz: 6b143e734951cd1a6b642b2b40722af2f3ab68d539e1575a231aaadb3665ce406acce6a72b17f8c3e8fca3364c61bef09a0dc78e22951a7734080eb0c2a7f20a
7
- data.tar.gz: f270976b56fa213f32d95ca0fa0f5d506826fc2ca375d8aeda79a333b72faaf211485d2a12c79826d95a749267d9d472618efda7302ccc216282895960fc5113
6
+ metadata.gz: 30e74b2e1ebece18597776a137ad4b4e9de2bd634a36022c7b25d86f5248ab63c6e7229e512b5f09d73bd948286ad324d0cbc768559d1ef17b1751af6ca6efe0
7
+ data.tar.gz: 406f49ea05c3c540640472ba6d02a1d68b1184b163f72e891c85b4899a252b64b321806fc65d60f707cdee93101f505f2b78d15205f62efaf11442c8a6c62c08
data/.hound.yml ADDED
@@ -0,0 +1,3 @@
1
+ ruby:
2
+ enabled: true
3
+ config_file: .rubocop.yml
data/.rubocop.yml ADDED
@@ -0,0 +1,2 @@
1
+ StringLiterals:
2
+ EnforcedStyle: single_quotes
@@ -41,7 +41,7 @@ class VideoInfo
41
41
  end
42
42
 
43
43
  def _url_regex
44
- /.*\.com\/(?:(?:groups\/[^\/]+\/videos\/)|(?:ondemand\/less\/)|(?:video\/))?([0-9]+).*$/
44
+ /.*\.com\/(?:(?:groups\/[^\/]+\/videos\/)|(?:ondemand|channels)(?:(?:\/less\/)|(?:\/\w*\/))|(?:video\/))?([0-9]+).*$/
45
45
  end
46
46
 
47
47
  def _api_base
@@ -1,3 +1,3 @@
1
1
  class VideoInfo
2
- VERSION = '2.3.2'
2
+ VERSION = '2.3.3'
3
3
  end
@@ -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.2
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-10-29 00:00:00.000000000 Z
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