Roster
A simple api client and Sinatra plugin for interacting with Dugout
Installation
Add this line to your application's Gemfile:
gem 'roster'
And then execute:
$ bundle
Or install it yourself as:
$ gem install roster
Usage
Sinatra
Roster.configure do |config|
config.host = THIS_APPS_HOST
config.endpoint = DUGOUT_URL
end
class MyApp < Sinatra::Base
register Roster::Sinatra
get '/' do
puts "You are now authenticated as: #{current_user.login}"
end
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request