giant robots smashing into other giant robots

Written by thoughtbot

lolconomy

Every Two Weeks

Our most popular gems—paperclip, capybara-webkit, factory_girl, and clearance—will see new releases every two weeks.

Trying to be reasonable

Release early, release often. In the past we’ve often released new versions of gems in a “when we feel like it” fashion: either we needed the gem to exist for a personal project, or we’re proud of some change we just made, or someone complained to us about an old version. This lead to a problem: when we were just taking pull requests we didn’t think to release a new version.

By setting up a regular schedule this means that contributions will be more public more quickly. We chose two week cycles as a compromise between releasing very often (every time we take a pull request) and in a wide duration (every three months). Too often and we’d annoy people when they upgrade; too infrequently and the bugs are simply not being fixed for the largest number of people.

It’s a process

Setting aside time to make a release elevates it from “OK I made these changes gem push woo!” to “I am going to make a proper release”—it reifies the release as a first-class action for us to concentrate on. Changelogs, blog posts, and tweets are side effects of putting the right amount of care into releasing a new version of a gem.

When‽

Factory Girl (factory_girl and factory_girl_rails) and Paperclip are on a two week release cycle starting January 27th, 2012. Clearance and capybara-webkit are on a two week release cycle starting February 3rd, 2012.

You can track gem releases using the RubyGems Web site and your favorite feed reader. It’s like this:

  1. Sign up for RubyGems, or sign in if you already have an account.
  2. Navigate to the page for the gem you care about.
  3. Click “Subscribe”.
  4. Click the “Dashboard” link at the top of the Web page.
  5. There’s a sweet orange RSS icon in the middle of that page. Subscribe to that link!

This blog post would make no sense in The Land Before Time

When you say “every two weeks”…

Sometimes it doesn’t make sense to cut a release only every two weeks. Important security fixes or bugs that block everyone from using the gem are examples where getting something out as soon as possible is the only way to do it. On the other hand, sometimes there simply haven’t been any changes.

If we release a new version of a gem on the 26th and the 27th is when a scheduled release is to happen, it’s likely that we’ll skip the schedule. In general we’ll continue the “do I feel like making a release?” thought process, but every two weeks and with a bias towards a positive answer.

Or whenever

The bi-weekly cycle is new and, like everything else in software and life, worth reconsidering at all times. Please let us know if it’s too often, too seldom, just right, or completely useless to you!

cpytel

Widgetfinger: Versioning and Google Apps Support (or, how I learned to stop worrying and love Google Apps)

We’ve rolled out a few updates to Widgetfinger, our simple content management system for simple websites, and we wanted to tell you about them.

Content Versioning

The biggest change is that you can now review and compare past revisions to your content.

The special treat here is that we’ve actually been tracking every change since Widgetfinger launched last year. When building Widgetfinger, we realized after we started work on the Revisions functionality that it shouldn’t be a feature for v1. Since most of the code was in place, well tested, and functioning, we decided to leave it in place so that when the revisions functionality came back up to the top of the priority list, we’d roll it out with access to all prior revisions.

Support for Google Apps

The other new feature we’ve rolled out is built-in support for Google Apps when using Widgetfinger DNS.

Widgetfinger is meant to take over responsibility for the hosting of your simple “brochure” type website, and that includes Web Pages, DNS, and Email. We’ve had some requests to use Google Apps instead of the built in email hosting, and we’re now happy to oblige. Enabling this for your site is as easy a signing up for Google Apps and checking a checkbox in Widgetfinger, and providing the ‘finger with your Google Apps verification code.

Doing so will cause the proper DNS entries to be created to fully support Google Apps for email, calendar, and the other Google Apps services. For more information on how to set this up, see the Widgetfinger help section on it.

Let us know if you have any thoughts about this or any other Widgetfinger features, we love to hear from you. If you’ve never tried Widgetfinger before, we encourage you to give it a shot, and let us know what you think.