spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-2.0.0 vs spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-2.1.0

- old
+ new

@@ -32,12 +32,13 @@ - keep-alive Access-Control-Allow-Origin: - "*" body: encoding: UTF-8 - string: '{"translations":[{"detected_source_language":"EN","text":"Texto de muestra"}]}' - http_version: + string: '{"translations":[{"detected_source_language":"EN","text":"Texto de + muestra"}]}' + http_version: recorded_at: Tue, 08 May 2018 16:31:34 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN body: @@ -70,11 +71,11 @@ Access-Control-Allow-Origin: - "*" body: encoding: UTF-8 string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"},{"detected_source_language":"EN","text":"Palabra"}]}' - http_version: + http_version: recorded_at: Tue, 08 May 2018 16:31:35 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN body: @@ -108,11 +109,11 @@ - "*" body: encoding: UTF-8 string: '{"translations":[{"detected_source_language":"EN","text":"<p>Texto de muestra</p>"}]}' - http_version: + http_version: recorded_at: Tue, 08 May 2018 16:31:36 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=invalid body: @@ -141,11 +142,11 @@ Connection: - keep-alive body: encoding: UTF-8 string: '' - http_version: + http_version: recorded_at: Tue, 08 May 2018 16:31:37 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN body: @@ -174,11 +175,11 @@ Connection: - keep-alive body: encoding: UTF-8 string: '{"message":"Parameter ''text'' not specified."}' - http_version: + http_version: recorded_at: Tue, 08 May 2018 16:31:37 GMT - request: method: post uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN body: @@ -207,8 +208,46 @@ Connection: - keep-alive body: encoding: UTF-8 string: '{"message":"Parameter ''target_lang'' not specified."}' - http_version: + http_version: recorded_at: Tue, 08 May 2018 16:31:37 GMT +- request: + method: post + uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN&ignore_tags=code,%20span + 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: + - Tue, 24 Jul 2018 16:13:51 GMT + Content-Type: + - application/json + Content-Length: + - '119' + 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