Skip to content

Instantly share code, notes, and snippets.

{
"recipes": [
"yumrepo::epel",
"users",
"sudo",
"firewall",
"heartbeat",
"haproxy",
"monit",
"log-backups",
Installing Ruby from source to: /Users/austin_schneider/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...
ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracted to /Users/austin_schneider/.rvm/src/ruby-1.9.2-p290 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/austin_schneider/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 278k 0 0:00:01 0:00:01 --:--:-- 317k
Extracting yaml-0.1.4.tar.gz to /Users/austin_schneider/.rvm/src
Configuring yaml in /Users/austin_schneider/.rvm/src/yaml-0.1.4.
Installing Ruby from source to: /Users/austin_schneider/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...
ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracted to /Users/austin_schneider/.rvm/src/ruby-1.9.2-p290 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/austin_schneider/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/austin_schneider/.rvm/src
Configuring yaml in /Users/austin_schneider/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/austin_schneider/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/austin_schneider/.rvm/usr
ruby-1.9.2-p290 - #configuring
[2011-07-27 15:47:43] make
/usr/bin/gcc-4.2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -arch x86_64 -fno-common -pipe -L. -Wl,-syslibroot /Developer/SDKs/MacOSX10.7.sdk -arch x86_64 -L/usr/local/lib -Wl,-u,_objc_msgSend main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o dmyext.o -lpthread -ldl -lobjc -o miniruby
rbconfig.rb updated
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./enc/make_encmake.rb --builtin-encs="ascii.o us_ascii.o unicode.o utf_8.o" --builtin-transes="newline.o" enc
describe Item do
describe "total" do
before do
@item = Item.new
@item.stub!(:calculate_total => 123)
end
it "returns the calculated total" do
@item.total.should == 123
end
class Post
extend ActiveModel::Naming
include ActiveModel::Validations
include ActiveModel::Conversion
validates :title, :presence => true
def self.find(id)
new.tap { |l| l.record = self::Record.find(id) }
end
class Person < ActiveRecord::Base
has_many :friends do
def clear
raise "Do not use this method"
end
end
end
module MyExtension
undef_method :clear
undef_method :<<
undef_method :delete
end
class Person < ActiveRecord::Base
has_many :friends, :extend => MyExtension
end
class Parser
def errors
@errors ||= []
end
end
describe Parser do
describe '#errors' do
it "is an empty list" do
subject.errors.should == []
# IN AMAZON EC2 SERVER #
########################
sudo su
apt-get -y update && apt-get -y upgrade
apt-get install vim git-core curl openssh-server openssh-client python-software-properties build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libcurl4-openssl-dev aptitude
/usr/sbin/groupadd wheel
/usr/sbin/visudo
(paste bottom)
%wheel ALL=(ALL) ALL