floehopper% gem install method_log Successfully installed method_log-0.1.1 1 gem installed floehopper% rbenv rehash floehopper% git clone https://github.com/freerange/mocha.git floehopper% cd mocha floehopper% method_log --patch --ruby-version=18 Mocha::Expectation#with commit 8359f1a0be049d25d6fe0bf2f4945e61ee710fa7 Author: James MeadDate: Fri Dec 14 13:03:34 2007 +0000 Refactored method_signature into method_matcher and parameters_matcher. - def with(*arguments, &block) - @method_signature.modify(arguments, &block)+ def with(*expected_parameters, &matching_block) + @parameters_matcher = ParametersMatcher.new(expected_parameters, &matching_block) self end commit 8b2617852b318b834874286fc51f18cdde26b251 Author: James MeadDate: Thu Oct 4 21:47:18 2007 +0000 Moved method_name into Parameter class and renamed class MethodSignature. def with(*arguments, &block) - @parameters = Parameters.new(arguments, &block)+ @method_signature.modify(arguments, &block) self end commit 7b27e35f5590c705cc63e563cc4c4089d7916d95 Author: James MeadDate: Thu Oct 4 21:01:59 2007 +0000 Refactored parameter matching by block into Parameters class. Renamed Parameters #== to Parameters#match? - def with(*arguments, ¶meter_block) - @parameters, @parameter_block = Parameters.new(arguments), parameter_block+ def with(*arguments, &block) + @parameters = Parameters.new(arguments, &block) self end commit 9891d91e67c5bfb1c5298d8a08306e846a725bd5 Author: James MeadDate: Thu Oct 4 14:21:06 2007 +0000 Extracted list of parameter matchers into a class. def with(*arguments, ¶meter_block) - @parameters, @parameter_block = arguments, parameter_block - class << @parameters; def to_s; join(', '); end; end+ @parameters, @parameter_block = Parameters.new(arguments), parameter_block self end commit e0dddfa5e4a50fa141a2a11363de8c3504a206d6 Author: James MeadDate: Fri Jul 14 23:22:18 2006 +0000 First stab at namespacing. Renamed some classes too. + def with(*arguments, ¶meter_block) + @parameters, @parameter_block = arguments, parameter_block + class << @parameters; def to_s; join(', '); end; end + self + end