Sha256: 9ccb2789de9b1da898aa814a764868c4b5dfc9688f0a559178d75ec5d63765e5
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
# Nasty tricks to debug the interaction with the Pivotal Tracker API module RestClient class Request alias_method :rest_client_execute, :execute def execute &block puts "\nRequest: #{method.upcase} #{url}" rest_client_execute &block end end end module HappyMapper module ClassMethods alias_method :pivotal_tracker_parse, :parse def parse(xml, options={}) xml = xml.to_s if xml.is_a?(RestClient::Response) puts "\nResponse:\n#{xml}\n" pivotal_tracker_parse(xml, options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pt-0.3.1 | lib/pt/debugger.rb |
pt-0.3.0 | lib/pt/debugger.rb |