highgroove/grocer — pull request #13 by kyledrake (2012-06-22 22:52:22+00:00)
Title: Allow certificate input via any object that responds to read

With our implementation, we pass certificates via a call to a remote database. So we don't keep them as files locally, so the File.read approach doesn't work for us without trickery (such as using Tempfile#path).

This allows developers to provide an IO object that responds to #read as well. It's not perfect (a better solution would be to allow the PEM to be passed directly somehow) but it should work for most people I think!

Tests are passing. Let me know if the upstream merge screwed up the pull and I'll re-apply the code without the merge.