Skip to content

Commit

Permalink
Switch to Faraday 2.0.
Browse files Browse the repository at this point in the history
Add Ruby 3.1 to CI
  • Loading branch information
iMacTia committed Jan 4, 2022
1 parent 645f368 commit 29f1561
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0']
ruby: ['2.6', '2.7', '3.0', '3.1']

steps:
- uses: actions/checkout@v2
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/publish.yml
Expand Up @@ -18,12 +18,6 @@ jobs:
ruby-version: 2.7.x

- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build faraday-httpclient.gemspec
gem push faraday-httpclient-*.gem
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
uses: dawidd6/action-publish-gem@v1
with:
api_key: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -7,7 +7,6 @@ gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.0'
gem 'simplecov', '~> 0.19.0'

gem 'multipart-parser', '~> 0.1.1'
gem 'webmock', '~> 3.4'

gem 'rubocop', '~> 1.12.0'
Expand Down
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -9,7 +9,7 @@ Every adapter is defined into its own gem. This gem defines the adapter for HTTP
Add these lines to your application's Gemfile:

```ruby
gem 'faraday-httpclient'
gem 'faraday-httpclient', '~> 2.0'
```

And then execute:
Expand All @@ -18,11 +18,13 @@ And then execute:

Or install them yourself as:

$ gem install faraday-httpclient
$ gem install faraday-httpclient -v '~> 2.0'

## Usage

```ruby
require 'faraday/httpclient'

conn = Faraday.new(...) do |f|
f.adapter :httpclient do |client|
# yields HTTPClient
Expand Down
2 changes: 1 addition & 1 deletion faraday-httpclient.gemspec
Expand Up @@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
spec.files = Dir.glob('lib/**/*') + %w[README.md LICENSE.md]
spec.require_paths = ['lib']

spec.add_development_dependency 'faraday', '~> 2.0.0.alpha-2'
spec.add_development_dependency 'faraday', '~> 2.0'
spec.add_development_dependency 'httpclient', '>= 2.2'
end
2 changes: 1 addition & 1 deletion lib/faraday/httpclient/version.rb
Expand Up @@ -2,6 +2,6 @@

module Faraday
module HTTPClient
VERSION = '1.0.1'
VERSION = '2.0.0'
end
end

0 comments on commit 29f1561

Please sign in to comment.