Skip to content

Instantly share code, notes, and snippets.

View chrislerum's full-sized avatar

Chris Lerum chrislerum

View GitHub Profile
function parse_git_branch {
# git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/{ :branch => \"\1\" }/'
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
spec spec/controllers/attachments_controller_spec.rb
** Erubis 2.6.5
F
1)
'AttachmentsController when trying to access attachment as a guest should fail to access index' FAILED
expected redirect to "/users/sign_in", got redirect to "http://test.host/users/sign_in?unauthenticated=true"
./spec/controllers/attachments_controller_spec.rb:24:
Finished in 0.01157 seconds
rvm --trace 1.9.2-head --default
--trace 1.9.2-head --default
rvm 0.1.39 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
+ [[ -z '' ]]
+ [[ ! -z ruby-1.9.2-head ]]
+ rvm_action=use
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
1.9.2-head ~
rvm list
rvm rubies
ruby-1.8.7-p174 [ x86_64 ]
ruby-1.8.7-p248 [ x86_64 ]
=> ruby-1.9.2-head [ x86_64 ]
1.9.2-head ~
rvm --debug install 1.8.7
info: Installing Ruby from source to: /Users/chris/.rvm/rubies/ruby-1.8.7-p174
info: Downloading ruby-1.8.7-p174, this may take a while depending on your connection...
debug: Fetching ruby-1.8.7-p174.tar.gz
debug: No archive or no MD5, downloading
% Total % Received % Xferd Average Speed Time Time Time Current
1.9.2-head ~
gem list -r unicorn
*** REMOTE GEMS ***
WARNING: RubyGems 1.2+ index not found for:
http://rubygems.org/
RubyGems will revert to legacy indexes degrading performance.
Bulk updating Gem source index for: http://rubygems.org/
class Branch < ActiveRecord::Base
belongs_to :tree
has_many :leaves
validates_presence_of :name, :message => "A branch without a name? WTF?"
validates_presence_of :tree_id, :message => "was not there dude."
end
[Wed Jun 02 04:44:49 2010] [error] [client 59.100.191.39] Premature end of script headers: favicon.ico
[ pid=18452 file=ext/apache2/Hooks.cpp:700 time=2010-06-02 04:44:49.446 ]:
The backend application (process 18580) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application.
/home/chris/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/mysql_adapter.rb:615: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.2dev (2010-06-01 revision 28121) [i686-linux]
-- control frame ----------
c:0056 p:---- s:0298 b:0298 l:000297 d:000297 CFUNC :options
c:0055 p:0041 s:0293 b:0293 l:000292 d:000292 METHOD /home/chris/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/mysql_adapter.rb:615
c:0054 p:0048 s:0289 b:0289 l:000288 d:000288 METHOD /home/chris/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0.beta3/lib/active_record/conn
cyrus ~: cat /home/chris/.rvm/bin/passenger_ruby
#!/usr/bin/env sh
. "/home/chris/.rvm/environments/ruby-1.9.2-head"
exec ruby "$@"
cyrus ~: rvm list
rvm rubies
ruby-1.9.2-head [ i386 ]
cyrus ~: rvm 1.9.2-head --default
cyrus ~: rvm 1.9.2-head --passenger
cyrus ~: ruby -v
ruby 1.9.2dev (2010-06-01 revision 28121) [i686-linux]