Skip to content

Commit

Permalink
Version bump (3.0.0), set faraday dev dependency to 2.5 and required …
Browse files Browse the repository at this point in the history
…Ruby version to 2.6

Faraday 2.5 introduces a new streaming API and other changes that we want to take advantage on. However, releasing a new 2.x version of the gem would cause it to be pulled in projects where Faraday has not been updated to v2.5+ yet, causing errors.

For this reason, we're instead releasing this as v3.0, which only the next (compatible) version of faraday will allow to use.
  • Loading branch information
iMacTia committed Aug 8, 2022
1 parent 72c65ca commit 616bd1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions faraday-net_http.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/lostisland/faraday-net_http'
spec.license = 'MIT'

spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/lostisland/faraday-net_http'
Expand All @@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
spec.files = Dir.glob('lib/**/*') + %w[README.md LICENSE.md]
spec.require_paths = ['lib']

spec.add_development_dependency 'faraday', '>= 1.0'
spec.add_development_dependency 'faraday', '>= 2.5'
end
2 changes: 1 addition & 1 deletion lib/faraday/net_http/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Faraday
module NetHttp
VERSION = '2.1.0'
VERSION = '3.0.0'
end
end

0 comments on commit 616bd1c

Please sign in to comment.