zemus 0.0.6 → 0.0.7

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/zemus/image.rb CHANGED
@@ -11,8 +11,8 @@ module Zemus
11
11
  end
12
12
 
13
13
  def to_embed
14
- "<img src='#{@url}' class='img-responsive img-thumbnail' />"
14
+ "<img src='#{@url}' class='img-responsive img-thumbnail' alt='#{@url}' />"
15
15
  end
16
16
 
17
17
  end
18
- end
18
+ end
data/lib/zemus/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zemus
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -4,7 +4,7 @@ describe Zemus::Image do
4
4
  it "embeds images" do
5
5
  url = "http://google.com/image.gif"
6
6
  Zemus::Image.new(url).to_embed.
7
- should eq("<img src='http://google.com/image.gif' class='img-responsive img-thumbnail' />")
7
+ should eq("<img src='http://google.com/image.gif' class='img-responsive img-thumbnail' alt='http://google.com/image.gif' />")
8
8
  end
9
9
 
10
- end
10
+ end
data/spec/zemus_spec.rb CHANGED
@@ -4,19 +4,19 @@ describe Zemus do
4
4
 
5
5
  it "accepts test for images" do
6
6
  url = "www.google.com/sample.gif"
7
- Zemus.embed(url).should == "<img src='www.google.com/sample.gif' class='img-responsive img-thumbnail' />"
7
+ Zemus.embed(url).should == "<img src='www.google.com/sample.gif' class='img-responsive img-thumbnail' alt='www.google.com/sample.gif' />"
8
8
 
9
9
  url = 'http://play-mario-onlne.com/old-school-mario.png'
10
- Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.png' class='img-responsive img-thumbnail' />"
10
+ Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.png' class='img-responsive img-thumbnail' alt='http://play-mario-onlne.com/old-school-mario.png' />"
11
11
 
12
12
  url = 'http://play-mario-onlne.com/old-school-mario.jpg'
13
- Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.jpg' class='img-responsive img-thumbnail' />"
13
+ Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.jpg' class='img-responsive img-thumbnail' alt='http://play-mario-onlne.com/old-school-mario.jpg' />"
14
14
 
15
15
  url = 'http://play-mario-onlne.com/old-school-mario.jpeg'
16
- Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.jpeg' class='img-responsive img-thumbnail' />"
16
+ Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.jpeg' class='img-responsive img-thumbnail' alt='http://play-mario-onlne.com/old-school-mario.jpeg' />"
17
17
 
18
18
  url = 'http://play-mario-onlne.com/old-school-mario.GIF'
19
- Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.GIF' class='img-responsive img-thumbnail' />"
19
+ Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.GIF' class='img-responsive img-thumbnail' alt='http://play-mario-onlne.com/old-school-mario.GIF' />"
20
20
  end
21
21
 
22
22
  it "acceptance tests for (kick start) starter" do
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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-02 00:00:00.000000000 Z
13
+ date: 2014-01-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler