A rubygem using prepatched dependencies has been made available by the Bibliotheca Anonoma for your convenience. Click the link for more info.
Clone into your ruby library path.
git clone git://github.com/arr2036/omnigollum.git
Omnigollum executes an OmniAuth::Builder proc/block to figure out which providers you've configured, then passes it on to omniauth to create the actual omniauth configuration.
To configure both omniauth and omnigollum you should add the following to your config.ru file.
require 'omnigollum'
require 'omniauth/strategies/twitter'
require 'omniauth/strategies/open_id'
options = {
# OmniAuth::Builder block is passed as a proc
:providers => Proc.new do
provider :twitter, 'CONSUMER_KEY', 'CONSUMER_SECRET'
provider :open_id, OpenID::Store::Filesystem.new('/tmp')
end,
:dummy_auth => false
}
# :omnigollum options *must* be set before the Omnigollum extension is registered
Precious::App.set(:omnigollum, options)
Precious::App.register Omnigollum::Sinatra
Must be at v0.99.5 (currently unreleased), replace the gem version with 6c4e12d58844d99909df or the current HEAD.
Merge the commits from here