responsive_image_tag 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -24,7 +24,7 @@ module ResponsiveImageTag
24
24
  :class => "responsivize"
25
25
  }
26
26
  unless options.nil? || options == {} || options[:alt].nil?
27
- attrs.merge!(:alt => options[:alt])
27
+ attrs.merge!("data-alttext" => options[:alt])
28
28
  end
29
29
  attrs
30
30
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{responsive_image_tag}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dave Hrycyszyn"]
@@ -85,12 +85,12 @@ class TestResponsiveImageTag < MiniTest::Unit::TestCase
85
85
 
86
86
  it "should put an :alt attribute on the <noscript> tag" do
87
87
  noscript = @doc.xpath("noscript").first
88
- assert noscript.attributes["alt"]
88
+ assert noscript.attributes["data-alttext"]
89
89
  end
90
90
 
91
91
  it "should put a value of 'foo' into the :alt" do
92
92
  noscript = @doc.xpath("noscript").first
93
- assert_equal "foo", noscript.attributes["alt"].value
93
+ assert_equal "foo", noscript.attributes["data-alttext"].value
94
94
  end
95
95
 
96
96
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: responsive_image_tag
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dave Hrycyszyn