Installing Ruby 2.0.0 with Dtrace Support

The aim of this post is to guide the reader through the process of installing ruby 2.0.0 into rbenv with dtrace probes enabled. As rbenv uses ruby-build, which currently downloads and compiles a copy of openssl rather than using the one homebrew i prefer to use the homebrew one. Note that you MUST install xcode before installing anything, then install homebrew, rbenv, and lastly openssl. ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" brew install rbenv brew install openssl Next to overcome the fact that OSX doesn’t have an openssl ca certificate bundle, use the following brew to create and maintain one using the CA certs stored in your keychain....

February 26, 2013 2 min

What is HMAC Authentication and why is it useful?

To start with a little background, then I will outline the options for authentication of HTTP based server APIs with a focus on HMAC and lastly I will provide some tips for developers building and using HMAC based authentication. Recently I have been doing quite a bit of research and hacking in and around server APIs. Authentication for these type APIs really depends on the type of service, and falls into a couple of general categories:...

October 20, 2012 7 min

Building Ruby Projects with Bundler and the Bamboo Ruby Plugin

The latest release of the Ruby plugin I develop for Atlassian Bamboo now includes some new configuration options for Bundler along with a number of other additions and improvements. In this post I want to focus on the new options available in the Bundler task, and illustrate how they are used to make Ruby builds simpler. In the past with my plugin the administrator of the CI server had two options when managing the gems associated with a build:...

June 20, 2012 3 min

Bundler gems and binstubs

I have been working on an update of my Bamboo ruby plugin which uses bundler to install all the gems for a given project within the working copy of the project and then run rake using these gems. The aim of this post is to illustrate how this is done and how to craft an environment to run ruby once gems are “staged” within a working copy. The aim of this post is to illustrate how a rails project is staged using bundler without installing any gems in the base ruby installation....

June 11, 2012 3 min

Tips for Bamboo Plugin Developers

Having recently developed a plugin (Ruby Rake Plugin) for Atlassian’s Bamboo continuous integration (CI) server I thought I would put together a list of tips for those looking to do the same. As there are some great documents provided by Atlassian on how to get started with plugin development I am not going to go into a lot of detail in this area, it is assumed you already messed around a bit with the Plugin SDK....

December 7, 2011 4 min

Hacking rails on Ubuntu with rvm

Over the last few days I have been familiarising myself with some of the rails source code and surveying it for use in my own projects. In doing so I noticed there were quite a few gotchas getting Ubuntu and ruby set up RVM to successfully run the tests suites in rails. This post aims to provide a step by step guide to getting a clean ubuntu installation ready to test and hack on rails, note I am using Ubuntu 11....

July 24, 2011 2 min

Installing Ruby with RVM on Ubuntu 10.10

Been installing RVM on anything that runs *nix lately, ran into some issues with using this great tool on Ubuntu 10.10. After a bit of reading I discovered a couple of solutions, either I could build and install some of these libraries using RVM, or I could locate and install the dev versions of these libraries in Ubuntu. As I like my libraries updated for security issues and such like I took the later option....

December 6, 2010 2 min