deepl-rb 3.0.1 → 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 +8 -0
- data/README.md +11 -0
- data/Rakefile +6 -0
- data/VERSION +1 -1
- data/deepl-rb.gemspec +4 -3
- data/lib/deepl/configuration.rb +1 -1
- 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/requests/translate_spec.rb +24 -0
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ed15fdabc7d3b893b4590bda599106140c9c06c7d4d67cc6ff2a679a05ba301
|
|
4
|
+
data.tar.gz: fee679c9456728c0679ebdf66ea501d7924eb49e9e1e480520a50a6c7cfed3d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eefd241705fc379dd6de1574a63f83380cb445a6d883c7d2db6da3827691b79845b06f37227c0ea0285738066ba1850782e0462ec9fab9a02816205ab416ba35
|
|
7
|
+
data.tar.gz: c6f0789c07f2f23c27a9ee979812b0d76bde2edb308cd2e6c422f826a089f561cdb6c80317dfecb27ed94d9f2ee6c6340135548ea3866bb21084896da28ceb3d
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
## [3.0.2] - 2024-10-02
|
|
9
|
+
### Added
|
|
10
|
+
* Added doc example and tests for context parameter
|
|
11
|
+
### Fixed
|
|
12
|
+
* Fix metadata displayed on RubyGems.org for this library.
|
|
13
|
+
* Fixed library version sent in the `User-Agent` string.
|
|
14
|
+
|
|
8
15
|
## [3.0.1] - 2024-09-23
|
|
9
16
|
### Fixed
|
|
10
17
|
* `document.translate_document` required a filename, this is now optional. The example in the README now works.
|
|
@@ -34,6 +41,7 @@ The change in major version is only due to the change in maintainership, there i
|
|
|
34
41
|
* Make RequestEntityTooLarge error message more clear
|
|
35
42
|
|
|
36
43
|
|
|
44
|
+
[3.0.2]: https://github.com/DeepLcom/deepl-rb/compare/v3.0.1...v3.0.2
|
|
37
45
|
[3.0.1]: https://github.com/DeepLcom/deepl-rb/compare/v3.0.0...v3.0.1
|
|
38
46
|
[3.0.0]: https://github.com/DeepLcom/deepl-rb/compare/v2.5.3...v3.0.0
|
|
39
47
|
[2.5.3]: https://github.com/DeepLcom/deepl-rb/compare/v2.5.2...v2.5.3
|
data/README.md
CHANGED
|
@@ -127,6 +127,16 @@ puts translation.text
|
|
|
127
127
|
# => "<p>Una muestra</p>"
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
+
To translate with context, simply supply the `context` parameter:
|
|
131
|
+
|
|
132
|
+
```rb
|
|
133
|
+
translation = DeepL.translate 'That is hot!', 'EN', 'ES',
|
|
134
|
+
context: 'He did not like the jalapenos in his meal.'
|
|
135
|
+
|
|
136
|
+
puts translation.text
|
|
137
|
+
# => "¡Eso es picante!"
|
|
138
|
+
```
|
|
139
|
+
|
|
130
140
|
The following parameters will be automatically converted:
|
|
131
141
|
|
|
132
142
|
| Parameter | Conversion
|
|
@@ -139,6 +149,7 @@ The following parameters will be automatically converted:
|
|
|
139
149
|
| `ignore_tags` | Converts arrays to strings joining by commas
|
|
140
150
|
| `formality` | No conversion applied
|
|
141
151
|
| `glossary_id` | No conversion applied
|
|
152
|
+
| `context` | No conversion applied
|
|
142
153
|
|
|
143
154
|
### Glossaries
|
|
144
155
|
|
data/Rakefile
CHANGED
|
@@ -25,6 +25,12 @@ Juwelier::Tasks.new do |gem|
|
|
|
25
25
|
|
|
26
26
|
gem.email = 'open-source@deepl.com'
|
|
27
27
|
gem.authors = ['DeepL SE']
|
|
28
|
+
gem.metadata = {
|
|
29
|
+
'bug_tracker_uri' => 'https://github.com/DeepLcom/deepl-rb/issues',
|
|
30
|
+
'changelog_uri' => 'https://github.com/DeepLcom/deepl-rb/blob/main/CHANGELOG.md',
|
|
31
|
+
'documentation_uri' => 'https://github.com/DeepLcom/deepl-rb/blob/main/README.md',
|
|
32
|
+
'homepage_uri' => 'https://github.com/DeepLcom/deepl-rb'
|
|
33
|
+
}
|
|
28
34
|
gem.files.exclude '.github'
|
|
29
35
|
gem.files.exclude '.circleci'
|
|
30
36
|
end
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.2
|
data/deepl-rb.gemspec
CHANGED
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: deepl-rb 3.0.
|
|
5
|
+
# stub: deepl-rb 3.0.2 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "deepl-rb".freeze
|
|
9
|
-
s.version = "3.0.
|
|
9
|
+
s.version = "3.0.2"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
|
+
s.metadata = { "bug_tracker_uri" => "https://github.com/DeepLcom/deepl-rb/issues", "changelog_uri" => "https://github.com/DeepLcom/deepl-rb/blob/main/CHANGELOG.md", "documentation_uri" => "https://github.com/DeepLcom/deepl-rb/blob/main/README.md", "homepage_uri" => "https://github.com/DeepLcom/deepl-rb" } if s.respond_to? :metadata=
|
|
12
13
|
s.require_paths = ["lib".freeze]
|
|
13
14
|
s.authors = ["DeepL SE".freeze]
|
|
14
|
-
s.date = "2024-
|
|
15
|
+
s.date = "2024-10-02"
|
|
15
16
|
s.description = "Official Ruby library for the DeepL language translation API (v2). For more information, check this: https://www.deepl.com/docs/api-reference.html".freeze
|
|
16
17
|
s.email = "open-source@deepl.com".freeze
|
|
17
18
|
s.extra_rdoc_files = [
|
data/lib/deepl/configuration.rb
CHANGED
|
@@ -46,7 +46,7 @@ module DeepL
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def construct_user_agent(send_platform_info, app_info_name, app_info_version)
|
|
49
|
-
library_info_str = 'deepl-ruby/
|
|
49
|
+
library_info_str = 'deepl-ruby/3.0.2'
|
|
50
50
|
if send_platform_info
|
|
51
51
|
library_info_str += " (#{RbConfig::CONFIG['host_os']}) ruby/#{RUBY_VERSION}"
|
|
52
52
|
end
|
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
|
10
10
|
Authorization:
|
|
11
11
|
- DeepL-Auth-Key VALID_TOKEN
|
|
12
12
|
User-Agent:
|
|
13
|
-
- deepl-ruby/
|
|
13
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
14
14
|
Content-Type:
|
|
15
15
|
- multipart/form-data
|
|
16
16
|
Accept-Encoding:
|
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
|
56
56
|
Authorization:
|
|
57
57
|
- DeepL-Auth-Key VALID_TOKEN
|
|
58
58
|
User-Agent:
|
|
59
|
-
- deepl-ruby/
|
|
59
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
60
60
|
Content-Type:
|
|
61
61
|
- application/json
|
|
62
62
|
Accept-Encoding:
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Accept:
|
|
17
17
|
- "*/*"
|
|
18
18
|
User-Agent:
|
|
19
|
-
- deepl-ruby/
|
|
19
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
20
20
|
Content-Type:
|
|
21
21
|
- application/x-www-form-urlencoded
|
|
22
22
|
response:
|
|
@@ -1168,7 +1168,7 @@ http_interactions:
|
|
|
1168
1168
|
Authorization:
|
|
1169
1169
|
- DeepL-Auth-Key VALID_TOKEN
|
|
1170
1170
|
User-Agent:
|
|
1171
|
-
- deepl-ruby/
|
|
1171
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
1172
1172
|
Content-Type:
|
|
1173
1173
|
- application/json
|
|
1174
1174
|
Accept-Encoding:
|
|
@@ -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: 200
|
|
@@ -153,7 +153,7 @@ http_interactions:
|
|
|
153
153
|
Accept:
|
|
154
154
|
- "*/*"
|
|
155
155
|
User-Agent:
|
|
156
|
-
- deepl-ruby/
|
|
156
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
157
157
|
response:
|
|
158
158
|
status:
|
|
159
159
|
code: 204
|
|
@@ -183,7 +183,7 @@ http_interactions:
|
|
|
183
183
|
Accept:
|
|
184
184
|
- "*/*"
|
|
185
185
|
User-Agent:
|
|
186
|
-
- deepl-ruby/
|
|
186
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
187
187
|
response:
|
|
188
188
|
status:
|
|
189
189
|
code: 404
|
|
@@ -217,7 +217,7 @@ http_interactions:
|
|
|
217
217
|
Accept:
|
|
218
218
|
- "*/*"
|
|
219
219
|
User-Agent:
|
|
220
|
-
- deepl-ruby/
|
|
220
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
221
221
|
response:
|
|
222
222
|
status:
|
|
223
223
|
code: 200
|
|
@@ -251,7 +251,7 @@ http_interactions:
|
|
|
251
251
|
Accept:
|
|
252
252
|
- "*/*"
|
|
253
253
|
User-Agent:
|
|
254
|
-
- deepl-ruby/
|
|
254
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
255
255
|
response:
|
|
256
256
|
status:
|
|
257
257
|
code: 404
|
|
@@ -285,7 +285,7 @@ http_interactions:
|
|
|
285
285
|
Accept:
|
|
286
286
|
- "*/*"
|
|
287
287
|
User-Agent:
|
|
288
|
-
- deepl-ruby/
|
|
288
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
289
289
|
response:
|
|
290
290
|
status:
|
|
291
291
|
code: 200
|
|
@@ -319,7 +319,7 @@ http_interactions:
|
|
|
319
319
|
Accept:
|
|
320
320
|
- "*/*"
|
|
321
321
|
User-Agent:
|
|
322
|
-
- deepl-ruby/
|
|
322
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
323
323
|
Content-Type:
|
|
324
324
|
- application/x-www-form-urlencoded
|
|
325
325
|
response:
|
|
@@ -355,7 +355,7 @@ http_interactions:
|
|
|
355
355
|
Accept:
|
|
356
356
|
- "*/*"
|
|
357
357
|
User-Agent:
|
|
358
|
-
- deepl-ruby/
|
|
358
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
359
359
|
response:
|
|
360
360
|
status:
|
|
361
361
|
code: 204
|
|
@@ -381,7 +381,7 @@ http_interactions:
|
|
|
381
381
|
Authorization:
|
|
382
382
|
- DeepL-Auth-Key VALID_TOKEN
|
|
383
383
|
User-Agent:
|
|
384
|
-
- deepl-ruby/
|
|
384
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
385
385
|
Content-Type:
|
|
386
386
|
- application/json
|
|
387
387
|
Accept-Encoding:
|
|
@@ -421,7 +421,7 @@ http_interactions:
|
|
|
421
421
|
Authorization:
|
|
422
422
|
- DeepL-Auth-Key VALID_TOKEN
|
|
423
423
|
User-Agent:
|
|
424
|
-
- deepl-ruby/
|
|
424
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
425
425
|
Accept-Encoding:
|
|
426
426
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
427
427
|
Accept:
|
|
@@ -461,7 +461,7 @@ http_interactions:
|
|
|
461
461
|
Authorization:
|
|
462
462
|
- DeepL-Auth-Key VALID_TOKEN
|
|
463
463
|
User-Agent:
|
|
464
|
-
- deepl-ruby/
|
|
464
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
465
465
|
Accept-Encoding:
|
|
466
466
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
467
467
|
Accept:
|
|
@@ -501,7 +501,7 @@ http_interactions:
|
|
|
501
501
|
Authorization:
|
|
502
502
|
- DeepL-Auth-Key VALID_TOKEN
|
|
503
503
|
User-Agent:
|
|
504
|
-
- deepl-ruby/
|
|
504
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
505
505
|
Accept-Encoding:
|
|
506
506
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
507
507
|
Accept:
|
|
@@ -545,7 +545,7 @@ http_interactions:
|
|
|
545
545
|
Authorization:
|
|
546
546
|
- DeepL-Auth-Key VALID_TOKEN
|
|
547
547
|
User-Agent:
|
|
548
|
-
- deepl-ruby/
|
|
548
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
549
549
|
Accept-Encoding:
|
|
550
550
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
551
551
|
Accept:
|
|
@@ -585,7 +585,7 @@ http_interactions:
|
|
|
585
585
|
Authorization:
|
|
586
586
|
- DeepL-Auth-Key VALID_TOKEN
|
|
587
587
|
User-Agent:
|
|
588
|
-
- deepl-ruby/
|
|
588
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
589
589
|
Accept-Encoding:
|
|
590
590
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
591
591
|
Accept:
|
|
@@ -625,7 +625,7 @@ http_interactions:
|
|
|
625
625
|
Authorization:
|
|
626
626
|
- DeepL-Auth-Key VALID_TOKEN
|
|
627
627
|
User-Agent:
|
|
628
|
-
- deepl-ruby/
|
|
628
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
629
629
|
Accept-Encoding:
|
|
630
630
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
631
631
|
Accept:
|
|
@@ -665,7 +665,7 @@ http_interactions:
|
|
|
665
665
|
Authorization:
|
|
666
666
|
- DeepL-Auth-Key VALID_TOKEN
|
|
667
667
|
User-Agent:
|
|
668
|
-
- deepl-ruby/
|
|
668
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
669
669
|
Accept-Encoding:
|
|
670
670
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
671
671
|
Accept:
|
|
@@ -707,7 +707,7 @@ http_interactions:
|
|
|
707
707
|
Authorization:
|
|
708
708
|
- DeepL-Auth-Key VALID_TOKEN
|
|
709
709
|
User-Agent:
|
|
710
|
-
- deepl-ruby/
|
|
710
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
711
711
|
Content-Type:
|
|
712
712
|
- application/json
|
|
713
713
|
Accept-Encoding:
|
|
@@ -749,7 +749,7 @@ http_interactions:
|
|
|
749
749
|
Authorization:
|
|
750
750
|
- DeepL-Auth-Key VALID_TOKEN
|
|
751
751
|
User-Agent:
|
|
752
|
-
- deepl-ruby/
|
|
752
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
753
753
|
Content-Type:
|
|
754
754
|
- application/json
|
|
755
755
|
Accept-Encoding:
|
|
@@ -791,7 +791,7 @@ http_interactions:
|
|
|
791
791
|
Authorization:
|
|
792
792
|
- DeepL-Auth-Key VALID_TOKEN
|
|
793
793
|
User-Agent:
|
|
794
|
-
- deepl-ruby/
|
|
794
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
795
795
|
Content-Type:
|
|
796
796
|
- application/json
|
|
797
797
|
Accept-Encoding:
|
|
@@ -838,7 +838,7 @@ http_interactions:
|
|
|
838
838
|
Authorization:
|
|
839
839
|
- DeepL-Auth-Key VALID_TOKEN
|
|
840
840
|
User-Agent:
|
|
841
|
-
- deepl-ruby/
|
|
841
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
842
842
|
Content-Type:
|
|
843
843
|
- application/json
|
|
844
844
|
Accept-Encoding:
|
|
@@ -880,7 +880,7 @@ http_interactions:
|
|
|
880
880
|
Authorization:
|
|
881
881
|
- DeepL-Auth-Key VALID_TOKEN
|
|
882
882
|
User-Agent:
|
|
883
|
-
- deepl-ruby/
|
|
883
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
884
884
|
Content-Type:
|
|
885
885
|
- application/json
|
|
886
886
|
Accept-Encoding:
|
|
@@ -922,7 +922,7 @@ http_interactions:
|
|
|
922
922
|
Authorization:
|
|
923
923
|
- DeepL-Auth-Key VALID_TOKEN
|
|
924
924
|
User-Agent:
|
|
925
|
-
- deepl-ruby/
|
|
925
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
926
926
|
Content-Type:
|
|
927
927
|
- application/json
|
|
928
928
|
Accept-Encoding:
|
|
@@ -964,7 +964,7 @@ http_interactions:
|
|
|
964
964
|
Authorization:
|
|
965
965
|
- DeepL-Auth-Key VALID_TOKEN
|
|
966
966
|
User-Agent:
|
|
967
|
-
- deepl-ruby/
|
|
967
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
968
968
|
Content-Type:
|
|
969
969
|
- application/json
|
|
970
970
|
Accept-Encoding:
|
|
@@ -1008,7 +1008,7 @@ http_interactions:
|
|
|
1008
1008
|
Authorization:
|
|
1009
1009
|
- DeepL-Auth-Key VALID_TOKEN
|
|
1010
1010
|
User-Agent:
|
|
1011
|
-
- deepl-ruby/
|
|
1011
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
1012
1012
|
Content-Type:
|
|
1013
1013
|
- application/json
|
|
1014
1014
|
Accept-Encoding:
|
|
@@ -1052,7 +1052,7 @@ http_interactions:
|
|
|
1052
1052
|
Authorization:
|
|
1053
1053
|
- DeepL-Auth-Key VALID_TOKEN
|
|
1054
1054
|
User-Agent:
|
|
1055
|
-
- deepl-ruby/
|
|
1055
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
1056
1056
|
Content-Type:
|
|
1057
1057
|
- application/json
|
|
1058
1058
|
Accept-Encoding:
|
|
@@ -1094,7 +1094,7 @@ http_interactions:
|
|
|
1094
1094
|
Authorization:
|
|
1095
1095
|
- DeepL-Auth-Key VALID_TOKEN
|
|
1096
1096
|
User-Agent:
|
|
1097
|
-
- deepl-ruby/
|
|
1097
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
1098
1098
|
Content-Type:
|
|
1099
1099
|
- application/json
|
|
1100
1100
|
Accept-Encoding:
|
|
@@ -1134,7 +1134,7 @@ http_interactions:
|
|
|
1134
1134
|
Authorization:
|
|
1135
1135
|
- DeepL-Auth-Key VALID_TOKEN
|
|
1136
1136
|
User-Agent:
|
|
1137
|
-
- deepl-ruby/
|
|
1137
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
1138
1138
|
Content-Type:
|
|
1139
1139
|
- application/json
|
|
1140
1140
|
Accept-Encoding:
|
|
@@ -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:
|
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
|
52
52
|
Accept:
|
|
53
53
|
- "*/*"
|
|
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/x-www-form-urlencoded
|
|
58
58
|
response:
|
|
@@ -88,7 +88,7 @@ http_interactions:
|
|
|
88
88
|
Accept:
|
|
89
89
|
- "*/*"
|
|
90
90
|
User-Agent:
|
|
91
|
-
- deepl-ruby/
|
|
91
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
92
92
|
Content-Type:
|
|
93
93
|
- application/x-www-form-urlencoded
|
|
94
94
|
response:
|
|
@@ -126,7 +126,7 @@ http_interactions:
|
|
|
126
126
|
Accept:
|
|
127
127
|
- "*/*"
|
|
128
128
|
User-Agent:
|
|
129
|
-
- deepl-ruby/
|
|
129
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
130
130
|
Content-Type:
|
|
131
131
|
- application/x-www-form-urlencoded
|
|
132
132
|
response:
|
|
@@ -160,7 +160,7 @@ http_interactions:
|
|
|
160
160
|
Authorization:
|
|
161
161
|
- DeepL-Auth-Key VALID_TOKEN
|
|
162
162
|
User-Agent:
|
|
163
|
-
- deepl-ruby/
|
|
163
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
164
164
|
Content-Type:
|
|
165
165
|
- application/json
|
|
166
166
|
Accept-Encoding:
|
|
@@ -200,7 +200,7 @@ http_interactions:
|
|
|
200
200
|
Authorization:
|
|
201
201
|
- DeepL-Auth-Key VALID_TOKEN
|
|
202
202
|
User-Agent:
|
|
203
|
-
- deepl-ruby/
|
|
203
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
204
204
|
Content-Type:
|
|
205
205
|
- application/json
|
|
206
206
|
Accept-Encoding:
|
|
@@ -244,7 +244,7 @@ http_interactions:
|
|
|
244
244
|
Authorization:
|
|
245
245
|
- DeepL-Auth-Key VALID_TOKEN
|
|
246
246
|
User-Agent:
|
|
247
|
-
- deepl-ruby/
|
|
247
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
248
248
|
Content-Type:
|
|
249
249
|
- application/json
|
|
250
250
|
Accept-Encoding:
|
|
@@ -284,7 +284,7 @@ http_interactions:
|
|
|
284
284
|
Authorization:
|
|
285
285
|
- DeepL-Auth-Key VALID_TOKEN
|
|
286
286
|
User-Agent:
|
|
287
|
-
- deepl-ruby/
|
|
287
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
288
288
|
Content-Type:
|
|
289
289
|
- application/json
|
|
290
290
|
Accept-Encoding:
|
|
@@ -329,7 +329,7 @@ http_interactions:
|
|
|
329
329
|
Authorization:
|
|
330
330
|
- DeepL-Auth-Key VALID_TOKEN
|
|
331
331
|
User-Agent:
|
|
332
|
-
- deepl-ruby/
|
|
332
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
333
333
|
Content-Type:
|
|
334
334
|
- application/json
|
|
335
335
|
Accept-Encoding:
|
|
@@ -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
|
response:
|
|
19
19
|
status:
|
|
20
20
|
code: 200
|
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
|
46
46
|
Authorization:
|
|
47
47
|
- DeepL-Auth-Key VALID_TOKEN
|
|
48
48
|
User-Agent:
|
|
49
|
-
- deepl-ruby/
|
|
49
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
50
50
|
Accept-Encoding:
|
|
51
51
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
52
52
|
Accept:
|
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
|
90
90
|
Authorization:
|
|
91
91
|
- DeepL-Auth-Key VALID_TOKEN
|
|
92
92
|
User-Agent:
|
|
93
|
-
- deepl-ruby/
|
|
93
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
94
94
|
Content-Type:
|
|
95
95
|
- application/json
|
|
96
96
|
Accept-Encoding:
|
|
@@ -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:
|
|
@@ -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:
|
|
@@ -53,7 +53,7 @@ http_interactions:
|
|
|
53
53
|
Accept:
|
|
54
54
|
- "*/*"
|
|
55
55
|
User-Agent:
|
|
56
|
-
- deepl-ruby/
|
|
56
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
57
57
|
Content-Type:
|
|
58
58
|
- application/x-www-form-urlencoded
|
|
59
59
|
response:
|
|
@@ -91,7 +91,7 @@ http_interactions:
|
|
|
91
91
|
Accept:
|
|
92
92
|
- "*/*"
|
|
93
93
|
User-Agent:
|
|
94
|
-
- deepl-ruby/
|
|
94
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
95
95
|
Content-Type:
|
|
96
96
|
- application/x-www-form-urlencoded
|
|
97
97
|
response:
|
|
@@ -130,7 +130,7 @@ http_interactions:
|
|
|
130
130
|
Accept:
|
|
131
131
|
- "*/*"
|
|
132
132
|
User-Agent:
|
|
133
|
-
- deepl-ruby/
|
|
133
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
134
134
|
Content-Type:
|
|
135
135
|
- application/x-www-form-urlencoded
|
|
136
136
|
response:
|
|
@@ -166,7 +166,7 @@ http_interactions:
|
|
|
166
166
|
Accept:
|
|
167
167
|
- "*/*"
|
|
168
168
|
User-Agent:
|
|
169
|
-
- deepl-ruby/
|
|
169
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
170
170
|
Content-Type:
|
|
171
171
|
- application/x-www-form-urlencoded
|
|
172
172
|
response:
|
|
@@ -202,7 +202,7 @@ http_interactions:
|
|
|
202
202
|
Accept:
|
|
203
203
|
- "*/*"
|
|
204
204
|
User-Agent:
|
|
205
|
-
- deepl-ruby/
|
|
205
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
206
206
|
Content-Type:
|
|
207
207
|
- application/x-www-form-urlencoded
|
|
208
208
|
response:
|
|
@@ -236,7 +236,7 @@ http_interactions:
|
|
|
236
236
|
Accept:
|
|
237
237
|
- "*/*"
|
|
238
238
|
User-Agent:
|
|
239
|
-
- deepl-ruby/
|
|
239
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
240
240
|
Content-Type:
|
|
241
241
|
- application/x-www-form-urlencoded
|
|
242
242
|
response:
|
|
@@ -273,7 +273,7 @@ http_interactions:
|
|
|
273
273
|
Accept:
|
|
274
274
|
- "*/*"
|
|
275
275
|
User-Agent:
|
|
276
|
-
- deepl-ruby/
|
|
276
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
277
277
|
Content-Type:
|
|
278
278
|
- application/x-www-form-urlencoded
|
|
279
279
|
response:
|
|
@@ -311,7 +311,7 @@ http_interactions:
|
|
|
311
311
|
Accept:
|
|
312
312
|
- "*/*"
|
|
313
313
|
User-Agent:
|
|
314
|
-
- deepl-ruby/
|
|
314
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
315
315
|
Content-Type:
|
|
316
316
|
- application/x-www-form-urlencoded
|
|
317
317
|
response:
|
|
@@ -352,7 +352,7 @@ http_interactions:
|
|
|
352
352
|
Accept:
|
|
353
353
|
- "*/*"
|
|
354
354
|
User-Agent:
|
|
355
|
-
- deepl-ruby/
|
|
355
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
356
356
|
Content-Type:
|
|
357
357
|
- application/x-www-form-urlencoded
|
|
358
358
|
response:
|
|
@@ -393,7 +393,7 @@ http_interactions:
|
|
|
393
393
|
Accept:
|
|
394
394
|
- "*/*"
|
|
395
395
|
User-Agent:
|
|
396
|
-
- deepl-ruby/
|
|
396
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
397
397
|
Content-Type:
|
|
398
398
|
- application/x-www-form-urlencoded
|
|
399
399
|
response:
|
|
@@ -4866,7 +4866,7 @@ http_interactions:
|
|
|
4866
4866
|
Authorization:
|
|
4867
4867
|
- DeepL-Auth-Key VALID_TOKEN
|
|
4868
4868
|
User-Agent:
|
|
4869
|
-
- deepl-ruby/
|
|
4869
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
4870
4870
|
Content-Type:
|
|
4871
4871
|
- application/json
|
|
4872
4872
|
Accept-Encoding:
|
|
@@ -4907,7 +4907,7 @@ http_interactions:
|
|
|
4907
4907
|
Authorization:
|
|
4908
4908
|
- DeepL-Auth-Key invalid
|
|
4909
4909
|
User-Agent:
|
|
4910
|
-
- deepl-ruby/
|
|
4910
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
4911
4911
|
Content-Type:
|
|
4912
4912
|
- application/json
|
|
4913
4913
|
Accept-Encoding:
|
|
@@ -4947,7 +4947,7 @@ http_interactions:
|
|
|
4947
4947
|
Authorization:
|
|
4948
4948
|
- DeepL-Auth-Key VALID_TOKEN
|
|
4949
4949
|
User-Agent:
|
|
4950
|
-
- deepl-ruby/
|
|
4950
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
4951
4951
|
Content-Type:
|
|
4952
4952
|
- application/json
|
|
4953
4953
|
Accept-Encoding:
|
|
@@ -4991,7 +4991,7 @@ http_interactions:
|
|
|
4991
4991
|
Authorization:
|
|
4992
4992
|
- DeepL-Auth-Key invalid
|
|
4993
4993
|
User-Agent:
|
|
4994
|
-
- deepl-ruby/
|
|
4994
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
4995
4995
|
Content-Type:
|
|
4996
4996
|
- application/json
|
|
4997
4997
|
Accept-Encoding:
|
|
@@ -5031,7 +5031,7 @@ http_interactions:
|
|
|
5031
5031
|
Authorization:
|
|
5032
5032
|
- DeepL-Auth-Key VALID_TOKEN
|
|
5033
5033
|
User-Agent:
|
|
5034
|
-
- deepl-ruby/
|
|
5034
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
5035
5035
|
Content-Type:
|
|
5036
5036
|
- application/json
|
|
5037
5037
|
Accept-Encoding:
|
|
@@ -9513,7 +9513,7 @@ http_interactions:
|
|
|
9513
9513
|
Authorization:
|
|
9514
9514
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9515
9515
|
User-Agent:
|
|
9516
|
-
- deepl-ruby/
|
|
9516
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9517
9517
|
Content-Type:
|
|
9518
9518
|
- application/json
|
|
9519
9519
|
Accept-Encoding:
|
|
@@ -9597,7 +9597,7 @@ http_interactions:
|
|
|
9597
9597
|
Authorization:
|
|
9598
9598
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9599
9599
|
User-Agent:
|
|
9600
|
-
- deepl-ruby/
|
|
9600
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9601
9601
|
Content-Type:
|
|
9602
9602
|
- application/json
|
|
9603
9603
|
Accept-Encoding:
|
|
@@ -9642,7 +9642,7 @@ http_interactions:
|
|
|
9642
9642
|
Authorization:
|
|
9643
9643
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9644
9644
|
User-Agent:
|
|
9645
|
-
- deepl-ruby/
|
|
9645
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9646
9646
|
Content-Type:
|
|
9647
9647
|
- application/json
|
|
9648
9648
|
Accept-Encoding:
|
|
@@ -9687,7 +9687,7 @@ http_interactions:
|
|
|
9687
9687
|
Authorization:
|
|
9688
9688
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9689
9689
|
User-Agent:
|
|
9690
|
-
- deepl-ruby/
|
|
9690
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9691
9691
|
Content-Type:
|
|
9692
9692
|
- application/json
|
|
9693
9693
|
Accept-Encoding:
|
|
@@ -9768,7 +9768,7 @@ http_interactions:
|
|
|
9768
9768
|
Authorization:
|
|
9769
9769
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9770
9770
|
User-Agent:
|
|
9771
|
-
- deepl-ruby/
|
|
9771
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9772
9772
|
Content-Type:
|
|
9773
9773
|
- application/json
|
|
9774
9774
|
Accept-Encoding:
|
|
@@ -9811,7 +9811,7 @@ http_interactions:
|
|
|
9811
9811
|
Authorization:
|
|
9812
9812
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9813
9813
|
User-Agent:
|
|
9814
|
-
- deepl-ruby/
|
|
9814
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9815
9815
|
Content-Type:
|
|
9816
9816
|
- application/json
|
|
9817
9817
|
Accept-Encoding:
|
|
@@ -9853,7 +9853,7 @@ http_interactions:
|
|
|
9853
9853
|
Authorization:
|
|
9854
9854
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9855
9855
|
User-Agent:
|
|
9856
|
-
- deepl-ruby/
|
|
9856
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9857
9857
|
Content-Type:
|
|
9858
9858
|
- application/json
|
|
9859
9859
|
Accept-Encoding:
|
|
@@ -9900,7 +9900,7 @@ http_interactions:
|
|
|
9900
9900
|
Authorization:
|
|
9901
9901
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9902
9902
|
User-Agent:
|
|
9903
|
-
- deepl-ruby/
|
|
9903
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9904
9904
|
Content-Type:
|
|
9905
9905
|
- application/json
|
|
9906
9906
|
Accept-Encoding:
|
|
@@ -9945,7 +9945,7 @@ http_interactions:
|
|
|
9945
9945
|
Authorization:
|
|
9946
9946
|
- DeepL-Auth-Key VALID_TOKEN
|
|
9947
9947
|
User-Agent:
|
|
9948
|
-
- deepl-ruby/
|
|
9948
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
9949
9949
|
Content-Type:
|
|
9950
9950
|
- application/json
|
|
9951
9951
|
Accept-Encoding:
|
|
@@ -10071,7 +10071,7 @@ http_interactions:
|
|
|
10071
10071
|
Authorization:
|
|
10072
10072
|
- DeepL-Auth-Key VALID_TOKEN
|
|
10073
10073
|
User-Agent:
|
|
10074
|
-
- deepl-ruby/
|
|
10074
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
10075
10075
|
Content-Type:
|
|
10076
10076
|
- application/json
|
|
10077
10077
|
Accept-Encoding:
|
|
@@ -10116,7 +10116,7 @@ http_interactions:
|
|
|
10116
10116
|
Authorization:
|
|
10117
10117
|
- DeepL-Auth-Key invalid
|
|
10118
10118
|
User-Agent:
|
|
10119
|
-
- deepl-ruby/
|
|
10119
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
10120
10120
|
Content-Type:
|
|
10121
10121
|
- application/json
|
|
10122
10122
|
Accept-Encoding:
|
|
@@ -10146,4 +10146,95 @@ http_interactions:
|
|
|
10146
10146
|
encoding: UTF-8
|
|
10147
10147
|
string: ''
|
|
10148
10148
|
recorded_at: Tue, 09 Jul 2024 10:04:32 GMT
|
|
10149
|
+
- request:
|
|
10150
|
+
method: post
|
|
10151
|
+
uri: https://api.deepl.com/v2/translate
|
|
10152
|
+
body:
|
|
10153
|
+
encoding: UTF-8
|
|
10154
|
+
string: '{"text":["That is hot!"],"source_lang":"EN","target_lang":"ES","context":""}'
|
|
10155
|
+
headers:
|
|
10156
|
+
Authorization:
|
|
10157
|
+
- DeepL-Auth-Key VALID_TOKEN
|
|
10158
|
+
User-Agent:
|
|
10159
|
+
- deepl-ruby/3.0.2 (darwin22) ruby/3.2.1
|
|
10160
|
+
Content-Type:
|
|
10161
|
+
- application/json
|
|
10162
|
+
Accept-Encoding:
|
|
10163
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
10164
|
+
Accept:
|
|
10165
|
+
- "*/*"
|
|
10166
|
+
response:
|
|
10167
|
+
status:
|
|
10168
|
+
code: 200
|
|
10169
|
+
message: OK
|
|
10170
|
+
headers:
|
|
10171
|
+
Date:
|
|
10172
|
+
- Wed, 25 Sep 2024 16:07:59 GMT
|
|
10173
|
+
Content-Type:
|
|
10174
|
+
- application/json
|
|
10175
|
+
Transfer-Encoding:
|
|
10176
|
+
- chunked
|
|
10177
|
+
Vary:
|
|
10178
|
+
- Accept-Encoding
|
|
10179
|
+
Access-Control-Allow-Origin:
|
|
10180
|
+
- "*"
|
|
10181
|
+
Strict-Transport-Security:
|
|
10182
|
+
- max-age=63072000; includeSubDomains; preload
|
|
10183
|
+
Server-Timing:
|
|
10184
|
+
- l7_lb_tls;dur=88, l7_lb_idle;dur=0, l7_lb_receive;dur=0, l7_lb_total;dur=126
|
|
10185
|
+
Access-Control-Expose-Headers:
|
|
10186
|
+
- Server-Timing, X-Trace-ID
|
|
10187
|
+
X-Trace-Id:
|
|
10188
|
+
- 53712edb2fc24c7f9d59e341bd80977a
|
|
10189
|
+
body:
|
|
10190
|
+
encoding: ASCII-8BIT
|
|
10191
|
+
string: !binary |-
|
|
10192
|
+
eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IsKhRXNvIGVzdMOhIGNhbGllbnRlISJ9XX0=
|
|
10193
|
+
recorded_at: Wed, 25 Sep 2024 16:07:59 GMT
|
|
10194
|
+
- request:
|
|
10195
|
+
method: post
|
|
10196
|
+
uri: https://api.deepl.com/v2/translate
|
|
10197
|
+
body:
|
|
10198
|
+
encoding: UTF-8
|
|
10199
|
+
string: '{"text":["That is hot!"],"source_lang":"EN","target_lang":"ES","context":"He
|
|
10200
|
+
did not like the jalapenos in his meal."}'
|
|
10201
|
+
headers:
|
|
10202
|
+
Authorization:
|
|
10203
|
+
- DeepL-Auth-Key VALID_TOKEN
|
|
10204
|
+
User-Agent:
|
|
10205
|
+
- deepl-ruby/3.0.2 (darwin22) ruby/3.2.1
|
|
10206
|
+
Content-Type:
|
|
10207
|
+
- application/json
|
|
10208
|
+
Accept-Encoding:
|
|
10209
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
10210
|
+
Accept:
|
|
10211
|
+
- "*/*"
|
|
10212
|
+
response:
|
|
10213
|
+
status:
|
|
10214
|
+
code: 200
|
|
10215
|
+
message: OK
|
|
10216
|
+
headers:
|
|
10217
|
+
Date:
|
|
10218
|
+
- Wed, 25 Sep 2024 16:08:00 GMT
|
|
10219
|
+
Content-Type:
|
|
10220
|
+
- application/json
|
|
10221
|
+
Transfer-Encoding:
|
|
10222
|
+
- chunked
|
|
10223
|
+
Vary:
|
|
10224
|
+
- Accept-Encoding
|
|
10225
|
+
Access-Control-Allow-Origin:
|
|
10226
|
+
- "*"
|
|
10227
|
+
Strict-Transport-Security:
|
|
10228
|
+
- max-age=63072000; includeSubDomains; preload
|
|
10229
|
+
Server-Timing:
|
|
10230
|
+
- l7_lb_tls;dur=67, l7_lb_idle;dur=0, l7_lb_receive;dur=0, l7_lb_total;dur=124
|
|
10231
|
+
Access-Control-Expose-Headers:
|
|
10232
|
+
- Server-Timing, X-Trace-ID
|
|
10233
|
+
X-Trace-Id:
|
|
10234
|
+
- 1704af9968bf4570b155c12cc0ae0665
|
|
10235
|
+
body:
|
|
10236
|
+
encoding: ASCII-8BIT
|
|
10237
|
+
string: !binary |-
|
|
10238
|
+
eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IsKhRXNvIGVzIHBpY2FudGUhIn1dfQ==
|
|
10239
|
+
recorded_at: Wed, 25 Sep 2024 16:08:00 GMT
|
|
10149
10240
|
recorded_with: VCR 6.2.0
|
|
@@ -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
|
response:
|
|
19
19
|
status:
|
|
20
20
|
code: 200
|
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
|
46
46
|
Authorization:
|
|
47
47
|
- DeepL-Auth-Key VALID_TOKEN
|
|
48
48
|
User-Agent:
|
|
49
|
-
- deepl-ruby/
|
|
49
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
50
50
|
Accept-Encoding:
|
|
51
51
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
52
52
|
Accept:
|
|
@@ -88,7 +88,7 @@ http_interactions:
|
|
|
88
88
|
Authorization:
|
|
89
89
|
- DeepL-Auth-Key VALID_TOKEN
|
|
90
90
|
User-Agent:
|
|
91
|
-
- deepl-ruby/
|
|
91
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
92
92
|
Accept-Encoding:
|
|
93
93
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
94
94
|
Accept:
|
|
@@ -132,7 +132,7 @@ http_interactions:
|
|
|
132
132
|
Authorization:
|
|
133
133
|
- DeepL-Auth-Key VALID_TOKEN
|
|
134
134
|
User-Agent:
|
|
135
|
-
- deepl-ruby/
|
|
135
|
+
- deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
|
|
136
136
|
Content-Type:
|
|
137
137
|
- application/json
|
|
138
138
|
Accept-Encoding:
|
|
@@ -292,6 +292,30 @@ describe DeepL::Requests::Translate do
|
|
|
292
292
|
end
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
+
context 'when performing a valid request with context' do
|
|
296
|
+
let(:text) { 'That is hot!' }
|
|
297
|
+
|
|
298
|
+
context 'when context is empty' do
|
|
299
|
+
let(:options) { { context: '' } }
|
|
300
|
+
|
|
301
|
+
it 'translates correctly with empty context' do
|
|
302
|
+
res = translate.request
|
|
303
|
+
expect(res).to be_a(DeepL::Resources::Text)
|
|
304
|
+
expect(res.text).to eq('¡Eso está caliente!')
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
context 'when context is set' do
|
|
309
|
+
let(:options) { { context: 'He did not like the jalapenos in his meal.' } }
|
|
310
|
+
|
|
311
|
+
it 'translates correctly with context taken into account' do
|
|
312
|
+
res = translate.request
|
|
313
|
+
expect(res).to be_a(DeepL::Resources::Text)
|
|
314
|
+
expect(res.text).to eq('¡Eso es picante!')
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
295
319
|
context 'when performing a bad request' do
|
|
296
320
|
context 'when using an invalid token' do
|
|
297
321
|
let(:api) do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deepl-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DeepL SE
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: juwelier
|
|
@@ -137,7 +137,11 @@ files:
|
|
|
137
137
|
homepage: https://github.com/DeepLcom/deepl-rb
|
|
138
138
|
licenses:
|
|
139
139
|
- MIT
|
|
140
|
-
metadata:
|
|
140
|
+
metadata:
|
|
141
|
+
bug_tracker_uri: https://github.com/DeepLcom/deepl-rb/issues
|
|
142
|
+
changelog_uri: https://github.com/DeepLcom/deepl-rb/blob/main/CHANGELOG.md
|
|
143
|
+
documentation_uri: https://github.com/DeepLcom/deepl-rb/blob/main/README.md
|
|
144
|
+
homepage_uri: https://github.com/DeepLcom/deepl-rb
|
|
141
145
|
post_install_message:
|
|
142
146
|
rdoc_options: []
|
|
143
147
|
require_paths:
|