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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a57e64719752c5f37c373c5de10832688988c1b
4
- data.tar.gz: ac2227a49b1a2b27349cb7324c9020bfc417b101
3
+ metadata.gz: dfb22dedea89c381450ccf63ae9da171c23bc440
4
+ data.tar.gz: 28a8cd2f86a5cf877d47a816e22c641362004135
5
5
  SHA512:
6
- metadata.gz: 634011fea302f056ee7c51c91f6094b7dac783d502f3ad687b649d9c702d4f0699c0ae4a1635c3de0404498753266f4df65317e6a4cd1cf100f3e44dcb3d8706
7
- data.tar.gz: ff0c8fc0b1466a0e4c6e12ec152d594e1ec0571c451f39a069eb8db6a0c5db7107ec09f9a054abd004d484b5fa935e5a14525c1c66282db7c4dad14979c54213
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
 
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
  end
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.1
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-06-27 00:00:00.000000000 Z
13
+ date: 2014-07-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json