lib/polymer/source.rb in polymer-1.0.0.beta.6 vs lib/polymer/source.rb in polymer-1.0.0.beta.7

- old
+ new

@@ -17,16 +17,16 @@ def initialize(path) @path = Pathname.new(path) @name = @path.basename(@path.extname).to_s end - # Returns the RMagick image instance representing the source. + # Returns the Image instance representing the source. # - # @return [Magick::Image] + # @return [ChunkyPNG::Image] # def image assert_file! - @image ||= Magick::Image.read(@path).first + @image ||= ChunkyPNG::Image.from_file(@path) end # Returns a digest which represents the sprite name and file contents. # # @return [String]