chunky_png 0.0.4 → 0.0.5
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/chunky_png.gemspec +1 -1
- data/lib/chunky_png.rb +1 -1
- data/lib/chunky_png/palette.rb +1 -1
- metadata +1 -1
data/chunky_png.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
|
4
4
|
# Do not change the version and date fields by hand. This will be done
|
5
5
|
# automatically by the gem release script.
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.5"
|
7
7
|
s.date = "2010-01-13"
|
8
8
|
|
9
9
|
s.summary = "Pure ruby library for read/write, chunk-level access to PNG files"
|
data/lib/chunky_png.rb
CHANGED
data/lib/chunky_png/palette.rb
CHANGED
@@ -121,7 +121,7 @@ module ChunkyPNG
|
|
121
121
|
# @return [Fixnum] The 0-based position of the color in the palette.
|
122
122
|
# @see ChunkyPNG::Palette#can_encode?
|
123
123
|
def index(color)
|
124
|
-
@encoding_map[color]
|
124
|
+
@encoding_map[ChunkyPNG::Pixel.new(color)]
|
125
125
|
end
|
126
126
|
|
127
127
|
# Creates a tRNS chunk that corresponds with this palette to store the
|