conred 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/conred/helpers.rb +4 -3
- data/lib/conred/version.rb +1 -1
- data/lib/conred/video.rb +6 -6
- data/spec/conred_spec/video_spec.rb +6 -6
- metadata +2 -2
data/lib/conred/helpers.rb
CHANGED
@@ -5,8 +5,10 @@ module Conred
|
|
5
5
|
module Helpers
|
6
6
|
|
7
7
|
extend self
|
8
|
-
|
9
|
-
|
8
|
+
|
9
|
+
def action_view
|
10
|
+
@action_view = ActionView::Base.new
|
11
|
+
end
|
10
12
|
|
11
13
|
def sanitize_and_trim(text, word_count = nil, omission = '...')
|
12
14
|
text = action_view.strip_tags(text)
|
@@ -25,7 +27,6 @@ module Conred
|
|
25
27
|
def external_url(link)
|
26
28
|
/^http/.match(link) ? link : "http://#{link}"
|
27
29
|
end
|
28
|
-
|
29
30
|
end
|
30
31
|
|
31
32
|
end
|
data/lib/conred/version.rb
CHANGED
data/lib/conred/video.rb
CHANGED
@@ -42,7 +42,7 @@ module Conred
|
|
42
42
|
<iframe
|
43
43
|
id='vimeo_video'
|
44
44
|
src='http://player.vimeo.com/video/#{vimeo_id}'
|
45
|
-
width='#{@width}'
|
45
|
+
width='#{@width}'
|
46
46
|
height='#{@height}'
|
47
47
|
frameborder='0'
|
48
48
|
webkitAllowFullScreen
|
@@ -63,11 +63,11 @@ module Conred
|
|
63
63
|
<<-eos
|
64
64
|
<iframe
|
65
65
|
id='youtube_video'
|
66
|
-
title='YouTube video player'
|
67
|
-
width='#{@width}'
|
68
|
-
height='#{@height}'
|
69
|
-
src='http://www.youtube.com/embed/#{ youtube_id }'
|
70
|
-
frameborder='0'
|
66
|
+
title='YouTube video player'
|
67
|
+
width='#{@width}'
|
68
|
+
height='#{@height}'
|
69
|
+
src='http://www.youtube.com/embed/#{ youtube_id }?wmode=transparent'
|
70
|
+
frameborder='0'
|
71
71
|
allowfullscreen>
|
72
72
|
</iframe>
|
73
73
|
eos
|
@@ -7,7 +7,7 @@ describe Conred do
|
|
7
7
|
<iframe
|
8
8
|
id='vimeo_video'
|
9
9
|
src='http://player.vimeo.com/video/49556689'
|
10
|
-
width='450'
|
10
|
+
width='450'
|
11
11
|
height='300'
|
12
12
|
frameborder='0'
|
13
13
|
webkitAllowFullScreen
|
@@ -20,11 +20,11 @@ describe Conred do
|
|
20
20
|
<<-eos
|
21
21
|
<iframe
|
22
22
|
id='youtube_video'
|
23
|
-
title='YouTube video player'
|
24
|
-
width='450'
|
25
|
-
height='300'
|
26
|
-
src='http://www.youtube.com/embed/Lrj5Kxdzouc'
|
27
|
-
frameborder='0'
|
23
|
+
title='YouTube video player'
|
24
|
+
width='450'
|
25
|
+
height='300'
|
26
|
+
src='http://www.youtube.com/embed/Lrj5Kxdzouc?wmode=transparent'
|
27
|
+
frameborder='0'
|
28
28
|
allowfullscreen>
|
29
29
|
</iframe>
|
30
30
|
eos
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conred
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
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: 2012-09-
|
12
|
+
date: 2012-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|