Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
require 'yaml' | |
require 'pathname' | |
require 'active_support/all' | |
def convert(f) | |
filename = Pathname.new(f) | |
yaml = YAML.load_file(filename) | |
name = filename.basename('.yml').to_s | |
File.write(filename, { |