spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-3.0.1 vs spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-3.0.2

- old
+ new

@@ -12,11 +12,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 200 @@ -51,11 +51,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 200 @@ -89,11 +89,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 200 @@ -128,11 +128,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 403 @@ -164,11 +164,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 400 @@ -200,11 +200,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 400 @@ -234,11 +234,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 200 @@ -271,11 +271,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 400 @@ -309,11 +309,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 200 @@ -350,11 +350,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 200 @@ -391,11 +391,11 @@ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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: status: code: 413 @@ -4864,11 +4864,11 @@ is the sentence number 9999"],"source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -4905,11 +4905,11 @@ string: '{"text":"Sample text","source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -4945,11 +4945,11 @@ string: '{"text":["Sample","Word"],"source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -4989,11 +4989,11 @@ string: '{"text":"Sample text","source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -5029,11 +5029,11 @@ string: '{"text":null,"source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9511,11 +9511,11 @@ is the sentence number 9999"],"source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9595,11 +9595,11 @@ string: '{"text":["<p>Sample text</p>"],"source_lang":"EN","target_lang":"ES","tag_handling":"xml"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9640,11 +9640,11 @@ string: '{"text":["Welcome and <code>Hello great World</code> Good Morning!"],"source_lang":"EN","target_lang":"ES","tag_handling":"xml","ignore_tags":"code,span"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9685,11 +9685,11 @@ third sentence.</par>\n </content>\n</document>\n"],"source_lang":"EN","target_lang":"ES","tag_handling":"xml","split_sentences":"nonewlines","outline_detection":"0","splitting_tags":"title,par"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9766,11 +9766,11 @@ string: '{"text":[null],"source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9809,11 +9809,11 @@ string: '{"text":["Sample text"],"source_lang":"EN","target_lang":null}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9851,11 +9851,11 @@ string: '{"text":["Welcome and <code>Hello great World</code> Good Morning!"],"source_lang":"EN","target_lang":"ES","tag_handling":"xml","ignore_tags":["code","span"]}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9898,11 +9898,11 @@ third sentence.</par>\n </content>\n</document>\n"],"source_lang":"EN","target_lang":"ES","tag_handling":"xml","split_sentences":"nonewlines","outline_detection":false,"splitting_tags":"title,par"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -9943,11 +9943,11 @@ third sentence.</par>\n </content>\n</document>\n"],"source_lang":"EN","target_lang":"ES","tag_handling":"xml","split_sentences":"nonewlines","outline_detection":false,"splitting_tags":["title","par"]}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -10069,11 +10069,11 @@ string: '{"text":["Sample text"],"source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -10114,11 +10114,11 @@ string: '{"text":["Sample text"],"source_lang":"EN","target_lang":"ES"}' headers: 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: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -10144,6 +10144,97 @@ - '0693b0ef90b042c291a508e58602d82b' body: encoding: UTF-8 string: '' recorded_at: Tue, 09 Jul 2024 10:04:32 GMT +- request: + method: post + uri: https://api.deepl.com/v2/translate + body: + encoding: UTF-8 + string: '{"text":["That is hot!"],"source_lang":"EN","target_lang":"ES","context":""}' + headers: + Authorization: + - DeepL-Auth-Key VALID_TOKEN + User-Agent: + - deepl-ruby/3.0.2 (darwin22) ruby/3.2.1 + Content-Type: + - application/json + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 25 Sep 2024 16:07:59 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + Access-Control-Allow-Origin: + - "*" + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Server-Timing: + - l7_lb_tls;dur=88, l7_lb_idle;dur=0, l7_lb_receive;dur=0, l7_lb_total;dur=126 + Access-Control-Expose-Headers: + - Server-Timing, X-Trace-ID + X-Trace-Id: + - 53712edb2fc24c7f9d59e341bd80977a + body: + encoding: ASCII-8BIT + string: !binary |- + eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IsKhRXNvIGVzdMOhIGNhbGllbnRlISJ9XX0= + recorded_at: Wed, 25 Sep 2024 16:07:59 GMT +- request: + method: post + uri: https://api.deepl.com/v2/translate + body: + encoding: UTF-8 + string: '{"text":["That is hot!"],"source_lang":"EN","target_lang":"ES","context":"He + did not like the jalapenos in his meal."}' + headers: + Authorization: + - DeepL-Auth-Key VALID_TOKEN + User-Agent: + - deepl-ruby/3.0.2 (darwin22) ruby/3.2.1 + Content-Type: + - application/json + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 25 Sep 2024 16:08:00 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + Access-Control-Allow-Origin: + - "*" + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Server-Timing: + - l7_lb_tls;dur=67, l7_lb_idle;dur=0, l7_lb_receive;dur=0, l7_lb_total;dur=124 + Access-Control-Expose-Headers: + - Server-Timing, X-Trace-ID + X-Trace-Id: + - 1704af9968bf4570b155c12cc0ae0665 + body: + encoding: ASCII-8BIT + string: !binary |- + eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IsKhRXNvIGVzIHBpY2FudGUhIn1dfQ== + recorded_at: Wed, 25 Sep 2024 16:08:00 GMT recorded_with: VCR 6.2.0