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 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="[(https?:\/\/)?(www\.)?vimeo.com[^<]+]+">([^<]+)<\/a>/i, '\1')
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
@@ -1,3 +1,3 @@
1
1
  module VimeoEmbed
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,6 +1,8 @@
1
1
  .vimeo_embed_video {
2
2
  float:left;
3
- width:100%;
3
+ width:99%;
4
+ padding:5px;
5
+ border:1px solid #cccccc;
4
6
  }
5
7
  .vimeo_embed_partial_video {
6
8
  cursor:pointer;
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.1
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-28 00:00:00.000000000 Z
12
+ date: 2013-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty