Starch, my accidental static site generator

I was working on a basic static site (more on that to come in a later post), and I wanted to streamline my development workflow with some automation of repetitive development tasks. Specifically, I wanted to be able to: Launch a local development server with livereload Automatically compile SASS and…

READ MORE

Calculate the moon's phase with Lunartic

I recently released my second gem, Lunartic. It allows you to easily calculate the phase of the moon on a given date. Check it out! $ gem install lunartic $ irb irb(main):001:0> require 'lunartic' => true # get moon data for today irb(main):002:0> moon = Lunartic.…

READ MORE

Testing Thor command lines with RSpec

My recent adventures have had me working with both RSpec and Thor for the first time. I had to do a little tinkering to come up with a strategy for using the two together harmoniously -- here's what I found. Handling Input The cool thing about Thor is that you…

READ MORE

Introducing vhost_writer

I'm excited to say that I've released my first Ruby gem, vhost_writer! It's a command-line tool that will automatically generate virtual host configuration files based on a directory of existing websites and a given ERB template. You can give it a shot by installing it with gem: $ gem install…

READ MORE