philnash / bitly

🗜 A Ruby wrapper for the bit.ly API
https://rubygems.org/gems/bitly
MIT License
451 stars 139 forks source link

OAuth2 library is too old #18

Closed chiran closed 12 years ago

chiran commented 12 years ago

Bitly client is using oauth >= 0.1.1, but the latest OAuth2 (0.5.1) has moved off pretty far.

For example, line 30 of lib/bitly/v3/oauth.rb

@access_token ||= ::OAuth2::AccessToken.new(client, token, nil, nil, params)

is not compatible with new OAuth2 AccessToken constructor

def initialize(client, token, opts={})

We are depending on oauth2 via two different routes and Bitly client's version is too old to be usable. Can you look into this?

philnash commented 12 years ago

Hi, I will take a look into this. Thanks.

philnash commented 12 years ago

So, the oauth2 library changed between versions 0.4.x and 0.5.x to break this. The updated version 0.7.0 will sort this.