lib/chunky_png.rb in chunky_png-1.3.5 vs lib/chunky_png.rb in chunky_png-1.3.6

- old
+ new

@@ -127,15 +127,15 @@ # Empty byte array. This basically is an empty string, but with the encoding # set correctly to ASCII-8BIT (binary) in Ruby 1.9. # @return [String] An empty string, with encoding set to binary in Ruby 1.9 # @private - EMPTY_BYTEARRAY = force_binary("").freeze + EMPTY_BYTEARRAY = force_binary(String.new).freeze # Null-byte, with the encoding set correctly to ASCII-8BIT (binary) in Ruby 1.9. # @return [String] A binary string, consisting of one NULL-byte. # @private - EXTRA_BYTE = force_binary("\0").freeze + EXTRA_BYTE = force_binary(String.new("\0")).freeze end require 'chunky_png/version' # Ruby 1.8 / 1.9 compatibility