This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspiration | |
# http://github.com/jnstq/rails-nginx-passenger-ubuntu | |
# sudo this sudo that bollocks | |
sudo -i | |
# system-related stuff | |
apt-get install htop strace sysstat | |
dpkg-reconfigure sysstat | |
apt-get install ntp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure RVM is up-to-date | |
rvm get head | |
rvm reload | |
# Install ruby-1.9.2 | |
rvm install 1.9.2 | |
# Create a new Gemset | |
# (Optional, I like it though since makes dependency issues more transparent. EX: rake 0.8.7 vs 0.9.2) | |
rvm gemset create rails-head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Administrator Factories | |
Factory.define :administrator do |f| | |
f.sequence(:email) {|n| "admin#{n}@test.com" } | |
f.password "admintester" | |
end | |
# Site Factories | |
Factory.define :site do |f| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryGirl.define do | |
# Administrator Factories | |
factory :administrator do |f| | |
f.sequence(:email) {|n| "admin#{n}@test.com" } | |
f.password "admintester" | |
end | |
# Site Factories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Projects/Gems/shoulda-matchers[master]% ruby -v | |
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0] | |
Projects/Gems/shoulda-matchers[master]% gem list | |
*** LOCAL GEMS *** | |
rake (0.8.7) | |
Projects/Gems/shoulda-matchers[master]% gem install bundler | |
Fetching: bundler-1.0.18.gem (100%) | |
Successfully installed bundler-1.0.18 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Projects/Gems/shoulda-matchers[master]% bundle exec rake | |
(in /Users/chaffeqa/Projects/Gems/shoulda-matchers) | |
>> bundle install --gemfile=/Users/chaffeqa/Projects/Gems/shoulda-matchers/gemfiles/3.0.3.gemfile | |
Fetching source index for http://rubygems.org/ | |
Using rake (0.8.7) | |
Installing abstract (1.0.0) | |
Installing activesupport (3.0.3) | |
Installing builder (2.1.2) | |
Using i18n (0.6.0) | |
Installing activemodel (3.0.3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Projects/Gems/shoulda-matchers[master]% bundle exec rake cucumber | |
(in /Users/chaffeqa/Projects/Gems/shoulda-matchers) | |
$ cd /Users/chaffeqa/Projects/Gems/shoulda-matchers/tmp/aruba | |
$ rails new testapp | |
/Users/chaffeqa/.rvm/gems/ruby-1.8.7-p352@shoulda-matchers/gems/bundler-1.0.18/lib/bundler/definition.rb:14:in `build': /Users/chaffeqa/Projects/Gems/shoulda-matchers/Users/chaffeqa/Projects/Gems/shoulda-matchers/Gemfile not found (Bundler::GemfileNotFound) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.1.0' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.expand_path('../boot', __FILE__) | |
require 'rails/all' | |
if defined?(Bundler) | |
# If you precompile assets before deploying to production, use this line | |
Bundler.require *Rails.groups(:assets => %w(development test)) | |
# If you want your assets lazily compiled in production, use this line | |
# Bundler.require(:default, :assets, Rails.env) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'bundler' | |
require 'benchmark' | |
REGEXPS = [ | |
/^no such file to load -- (.+)$/i, | |
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i, | |
/^Missing API definition file in (.+)$/i, | |
/^cannot load such file -- (.+)$/i, |
OlderNewer