*** gd2.rb 2011-11-18 14:42:38.920268272 +0100 --- gd2.rb 2011-10-05 16:32:03.234509654 +0200 *************** *** 43,50 **** sum = -4 signature.each_byte do |char| sum += case char ! when ?D: 8 ! else 4 end end "#{symbol}@#{sum}" --- 43,52 ---- sum = -4 signature.each_byte do |char| sum += case char ! when 'D'.bytes.to_a ! 8 ! else ! 4 end end "#{symbol}@#{sum}" *************** *** 147,153 **** :gdFontCacheShutdown => '0', :gdFTUseFontConfig => 'II', :gdFree => '0P' ! }.inject({}) { |x, (k, v)| x[k] = LIB[name_for_symbol(k, v), v]; x } # Bit flags for Image#compare --- 149,156 ---- :gdFontCacheShutdown => '0', :gdFTUseFontConfig => 'II', :gdFree => '0P' ! }.inject({}) { |x, (k, v)| x[k] = LIB[name_for_symbol(k, v)]; x } ! #}.inject({}) { |x, (k, v)| x[k] = LIB[name_for_symbol(k, v), v]; x } # Bit flags for Image#compare