Skip to content

Commit

Permalink
Merge pull request #97 from ministryofjustice/faraday_2
Browse files Browse the repository at this point in the history
Update for Faraday 2
  • Loading branch information
jrmhaig authored Feb 8, 2024
2 parents 77d22db + 657b295 commit ab2144b
Show file tree
Hide file tree
Showing 19 changed files with 884 additions and 879 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Add latest change log entries at top using template:
-
```

## Version 2.0.0

### Modified
- Update Faraday dependency to version 2

## Version 1.5.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion laa-fee-calculator-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
# see bin/ruby_version_test
spec.required_ruby_version = '>= 3.0.0'

spec.add_runtime_dependency 'faraday', '~> 1.0'
spec.add_runtime_dependency 'faraday', '~> 2.9'
spec.add_runtime_dependency 'faraday-http-cache', '~> 2.2'
spec.metadata['rubygems_mfa_required'] = 'true'
end
2 changes: 1 addition & 1 deletion lib/laa/fee_calculator/raise_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module FeeCalculator
# Wrap Faraday adapter error handling with
# gem specific handlers.
#
class RaiseError < Faraday::Response::Middleware
class RaiseError < Faraday::Middleware
CLIENT_ERROR_STATUSES = (400...600)

def on_complete(env)
Expand Down
2 changes: 1 addition & 1 deletion lib/laa/fee_calculator/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module LAA
module FeeCalculator
VERSION = '1.5.0'
VERSION = '2.0.0'
USER_AGENT = "laa-fee-calculator-client/#{VERSION}".freeze
end
end
36 changes: 18 additions & 18 deletions spec/vcr/advocate_types_spec.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions spec/vcr/client_spec.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions spec/vcr/connection_spec.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ab2144b

Please sign in to comment.