deepl-rb 3.0.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a37d2acfd0320ea201f38b15aed87511a57d9764db6a6ab3c9a3d8e6ad09013a
4
- data.tar.gz: 153ef18eab1a014d2733073be19ae5bad6c58a9b72ec9f04ea1e61d1a427f1d2
3
+ metadata.gz: 1de43b1593c5b5d4236c0b064c08436ab57fe13bf3fdc29069220fd899ca8e1d
4
+ data.tar.gz: a486d446fa3bebddbf3fd6aa468300bead03eafe8bc075c33a28d80be6e555b8
5
5
  SHA512:
6
- metadata.gz: a7cd860107137d7354714382a87b53934aa045e48ff2886b9c8a13f7957b4e4f3c651c3621289a82f2aa23011a8be09fc903bc4022dfcf68e8a76eacc50d2c30
7
- data.tar.gz: a27ced11ed3823a7c8bed7fbfa2efa25131ff6a5eb084606109e4ed4ef5a43aa622f305217b6284699bf7492b5a116d43f1b8bb578f878ab70e10c4e62b7cba2
6
+ metadata.gz: ca167089f7a190915436fb316a8a82aa69bf8093316b4074c6536bb21e002811d9bdd57fc8711eeb634025b094a9fe17e2b057eee5ea5d2499539060e09b8ebd
7
+ data.tar.gz: 1c63cd745170652f01a2335cc064ceb0266c1584a19bd1fcd6683c6d461241b646d33df0b3e36f516e1dff6a1d6158e706994b862b6bd8d671b1db399cabfa03
data/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ 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.1.0]
9
+ ### Added
10
+ * Added `model_type` option to `translate()` to use models with higher
11
+ translation quality (available for some language pairs), or better latency.
12
+ Options are `'quality_optimized'`, `'latency_optimized'`, and `'prefer_quality_optimized'`
13
+ * Added the `model_type_used` field to the `translate()` response, that
14
+ indicates the translation model used when the `model_type` option is
15
+ specified.
16
+
17
+
18
+ ## [3.0.2] - 2024-10-02
19
+ ### Added
20
+ * Added doc example and tests for context parameter
21
+ ### Fixed
22
+ * Fix metadata displayed on RubyGems.org for this library.
23
+ * Fixed library version sent in the `User-Agent` string.
24
+
8
25
  ## [3.0.1] - 2024-09-23
9
26
  ### Fixed
10
27
  * `document.translate_document` required a filename, this is now optional. The example in the README now works.
@@ -34,6 +51,8 @@ The change in major version is only due to the change in maintainership, there i
34
51
  * Make RequestEntityTooLarge error message more clear
35
52
 
36
53
 
54
+ [3.1.0]: https://github.com/DeepLcom/deepl-rb/compare/v3.0.2...v3.1.0
55
+ [3.0.2]: https://github.com/DeepLcom/deepl-rb/compare/v3.0.1...v3.0.2
37
56
  [3.0.1]: https://github.com/DeepLcom/deepl-rb/compare/v3.0.0...v3.0.1
38
57
  [3.0.0]: https://github.com/DeepLcom/deepl-rb/compare/v2.5.3...v3.0.0
39
58
  [2.5.3]: https://github.com/DeepLcom/deepl-rb/compare/v2.5.2...v2.5.3
data/README.md CHANGED
@@ -127,6 +127,33 @@ 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
+
140
+ To specify a type of translation model to use, you can use the `model_type` option:
141
+
142
+ ```rb
143
+ translation = DeepL.translate 'That is hot!', 'EN', 'DE',
144
+ model_type: 'quality_optimized'
145
+ ```
146
+
147
+ This would use next-gen translation models for the translation. The available values are
148
+
149
+ - `'quality_optimized'`: use a translation model that maximizes translation quality, at the
150
+ cost of response time. This option may be unavailable for some language pairs.
151
+ - `'prefer_quality_optimized'`: use the highest-quality translation model for the given
152
+ language pair.
153
+ - `'latency_optimized'`: use a translation model that minimizes response time, at the cost
154
+ of translation quality.
155
+
156
+
130
157
  The following parameters will be automatically converted:
131
158
 
132
159
  | Parameter | Conversion
@@ -139,6 +166,7 @@ The following parameters will be automatically converted:
139
166
  | `ignore_tags` | Converts arrays to strings joining by commas
140
167
  | `formality` | No conversion applied
141
168
  | `glossary_id` | No conversion applied
169
+ | `context` | No conversion applied
142
170
 
143
171
  ### Glossaries
144
172
 
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
1
+ 3.1.0
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.1 ruby lib
5
+ # stub: deepl-rb 3.1.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "deepl-rb".freeze
9
- s.version = "3.0.1"
9
+ s.version = "3.1.0"
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-09-23"
15
+ s.date = "2024-11-15"
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 = [
@@ -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/2.5.3'
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
@@ -27,7 +27,7 @@ module DeepL
27
27
  }.freeze
28
28
 
29
29
  attr_reader :text, :source_lang, :target_lang, :ignore_tags, :splitting_tags,
30
- :non_splitting_tags
30
+ :non_splitting_tags, :model_type
31
31
 
32
32
  def initialize(api, text, source_lang, target_lang, options = {})
33
33
  super(api, options)
@@ -68,7 +68,7 @@ module DeepL
68
68
 
69
69
  texts = data['translations'].map do |translation|
70
70
  Resources::Text.new(translation['text'], translation['detected_source_language'],
71
- request, response)
71
+ translation['model_type_used'], request, response)
72
72
  end
73
73
 
74
74
  texts.size == 1 ? texts.first : texts
@@ -6,13 +6,14 @@
6
6
  module DeepL
7
7
  module Resources
8
8
  class Text < Base
9
- attr_reader :text, :detected_source_language
9
+ attr_reader :text, :detected_source_language, :model_type_used
10
10
 
11
- def initialize(text, detected_source_language, *args)
11
+ def initialize(text, detected_source_language, model_type_used, *args)
12
12
  super(*args)
13
13
 
14
14
  @text = text
15
15
  @detected_source_language = detected_source_language
16
+ @model_type_used = model_type_used
16
17
  end
17
18
 
18
19
  def to_s
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Authorization:
11
11
  - DeepL-Auth-Key VALID_TOKEN
12
12
  User-Agent:
13
- - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
1137
+ - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
1138
1138
  Content-Type:
1139
1139
  - application/json
1140
1140
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Authorization:
11
11
  - DeepL-Auth-Key VALID_TOKEN
12
12
  User-Agent:
13
- - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3
13
+ - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Accept:
15
15
  - "*/*"
16
16
  User-Agent:
17
- - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3(darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
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/2.5.3 (darwin23) ruby/3.3.3
93
+ - deepl-ruby/3.0.2 (darwin23) ruby/3.3.3
94
94
  Content-Type:
95
95
  - application/json
96
96
  Accept-Encoding: