Skip to content

Commit

Permalink
Version 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Aug 23, 2023
1 parent bd65f2c commit 7c8de7d
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 24 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.5.0 (23-Aug-23)

* Fixed authorization header sending (thanks, @L-Eugene)
* Added proper support for compression and fixed processing

## 1.4.0 (09-Jun-23)

* Renamed `narrators` method to `narrator` for `TournamentSynchRequests` (thanks, @L-Eugene)
Expand Down
1 change: 1 addition & 0 deletions lib/rating_chgk_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'zeitwerk'
require 'yaml'
require 'faraday'
require 'faraday/gzip'
require 'addressable/template'
require 'forwardable'

Expand Down
4 changes: 3 additions & 1 deletion lib/rating_chgk_v2/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Connection
def connection(client)
Faraday.new(options(client), request_params_for(client)) do |faraday|
faraday.adapter Faraday.default_adapter
faraday.request :gzip
end
end

Expand All @@ -16,7 +17,8 @@ def options(client)
headers = {
accept: 'application/json',
user_agent: "rating-chgk-v2 gem/#{RatingChgkV2::VERSION}",
'Content-Type': 'application/json'
'Content-Type': 'application/json',
accept_encoding: 'gzip,deflate,br'
}

headers = headers.merge({Authorization: "Bearer #{client.token}"}) unless client.token.to_s.empty?
Expand Down
2 changes: 1 addition & 1 deletion lib/rating_chgk_v2/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RatingChgkV2
VERSION = '1.4.0'
VERSION = '1.5.0'
end
1 change: 1 addition & 0 deletions rating-chgk-v2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Gem::Specification.new do |spec|

spec.add_dependency 'addressable', '~> 2.5'
spec.add_dependency 'faraday', '~> 2'
spec.add_dependency 'faraday-gzip', '~> 2.0'
spec.add_dependency 'json', '~> 2'
spec.add_dependency 'zeitwerk', '~> 2.4'

Expand Down
54 changes: 32 additions & 22 deletions spec/fixtures/vcr_cassettes/teams/team.yml

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

0 comments on commit 7c8de7d

Please sign in to comment.