Posts about Gems
Let's Encrypt + Route53 + Ruby = Yay!
Apr 21, 2016
A few months ago, Let's Encrypt rolled out a feature to verify domains over DNS. Their automatic configuration tool doesn't support all the use cases yet, including my particular scenario: multiple load-balanced EC2 instances behind a single ELB, using Route53 for DNS. I wrote a tool to simplify updating Route53 DNS Records with the challenge, as well as updating the ELB with the resulting certificate. Check out the README and code, or read on for why I wrote it.
The Conductor Pattern
May 1, 2012
A movement has been growing over the last several months to make our Rails applications more object-oriented. One of the most popular recently has been Avdi Grimm's Objects on Rails. In it, he talks about an alternative to the Presenter pattern, which he calls Exhibits (and both of which are subsets of the Decorator pattern). I've been using another form of this, which may or may not be called a Conductor.
Annoucing ProgressBar
Apr 10, 2011
I was working on a script to sync hundreds of thousands of records between two databases, and wanted a simple way to keep track of progress. I couldn't find one that was easy to use and did what I wanted, so I wrote my own. Not much more introduction needed, how about a simple example?
Resourceful - Adding default options
Aug 1, 2008
I just commited a change that allows you to specify some default headers to attach to all requests made on a resource. Best shown in an example, I'll use the sample code I gave in my last post:
Resourceful 0.2.1
Jul 31, 2008
I'm pleased to introduce the next release of Resourceful, 0.2.1. This one has tons of bugfixes over 0.2, and is actually being used in production. There's only one real new feature to speak of is prettier logging output. It shows the runtime for requests, the resulting status code, and if it was retrieved from the cache. Some sample log output:
Announcing Resourceful
Jun 30, 2008
Resourceful is an advanced http library for Ruby that does all the fancy stuff that makes HTTP an amazing protocol. I'm pleased to announce the initial release of Resourceful, 0.2. It already has some pretty cool features, with more to come.