All posts in Ruby on Rails

Today, Awexome Labs released version 0.1.0 of our new gemĀ HasHeartbeat. This Rubygem can be used by Ruby on Rails developers to add a lightweight heartbeat endpoint to their new and existing applications. Check out the gem source, now.

We extracted HasHeartbeat from work we’ve been using in production applications built internally and for clients over the past year. The premise is simple: add a route/endpoint/controller-action to your application that can be struck from a simple monitoring service that tells you basic things you need to know at a glance:

  • Is my application up and running?
  • Can my application connect to its database?

HasHeartbeat adds a /heartbeat path to your application, which responds with a 200 OK or 500 Error HTTP Status, as well as a helpful text response that is easily parsed by your favorite monitoring service. At your option, you can configure the heartbeat action to attempt to load a model from your database to verify that your application is successfully communicating with your database.

In practice, we’ve configured New Relic, Codebase, Pingdom, and client proprietary monitoring services against this feature set, striking the /heartbeat path on regular intervals and connecting that response to monitoring. It’s been a life-saver for tracking uptime, as well as providing detailed transparency of application availability to our clients — without forcing us to expose the internal workings of our hosting solutions.

Dropping in a working heartbeat endpoint is now as simple as adding “has_heartbeat” to your Gemfile.

Learn more about HasHeartbeat on github.
Check information on RubyGems.


We’ve released a small update to our DoesOpenGraph rubygem, useful for connecting to the Facebook Graph API in your ruby environments of all shapes and sizes.

The new minor version, 0.2.1, upgrades the gem’s dependencies to make integrating DoesOpenGraph in your current environments a bit easier. There are also some slight changes to the Readme documentation.

View DoesOpenGraph on github

Check out the figures and facts from the Rubygems page

While this is a very small fix release, we have a number of updates and changes planned for DoesOpenGraph in the future. Feel free to fork, follow, and use the project. We’re cooking up some enhancements in the areas of console access and a feather-light integration with lighter frameworks such as Sinatra.