aweplug 1.0.0.a20 → 1.0.0.a21
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/aweplug/helpers/vimeo.rb +14 -14
- data/lib/aweplug/version.rb +1 -1
- metadata +3 -3
@@ -16,20 +16,20 @@ module Aweplug
|
|
16
16
|
#
|
17
17
|
def vimeo(url)
|
18
18
|
video = Video.new(url, access_token, site)
|
19
|
-
out = %Q[<div class="embedded-media">] +
|
20
|
-
|
21
|
-
%Q[<iframe src="//player.vimeo.com/video/#{video.id}\?title=0&byline=0&portrait=0&badge=0&color=2664A2" width="500" height="313" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen}></iframe>]
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
19
|
+
#out = %Q[<div class="embedded-media">] +
|
20
|
+
%Q[<h4>#{video.title}</h4><div class="flex-video widescreen vimeo">] +
|
21
|
+
%Q[<iframe src="//player.vimeo.com/video/#{video.id}\?title=0&byline=0&portrait=0&badge=0&color=2664A2" width="500" height="313" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen}></iframe>] +
|
22
|
+
%Q[</div>]
|
23
|
+
#video.cast.each do |c|
|
24
|
+
#out += %Q[<div class="follow-links">] +
|
25
|
+
#%Q[<span class="title">Follow #{first_name(c.realname)}</span>] +
|
26
|
+
## TODO add in follow links
|
27
|
+
#%Q[<a><i class="icon-rss"></i></a>] +
|
28
|
+
#%Q[<a><i class="icon-facebook"></i></a>] +
|
29
|
+
#%Q[<a><i class="icon-twitter"></i></a>] +
|
30
|
+
#%Q[<a><i class="icon-linkedin"></i></a>] +
|
31
|
+
#%Q[</div>]
|
32
|
+
#end
|
33
33
|
end
|
34
34
|
|
35
35
|
# Public: Embeds a vimeo video thumbnail into a web page. Retrieves the title
|
data/lib/aweplug/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aweplug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.a21
|
5
5
|
prerelease: 6
|
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: 2014-03-
|
12
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: octokit
|
@@ -191,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
segments:
|
193
193
|
- 0
|
194
|
-
hash:
|
194
|
+
hash: 2565258213881195966
|
195
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
196
|
none: false
|
197
197
|
requirements:
|