spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-2.2.4 vs spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-2.3.0

- old
+ new

@@ -1,10 +1,10 @@ --- http_interactions: - request: method: post - uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN + uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: text=Sample+text&source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -21,28 +21,27 @@ message: OK headers: Server: - nginx Date: - - Tue, 08 May 2018 16:31:36 GMT + - Mon, 17 May 2021 14:20:14 GMT Content-Type: - application/json Content-Length: - - '74' + - '78' Connection: - keep-alive Access-Control-Allow-Origin: - "*" body: encoding: UTF-8 string: '{"translations":[{"detected_source_language":"EN","text":"Texto de muestra"}]}' - http_version: - recorded_at: Tue, 08 May 2018 16:31:34 GMT + recorded_at: Mon, 17 May 2021 14:20:14 GMT - request: method: post - uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN + uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: text=Sample&text=Word&source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -59,11 +58,11 @@ message: OK headers: Server: - nginx Date: - - Tue, 08 May 2018 16:31:37 GMT + - Mon, 17 May 2021 14:20:14 GMT Content-Type: - application/json Content-Length: - '120' Connection: @@ -71,15 +70,14 @@ Access-Control-Allow-Origin: - "*" body: encoding: UTF-8 string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"},{"detected_source_language":"EN","text":"Palabra"}]}' - http_version: - recorded_at: Tue, 08 May 2018 16:31:35 GMT + recorded_at: Mon, 17 May 2021 14:20:14 GMT - request: method: post - uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN + uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&tag_handling=xml body: encoding: US-ASCII string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -96,11 +94,11 @@ message: OK headers: Server: - nginx Date: - - Tue, 08 May 2018 16:31:37 GMT + - Mon, 17 May 2021 14:20:15 GMT Content-Type: - application/json Content-Length: - '85' Connection: @@ -109,17 +107,53 @@ - "*" body: encoding: UTF-8 string: '{"translations":[{"detected_source_language":"EN","text":"<p>Texto de muestra</p>"}]}' - http_version: - recorded_at: Tue, 08 May 2018 16:31:36 GMT + recorded_at: Mon, 17 May 2021 14:20:15 GMT - request: method: post - uri: https://api.deepl.com/v2/translate?auth_key=invalid + uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&ignore_tags=code,span body: encoding: US-ASCII + string: text=Welcome+and+%3Ccode%3EHello+great+World%3C%2Fcode%3E+Good+Morning%21&source_lang=EN&target_lang=ES + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Content-Type: + - application/x-www-form-urlencoded + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 17 May 2021 14:20:16 GMT + Content-Type: + - application/json + Content-Length: + - '119' + Connection: + - keep-alive + Access-Control-Allow-Origin: + - "*" + body: + encoding: ASCII-8BIT + string: !binary |- + eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5Ib2xhIGdyYW4gbXVuZG88L2NvZGU+IMKhQnVlbm9zIGTDrWFzISJ9XX0= + recorded_at: Mon, 17 May 2021 14:20:16 GMT +- request: + method: post + uri: https://api-free.deepl.com/v2/translate?auth_key=invalid + body: + encoding: US-ASCII string: text=Sample+text&source_lang=EN&target_lang=ES headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -134,23 +168,24 @@ message: Forbidden headers: Server: - nginx Date: - - Tue, 08 May 2018 16:31:38 GMT + - Mon, 17 May 2021 14:20:16 GMT Content-Length: - '0' Connection: - keep-alive + Access-Control-Allow-Origin: + - "*" body: encoding: UTF-8 string: '' - http_version: - recorded_at: Tue, 08 May 2018 16:31:37 GMT + recorded_at: Mon, 17 May 2021 14:20:16 GMT - request: method: post - uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN + uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -167,23 +202,24 @@ message: Bad Request headers: Server: - nginx Date: - - Tue, 08 May 2018 16:31:38 GMT + - Mon, 17 May 2021 14:20:16 GMT Content-Length: - '45' Connection: - keep-alive + Access-Control-Allow-Origin: + - "*" body: encoding: UTF-8 string: '{"message":"Parameter ''text'' not specified."}' - http_version: - recorded_at: Tue, 08 May 2018 16:31:37 GMT + recorded_at: Mon, 17 May 2021 14:20:16 GMT - request: method: post - uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN + uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: text=Sample+text&source_lang=EN headers: Accept-Encoding: @@ -200,23 +236,24 @@ message: Bad Request headers: Server: - nginx Date: - - Tue, 08 May 2018 16:31:39 GMT + - Mon, 17 May 2021 14:20:17 GMT Content-Length: - '52' Connection: - keep-alive + Access-Control-Allow-Origin: + - "*" body: encoding: UTF-8 - string: '{"message":"Parameter ''target_lang'' not specified."}' - http_version: - recorded_at: Tue, 08 May 2018 16:31:37 GMT + string: '{"message":"Value for ''target_lang'' not supported."}' + recorded_at: Mon, 17 May 2021 14:20:17 GMT - request: method: post - uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN&ignore_tags=code,%20span + uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&ignore_tags=code,span&tag_handling=xml body: encoding: US-ASCII string: text=Welcome+and+%3Ccode%3EHello+great+World%3C%2Fcode%3E+Good+Morning%21&source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -233,21 +270,20 @@ message: OK headers: Server: - nginx Date: - - Tue, 24 Jul 2018 16:13:51 GMT + - Mon, 17 May 2021 14:20:56 GMT Content-Type: - application/json Content-Length: - - '119' + - '121' Connection: - keep-alive Access-Control-Allow-Origin: - "*" body: encoding: ASCII-8BIT string: !binary |- - eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gQnVlbm9zIGTDrWFzISJ9XX0= - http_version: - recorded_at: Tue, 24 Jul 2018 16:13:49 GMT -recorded_with: VCR 4.0.0 + eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gwqFCdWVub3MgZMOtYXMhIn1dfQ== + recorded_at: Mon, 17 May 2021 14:20:56 GMT +recorded_with: VCR 6.0.0