onebox 1.4.1 → 1.4.2
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: dfb22dedea89c381450ccf63ae9da171c23bc440
|
4
|
+
data.tar.gz: 28a8cd2f86a5cf877d47a816e22c641362004135
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5fb80ea6b2d3caea0b19c56b843ff5fb393c83b86ca9d7df0861f74d6cddf510962716d6bd0c75ca5ecf63205d7cebb07b09e0d43799ac15e1053873b9ff0d
|
7
|
+
data.tar.gz: a737ad7b4b6dbe1a9042d762de097cdef05cc2453e92b3477474b4184f327d06782dfe21ff4efc99a8153094e7f12a42c6e889a9ff5569707d512c972a7f2d3b
|
@@ -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})(?:[#&\?]t=(([0-9]+[smh]?)+))?$/)
|
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.4.
|
4
|
+
version: 1.4.2
|
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-
|
13
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|