This file contains 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
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ rvm list | |
rvm rubies | |
ruby-1.8.7-p174 [ x86_64 ] | |
ruby-1.8.7-p302 [ x86_64 ] | |
ruby-1.9.2-head [ x86_64 ] | |
ruby-1.9.2-p0 [ x86_64 ] | |
ruby-1.9.2-rc2 [ ] |
This file contains 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
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ rvm use 1.9.2-p0 | |
info: Using ruby 1.9.2 p0 | |
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ rvm gemset create railsbbq | |
info: Gemset 'railsbbq' created. | |
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ sudo gem install bundler --pre | |
Password: | |
Successfully installed bundler-1.0.0.rc.6 | |
1 gem installed |
This file contains 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
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ rvm use 1.9.2-p0 | |
info: Using ruby 1.9.2 p0 | |
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ rvm gemset create railsbbq | |
info: Gemset 'railsbbq' created. | |
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ sudo gem install bundler --pre | |
Password: | |
Successfully installed bundler-1.0.0.rc.6 | |
1 gem installed |
This file contains 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
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ rvm info | |
system: | |
system: | |
uname: "Darwin Johnny-Goodmans-MacBook-Pro.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386 i386" | |
zsh: "zsh 4.3.9 (i386-apple-darwin10.0)" | |
bash: "GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)" | |
rvm: | |
version: "rvm 0.1.45 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" |
This file contains 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
Johnny-Goodmans-MacBook-Pro:~ johnnygoodman$ pwd | |
/Users/johnnygoodman | |
Johnny-Goodmans-MacBook-Pro:~ johnnygoodman$ mate .bash | |
alias sleep="sudo pmset -a hibernatemode 5" | |
alias wake="sudo pmset -a hibernatemode 0" | |
alias mysql="/usr/local/mysql/bin/mysql" | |
alias mysqladmin="/usr/local/mysql/bin/mysqladmin" | |
alias gst="git status" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. |
This file contains 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
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ rvm use 1.9.2-p0 | |
info: Using ruby 1.9.2 p0 | |
Johnny-Goodmans-MacBook-Pro:railsbbq johnnygoodman$ rvm info | |
system: | |
system: | |
uname: "Darwin Johnny-Goodmans-MacBook-Pro.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386 i386" | |
zsh: "zsh 4.3.9 (i386-apple-darwin10.0)" | |
bash: "GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)" |
This file contains 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
class Expense | |
include MongoMapper::Document | |
key :expense_id. ObjectId | |
key :amount, Integer | |
key :date, Date | |
key :notes, String | |
key :tags, Array | |
key :category, Array |
This file contains 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
default_report_expenses = Xpenser.get_default_report | |
puts default_report_expenses.class # => HTTParty::Response | |
puts default_report_expenses.to_a.class # => Array |
This file contains 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
default_report_expenses = Xpenser.get_default_report.to_ary | |
puts default_report_expenses.class # => Array | |
default_report_expenses.each do |row| #=> Warnings Galore |
This file contains 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
default_report_expenses = Array(Xpenser.get_default_report) | |
puts default_report_expenses.class # => Array | |
default_report_expenses.each do |row| # => Warning Messages In Abundance |