From ea1839405e3a3f469fade7ddd2f940ede89e08fc Mon Sep 17 00:00:00 2001 From: Jan Ebbing Date: Mon, 23 Sep 2024 12:48:19 +0100 Subject: [PATCH] fix: Fix user-agent --- CHANGELOG.md | 1 + lib/deepl/configuration.rb | 2 +- .../fixtures/vcr_cassettes/deepl_document.yml | 4 +- .../vcr_cassettes/deepl_document_download.yml | 4 +- .../vcr_cassettes/deepl_glossaries.yml | 60 +++++++------- .../vcr_cassettes/deepl_languages.yml | 2 +- .../vcr_cassettes/deepl_translate.yml | 18 ++--- spec/fixtures/vcr_cassettes/deepl_usage.yml | 6 +- spec/fixtures/vcr_cassettes/glossaries.yml | 80 +++++++++---------- spec/fixtures/vcr_cassettes/languages.yml | 6 +- .../vcr_cassettes/translate_texts.yml | 54 ++++++------- spec/fixtures/vcr_cassettes/usage.yml | 8 +- 12 files changed, 123 insertions(+), 122 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7db1a2..484dc3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/deepl/configuration.rb b/lib/deepl/configuration.rb index e5c8529..57399e6 100644 --- a/lib/deepl/configuration.rb +++ b/lib/deepl/configuration.rb @@ -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 diff --git a/spec/fixtures/vcr_cassettes/deepl_document.yml b/spec/fixtures/vcr_cassettes/deepl_document.yml index ae12b35..241fcc7 100644 --- a/spec/fixtures/vcr_cassettes/deepl_document.yml +++ b/spec/fixtures/vcr_cassettes/deepl_document.yml @@ -10,7 +10,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - multipart/form-data Accept-Encoding: @@ -56,7 +56,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/deepl_document_download.yml b/spec/fixtures/vcr_cassettes/deepl_document_download.yml index 39f822e..0d5e88d 100644 --- a/spec/fixtures/vcr_cassettes/deepl_document_download.yml +++ b/spec/fixtures/vcr_cassettes/deepl_document_download.yml @@ -16,7 +16,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -1168,7 +1168,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/deepl_glossaries.yml b/spec/fixtures/vcr_cassettes/deepl_glossaries.yml index f1539c6..cb60c4c 100644 --- a/spec/fixtures/vcr_cassettes/deepl_glossaries.yml +++ b/spec/fixtures/vcr_cassettes/deepl_glossaries.yml @@ -14,7 +14,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -50,7 +50,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -84,7 +84,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 404 @@ -118,7 +118,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -153,7 +153,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 204 @@ -183,7 +183,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 404 @@ -217,7 +217,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -251,7 +251,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 404 @@ -285,7 +285,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -319,7 +319,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -355,7 +355,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 204 @@ -381,7 +381,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -421,7 +421,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -461,7 +461,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -501,7 +501,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -545,7 +545,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -585,7 +585,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -625,7 +625,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -665,7 +665,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -707,7 +707,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -749,7 +749,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -791,7 +791,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -838,7 +838,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -880,7 +880,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -922,7 +922,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -964,7 +964,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1008,7 +1008,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1052,7 +1052,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1094,7 +1094,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1134,7 +1134,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/deepl_languages.yml b/spec/fixtures/vcr_cassettes/deepl_languages.yml index 945fdf3..8b1767c 100644 --- a/spec/fixtures/vcr_cassettes/deepl_languages.yml +++ b/spec/fixtures/vcr_cassettes/deepl_languages.yml @@ -10,7 +10,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/deepl_translate.yml b/spec/fixtures/vcr_cassettes/deepl_translate.yml index 10797f0..1bb9aa0 100644 --- a/spec/fixtures/vcr_cassettes/deepl_translate.yml +++ b/spec/fixtures/vcr_cassettes/deepl_translate.yml @@ -14,7 +14,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -52,7 +52,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -88,7 +88,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -126,7 +126,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -160,7 +160,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3(darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -200,7 +200,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -244,7 +244,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -284,7 +284,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -329,7 +329,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/deepl_usage.yml b/spec/fixtures/vcr_cassettes/deepl_usage.yml index ad8416f..4768b5d 100644 --- a/spec/fixtures/vcr_cassettes/deepl_usage.yml +++ b/spec/fixtures/vcr_cassettes/deepl_usage.yml @@ -14,7 +14,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -46,7 +46,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -90,7 +90,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/glossaries.yml b/spec/fixtures/vcr_cassettes/glossaries.yml index e08800e..dbb84f8 100644 --- a/spec/fixtures/vcr_cassettes/glossaries.yml +++ b/spec/fixtures/vcr_cassettes/glossaries.yml @@ -14,7 +14,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -50,7 +50,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -84,7 +84,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 404 @@ -118,7 +118,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 400 @@ -152,7 +152,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -187,7 +187,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 401 @@ -221,7 +221,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 404 @@ -255,7 +255,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 400 @@ -289,7 +289,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -323,7 +323,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 404 @@ -357,7 +357,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 400 @@ -391,7 +391,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -425,7 +425,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -461,7 +461,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 204 @@ -487,7 +487,7 @@ http_interactions: Authorization: - DeepL-Auth-Key invalid User-Agent: - - deepl-ruby/2.5.3(darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -525,7 +525,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -565,7 +565,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -605,7 +605,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -643,7 +643,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -683,7 +683,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -723,7 +723,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -761,7 +761,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -801,7 +801,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -841,7 +841,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -879,7 +879,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -921,7 +921,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -966,7 +966,7 @@ http_interactions: Authorization: - DeepL-Auth-Key invalid User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -1004,7 +1004,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1046,7 +1046,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1086,7 +1086,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1128,7 +1128,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1170,7 +1170,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1210,7 +1210,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1254,7 +1254,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1296,7 +1296,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1336,7 +1336,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1463,7 +1463,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1503,7 +1503,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1622,7 +1622,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -1669,7 +1669,7 @@ http_interactions: Authorization: - DeepL-Auth-Key invalid User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/languages.yml b/spec/fixtures/vcr_cassettes/languages.yml index acc312a..5f035e4 100644 --- a/spec/fixtures/vcr_cassettes/languages.yml +++ b/spec/fixtures/vcr_cassettes/languages.yml @@ -52,7 +52,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -98,7 +98,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -149,7 +149,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/translate_texts.yml b/spec/fixtures/vcr_cassettes/translate_texts.yml index 860c735..d07610b 100644 --- a/spec/fixtures/vcr_cassettes/translate_texts.yml +++ b/spec/fixtures/vcr_cassettes/translate_texts.yml @@ -14,7 +14,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -53,7 +53,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -91,7 +91,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -130,7 +130,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -166,7 +166,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -202,7 +202,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -236,7 +236,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -273,7 +273,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -311,7 +311,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -352,7 +352,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -393,7 +393,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/x-www-form-urlencoded response: @@ -4866,7 +4866,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3(darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -4907,7 +4907,7 @@ http_interactions: Authorization: - DeepL-Auth-Key invalid User-Agent: - - deepl-ruby/2.5.3(darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -4947,7 +4947,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -4991,7 +4991,7 @@ http_interactions: Authorization: - DeepL-Auth-Key invalid User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -5031,7 +5031,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9513,7 +9513,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9597,7 +9597,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9642,7 +9642,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9687,7 +9687,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9768,7 +9768,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9811,7 +9811,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9853,7 +9853,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9900,7 +9900,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -9945,7 +9945,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -10071,7 +10071,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: @@ -10116,7 +10116,7 @@ http_interactions: Authorization: - DeepL-Auth-Key invalid User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: diff --git a/spec/fixtures/vcr_cassettes/usage.yml b/spec/fixtures/vcr_cassettes/usage.yml index 85bc628..3542f3d 100644 --- a/spec/fixtures/vcr_cassettes/usage.yml +++ b/spec/fixtures/vcr_cassettes/usage.yml @@ -14,7 +14,7 @@ http_interactions: Accept: - "*/*" User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 response: status: code: 200 @@ -46,7 +46,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3(darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -88,7 +88,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -132,7 +132,7 @@ http_interactions: Authorization: - DeepL-Auth-Key VALID_TOKEN User-Agent: - - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3 + - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3 Content-Type: - application/json Accept-Encoding: