zemus 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.
- checksums.yaml +4 -4
- data/lib/zemus/generic.rb +3 -3
- data/lib/zemus/kickstarter.rb +2 -2
- data/lib/zemus/version.rb +1 -1
- data/lib/zemus/vimeo.rb +2 -2
- data/lib/zemus/youtube.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25f905849440a06f329e4288e6941e6cd34ecd7b
|
4
|
+
data.tar.gz: 3467322fef20a79f809495702c56ac34111bc2e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4359fb188dea3affab0c788af2b6087209aba4486d95212b88843831f7220b8e560d551bb15e6bbcd3f403189db934f9358fdd7480a4b5fea26e9590ab9bc127
|
7
|
+
data.tar.gz: a73b845a06907489149d442e5fd5cb95881ddf6a70b5698f3d8cdf41c9538a9e24ad446b38185e23fe482190d1c6cdb632ccf93bec78b16a8d69e74a73dae6cf
|
data/lib/zemus/generic.rb
CHANGED
data/lib/zemus/kickstarter.rb
CHANGED
@@ -14,7 +14,7 @@ module Zemus
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def to_embed
|
17
|
-
embed = "<iframe width='100%' height='600px' scrolling='no' src='
|
17
|
+
embed = "<iframe width='100%' height='600px' scrolling='no' src='https://www.kickstarter.com/projects/#{kickstarter_id}/widget/video.html' frameborder='0'> </iframe>"
|
18
18
|
embed += "<a href='#{url}' target='_blank' class='btn btn-default btn-xs'><i class='glyphicon glyphicon-heart'></i> Back this on Kickstarter!</a>"
|
19
19
|
|
20
20
|
embed
|
@@ -25,4 +25,4 @@ module Zemus
|
|
25
25
|
id.gsub("#", "")
|
26
26
|
end
|
27
27
|
end
|
28
|
-
end
|
28
|
+
end
|
data/lib/zemus/version.rb
CHANGED
data/lib/zemus/vimeo.rb
CHANGED
@@ -12,8 +12,8 @@ module Zemus
|
|
12
12
|
def to_embed
|
13
13
|
id = @url.split('/').last
|
14
14
|
|
15
|
-
"<iframe src='
|
15
|
+
"<iframe src='https://player.vimeo.com/video/#{id}' width='100%' height='600px' frameborder='0'></iframe>"
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
19
|
-
end
|
19
|
+
end
|
data/lib/zemus/youtube.rb
CHANGED
@@ -14,7 +14,7 @@ module Zemus
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def to_embed
|
17
|
-
"<iframe width='100%' height='600px' src='
|
17
|
+
"<iframe width='100%' height='600px' src='https://www.youtube.com/embed/#{youtube_id}?wmode=opaque' frameborder='0' allowfullscreen></iframe>"
|
18
18
|
end
|
19
19
|
|
20
20
|
def to_embed_image
|
@@ -25,7 +25,7 @@ module Zemus
|
|
25
25
|
id = ''
|
26
26
|
|
27
27
|
url = @url.gsub("&feature=player_embedded", "")
|
28
|
-
|
28
|
+
|
29
29
|
if url =~ /\?v=/
|
30
30
|
id = url.split('?v=').last.split("&").first
|
31
31
|
elsif url =~ /&v=/
|
@@ -33,9 +33,9 @@ module Zemus
|
|
33
33
|
else
|
34
34
|
id = url.split('/').last.split("&").first
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
id
|
38
38
|
end
|
39
39
|
|
40
40
|
end
|
41
|
-
end
|
41
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zemus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Dodson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.5.1
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Parses and embeds various media URLs as viewable content
|