deepl-rb 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -2
- data/README.md +12 -1
- data/Rakefile +6 -0
- data/VERSION +1 -1
- data/deepl-rb.gemspec +4 -3
- data/lib/deepl/configuration.rb +1 -1
- data/lib/deepl/document_api.rb +4 -3
- data/spec/fixtures/vcr_cassettes/deepl_document.yml +2 -2
- data/spec/fixtures/vcr_cassettes/deepl_document_download.yml +2 -2
- data/spec/fixtures/vcr_cassettes/deepl_glossaries.yml +30 -30
- data/spec/fixtures/vcr_cassettes/deepl_languages.yml +1 -1
- data/spec/fixtures/vcr_cassettes/deepl_translate.yml +9 -9
- data/spec/fixtures/vcr_cassettes/deepl_usage.yml +3 -3
- data/spec/fixtures/vcr_cassettes/glossaries.yml +40 -40
- data/spec/fixtures/vcr_cassettes/languages.yml +3 -3
- data/spec/fixtures/vcr_cassettes/translate_texts.yml +118 -27
- data/spec/fixtures/vcr_cassettes/usage.yml +4 -4
- data/spec/integration_tests/document_api_spec.rb +12 -0
- data/spec/requests/translate_spec.rb +24 -0
- metadata +7 -3
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept:
|
15
15
|
- "*/*"
|
16
16
|
User-Agent:
|
17
|
-
- deepl-ruby/
|
17
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
18
18
|
Content-Type:
|
19
19
|
- application/x-www-form-urlencoded
|
20
20
|
response:
|
@@ -50,7 +50,7 @@ http_interactions:
|
|
50
50
|
Accept:
|
51
51
|
- "*/*"
|
52
52
|
User-Agent:
|
53
|
-
- deepl-ruby/
|
53
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
54
54
|
response:
|
55
55
|
status:
|
56
56
|
code: 200
|
@@ -84,7 +84,7 @@ http_interactions:
|
|
84
84
|
Accept:
|
85
85
|
- "*/*"
|
86
86
|
User-Agent:
|
87
|
-
- deepl-ruby/
|
87
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
88
88
|
response:
|
89
89
|
status:
|
90
90
|
code: 404
|
@@ -118,7 +118,7 @@ http_interactions:
|
|
118
118
|
Accept:
|
119
119
|
- "*/*"
|
120
120
|
User-Agent:
|
121
|
-
- deepl-ruby/
|
121
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
122
122
|
response:
|
123
123
|
status:
|
124
124
|
code: 400
|
@@ -152,7 +152,7 @@ http_interactions:
|
|
152
152
|
Accept:
|
153
153
|
- "*/*"
|
154
154
|
User-Agent:
|
155
|
-
- deepl-ruby/
|
155
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
156
156
|
response:
|
157
157
|
status:
|
158
158
|
code: 200
|
@@ -187,7 +187,7 @@ http_interactions:
|
|
187
187
|
Accept:
|
188
188
|
- "*/*"
|
189
189
|
User-Agent:
|
190
|
-
- deepl-ruby/
|
190
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
191
191
|
response:
|
192
192
|
status:
|
193
193
|
code: 401
|
@@ -221,7 +221,7 @@ http_interactions:
|
|
221
221
|
Accept:
|
222
222
|
- "*/*"
|
223
223
|
User-Agent:
|
224
|
-
- deepl-ruby/
|
224
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
225
225
|
response:
|
226
226
|
status:
|
227
227
|
code: 404
|
@@ -255,7 +255,7 @@ http_interactions:
|
|
255
255
|
Accept:
|
256
256
|
- "*/*"
|
257
257
|
User-Agent:
|
258
|
-
- deepl-ruby/
|
258
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
259
259
|
response:
|
260
260
|
status:
|
261
261
|
code: 400
|
@@ -289,7 +289,7 @@ http_interactions:
|
|
289
289
|
Accept:
|
290
290
|
- "*/*"
|
291
291
|
User-Agent:
|
292
|
-
- deepl-ruby/
|
292
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
293
293
|
response:
|
294
294
|
status:
|
295
295
|
code: 200
|
@@ -323,7 +323,7 @@ http_interactions:
|
|
323
323
|
Accept:
|
324
324
|
- "*/*"
|
325
325
|
User-Agent:
|
326
|
-
- deepl-ruby/
|
326
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
327
327
|
response:
|
328
328
|
status:
|
329
329
|
code: 404
|
@@ -357,7 +357,7 @@ http_interactions:
|
|
357
357
|
Accept:
|
358
358
|
- "*/*"
|
359
359
|
User-Agent:
|
360
|
-
- deepl-ruby/
|
360
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
361
361
|
response:
|
362
362
|
status:
|
363
363
|
code: 400
|
@@ -391,7 +391,7 @@ http_interactions:
|
|
391
391
|
Accept:
|
392
392
|
- "*/*"
|
393
393
|
User-Agent:
|
394
|
-
- deepl-ruby/
|
394
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
395
395
|
response:
|
396
396
|
status:
|
397
397
|
code: 200
|
@@ -425,7 +425,7 @@ http_interactions:
|
|
425
425
|
Accept:
|
426
426
|
- "*/*"
|
427
427
|
User-Agent:
|
428
|
-
- deepl-ruby/
|
428
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
429
429
|
Content-Type:
|
430
430
|
- application/x-www-form-urlencoded
|
431
431
|
response:
|
@@ -461,7 +461,7 @@ http_interactions:
|
|
461
461
|
Accept:
|
462
462
|
- "*/*"
|
463
463
|
User-Agent:
|
464
|
-
- deepl-ruby/
|
464
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
465
465
|
response:
|
466
466
|
status:
|
467
467
|
code: 204
|
@@ -487,7 +487,7 @@ http_interactions:
|
|
487
487
|
Authorization:
|
488
488
|
- DeepL-Auth-Key invalid
|
489
489
|
User-Agent:
|
490
|
-
- deepl-ruby/
|
490
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
491
491
|
Accept-Encoding:
|
492
492
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
493
493
|
Accept:
|
@@ -525,7 +525,7 @@ http_interactions:
|
|
525
525
|
Authorization:
|
526
526
|
- DeepL-Auth-Key VALID_TOKEN
|
527
527
|
User-Agent:
|
528
|
-
- deepl-ruby/
|
528
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
529
529
|
Content-Type:
|
530
530
|
- application/json
|
531
531
|
Accept-Encoding:
|
@@ -565,7 +565,7 @@ http_interactions:
|
|
565
565
|
Authorization:
|
566
566
|
- DeepL-Auth-Key VALID_TOKEN
|
567
567
|
User-Agent:
|
568
|
-
- deepl-ruby/
|
568
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
569
569
|
Accept-Encoding:
|
570
570
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
571
571
|
Accept:
|
@@ -605,7 +605,7 @@ http_interactions:
|
|
605
605
|
Authorization:
|
606
606
|
- DeepL-Auth-Key VALID_TOKEN
|
607
607
|
User-Agent:
|
608
|
-
- deepl-ruby/
|
608
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
609
609
|
Accept-Encoding:
|
610
610
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
611
611
|
Accept:
|
@@ -643,7 +643,7 @@ http_interactions:
|
|
643
643
|
Authorization:
|
644
644
|
- DeepL-Auth-Key VALID_TOKEN
|
645
645
|
User-Agent:
|
646
|
-
- deepl-ruby/
|
646
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
647
647
|
Accept-Encoding:
|
648
648
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
649
649
|
Accept:
|
@@ -683,7 +683,7 @@ http_interactions:
|
|
683
683
|
Authorization:
|
684
684
|
- DeepL-Auth-Key VALID_TOKEN
|
685
685
|
User-Agent:
|
686
|
-
- deepl-ruby/
|
686
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
687
687
|
Accept-Encoding:
|
688
688
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
689
689
|
Accept:
|
@@ -723,7 +723,7 @@ http_interactions:
|
|
723
723
|
Authorization:
|
724
724
|
- DeepL-Auth-Key VALID_TOKEN
|
725
725
|
User-Agent:
|
726
|
-
- deepl-ruby/
|
726
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
727
727
|
Accept-Encoding:
|
728
728
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
729
729
|
Accept:
|
@@ -761,7 +761,7 @@ http_interactions:
|
|
761
761
|
Authorization:
|
762
762
|
- DeepL-Auth-Key VALID_TOKEN
|
763
763
|
User-Agent:
|
764
|
-
- deepl-ruby/
|
764
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
765
765
|
Accept-Encoding:
|
766
766
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
767
767
|
Accept:
|
@@ -801,7 +801,7 @@ http_interactions:
|
|
801
801
|
Authorization:
|
802
802
|
- DeepL-Auth-Key VALID_TOKEN
|
803
803
|
User-Agent:
|
804
|
-
- deepl-ruby/
|
804
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
805
805
|
Accept-Encoding:
|
806
806
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
807
807
|
Accept:
|
@@ -841,7 +841,7 @@ http_interactions:
|
|
841
841
|
Authorization:
|
842
842
|
- DeepL-Auth-Key VALID_TOKEN
|
843
843
|
User-Agent:
|
844
|
-
- deepl-ruby/
|
844
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
845
845
|
Accept-Encoding:
|
846
846
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
847
847
|
Accept:
|
@@ -879,7 +879,7 @@ http_interactions:
|
|
879
879
|
Authorization:
|
880
880
|
- DeepL-Auth-Key VALID_TOKEN
|
881
881
|
User-Agent:
|
882
|
-
- deepl-ruby/
|
882
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
883
883
|
Accept-Encoding:
|
884
884
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
885
885
|
Accept:
|
@@ -921,7 +921,7 @@ http_interactions:
|
|
921
921
|
Authorization:
|
922
922
|
- DeepL-Auth-Key VALID_TOKEN
|
923
923
|
User-Agent:
|
924
|
-
- deepl-ruby/
|
924
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
925
925
|
Accept-Encoding:
|
926
926
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
927
927
|
Accept:
|
@@ -966,7 +966,7 @@ http_interactions:
|
|
966
966
|
Authorization:
|
967
967
|
- DeepL-Auth-Key invalid
|
968
968
|
User-Agent:
|
969
|
-
- deepl-ruby/
|
969
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
970
970
|
Accept-Encoding:
|
971
971
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
972
972
|
Accept:
|
@@ -1004,7 +1004,7 @@ http_interactions:
|
|
1004
1004
|
Authorization:
|
1005
1005
|
- DeepL-Auth-Key VALID_TOKEN
|
1006
1006
|
User-Agent:
|
1007
|
-
- deepl-ruby/
|
1007
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1008
1008
|
Content-Type:
|
1009
1009
|
- application/json
|
1010
1010
|
Accept-Encoding:
|
@@ -1046,7 +1046,7 @@ http_interactions:
|
|
1046
1046
|
Authorization:
|
1047
1047
|
- DeepL-Auth-Key VALID_TOKEN
|
1048
1048
|
User-Agent:
|
1049
|
-
- deepl-ruby/
|
1049
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1050
1050
|
Content-Type:
|
1051
1051
|
- application/json
|
1052
1052
|
Accept-Encoding:
|
@@ -1086,7 +1086,7 @@ http_interactions:
|
|
1086
1086
|
Authorization:
|
1087
1087
|
- DeepL-Auth-Key VALID_TOKEN
|
1088
1088
|
User-Agent:
|
1089
|
-
- deepl-ruby/
|
1089
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1090
1090
|
Content-Type:
|
1091
1091
|
- application/json
|
1092
1092
|
Accept-Encoding:
|
@@ -1128,7 +1128,7 @@ http_interactions:
|
|
1128
1128
|
Authorization:
|
1129
1129
|
- DeepL-Auth-Key VALID_TOKEN
|
1130
1130
|
User-Agent:
|
1131
|
-
- deepl-ruby/
|
1131
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1132
1132
|
Content-Type:
|
1133
1133
|
- application/json
|
1134
1134
|
Accept-Encoding:
|
@@ -1170,7 +1170,7 @@ http_interactions:
|
|
1170
1170
|
Authorization:
|
1171
1171
|
- DeepL-Auth-Key VALID_TOKEN
|
1172
1172
|
User-Agent:
|
1173
|
-
- deepl-ruby/
|
1173
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1174
1174
|
Content-Type:
|
1175
1175
|
- application/json
|
1176
1176
|
Accept-Encoding:
|
@@ -1210,7 +1210,7 @@ http_interactions:
|
|
1210
1210
|
Authorization:
|
1211
1211
|
- DeepL-Auth-Key VALID_TOKEN
|
1212
1212
|
User-Agent:
|
1213
|
-
- deepl-ruby/
|
1213
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1214
1214
|
Content-Type:
|
1215
1215
|
- application/json
|
1216
1216
|
Accept-Encoding:
|
@@ -1254,7 +1254,7 @@ http_interactions:
|
|
1254
1254
|
Authorization:
|
1255
1255
|
- DeepL-Auth-Key VALID_TOKEN
|
1256
1256
|
User-Agent:
|
1257
|
-
- deepl-ruby/
|
1257
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1258
1258
|
Content-Type:
|
1259
1259
|
- application/json
|
1260
1260
|
Accept-Encoding:
|
@@ -1296,7 +1296,7 @@ http_interactions:
|
|
1296
1296
|
Authorization:
|
1297
1297
|
- DeepL-Auth-Key VALID_TOKEN
|
1298
1298
|
User-Agent:
|
1299
|
-
- deepl-ruby/
|
1299
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1300
1300
|
Content-Type:
|
1301
1301
|
- application/json
|
1302
1302
|
Accept-Encoding:
|
@@ -1336,7 +1336,7 @@ http_interactions:
|
|
1336
1336
|
Authorization:
|
1337
1337
|
- DeepL-Auth-Key VALID_TOKEN
|
1338
1338
|
User-Agent:
|
1339
|
-
- deepl-ruby/
|
1339
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1340
1340
|
Content-Type:
|
1341
1341
|
- application/json
|
1342
1342
|
Accept-Encoding:
|
@@ -1463,7 +1463,7 @@ http_interactions:
|
|
1463
1463
|
Authorization:
|
1464
1464
|
- DeepL-Auth-Key VALID_TOKEN
|
1465
1465
|
User-Agent:
|
1466
|
-
- deepl-ruby/
|
1466
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1467
1467
|
Content-Type:
|
1468
1468
|
- application/json
|
1469
1469
|
Accept-Encoding:
|
@@ -1503,7 +1503,7 @@ http_interactions:
|
|
1503
1503
|
Authorization:
|
1504
1504
|
- DeepL-Auth-Key VALID_TOKEN
|
1505
1505
|
User-Agent:
|
1506
|
-
- deepl-ruby/
|
1506
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1507
1507
|
Content-Type:
|
1508
1508
|
- application/json
|
1509
1509
|
Accept-Encoding:
|
@@ -1622,7 +1622,7 @@ http_interactions:
|
|
1622
1622
|
Authorization:
|
1623
1623
|
- DeepL-Auth-Key VALID_TOKEN
|
1624
1624
|
User-Agent:
|
1625
|
-
- deepl-ruby/
|
1625
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1626
1626
|
Content-Type:
|
1627
1627
|
- application/json
|
1628
1628
|
Accept-Encoding:
|
@@ -1669,7 +1669,7 @@ http_interactions:
|
|
1669
1669
|
Authorization:
|
1670
1670
|
- DeepL-Auth-Key invalid
|
1671
1671
|
User-Agent:
|
1672
|
-
- deepl-ruby/
|
1672
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
1673
1673
|
Content-Type:
|
1674
1674
|
- application/json
|
1675
1675
|
Accept-Encoding:
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Authorization:
|
53
53
|
- DeepL-Auth-Key VALID_TOKEN
|
54
54
|
User-Agent:
|
55
|
-
- deepl-ruby/
|
55
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
56
56
|
Content-Type:
|
57
57
|
- application/json
|
58
58
|
Accept-Encoding:
|
@@ -98,7 +98,7 @@ http_interactions:
|
|
98
98
|
Authorization:
|
99
99
|
- DeepL-Auth-Key VALID_TOKEN
|
100
100
|
User-Agent:
|
101
|
-
- deepl-ruby/
|
101
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
102
102
|
Content-Type:
|
103
103
|
- application/json
|
104
104
|
Accept-Encoding:
|
@@ -149,7 +149,7 @@ http_interactions:
|
|
149
149
|
Authorization:
|
150
150
|
- DeepL-Auth-Key VALID_TOKEN
|
151
151
|
User-Agent:
|
152
|
-
- deepl-ruby/
|
152
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
153
153
|
Content-Type:
|
154
154
|
- application/json
|
155
155
|
Accept-Encoding:
|