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
... | |
group :development, :test do | |
gem 'rspec-rails' | |
gem 'capybara' | |
gem 'spork', '~> 0.9.0.rc' | |
... | |
gem 'rb-fsevent' # recommended for non-polling filesystem event notifications | |
gem 'growl' | |
gem 'guard' |
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
# config/initializers/app_config.rb | |
# An initializer that contains config stuff | |
# ... | |
class RedisConfig < Settingslogic | |
source "#{Rails.root}/config/redis.yml" | |
namespace 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
Rubinius Crash Report #rbxcrashreport | |
[[Exception]] | |
A toplevel exception occurred | |
Thread has been interrupted (Interrupt) | |
Backtrace: | |
{ } in Rubinius::Loader#signals at kernel/loader.rb:124 | |
Signal.run_handler at kernel/common/signal.rb:68 | |
Rubinius.received_signal at kernel/delta/rubinius.rb:240 |
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
Running: 'time rake spec' | |
== ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0] | |
Finished in 0.31999 seconds | |
5 examples, 0 failures | |
real 0m12.500s | |
user 0m10.200s | |
sys 0m1.676s |
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 'highline' | |
hl = HighLine.new | |
desc "Create an admin user for the current environment" | |
task :create_admin => :environment do | |
puts "\n== Creating an admin ==\n" | |
email = hl.ask(' Email: ') | |
password = hl.ask(' Password: ') { |q| q.echo = '*' } |
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
print "How old are you?", | |
age = raw_input() | |
print "How tall are you?", | |
height = raw_input() | |
print "How much do you weigh?", | |
weight = raw_input() | |
print "So, you're %r old, %r tall and %r heavy." % ( | |
age, height, weight) |
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
rbx-head-nhydra installing #dependencies | |
Pulling from origin hydra | |
Copying from repo to source... | |
rbx-head-nhydra - #configuring | |
rbx-head-nhydra - #compiling | |
ERROR: Error running '/Users/jacortinas/.rvm/wrappers/rbx-head/rake install', please read /Users/jacortinas/.rvm/log/rbx-head-nhydra/rake.log | |
ERROR: There has been an error while running '/Users/jacortinas/.rvm/wrappers/rbx-head/ruby ./configure --prefix=/Users/jacortinas/.rvm/rubies/rbx-head-nhydra --skip-system'. | |
Halting the installation. |
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
Gems: | |
gem 'cucumber' | |
gem 'cucumber-rails' | |
gem 'rspec' | |
gem 'rspec-rails' | |
gem 'capybara' | |
gem 'database_cleaner' | |
gem 'spork' | |
gem 'watchr' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> | |
<script type="text/javascript" src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.4/underscore-min.js"></script> | |
</head> | |
<body> | |
<p id="loading_msg">Loading...</p> | |
<script type="text/javascript"> | |
/* To being with, just in case the "$" is already taken in the global scope |
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
~/hack/mongoid@master ls | |
Gemfile Rakefile scripts/ | |
Gemfile.lock lib/ spec/ | |
LICENSE mongoid.gemspec | |
README.rdoc perf/ | |
~/hack/mongoid@master rake | |
(in /Users/jacortinas/hack/mongoid) | |
/Users/jacortinas/.rvm/rubies/ruby-1.9.2-p136/bin/ruby -S bundle exec rspec spec/integration/mongoid/attributes_spec.rb spec/integration/mongoid/callback_spec.rb spec/integration/mongoid/config/database_spec.rb spec/integration/mongoid/config/replset_database_spec.rb spec/integration/mongoid/config_spec.rb spec/integration/mongoid/contexts/enumerable_spec.rb spec/integration/mongoid/contexts/mongo_spec.rb spec/integration/mongoid/criteria_spec.rb spec/integration/mongoid/criterion/creational_spec.rb spec/integration/mongoid/criterion/destructive_spec.rb spec/integration/mongoid/criterion/exclusion_spec.rb spec/integration/mongoid/criterion/inclusion_spec.rb spec/integration/mongoid/criterion/inspection_spec.rb spec/integration/mongoid/criterion/modification_spec.rb spec/integration/mongoid/default_scope_spec.rb spec/integra |