virgo 0.3.9 → 0.3.10

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: 0c637c16928e16714aad051843499be827d3c4b5
4
- data.tar.gz: 8580ed3fd28f014904e5e8b40e01f069ab434c52
3
+ metadata.gz: 30074d5806cc4b43fbba7a65671037f72bfdcf2f
4
+ data.tar.gz: f72f581b2eb16fa3809a1c5b12f11c0eeb95eeba
5
5
  SHA512:
6
- metadata.gz: 9df2e2d32795b86e1ce033ab0ed4f9192754fd5eadd86f6250e676324a582a7448fd6c57a57a19b28c6260e48625d95b1b2b50c2eac5f11bd1865730a707933f
7
- data.tar.gz: 1f353b4b9c75994a2e3b07e2b1ef11df610c47d20954390b991c1663af021ef55b7bc81bb78fa62c2f4cd3a48b73e3a57ae059f4ab79960317fa41dadacdb797
6
+ metadata.gz: 767e011418d1518086ded0ca737e508ae810f9735db27af5444a66f9f7c5a43a61ea4f7de2ea5b5137eb30879ae36ea635f411b13968ec20d19565df48e5e08f
7
+ data.tar.gz: 362af32a8fbfff1196aaf4fee66a49f5b442ee44b340176373fa34c229a58a59e954db74562b74be26b6ef9747cf505fd1bd0eca0627c2c700d36143015a4ec0
@@ -17,10 +17,13 @@ class PostShow
17
17
 
18
18
 
19
19
  is_video_embed_url: (url) =>
20
- provider = url.match(/https?:\/\/(:?www.)?(\w*)/)[2]
20
+ url_parts = url.match(/https?:\/\/(:?www.)?(\w*)/)
21
21
 
22
- if provider == 'youtube' or provider == 'vimeo' or provider == 'player' or provider == 'youtu.be'
23
- return true
22
+ if url_parts >= 3
23
+ provider = url_parts
24
+
25
+ if provider == 'youtube' or provider == 'vimeo' or provider == 'player' or provider == 'youtu.be'
26
+ return true
24
27
 
25
28
  false
26
29
 
data/lib/virgo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Virgo
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Zaillian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-09 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails