An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
| # unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
| rails_env = ENV['RAILS_ENV'] || 'production' | |
| # 16 workers and 1 master | |
| worker_processes (rails_env == 'production' ? 16 : 4) | |
| # Load rails+github.git into the master before forking workers | |
| # for super-fast worker spawn times | |
| preload_app true |
| require File.dirname(__FILE__) + '/spec_helper' | |
| describe "The library itself" do | |
| Spec::Matchers.define :have_no_tab_characters do | |
| match do |filename| | |
| @failing_lines = [] | |
| File.readlines(filename).each_with_index do |line,number| | |
| @failing_lines << number + 1 if line =~ /\t/ | |
| end | |
| @failing_lines.empty? |
| db/*.sqlite3 | |
| log/*.log | |
| tmp/**/* | |
| bin/* | |
| vendor/gems/ruby/1.8/* | |
| !vendor/gems/ruby/1.8/cache/ |