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.
- data/lib/octokit/client/connection.rb +8 -7
- data/lib/octokit/version.rb +1 -1
- metadata +6 -6
@@ -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 |
|
20
|
-
|
19
|
+
con = Faraday::Connection.new(options) do |builder|
|
20
|
+
builder.use Faraday::Response::RaiseError
|
21
21
|
unless raw
|
22
|
-
|
22
|
+
builder.use Faraday::Response::Mashify
|
23
23
|
case format.to_s.downcase
|
24
|
-
when 'json' then
|
25
|
-
when 'xml' then
|
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
|
-
|
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
|
data/lib/octokit/version.rb
CHANGED
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 1
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
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-
|
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.
|
347
|
+
rubygems_version: 1.6.2
|
348
348
|
signing_key:
|
349
349
|
specification_version: 3
|
350
350
|
summary: Wrapper for the GitHub API
|