#!/usr/local/bin/ruby should be #!/usr/bin/env ruby