spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-2.5.0 vs spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-2.5.1
- old
+ new
@@ -1,343 +1,382 @@
---
http_interactions:
- - request:
- method: post
- uri: https://api-free.deepl.com/v2/translate
- body:
- encoding: US-ASCII
- string: text=Sample+text&source_lang=EN&target_lang=ES
- headers:
- Authorization:
- - DeepL-Auth-Key VALID_TOKEN
- 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:14 GMT
- Content-Type:
- - application/json
- Content-Length:
- - "78"
- Connection:
- - keep-alive
- Access-Control-Allow-Origin:
- - "*"
- body:
- encoding: UTF-8
- string:
- '{"translations":[{"detected_source_language":"EN","text":"Texto de
- muestra"}]}'
- recorded_at: Mon, 17 May 2021 14:20:14 GMT
- - request:
- method: post
- uri: https://api-free.deepl.com/v2/translate
- body:
- encoding: US-ASCII
- string: text=Sample&text=Word&source_lang=EN&target_lang=ES
- headers:
- Authorization:
- - DeepL-Auth-Key VALID_TOKEN
- 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:14 GMT
- Content-Type:
- - application/json
- Content-Length:
- - "120"
- Connection:
- - keep-alive
- Access-Control-Allow-Origin:
- - "*"
- body:
- encoding: UTF-8
- string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"},{"detected_source_language":"EN","text":"Palabra"}]}'
- recorded_at: Mon, 17 May 2021 14:20:14 GMT
- - request:
- method: post
- uri: https://api-free.deepl.com/v2/translate?tag_handling=xml
- body:
- encoding: US-ASCII
- string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES
- headers:
- Authorization:
- - DeepL-Auth-Key VALID_TOKEN
- 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:15 GMT
- Content-Type:
- - application/json
- Content-Length:
- - "85"
- Connection:
- - keep-alive
- Access-Control-Allow-Origin:
- - "*"
- body:
- encoding: UTF-8
- string:
- '{"translations":[{"detected_source_language":"EN","text":"<p>Texto
- de muestra</p>"}]}'
- recorded_at: Mon, 17 May 2021 14:20:15 GMT
- - request:
- method: post
- uri: https://api-free.deepl.com/v2/translate
- body:
- encoding: US-ASCII
- string: text=Sample+text&source_lang=EN&target_lang=ES
- headers:
- Authorization:
- - DeepL-Auth-Key invalid
- 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: 403
- message: Forbidden
- headers:
- Server:
- - nginx
- Date:
- - Mon, 17 May 2021 14:20:16 GMT
- Content-Length:
- - "0"
- Connection:
- - keep-alive
- Access-Control-Allow-Origin:
- - "*"
- body:
- encoding: UTF-8
- string: ""
- recorded_at: Mon, 17 May 2021 14:20:16 GMT
- - request:
- method: post
- uri: https://api-free.deepl.com/v2/translate
- body:
- encoding: US-ASCII
- string: source_lang=EN&target_lang=ES
- headers:
- Authorization:
- - DeepL-Auth-Key VALID_TOKEN
- 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: 400
- message: Bad Request
- headers:
- Server:
- - nginx
- Date:
- - 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."}'
- recorded_at: Mon, 17 May 2021 14:20:16 GMT
- - request:
- method: post
- uri: https://api-free.deepl.com/v2/translate
- body:
- encoding: US-ASCII
- string: text=Sample+text&source_lang=EN
- headers:
- Authorization:
- - DeepL-Auth-Key VALID_TOKEN
- 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: 400
- message: Bad Request
- headers:
- Server:
- - nginx
- Date:
- - Mon, 17 May 2021 14:20:17 GMT
- Content-Length:
- - "52"
- Connection:
- - keep-alive
- Access-Control-Allow-Origin:
- - "*"
- body:
- encoding: UTF-8
- string: '{"message":"Value for ''target_lang'' not supported."}'
- recorded_at: Mon, 17 May 2021 14:20:17 GMT
- - request:
- method: post
- 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:
- - 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:56 GMT
- Content-Type:
- - application/json
- Content-Length:
- - "121"
- Connection:
- - keep-alive
- Access-Control-Allow-Origin:
- - "*"
- body:
- encoding: ASCII-8BIT
- string: !binary |-
- eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gwqFCdWVub3MgZMOtYXMhIn1dfQ==
- recorded_at: Mon, 17 May 2021 14:20:56 GMT
- - request:
- method: post
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&glossary_id=123
- body:
- encoding: US-ASCII
- string: text=%3Cp%3ESample+text%3C%2Fp%3E&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: 400
- message: Bad Request
- headers:
- Server:
- - nginx
- Date:
- - Tue, 28 Sep 2021 17:20:52 GMT
- Content-Type:
- - application/json
- Content-Length:
- - "51"
- Connection:
- - keep-alive
- Access-Control-Allow-Origin:
- - "*"
- body:
- encoding: UTF-8
- string: '{"message":"Value for ''termbaseId'' not supported."}'
- recorded_at: Tue, 28 Sep 2021 17:20:52 GMT
- - request:
- method: post
- uri: https://api-free.deepl.com/v2/translate?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:
- Authorization:
- - DeepL-Auth-Key VALID_TOKEN
- 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:
- - Thu, 17 Mar 2022 09:55:34 GMT
- Content-Type:
- - application/json
- Transfer-Encoding:
- - chunked
- Connection:
- - keep-alive
- Vary:
- - Accept-Encoding
- Access-Control-Allow-Origin:
- - "*"
- body:
- encoding: ASCII-8BIT
- string: !binary |-
- eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gwqFCdWVub3MgZMOtYXMhIn1dfQ==
- recorded_at: Thu, 17 Mar 2022 09:55:32 GMT
-recorded_with: VCR 6.0.0
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate
+ body:
+ encoding: US-ASCII
+ string: text=Sample+text&source_lang=EN&target_lang=ES
+ headers:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ 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:14 GMT
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '78'
+ Connection:
+ - keep-alive
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: UTF-8
+ string: '{"translations":[{"detected_source_language":"EN","text":"Texto de
+ muestra"}]}'
+ recorded_at: Mon, 17 May 2021 14:20:14 GMT
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate
+ body:
+ encoding: US-ASCII
+ string: text=Sample&text=Word&source_lang=EN&target_lang=ES
+ headers:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ 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:14 GMT
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '120'
+ Connection:
+ - keep-alive
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: UTF-8
+ string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"},{"detected_source_language":"EN","text":"Palabra"}]}'
+ recorded_at: Mon, 17 May 2021 14:20:14 GMT
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate?tag_handling=xml
+ body:
+ encoding: US-ASCII
+ string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES
+ headers:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ 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:15 GMT
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '85'
+ Connection:
+ - keep-alive
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: UTF-8
+ string: '{"translations":[{"detected_source_language":"EN","text":"<p>Texto
+ de muestra</p>"}]}'
+ recorded_at: Mon, 17 May 2021 14:20:15 GMT
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate
+ body:
+ encoding: US-ASCII
+ string: text=Sample+text&source_lang=EN&target_lang=ES
+ headers:
+ Authorization:
+ - DeepL-Auth-Key invalid
+ 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: 403
+ message: Forbidden
+ headers:
+ Server:
+ - nginx
+ Date:
+ - Mon, 17 May 2021 14:20:16 GMT
+ Content-Length:
+ - '0'
+ Connection:
+ - keep-alive
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: UTF-8
+ string: ''
+ recorded_at: Mon, 17 May 2021 14:20:16 GMT
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate
+ body:
+ encoding: US-ASCII
+ string: source_lang=EN&target_lang=ES
+ headers:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ 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: 400
+ message: Bad Request
+ headers:
+ Server:
+ - nginx
+ Date:
+ - 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."}'
+ recorded_at: Mon, 17 May 2021 14:20:16 GMT
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate
+ body:
+ encoding: US-ASCII
+ string: text=Sample+text&source_lang=EN
+ headers:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ 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: 400
+ message: Bad Request
+ headers:
+ Server:
+ - nginx
+ Date:
+ - Mon, 17 May 2021 14:20:17 GMT
+ Content-Length:
+ - '52'
+ Connection:
+ - keep-alive
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: UTF-8
+ string: '{"message":"Value for ''target_lang'' not supported."}'
+ recorded_at: Mon, 17 May 2021 14:20:17 GMT
+- request:
+ method: post
+ 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:
+ - 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:56 GMT
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '121'
+ Connection:
+ - keep-alive
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: ASCII-8BIT
+ string: !binary |-
+ eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gwqFCdWVub3MgZMOtYXMhIn1dfQ==
+ recorded_at: Mon, 17 May 2021 14:20:56 GMT
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&glossary_id=123
+ body:
+ encoding: US-ASCII
+ string: text=%3Cp%3ESample+text%3C%2Fp%3E&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: 400
+ message: Bad Request
+ headers:
+ Server:
+ - nginx
+ Date:
+ - Tue, 28 Sep 2021 17:20:52 GMT
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '51'
+ Connection:
+ - keep-alive
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: UTF-8
+ string: '{"message":"Value for ''termbaseId'' not supported."}'
+ recorded_at: Tue, 28 Sep 2021 17:20:52 GMT
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate?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:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ 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:
+ - Thu, 17 Mar 2022 09:55:34 GMT
+ Content-Type:
+ - application/json
+ Transfer-Encoding:
+ - chunked
+ Connection:
+ - keep-alive
+ Vary:
+ - Accept-Encoding
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: ASCII-8BIT
+ string: !binary |-
+ eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gwqFCdWVub3MgZMOtYXMhIn1dfQ==
+ recorded_at: Thu, 17 Mar 2022 09:55:32 GMT
+- request:
+ method: post
+ uri: https://api-free.deepl.com/v2/translate?outline_detection=0&split_sentences=nonewlines&splitting_tags=title,par&tag_handling=xml
+ body:
+ encoding: US-ASCII
+ string: text=%3Cdocument%3E%0A++%3Cmeta%3E%0A++++%3Ctitle%3EA+document%27s+title%3C%2Ftitle%3E%0A++%3C%2Fmeta%3E%0A++%3Ccontent%3E%0A++++%3Cpar%3EThis+is+the+first+sentence.+Followed+by+a+second+one.%3C%2Fpar%3E%0A++++%3Cpar%3EThis+is+the+third+sentence.%3C%2Fpar%3E%0A++%3C%2Fcontent%3E%0A%3C%2Fdocument%3E%0A&source_lang=EN&target_lang=ES
+ headers:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ 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:
+ - Wed, 22 Jun 2022 18:04:58 GMT
+ Content-Type:
+ - application/json
+ Transfer-Encoding:
+ - chunked
+ Connection:
+ - keep-alive
+ Vary:
+ - Accept-Encoding
+ Access-Control-Allow-Origin:
+ - "*"
+ body:
+ encoding: ASCII-8BIT
+ string: !binary |-
+ eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6Ijxkb2N1bWVudD5cbiAgPG1ldGE+XG4gICAgPHRpdGxlPkVsIHTDrXR1bG8gZGUgdW4gZG9jdW1lbnRvPC90aXRsZT5cbiAgPC9tZXRhPlxuICA8Y29udGVudD5cbiAgICA8cGFyPkVzIGxhIHByaW1lcmEgZnJhc2UuIFNlZ3VpZG8gZGUgdW5hIHNlZ3VuZGEuPC9wYXI+XG4gICAgPHBhcj5Fc3RhIGVzIGxhIHRlcmNlcmEgZnJhc2UuPC9wYXI+XG4gIDwvY29udGVudD5cbjwvZG9jdW1lbnQ+XG4ifV19
+ recorded_at: Wed, 22 Jun 2022 18:04:56 GMT
+recorded_with: VCR 6.1.0