octokit 2.7.0 → 2.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44e64ada68666da82947ca24101ba7211dc42719
4
- data.tar.gz: 03696bbca61e9dbea82b41b972046997cc865d9e
3
+ metadata.gz: eaf322ac7d3e83973fb999b3b86545ac0f7785a8
4
+ data.tar.gz: d54d9c8bed549ac00c802f42f9afff9ad4cf6a1c
5
5
  SHA512:
6
- metadata.gz: b0ad9385e3c93bc1caa5c0c5b08554f44ac4577dcc578898e1522a1aaf8d0e7a99dfa380a43015c091bfffcfc6c63f4ca73a44a4de2775c0e17a620753ff16b6
7
- data.tar.gz: 3f6f16e93823cb57be96d2999c7a04b33d9cb078a73570276ec7eba6da944db0a46d96c6590e6e22a61601143bfdabcef5644a783ad4bdbb7ada318b4a973f9c
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::Builder.new do |builder|
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::Builder.new do |builder|
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
@@ -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
@@ -19,8 +19,11 @@ module Octokit
19
19
  # Default WEB endpoint
20
20
  WEB_ENDPOINT = "https://github.com".freeze
21
21
 
22
- # Default Faraday middleware stack
23
- MIDDLEWARE = Faraday::Builder.new do |builder|
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
@@ -2,6 +2,6 @@ module Octokit
2
2
 
3
3
  # Current version
4
4
  # @return [String]
5
- VERSION = "2.7.0".freeze
5
+ VERSION = "2.7.1".freeze
6
6
 
7
7
  end
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.0
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: 2013-12-20 00:00:00.000000000 Z
13
+ date: 2014-01-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler