videoclip 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/videoclip/videos/spike.rb +23 -0
- data/videoclip.gemspec +3 -2
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.11
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module LaserLemon
|
2
|
+
module Videoclip
|
3
|
+
class Video::Spike < Video
|
4
|
+
def self.match?(uri)
|
5
|
+
(uri.host =~ /^(?:www\.)?spike\.com$/i) && (uri.path =~ /^\/video\/[^\/]+\/\d+/)
|
6
|
+
end
|
7
|
+
|
8
|
+
def assign(uri)
|
9
|
+
@key = uri.path.match(/^\/video\/[^\/]+\/(\d+)/)[1]
|
10
|
+
@url = "http://www.spike.com/video/x/#{@key}"
|
11
|
+
end
|
12
|
+
|
13
|
+
def embed(style = nil)
|
14
|
+
%(<embed width="#{width(style)}" height="#{height(style)}" src="http://www.spike.com/efp" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="flvbaseclip=#{@key}" allowfullscreen="true"></embed>)
|
15
|
+
end
|
16
|
+
|
17
|
+
protected
|
18
|
+
def chrome_height
|
19
|
+
30
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/videoclip.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{videoclip}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["laserlemon"]
|
12
|
-
s.date = %q{2009-10-
|
12
|
+
s.date = %q{2009-10-16}
|
13
13
|
s.description = %q{Save videos from popular sites alongside your ActiveRecord models}
|
14
14
|
s.email = %q{steve@laserlemon.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"lib/videoclip/videos/funny_or_die.rb",
|
32
32
|
"lib/videoclip/videos/live_leak.rb",
|
33
33
|
"lib/videoclip/videos/metacafe.rb",
|
34
|
+
"lib/videoclip/videos/spike.rb",
|
34
35
|
"lib/videoclip/videos/twit_vid.rb",
|
35
36
|
"lib/videoclip/videos/vidly.rb",
|
36
37
|
"lib/videoclip/videos/vimeo.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: videoclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- laserlemon
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-16 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- lib/videoclip/videos/funny_or_die.rb
|
38
38
|
- lib/videoclip/videos/live_leak.rb
|
39
39
|
- lib/videoclip/videos/metacafe.rb
|
40
|
+
- lib/videoclip/videos/spike.rb
|
40
41
|
- lib/videoclip/videos/twit_vid.rb
|
41
42
|
- lib/videoclip/videos/vidly.rb
|
42
43
|
- lib/videoclip/videos/vimeo.rb
|