vimeo_embed 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vimeo_embed.rb +1 -1
- data/lib/vimeo_embed/version.rb +1 -1
- data/vendor/assets/stylesheets/vimeo_embed.css +3 -1
- metadata +2 -2
data/lib/vimeo_embed.rb
CHANGED
@@ -15,7 +15,7 @@ module VimeoEmbed
|
|
15
15
|
|
16
16
|
def self.vimeo_embed(data, options = {:with_description => true, :height => 200, :width => 300})
|
17
17
|
if data.match(/https?:\/\/?(?:www\.)?vimeo\.com/)
|
18
|
-
data = data.gsub(/<a?[^<]+ href="
|
18
|
+
data = data.gsub(/<a?[^<]+ href="https?:\/\/?(?:www\.)?vimeo\.com\/\d+"?[^<]+>([^<]+)<\/a>/i, '\1')
|
19
19
|
if options[:with_description]
|
20
20
|
data = data.gsub(/(https?:\/\/?(?:www\.)?vimeo\.com\/\d+)/i, thumbnail_and_description("#{$1}", options[:width], options[:height]))
|
21
21
|
else
|
data/lib/vimeo_embed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimeo_embed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|