Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a twitter oauth app that displays your friend's timeline minus protected updates

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
Octocat-spinner-32 config.ru
README.md

lifeline

Another oauth experiment. Share info with sinatra and twitter.

Installation

It's a sinatra app, packaged as a gem, deployed as a rack app.

% sudo gem install bundler
% gem bundle
% bin/rake repackage
% sudo gem install pkg/lifeline*.gem

Deployment

Use passenger and a config.ru like this:

Example config.ru

require 'rubygems'
require 'lifeline'

DataMapper.setup(:default, "mysql://atmos:s3cr3t@localhost/lifeline_production")

ENV['LIFELINE_READKEY'] = /\w{18}/.gen  # this should really be what twitter gives you
ENV['LIFELINE_READSECRET'] = /\w{24}/.gen # this should really be what twitter gives you

class LifelineSite < Lifeline::App
  set :public,      File.expand_path(File.dirname(__FILE__), "public")
  set :environment, :production
end

run LifelineSite

testing

% gem bundle
% bin/rake
Something went wrong with that request. Please try again.