Skip to content

Instantly share code, notes, and snippets.

View cbrunsdon's full-sized avatar

Clarke Brunsdon cbrunsdon

View GitHub Profile
@cbrunsdon
cbrunsdon / gist:9103587
Created February 19, 2014 23:10
~/.git_template/hooks/pre-commit
#!/bin/sh
set -e
[ ! -f Gemfile ] || git diff --exit-code --cached -- Gemfile >/dev/null || bundle check
exec "$(git --exec-path)/../../share/git-core/templates/hooks/pre-commit.sample"
@cbrunsdon
cbrunsdon / gist:9397726
Created March 6, 2014 19:38
jenkins shell
#!/bin/sh -ex
echo "hello"
@cbrunsdon
cbrunsdon / gist:9398144
Created March 6, 2014 19:58
jenkins sh with real stuff
#!/bin/sh -ex
bundle install
RAILS_ENV=test bundle exec rake db:schema:load
bundle exec rspec
@cbrunsdon
cbrunsdon / gist:41b0ca59f8ea214d9204
Created December 24, 2014 04:31
leaky payment methods?
require 'spec_helper'
describe Spree::Order, :type => :model do
let(:order) { Spree::Order.new }
before do
order.payments << FactoryGirl.create(:payment, state: payment_state, order: order)
end
let(:payment_state) { 'failed' }
@cbrunsdon
cbrunsdon / gist:e1b1b077fc6e5d659d60
Created March 8, 2016 19:30
solidus_social forks
https://github.com/Domenoth/solidus_social
https://github.com/skyach/solidus_social
https://github.com/DynamoMTL/spree_social/tree/solidus
https://github.com/brunoflores/spree_social/tree/solidus
@cbrunsdon
cbrunsdon / keybase.md
Created May 2, 2016 16:56
keybase.md

Keybase proof

I hereby claim:

  • I am cbrunsdon on github.
  • I am cbrunsdon (https://keybase.io/cbrunsdon) on keybase.
  • I have a public key whose fingerprint is 0E70 DDE4 CA9F 894F 91E5 3A4C 5565 23B3 B4D5 F050

To claim this, I am signing this object: