Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make require easier, mention adapter registration #5

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ AllCops:
TargetRubyVersion: 2.6
SuggestExtensions: false

Naming/FileName:
Exclude:
- lib/faraday-typhoeus.rb

Metrics/BlockLength:
Exclude:
- spec/**/*.rb
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Or install it yourself as:

## Usage

In order to register the adapter with Faraday, make sure you've required this gem first:
```ruby
require 'faraday-typhoeus'
```

### Basic

```ruby
Expand Down
3 changes: 3 additions & 0 deletions lib/faraday-typhoeus.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

require_relative 'faraday/typhoeus'