<div dir="ltr">As it happens VCR cassettes accept ERB tags.<div><br></div><div>So I once wrote a script to regenerate cassettes using real credentials,</div><div>then right afterwards replace the credentials in the cassettes with an ERB reference.</div><div><br></div><div>It's risky that you'll mess it up,</div><div>but it worked for my needs.</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 11 Sep 2018 at 16:32, Toby Privett <<a href="mailto:toby@snaplab.co.uk">toby@snaplab.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On a tangent, I once let API credentials leak into VCR yaml files. Then pushed them to an open source repo.<div>You're probably not doing that, but worth being mindful of the risks</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 11 Sep 2018 at 11:07 James Adam <<a href="mailto:james@lazyatom.com" target="_blank">james@lazyatom.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">On 11 Sep 2018, at 10:07, Samuel Joseph <<a href="mailto:tansaku@gmail.com" target="_blank">tansaku@gmail.com</a>> wrote:<br></div><div style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite"><br class="m_-4388816819597740202m_-2546526929251259078Apple-interchange-newline"><div><div>I have two concerns<br><br>1) new developers onboarding often get snarled up in the caching and the files generated<br></div></div></blockquote><div><br></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div>I tend to consider the generated YAML files as black boxes — it’s hard to predict their contents or make much sense of them until you’re quite experienced.</div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><br><blockquote type="cite"><div><div>2) the cached recordings are gradually getting further and further out of date - could we automate their refreshing?<br></div></div></blockquote></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div></div><br><div>VCR _can_ be configured to automatically re-record after a fixed period of time, would that help? <a href="https://relishapp.com/vcr/vcr/v/3-0-3/docs/cassettes/automatic-re-recording" target="_blank">https://relishapp.com/vcr/vcr/v/3-0-3/docs/cassettes/automatic-re-recording</a></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div><div>— James</div></div>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
Archives: <a href="http://lists.lrug.org/pipermail/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/pipermail/chat-lrug.org</a><br>
Manage your subscription: <a href="http://lists.lrug.org/options.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/options.cgi/chat-lrug.org</a><br>
List info: <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div>-- <br><div dir="ltr" class="m_-4388816819597740202gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Kind regards,</div><div><br></div>Toby Privett<div>--------------</div><div><div><a href="http://snaplab.co.uk" target="_blank">http://snaplab.co.uk</a></div></div></div></div>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
Archives: <a href="http://lists.lrug.org/pipermail/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/pipermail/chat-lrug.org</a><br>
Manage your subscription: <a href="http://lists.lrug.org/options.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/options.cgi/chat-lrug.org</a><br>
List info: <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div>