Demonstration of error in signet gem's OAuth2 Client, wherein the client cannot consume the authorization_uri values it produces. Error occurs when run against the current version of the signet gem (0.6.0 at time of writing).
To reproduce error:
$ bundle install
$ bundle exec ruby signet_oauth2_client_error.rb
Fix created and pull request issued. To demonstrate fix, update Gemfile line 3 to:
gem 'signet', git: 'https://github.com/swifthand/signet.git', branch: 'oauth2-authorization-uri-error'
Then
$ bundle install
$ bundle exec ruby signet_oauth2_client_error.rb