I hereby claim:
- I am alan on github.
- I am alankennedy (https://keybase.io/alankennedy) on keybase.
- I have a public key ASASr190SzQjhENQqbZDLKG8JouRkUrjmD9JhEPgZk4tNAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
it "should send params encoded as ISO-8859-1" do | |
# pending "Rspec 2 does not support UTF8 characters" | |
post "/", "photo" => uploaded_file, "foo" => "bar", "utf8" => "☃" | |
last_request.POST["foo"].should == "bar" | |
last_request.POST["utf8"].should == "\xE2\x98\x83".force_encoding("BINARY") | |
end | |
1) Rack::Test::Session uploading a file should send params encoded as ISO-8859-1 | |
Failure/Error: last_request.POST["foo"].should == "bar" | |
undefined method `[]' for nil:NilClass |
#!/bin/bash | |
DOTVIM="/Users/`whoami`/.vim" | |
JQUERY=12107 | |
if [ ! -e `which git` ] | |
then | |
echo "You need git. Try running install_git" | |
exit 0 | |
fi |
bluepilld[54413]: [bookit:backend_app] Going from down => starting | |
bluepilld[54413]: [bookit:backend_app] #<StateMachine::Transition attribute=:state event=:tick from="starting" from_name=:starting to="up" to_name=:up> | |
bluepilld[54413]: [bookit:backend_app] Going from starting => up | |
bluepilld[54413]: [bookit:backend_app] mem_usage: [16MB] | |
bluepilld[54413]: [bookit:backend_app] #<StateMachine::Transition attribute=:state event=:tick from="up" from_name=:up to="up" to_name=:up> | |
bluepilld[54413]: [bookit:backend_app] Executing restart command: /usr/bin/env APP_ENV=production script/bookit_ctl restart | |
bluepilld[54413]: [bookit:backend_app] #<StateMachine::Transition attribute=:state event=:tick from="up" from_name=:up to="up" to_name=:up> |
module Bluepill | |
module Triggers | |
class EmailNotifier < Bluepill::Trigger | |
def initialize(process, options = {}) | |
@notify_on = [options.delete(:notify_on)] | |
super | |
end | |
def notify(transition) | |
if @notify_on.include?(transition.to_name) |
require 'rubygems' | |
require 'redis' | |
adapter = Redis.new(:host => '127.0.0.1', | |
:port => 6379, | |
:thread_safe => true, | |
:db => 10) | |
adapter.flushdb |