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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28e966aab6b9cb159a61e21ba464d8587c2c0f74
4
- data.tar.gz: afc48dab705818660e618ce917fd0e88f17a884c
3
+ metadata.gz: 3386135fe238f1228c6b420da7c007f37b240144
4
+ data.tar.gz: 234fa7e682c6d57c4091711165eb3d050eea3e8d
5
5
  SHA512:
6
- metadata.gz: 349acadd62a19705a0932560807790914ff0a428a826d3bbde23f5fa19bb32518f94a556153f6aea4496718018b3f06af332f62ad7bc937c958eb3199f4493cb
7
- data.tar.gz: 11db97325e4ed5a5487ffe8a14a1ab6ffad21265031fa687d1fcce77b683273cea1d9f177eb4ea45d55d07ae8314ae376a790476b127fa6ba09dc3d5f807bf8c
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
 
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.3.7"
2
+ VERSION = "1.3.8"
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.3.7
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-06 00:00:00.000000000 Z
13
+ date: 2014-06-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json