Public Gists by tannerburson

Gravatar
Fri Jun 26 16:18:23 -0700 2009
1
2
3
<?
//This is terribly insecure. We don't even pretend that we're authenticating here.
//We take parameters straight from _GET.
Gravatar
Fri Jun 26 16:09:19 -0700 2009
1
2
3
import android
import httplib
import urllib
Gravatar
Mon May 18 13:36:54 -0700 2009
1
2
3
#This should insert all the rack test methods into your current test context.
#Modify as appropriate for your specific test framework.
#If you're including the Sinatra::Test in each of your tests, you'll need to
Gravatar
Wed May 13 13:15:14 -0700 2009
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
gem 'rack', '=0.9.1'
Gravatar
Sat Mar 07 16:11:31 -0800 2009
1
2
3
Test::Unit::TestCase.send :include, Sinatra::Test
 
class Waste < Sinatra::Base
Gravatar
Thu Feb 12 14:26:22 -0800 2009
1
2
3
# NAME: authinabox
# VERSION: 1.01 (Dec 27, 2008)
# AUTHOR: Peter Cooper [ http://www.rubyinside.com/ github:peterc twitter:peterc ]
Gravatar
Sat Jan 31 19:52:25 -0800 2009
1
2
3
# This method is heavily adapted from the Rails method of determining the subdomain.
require 'rubygems'
require 'sinatra'
Gravatar
Tue Jan 20 14:42:18 -0800 2009
1
2
3
# Require sinatra/base instead of sinatra to avoid some of the magic
require 'sinatra/base'
 
Gravatar
Tue Jan 20 14:41:57 -0800 2009
1
2
3
# To use with thin
# thin start -p PORT -R config.ru
 
Gravatar
Mon Jan 19 20:11:10 -0800 2009
1
2
3
tanner@radical-edward:~/Code/tell-your-friends/app$ rake tyf:test(in /home/tanner/Code/tell-your-friends/app)
 
Account Model