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
Fixjour do | |
define_builder(User) do |klass, overrides| | |
num = counter(:user) | |
klass.new( | |
:first_name => "Test#{num}", | |
:last_name => 'User', | |
:email => "user#{num}@totallyvaliddomain.com", | |
:password => 'password', | |
:password_confirmation => 'password', | |
:license => 'fakelicensenumber' |
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
; ---------------------------------------------------------------------- | |
; reload-buffer | |
; Seriously, why doesn't this already exist? Reloads the current | |
; buffer. find-alternate-file will sort of already do this; if you do | |
; not supply an argument to it it will reload the current | |
; buffer... but it will switch you to another buffer when it does | |
; it. All this function does is find-alt and then switch you back. | |
(defun reload-buffer() | |
(interactive) | |
(let ((buffername (buffer-name))) |
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
log.debug false | |
# STDOUT => D, [2011-08-15T10:38:03.868973 #7762] DEBUG -- : nil | |
# => true | |
log.debug { false } | |
# STDOUT => D, [2011-08-15T10:38:08.492862 #7762] DEBUG -- : false | |
# => true | |
log.log Logger::DEBUG, false | |
# STDOUT => D, [2011-08-15T10:38:27.956344 #7762] DEBUG -- : false |
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
11:57:51 dbrady@shinything:~/.rvm ruby-1.9.2-p290 | |
∫ type __rvm_rvmrc_key | |
__rvm_rvmrc_key is a function | |
__rvm_rvmrc_key () | |
{ | |
printf "$1" | time rspec '[#/.=]' _; | |
return $? | |
} |
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
11:49:52 dbrady@shinything:~/devel ruby-1.9.2-p290 | |
∫ set -x; cd coffer; set +x | |
+ cd coffer | |
+ builtin cd coffer | |
+ local result=0 | |
+ __rvm_project_rvmrc | |
+ local working_dir | |
+ [[ -n /Users/dbrady/.rvm/scripts ]] | |
+ source /Users/dbrady/.rvm/scripts/initialize | |
++ [[ -n 3.2.48(1)-release ]] |
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
11:48:50 dbrady@shinything:~ ruby-1.9.2-p290 | |
∫ type cd | |
cd is a function | |
cd () | |
{ | |
builtin cd "$@"; | |
local result=$?; | |
__rvm_project_rvmrc; | |
__rvm_after_cd; | |
return $result |
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
# Does RVM now use some kind of file db system to remember .rvmrc files? | |
# The beginning of the (rather long) error message makes me wonder... | |
15:44:00 dbrady@shinything:~ | |
∫ cd devel/coffer | |
rspec: No such file or directory | |
0.00 real 0.00 user 0.00 sys | |
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
# I just created the pants/ folder and put this .rvmrc in it: | |
# | |
# rvm use ruby-1.9.2 | |
# | |
# Note that rake 0.8.7 is the only gem in my global gemset, so | |
# rspec ISN'T EVEN INSTALLED NOW. | |
15:19:50 dbrady@shinything:~/devel/pants ruby-1.9.2-p290@coffer | |
∫ . .rvmrc | |
Using /Users/dbrady/.rvm/gems/ruby-1.9.2-p290 |
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
# After updating rvm, it is surprised and alarmed by .rvmrc files. | |
# It doesn't recognize them as trusted, and then crashes after | |
# approving them. Which means EVERY time I cd inside a project with | |
# an .rvmrc file, this happens: | |
# | |
# (Note that I am in ruby-1.9.2-p290@adsel. The 'coffer' directory | |
# has an .rvmrc file which specifies ruby-1.9.2-p180@coffer.) | |
15:05:52 dbrady@shinything:~/devel ruby-1.9.2-p290@adsel | |
∫ cd coffer |
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
10:09:09 dbrady@shinything:~/projects (git:develop:928475c) ruby-1.9.2-p290 | |
∫ cd adsel | |
rspec: No such file or directory | |
0.00 real 0.00 user 0.00 sys | |
Usage: | |
db database_file {{key}} {{value}} # set | |
db database_file {{key}} # get |