hybridgroup-octokit 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,18 +16,19 @@ module Octokit
16
16
 
17
17
  options.merge!(:params => { :access_token => oauth_token }) if oauthed? && !authenticated?
18
18
 
19
- Faraday::Connection.new(options) do |connection|
20
- connection.use Faraday::Response::RaiseError
19
+ con = Faraday::Connection.new(options) do |builder|
20
+ builder.use Faraday::Response::RaiseError
21
21
  unless raw
22
- connection.use Faraday::Response::Mashify
22
+ builder.use Faraday::Response::Mashify
23
23
  case format.to_s.downcase
24
- when 'json' then connection.use Faraday::Response::ParseJson
25
- when 'xml' then connection.use Faraday::Response::ParseXml
24
+ when 'json' then builder.use Faraday::Response::ParseJson
25
+ when 'xml' then builder.use Faraday::Response::ParseXml
26
26
  end
27
27
  end
28
- connection.basic_auth authentication[:login], authentication[:password] if authenticate and authenticated?
29
- connection.adapter(adapter)
28
+ builder.adapter(adapter)
30
29
  end
30
+ con.basic_auth authentication[:login], authentication[:password] if authenticate and authenticated?
31
+ con
31
32
  end
32
33
  end
33
34
  end
@@ -1,3 +1,3 @@
1
1
  module Octokit
2
- VERSION = "0.6.2".freeze unless defined?(Octokit::VERSION)
2
+ VERSION = "0.6.3".freeze unless defined?(Octokit::VERSION)
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hybridgroup-octokit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease: false
4
+ hash: 1
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 2
10
- version: 0.6.2
9
+ - 3
10
+ version: 0.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wynn Netherland
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-04-09 00:00:00 -07:00
20
+ date: 2011-04-10 00:00:00 -07:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -344,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
344
344
  requirements: []
345
345
 
346
346
  rubyforge_project:
347
- rubygems_version: 1.3.7
347
+ rubygems_version: 1.6.2
348
348
  signing_key:
349
349
  specification_version: 3
350
350
  summary: Wrapper for the GitHub API