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
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,7 +5,18 @@ 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
|
-
## [
|
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
|
+
|
15
|
+
## [3.0.1] - 2024-09-23
|
16
|
+
### Fixed
|
17
|
+
* `document.translate_document` required a filename, this is now optional. The example in the README now works.
|
18
|
+
|
19
|
+
## [3.0.0] - 2024-09-20
|
9
20
|
Beginning with version 3, deepl-rb is officially supported by DeepL, and maintained together with [Daniel Herzog](mailto:info@danielherzog.es) the developer of earlier versions of this library.
|
10
21
|
The change in major version is only due to the change in maintainership, there is no migration necessary from v2 to v3.
|
11
22
|
### Added
|
@@ -30,5 +41,7 @@ The change in major version is only due to the change in maintainership, there i
|
|
30
41
|
* Make RequestEntityTooLarge error message more clear
|
31
42
|
|
32
43
|
|
33
|
-
[
|
44
|
+
[3.0.2]: https://github.com/DeepLcom/deepl-rb/compare/v3.0.1...v3.0.2
|
45
|
+
[3.0.1]: https://github.com/DeepLcom/deepl-rb/compare/v3.0.0...v3.0.1
|
46
|
+
[3.0.0]: https://github.com/DeepLcom/deepl-rb/compare/v2.5.3...v3.0.0
|
34
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
|
|
@@ -252,7 +263,7 @@ puts usage.character_limit
|
|
252
263
|
To translate a document, use the `document.translate_document` method. Example:
|
253
264
|
|
254
265
|
```rb
|
255
|
-
DeepL.document.translate_document('/path/to/spanish_document.pdf', '
|
266
|
+
DeepL.document.translate_document('/path/to/spanish_document.pdf', '/path/to/translated_document.pdf', 'ES', 'EN')
|
256
267
|
```
|
257
268
|
|
258
269
|
The lower level `upload`, `get_status` and `download` methods are also exposed, as well as the convenience method `wait_until_document_translation_finished` on the `DocumentHandle` object, which would replace `get_status`:
|
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
|
data/lib/deepl/document_api.rb
CHANGED
@@ -83,13 +83,14 @@ module DeepL
|
|
83
83
|
# ISO 639-1, 2-letter language codes, plus a hyphen "-" with the
|
84
84
|
# variant identifier for languages with variants/dialects/... .
|
85
85
|
# @param [String, nil] filename The filename of the file, including its extension. Used to open
|
86
|
-
# the different kinds of documents (PDFs, etc).
|
86
|
+
# the different kinds of documents (PDFs, etc). If nil, will use
|
87
|
+
# the filename of +input_file_path+.
|
87
88
|
# @param [Hash] options Additional options for the upload.
|
88
89
|
# @param [Hash] additional_headers Additional headers for the upload.
|
89
90
|
# @return [DeepL::Resources::DocumentTranslationStatus] Status of the document translation.
|
90
91
|
|
91
|
-
def translate_document(input_file, output_file, source_lang, target_lang,
|
92
|
-
options = {}, additional_headers = {})
|
92
|
+
def translate_document(input_file, output_file, source_lang, target_lang, # rubocop:disable Metrics/MethodLength,Metrics/ParameterLists
|
93
|
+
filename = nil, options = {}, additional_headers = {})
|
93
94
|
raise IOError 'File already exists at output path' if File.exist?(output_file)
|
94
95
|
|
95
96
|
begin
|
@@ -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:
|