octokit 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/octokit/configurable.rb +1 -1
- data/lib/octokit/default.rb +5 -2
- data/lib/octokit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaf322ac7d3e83973fb999b3b86545ac0f7785a8
|
4
|
+
data.tar.gz: d54d9c8bed549ac00c802f42f9afff9ad4cf6a1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c440e952391dabd178662590a3f15b97a04fe1950de6e6b0ad6d0d5cdb3ca707c2c0771d3b33970d8772a55f28a802bec0b568b7e1041c4a296a28a567547176
|
7
|
+
data.tar.gz: 5bb37447ae6a7726381769c68c999db5e8a10d2f601e88de40ee7ccfba29814172a9c511be3af61ac3fd7c34c765e0d64ed92ca50d5e335db15bf1ed8800b6a4
|
data/README.md
CHANGED
@@ -378,7 +378,7 @@ Often, it helps to know what Octokit is doing under the hood. Faraday makes it
|
|
378
378
|
easy to peek into the underlying HTTP traffic:
|
379
379
|
|
380
380
|
```ruby
|
381
|
-
stack = Faraday::
|
381
|
+
stack = Faraday::RackBuilder.new do |builder|
|
382
382
|
builder.response :logger
|
383
383
|
builder.use Octokit::Response::RaiseError
|
384
384
|
builder.adapter Faraday.default_adapter
|
@@ -417,7 +417,7 @@ Add the gem to your Gemfile
|
|
417
417
|
Next, construct your own Faraday middleware:
|
418
418
|
|
419
419
|
```ruby
|
420
|
-
stack = Faraday::
|
420
|
+
stack = Faraday::RackBuilder.new do |builder|
|
421
421
|
builder.use Faraday::HttpCache
|
422
422
|
builder.use Octokit::Response::RaiseError
|
423
423
|
builder.adapter Faraday.default_adapter
|
data/lib/octokit/configurable.rb
CHANGED
@@ -26,7 +26,7 @@ module Octokit
|
|
26
26
|
# @return [String] GitHub username for Basic Authentication
|
27
27
|
# @!attribute middleware
|
28
28
|
# @see https://github.com/lostisland/faraday
|
29
|
-
# @return [Faraday::Builder] Configure middleware for Faraday
|
29
|
+
# @return [Faraday::Builder or Faraday::RackBuilder] Configure middleware for Faraday
|
30
30
|
# @!attribute netrc
|
31
31
|
# @return [Boolean] Instruct Octokit to get credentials from .netrc file
|
32
32
|
# @!attribute netrc_file
|
data/lib/octokit/default.rb
CHANGED
@@ -19,8 +19,11 @@ module Octokit
|
|
19
19
|
# Default WEB endpoint
|
20
20
|
WEB_ENDPOINT = "https://github.com".freeze
|
21
21
|
|
22
|
-
#
|
23
|
-
|
22
|
+
# In Faraday 0.9, Faraday::Builder was renamed to Faraday::RackBuilder
|
23
|
+
RACK_BUILDER_CLASS = defined?(Faraday::RackBuilder) ? Faraday::RackBuilder : Faraday::Builder
|
24
|
+
|
25
|
+
# Default Faraday middleware stack
|
26
|
+
MIDDLEWARE = RACK_BUILDER_CLASS.new do |builder|
|
24
27
|
builder.use Octokit::Response::RaiseError
|
25
28
|
builder.use Octokit::Response::FeedParser
|
26
29
|
builder.adapter Faraday.default_adapter
|
data/lib/octokit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octokit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wynn Netherland
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|