zemus 0.0.14 → 0.0.15
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 +5 -5
- data/lib/zemus/kickstarter.rb +1 -1
- data/lib/zemus/version.rb +1 -1
- data/spec/zemus/kickstarter_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 7be0c394da63a65ac788a73923193f51c30020a905de259411598cbdc2bdf802
|
|
4
|
+
data.tar.gz: 6ab737ad5b5b992ab3efbcb328d53771fbc242da70d2c3f64e280593b9247b1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e392225e6bc86dac45db28f41c6c02cfb06ca377d855675ae0bd317b9ce56060f4a600984452579f67db5a660681c36e28fc14c2a1916ca0db5f8337a078454
|
|
7
|
+
data.tar.gz: 9994246478d840df7fdbffe7eabb54f23682d4f94b076271f2fd30e2c0af85dd56687ea729bd113ab625a8a2eeec8c046b9953beba5d12717013de817b0fcd74
|
data/lib/zemus/kickstarter.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Zemus
|
|
|
15
15
|
|
|
16
16
|
def to_embed
|
|
17
17
|
embed = "<iframe width='100%' height='600px' scrolling='no' src='https://www.kickstarter.com/projects/#{kickstarter_id}/widget/video.html' frameborder='0'> </iframe>"
|
|
18
|
-
embed += "<a href='#{url}' target='_blank' class='btn btn-
|
|
18
|
+
embed += "<a href='#{url}' target='_blank' class='btn btn-primary btn-xs'><i class='fas fa-heart'></i> Back this on Kickstarter!</a>"
|
|
19
19
|
|
|
20
20
|
embed
|
|
21
21
|
end
|
data/lib/zemus/version.rb
CHANGED
|
@@ -3,10 +3,10 @@ require_relative('../spec_helper')
|
|
|
3
3
|
describe Zemus::Kickstarter do
|
|
4
4
|
it "embeds kickstarter" do
|
|
5
5
|
Zemus::Kickstarter.new("http://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake").to_embed.
|
|
6
|
-
should eq("<iframe width='100%' height='600px' scrolling='no' src='https://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake/widget/video.html' frameborder='0'> </iframe><a href='http://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake' target='_blank' class='btn btn-
|
|
6
|
+
should eq("<iframe width='100%' height='600px' scrolling='no' src='https://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake/widget/video.html' frameborder='0'> </iframe><a href='http://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake' target='_blank' class='btn btn-primary btn-xs'><i class='fas fa-heart'></i> Back this on Kickstarter!</a>")
|
|
7
7
|
|
|
8
8
|
# fix for a bug where a kickstarter URL had a # sign at the end
|
|
9
9
|
Zemus::Kickstarter.new("http://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake#").to_embed.
|
|
10
|
-
should eq("<iframe width='100%' height='600px' scrolling='no' src='https://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake/widget/video.html' frameborder='0'> </iframe><a href='http://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake' target='_blank' class='btn btn-
|
|
10
|
+
should eq("<iframe width='100%' height='600px' scrolling='no' src='https://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake/widget/video.html' frameborder='0'> </iframe><a href='http://www.kickstarter.com/projects/sleepninja/monsters-ate-my-birthday-cake' target='_blank' class='btn btn-primary btn-xs'><i class='fas fa-heart'></i> Back this on Kickstarter!</a>")
|
|
11
11
|
end
|
|
12
12
|
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.15
|
|
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:
|
|
12
|
+
date: 2019-01-31 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.7.6
|
|
127
127
|
signing_key:
|
|
128
128
|
specification_version: 4
|
|
129
129
|
summary: Parses and embeds various media URLs as viewable content
|