spec/fixtures/vcr_cassettes/deepl_translate.yml in deepl-rb-1.0.1 vs spec/fixtures/vcr_cassettes/deepl_translate.yml in deepl-rb-2.0.0

- old
+ new

@@ -1,116 +1,9 @@ --- http_interactions: - request: method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN - body: - encoding: US-ASCII - string: 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: - - Sun, 10 Dec 2017 21:20:25 GMT - Content-Length: - - '45' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"message":"Parameter ''text'' not specified."}' - http_version: - recorded_at: Sun, 10 Dec 2017 21:20:25 GMT -- request: - method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN - body: - encoding: US-ASCII - string: text=Abc&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: - - Sun, 10 Dec 2017 21:21:23 GMT - Content-Type: - - application/json - Content-Length: - - '65' - Connection: - - keep-alive - Access-Control-Allow-Origin: - - "*" - body: - encoding: UTF-8 - string: '{"translations":[{"detected_source_language":"EN","text":"ABC"}]}' - http_version: - recorded_at: Sun, 10 Dec 2017 21:21:23 GMT -- request: - method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN - body: - encoding: US-ASCII - string: text=Sample&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: - - Sun, 10 Dec 2017 21:22:11 GMT - Content-Type: - - application/json - Content-Length: - - '69' - Connection: - - keep-alive - Access-Control-Allow-Origin: - - "*" - body: - encoding: UTF-8 - string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"}]}' - http_version: - recorded_at: Sun, 10 Dec 2017 21:22:11 GMT -- request: - method: post uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN&param=fake body: encoding: US-ASCII string: text=Sample&source_lang=EN&target_lang=ES headers: @@ -128,11 +21,11 @@ message: OK headers: Server: - nginx Date: - - Thu, 04 Jan 2018 18:08:31 GMT + - Tue, 08 May 2018 16:31:34 GMT Content-Type: - application/json Content-Length: - '69' Connection: @@ -141,7 +34,7 @@ - "*" body: encoding: UTF-8 string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"}]}' http_version: - recorded_at: Thu, 04 Jan 2018 18:08:31 GMT + recorded_at: Tue, 08 May 2018 16:31:33 GMT recorded_with: VCR 4.0.0