rack-recorder
This is a middleware for recording client interactions with a Rack app. In my case, this was useful because I wanted to capture the payloads going back and forth from an iPhone app to which I didn’t have the source in order to create a regression test.
This is almost the dual of the VCR project at github.com/myronmarston/vcr - instead of recording outgoing requests, we record incoming ones.
Usage
use Rack::Recorder, :file => "/tmp/my_requests.bin"
you can recover the information from the binary file with
Rack::Recorder.revive "/tmp/my_requests.bin"
Note on Patches/Pull Requests
-
Fork the project.
-
Make your feature addition or bug fix.
-
Add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
-
Send me a pull request. Bonus points for topic branches.
Copyright
Copyright © 2010 Mark Wotton. See LICENSE for details.