Tag Archives: ruby

Delegating Nicely

Usually we use delegation to help separate responsibilities and avoid mashing all responsibility and logic into the the one object. This is a great goal and the first one SOLID lists. For those who might not have seen a concrete … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Hacker News – In your Terminal

Over the Christmas period I found time to write a Ruby Gem called hacker_term which I’ve just published to RubyGems. It allows you to see a list of the front page HN stories, sort them by title, score and number of … Continue reading

Posted in Uncategorized | Tagged , , , , | 3 Comments

Removing most – not all! – gems on Windows using Powershell

We’ve started using bundle package to package all our gems prior to deployment. But before I push our code up to take care of this I need to clean down all the globally installed gems on each production machine. But … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Using RSpec Mocks outside of tests

When I started mocking objects using RSpec Mocks, I never thought I’d end up using them outside of actual unit testing. But this week, while working on a new internal gem to build out how we register documents, I found … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Sharing is Caring – Sharing filters between applications

We’ve been creating a set of Rack applications that we are tying together using Padrino. Each application represents an API endpoint for a set of related services on a distinct resource, e.g. /customers or /invoices etc. This is nice. But … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Choosing Padrino

We’re writing a RESTful API for our platform – like just about everyone else. We needed a thin framework layer between the web and our service classes. We craved some organisation. We wanted to learn from the Ruby community how … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Running Torquebox as a Windows Service

If you are planning on running Torquebox – the JRuby application server – as a Windows service then let me save you a bit of searching. The thing to remember is that Torquebox 2.x is – under the bonnet – … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment