diff --git a/CHANGELOG.md b/CHANGELOG.md index e6e2eda..68044d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +3.0.0 +===== + +Not using changelog anymore. See [Github releases](https://github.com/centrifugal/rubycent/releases) now. + 2.2.0 ===== diff --git a/cent.gemspec b/cent.gemspec index 7f15aef..f5bbade 100644 --- a/cent.gemspec +++ b/cent.gemspec @@ -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 diff --git a/lib/cent/client.rb b/lib/cent/client.rb index 6a15e78..8ff9b30 100644 --- a/lib/cent/client.rb +++ b/lib/cent/client.rb @@ -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 diff --git a/lib/cent/http.rb b/lib/cent/http.rb index aa7e407..b665c3f 100644 --- a/lib/cent/http.rb +++ b/lib/cent/http.rb @@ -12,7 +12,7 @@ class ResponseError < Error def initialize(code:, message:) @code = code - super message + super(message) end end diff --git a/lib/cent/version.rb b/lib/cent/version.rb index 245108a..0531972 100644 --- a/lib/cent/version.rb +++ b/lib/cent/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Cent - VERSION = '2.2.0' + VERSION = '3.0.0' end