auto_sprite 1.0.0 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -51,9 +51,11 @@ Whenever rails reloads, it will automatically generate two files:
51
51
  RAILS_ROOT/public/images/auto_sprite.png
52
52
 
53
53
 
54
- The image tag will automatically generate a div tag for any images located in the sprite directory.
54
+ The image tag will automatically generate a SPAN tag for any images located in the sprite directory.
55
55
 
56
- <div class="_as_logo_png"></div> instead of <img src="/images/sprites/logo.png" />
56
+ <span class="_as_logo_png"></span> instead of <img src="/images/sprites/logo.png" />
57
+
58
+ Note: before 1.0.3, div tags were generated but this sometimes generated invalid HTML.
57
59
 
58
60
 
59
61
  Here is an exmplmple of the stylehseet that would be generated if you had two files face3.png and face4.png
data/auto_sprite.gemspec CHANGED
@@ -2,10 +2,10 @@ spec = Gem::Specification.new do |s|
2
2
 
3
3
  require 'fileutils'
4
4
  s.name = "auto_sprite"
5
- s.version = "1.0.0"
5
+ s.version = "1.0.3"
6
6
  s.author = "Stephen Blackstone"
7
7
  s.email = "sblackstone@gmail.com"
8
- s.homepage = "http://fargle.org/auto_sprite"
8
+ s.homepage = "http://github.com/sblackstone/auto_sprite"
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.summary = "A fully-Automagic Sprite Builder"
11
11
  s.description = "CSS Sprites can get you down, don't let them. This gem automatically creates the CSS, Sprite and HTML tags so you don't have to"
data/lib/auto_sprite.rb CHANGED
@@ -58,7 +58,7 @@ module AutoSprite::Helpers
58
58
  def image_tag(source, options = {})
59
59
  src = path_to_image(source)
60
60
  if src =~ /\/images\/sprites/
61
- "<div class='#{AutoSprite.generate_css_name(src)}'></div>"
61
+ "<span class='#{AutoSprite.generate_css_name(src)}'></span>"
62
62
  else
63
63
  super(source,options)
64
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_sprite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Blackstone
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-10 00:00:00 -05:00
12
+ date: 2010-01-24 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -28,7 +28,7 @@ files:
28
28
  - ./rails/init.rb
29
29
  - ./lib/auto_sprite.rb
30
30
  has_rdoc: true
31
- homepage: http://fargle.org/auto_sprite
31
+ homepage: http://github.com/sblackstone/auto_sprite
32
32
  licenses: []
33
33
 
34
34
  post_install_message: