virgo 0.3.16 → 0.3.17

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: 454840bd50221d4b681e52e7a465b29a53eb9d43
4
- data.tar.gz: 6dd80b5dee7733de4276797474df545c0b582245
3
+ metadata.gz: 607e688c16512c4758fbf7ae68ae1b23ac8a84a0
4
+ data.tar.gz: 34b309575de239af363c967a650ddc22d7dcc8a0
5
5
  SHA512:
6
- metadata.gz: 7ce1cc9b234630c776ec25005b202549b6ba5f0be5a871b9798b3c61436038ad84ab85a591a422e5ff6e0ea1d39605ec9ab2ce4c0fff7327671ab906f0a3d729
7
- data.tar.gz: 09dc422b90c93c41e1fb1922c1a1af4b98c84d251c4be3641702111a8ddc628073cd19d74917990418638556f0fd1b193138a881ca7247d4372888be066de87c
6
+ metadata.gz: ed5f18dfba7654c8677490d2819c8b19d80a4e59e91933379bedac960ac092b361bc69c2c427f95bed446a81d0758036c837a9deb9305d855302957bdc115f7b
7
+ data.tar.gz: aac866ea3ca09bf41b2a4af312ae13399d9459a0d5a17f1d19408b27cc8030338b35050add25cb2999d6587f2d2065cb14da4705686e6749177426884254fcb7
@@ -19,7 +19,7 @@ class PostShow
19
19
  is_video_embed_url: (url) =>
20
20
  url_parts = url.match(/https?:\/\/(:?www.)?(\w*)/)
21
21
 
22
- if url_parts >= 2
22
+ if url_parts && url_parts.length >= 2
23
23
  provider = url_parts[2]
24
24
 
25
25
  if provider == 'youtube' or provider == 'vimeo' or provider == 'player' or provider == 'youtu.be'
@@ -1,3 +1,3 @@
1
1
  module Virgo
2
- VERSION = "0.3.16"
2
+ VERSION = "0.3.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Zaillian