reinh / statsd

A Ruby Statsd client that isn't a direct port of the Python example code. Because Ruby isn't Python.
MIT License
411 stars 154 forks source link

Added Statsd::Mock for usage outside production. #24

Closed hannesg closed 12 years ago

hannesg commented 12 years ago

Hi

I added class which mocks Statsd, so one can have a silent Statsd object in development/test/.. mode. I'm currently using this on one of my applications and think it's really useful.

Cheers' Hannes

reinh commented 12 years ago

I don't think that mocking is a proper responsibility of the library. It ought to be the responsibility of the user to determine when and how to mock a collaborator.

hannesg commented 12 years ago

Okay, then I'll release this on my own.

Thank you!