zemus 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 676a95d3b035f7fcb2f035453bd238ce4f9d0cee
4
- data.tar.gz: 674308b03069cf7f93c71a71afc47c2bf97f2444
3
+ metadata.gz: 25f905849440a06f329e4288e6941e6cd34ecd7b
4
+ data.tar.gz: 3467322fef20a79f809495702c56ac34111bc2e4
5
5
  SHA512:
6
- metadata.gz: f575ee127a30cdebf81ca128e4eb91e83a7f58f778bf12f2d148cd8b3e9774102028af679c9ccdae246bf20a010d28d4697dd2780b168c88b8859a7af56ec077
7
- data.tar.gz: fea3a5c7352010bfeb8a9831e0d4a8a3a8905cc34e581058af5955b43edecfe5e9c86f7a8e8fb6ed9744ca4ddbadd79c2dd81a010b0f3e5541984b7531e5dd6a
6
+ metadata.gz: 4359fb188dea3affab0c788af2b6087209aba4486d95212b88843831f7220b8e560d551bb15e6bbcd3f403189db934f9358fdd7480a4b5fea26e9590ab9bc127
7
+ data.tar.gz: a73b845a06907489149d442e5fd5cb95881ddf6a70b5698f3d8cdf41c9538a9e24ad446b38185e23fe482190d1c6cdb632ccf93bec78b16a8d69e74a73dae6cf
@@ -1,6 +1,6 @@
1
1
  module Zemus
2
- class Generic
3
-
2
+ class Generic
3
+
4
4
  def self.valid?(url)
5
5
  true
6
6
  end
@@ -20,4 +20,4 @@ module Zemus
20
20
  "<a href='#{url}' target='_blank'>#{display}</a>"
21
21
  end
22
22
  end
23
- end
23
+ end
@@ -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='http://www.kickstarter.com/projects/#{kickstarter_id}/widget/video.html' frameborder='0'> </iframe>"
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
@@ -1,3 +1,3 @@
1
1
  module Zemus
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -12,8 +12,8 @@ module Zemus
12
12
  def to_embed
13
13
  id = @url.split('/').last
14
14
 
15
- "<iframe src='http://player.vimeo.com/video/#{id}' width='100%' height='600px' frameborder='0'></iframe>"
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
@@ -14,7 +14,7 @@ module Zemus
14
14
  end
15
15
 
16
16
  def to_embed
17
- "<iframe width='100%' height='600px' src='http://www.youtube.com/embed/#{youtube_id}?wmode=opaque' frameborder='0' allowfullscreen></iframe>"
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.11
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-05-19 00:00:00.000000000 Z
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.4.5
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