Skip to content

Commit

Permalink
Remove deprecated usages and update gems (#104)
Browse files Browse the repository at this point in the history
* Remove deprecated usages and update gems

* Update ChangeLog

* Update sidekiq version
  • Loading branch information
sai-bhargav authored Feb 13, 2023
1 parent 30d335f commit 7f39d2e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 2
jobs:
build_2.5_rails_5:
docker:
- image: circleci/ruby:2.4.1
- image: circleci/ruby:2.7.4
- image: redis:3-alpine
steps:
- checkout
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

_A description of your awesome changes here!_

Features:

- Add ruby 3 compability

Bug fixes:

- Explictly set sidekiq gem version
- Update circleci base image
- Remove `require 'faraday/request/retry'` dependency since its deprecated in faraday `1.10.3`.

### 3.7.0

Features:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gem 'dotenv', require: false
gem 'simplecov', require: false
gem 'codecov', require: false
gem 'resque', require: false
gem 'sidekiq', require: false
gem 'sidekiq', '~> 5.2.10', require: false

gem 'guard-rspec', require: false
gem 'pry', require: false
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_4.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem "dotenv", :require => false
gem "simplecov", :require => false
gem "codecov", :require => false
gem "resque", :require => false
gem "sidekiq", :require => false
gem "sidekiq", '~> 5.2.10', :require => false
gem "guard-rspec", :require => false
gem "pry", :require => false
gem "byebug", :require => false
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem "dotenv", :require => false
gem "simplecov", :require => false
gem "codecov", :require => false
gem "resque", :require => false
gem "sidekiq", :require => false
gem "sidekiq", '~> 5.2.10', :require => false
gem "guard-rspec", :require => false
gem "pry", :require => false
gem "byebug", :require => false
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem "dotenv", :require => false
gem "simplecov", :require => false
gem "codecov", :require => false
gem "resque", :require => false
gem "sidekiq", :require => false
gem "sidekiq", '~> 5.2.10', :require => false
gem "guard-rspec", :require => false
gem "pry", :require => false
gem "byebug", :require => false
Expand Down
3 changes: 1 addition & 2 deletions lib/routemaster/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# prevents Faraday's magic class loading pixie dust from tripping over itself in
# multithreaded use cases.
require 'uri'
require 'faraday/request/retry'
require 'faraday_middleware/request/encode_json'
require 'faraday_middleware/response/parse_json'
require 'faraday_middleware/response/mashify'
Expand Down Expand Up @@ -73,7 +72,7 @@ def get(url, params: {}, headers: {}, options: {})
# Same as {{get}}, except with
def fget(url, **options)
uri = _assert_uri(url)
Responses::ResponsePromise.new { get(uri, options) }
Responses::ResponsePromise.new { get(uri, **options) }
end

def patch(url, body: {}, headers: {})
Expand Down

0 comments on commit 7f39d2e

Please sign in to comment.