spittle 0.9.1.6 → 0.9.1.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/README.rdoc CHANGED
@@ -45,7 +45,7 @@ Spittle assumes all of your sprites are located in the directory public/images/s
45
45
  boeing.png
46
46
  cesna.png
47
47
 
48
- Running spittle:generate does all the work. Each sprite directory (cars, planes) will now contain a sprite.png. Spittle will also generate a sprites.css stylesheet in public/stylesheets/ that you should include in your layout. If you wished to use the ford image from the cars sprite you would give the 'cars_ford' class to the desired element in the view. That's it!
48
+ Running sprite:generate does all the work. Each sprite directory (cars, planes) will now contain a sprite.png. Spittle will also generate a sprites.css stylesheet in public/stylesheets/ that you should include in your layout. If you wished to use the ford image from the cars sprite you would give the 'cars_ford' class to the desired element in the view. That's it!
49
49
 
50
50
  Check out examples/sprites if you want to see what spittle can do without doing any work.
51
51
 
@@ -53,6 +53,7 @@ Check out examples/sprites if you want to see what spittle can do without doing
53
53
 
54
54
  - supports RGB and RGBA color types only (and they must be the same for all images in a sprite)
55
55
  - does not support color profiles (can cause a slight change in color from the source image)
56
+ - does not support reading interlaced PNGs.
56
57
 
57
58
  == Features
58
59
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1.6
1
+ 0.9.1.7
@@ -16,6 +16,10 @@ module Spittle
16
16
  self.pixel_width == image.pixel_width
17
17
  end
18
18
 
19
+ def to_s
20
+ "#{name} pixel width: #{pixel_width}"
21
+ end
22
+
19
23
  def last_scanline(idx)
20
24
  last_row_index = idx - 1
21
25
  (last_row_index < 0 ? [] : @data[last_row_index])
data/spittle.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{spittle}
8
- s.version = "0.9.1.6"
8
+ s.version = "0.9.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["aberant", "tjennings"]
12
- s.date = %q{2009-12-17}
12
+ s.date = %q{2010-01-01}
13
13
  s.description = %q{Spittle is a pure ruby PNG spriting library. It can be used standalone or as a Rails plugin, see the readme for details.}
14
14
  s.email = ["qzzzq1@gmail.com", "tyler.jennings@gmail.com"]
15
15
  s.executables = ["png_info", "sprite"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spittle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1.6
4
+ version: 0.9.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - aberant
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-12-17 00:00:00 -06:00
13
+ date: 2010-01-01 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency