onebox 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onebox/engine/youtube_onebox.rb +1 -1
- data/lib/onebox/version.rb +1 -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: 3386135fe238f1228c6b420da7c007f37b240144
|
4
|
+
data.tar.gz: 234fa7e682c6d57c4091711165eb3d050eea3e8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4998b0699bdc9b3d95b32b6fe25a15cc4ff44cb64c3e8140fbd6c5bb9d711a65be7716b40dfc80f77f2c7d380d3a4bd0fb21ea52d90a388499f6bf978d999704
|
7
|
+
data.tar.gz: 46e1dadcbd1f02a55d8f5a1af4ae26870c476aa57f4d06bca57e690ce2de5115043303987d9334ffccfc5f408e8bb9ba69c21a9496226156e63c370bac060489
|
@@ -11,7 +11,7 @@ module Onebox
|
|
11
11
|
# * http://youtu.be/afyK1HSFfgw
|
12
12
|
# * https://www.youtube.com/embed/vsF0K3Ou1v0
|
13
13
|
def video_id
|
14
|
-
match = @url.match(/^https?:\/\/(?:www\.)?(?:m\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_\-]{11})
|
14
|
+
match = @url.match(/^https?:\/\/(?:www\.)?(?:m\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_\-]{11})(?:\?.*)?$/)
|
15
15
|
match && match[1]
|
16
16
|
end
|
17
17
|
|
data/lib/onebox/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joanna Zeta
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-06-
|
13
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|