README.md in octokit-2.7.0 vs README.md in octokit-2.7.1
- old
+ new
@@ -376,11 +376,11 @@
Often, it helps to know what Octokit is doing under the hood. Faraday makes it
easy to peek into the underlying HTTP traffic:
```ruby
-stack = Faraday::Builder.new do |builder|
+stack = Faraday::RackBuilder.new do |builder|
builder.response :logger
builder.use Octokit::Response::RaiseError
builder.adapter Faraday.default_adapter
end
Octokit.middleware = stack
@@ -415,10 +415,10 @@
gem 'faraday-http-cache'
Next, construct your own Faraday middleware:
```ruby
-stack = Faraday::Builder.new do |builder|
+stack = Faraday::RackBuilder.new do |builder|
builder.use Faraday::HttpCache
builder.use Octokit::Response::RaiseError
builder.adapter Faraday.default_adapter
end
Octokit.middleware = stack