peter-murach/github — pull request #148 by cih (2014-01-22 11:17:14+00:00)
Title: Restrict faraday gem to version 0.8.x

Hi Guys,

I was using the `github_api` gem in a simple script and the `faraday` gem version 0.9.0 was installed, I was doing something like the following.

```
github = Github.new oauth_token: "my_auth_token"
repos = github.repos.list user: "cih"
```

I was getting the following error, so I checked out the `faraday` changelog and switching to version `0.8.0` worked fine.

```
/Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/faraday-0.9.0/lib/faraday/options.rb:31:in `block in update': undefined method `adapter=' for # (NoMethodError)
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/faraday-0.9.0/lib/faraday/options.rb:20:in `each'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/faraday-0.9.0/lib/faraday/options.rb:20:in `update'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/faraday-0.9.0/lib/faraday/options.rb:7:in `from'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/faraday-0.9.0/lib/faraday/connection.rb:59:in `initialize'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/faraday-0.9.0/lib/faraday.rb:70:in `new'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/faraday-0.9.0/lib/faraday.rb:70:in `new'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/github_api-0.11.1/lib/github_api/connection.rb:93:in `connection'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/github_api-0.11.1/lib/github_api/request.rb:40:in `request'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/github_api-0.11.1/lib/github_api/request.rb:13:in `get_request'
from /Users/chrisholmes/.rvm/gems/ruby-1.9.3-p194@jasmina/gems/github_api-0.11.1/lib/github_api/repos.rb:153:in `list'
from commits_counter.rb:10:in `block in

'
from commits_counter.rb:8:in `each'
from commits_counter.rb:8:in `

'
```

Don't know if anyone has experienced this but have created this pull request for discussion.

Chris