lib/take2.rb in take2-0.0.1 vs lib/take2.rb in take2-0.0.2

- old
+ new

@@ -37,12 +37,10 @@ # include Take2 # # number_of_retries 3 # retriable_errors Net::HTTPRetriableError, Net::HTTPServerError # retriable_condition proc { |error| response_status(error.response) < 500 } - # on_retry proc do |error, tries| - # puts "#{self.class.name} - Retrying.. #{tries} of #{self.class.retriable_configuration[:retries]} (#{error})" - # end + # on_retry proc { |error, tries| puts "#{self.name} - Retrying.. #{tries} of #{self.retriable_configuration[:retries]} (#{error})" } # sleep_before_retry 3 # # def give_me_food # call_api_with_retry do # # Some logic that might raise.. \ No newline at end of file