Skip to content

Commit

Permalink
fix: Fix user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEbbing committed Oct 2, 2024
1 parent be60213 commit ea18394
Show file tree
Hide file tree
Showing 12 changed files with 123 additions and 122 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
* Fix metadata displayed on RubyGems.org for this library.
* Fixed library version sent in the `User-Agent` string.

## [3.0.1] - 2024-09-23
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/deepl/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def self.free_account_auth_key?(key)
end

def construct_user_agent(send_platform_info, app_info_name, app_info_version)
library_info_str = 'deepl-ruby/2.5.3'
library_info_str = 'deepl-ruby/3.0.2'
if send_platform_info
library_info_str += " (#{RbConfig::CONFIG['host_os']}) ruby/#{RUBY_VERSION}"
end
Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/vcr_cassettes/deepl_document.yml

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

4 changes: 2 additions & 2 deletions spec/fixtures/vcr_cassettes/deepl_document_download.yml

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

60 changes: 30 additions & 30 deletions spec/fixtures/vcr_cassettes/deepl_glossaries.yml

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

2 changes: 1 addition & 1 deletion spec/fixtures/vcr_cassettes/deepl_languages.yml

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

Loading

0 comments on commit ea18394

Please sign in to comment.