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 +4 -4
- data/app/assets/javascripts/virgo/posts/show.coffee +6 -3
- data/lib/virgo/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: 30074d5806cc4b43fbba7a65671037f72bfdcf2f
|
4
|
+
data.tar.gz: f72f581b2eb16fa3809a1c5b12f11c0eeb95eeba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
20
|
+
url_parts = url.match(/https?:\/\/(:?www.)?(\w*)/)
|
21
21
|
|
22
|
-
if
|
23
|
-
|
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
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.
|
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:
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|