public
Created — forked from bovi/ruby-growl at ruby 1.9.2

  • Download Gist
ruby-growl at ruby 1.9.2
Groff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
--- ruby18-growl.rb 2005-11-14 21:15:15.000000000 -0800
+++ ruby-growl.rb 2009-11-22 00:47:06.000000000 -0800
@@ -2,7 +2,7 @@
$TESTING = false unless defined? $TESTING
-require 'md5'
+require 'digest/md5'
require 'socket'
##
@@ -227,7 +227,7 @@
packet = packet.pack GNR_FORMAT
- checksum = MD5.new packet
+ checksum = Digest::MD5.new.update packet
checksum.update @password unless @password.nil?
packet << checksum.digest
@@ -265,7 +265,7 @@
packet << data.join
packet = packet.pack GNN_FORMAT
- checksum = MD5.new packet
+ checksum = Digest::MD5.new.update packet
checksum.update @password unless @password.nil?
packet << checksum.digest

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.