Direct ruby port of the gpsoauth python lib: https://github.com/simon-weber/gpsoauth
Add this line to your application's Gemfile:
gem 'gpsoauth-rb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gpsoauth-rb
require 'gpsoauth'
The gem is available as open source under the terms of the MIT License.