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

Prepare v3: up faraday min version, stricter jwt versions #23

Merged
merged 2 commits into from
Mar 25, 2024
Merged
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
3.0.0
=====

Not using changelog anymore. See [Github releases](https://github.com/centrifugal/rubycent/releases) now.

2.2.0
=====

Expand Down
6 changes: 2 additions & 4 deletions cent.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ Gem::Specification.new do |spec|

spec.require_paths = ['lib']

spec.add_dependency 'faraday', '<3.0.0', '> 1.0.0'
# NOTE: Remove `faraday_middleware` after changing `faraday`'s minimum version to `2.0.0`.
spec.add_dependency 'faraday_middleware', '<2.0.0', '~> 1.0'
spec.add_dependency 'jwt', '~> 2.2'
spec.add_dependency 'faraday', '<3.0.0', '> 2.0.0'
spec.add_dependency 'jwt', '<3.0.0', '> 2.2.0'
end
1 change: 0 additions & 1 deletion lib/cent/client.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require 'faraday'
require 'faraday_middleware' if Gem::Version.new(Faraday::VERSION) <= Gem::Version.new('2.0.0')
require 'cent/http'

module Cent
Expand Down
2 changes: 1 addition & 1 deletion lib/cent/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ResponseError < Error

def initialize(code:, message:)
@code = code
super message
super(message)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/cent/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Cent
VERSION = '2.2.0'
VERSION = '3.0.0'
end
Loading