deepl-rb 3.8.0 → 3.9.0

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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.gitlab-ci.yml +1 -1
  3. data/CHANGELOG.md +23 -1
  4. data/README.md +213 -4
  5. data/VERSION +1 -1
  6. data/deepl-rb.gemspec +34 -6
  7. data/lib/deepl/document_api.rb +11 -1
  8. data/lib/deepl/requests/base.rb +55 -3
  9. data/lib/deepl/requests/document/upload.rb +50 -1
  10. data/lib/deepl/requests/translate.rb +4 -1
  11. data/lib/deepl/requests/translation_memory/base.rb +47 -0
  12. data/lib/deepl/requests/translation_memory/create_export.rb +41 -0
  13. data/lib/deepl/requests/translation_memory/create_import.rb +53 -0
  14. data/lib/deepl/requests/translation_memory/destroy.rb +37 -0
  15. data/lib/deepl/requests/translation_memory/download_export.rb +35 -0
  16. data/lib/deepl/requests/translation_memory/find.rb +38 -0
  17. data/lib/deepl/requests/translation_memory/find_job.rb +38 -0
  18. data/lib/deepl/requests/translation_memory/list.rb +5 -18
  19. data/lib/deepl/requests/translation_memory/segments.rb +46 -0
  20. data/lib/deepl/requests/translation_memory/storage_base.rb +47 -0
  21. data/lib/deepl/requests/translation_memory/upload_file.rb +47 -0
  22. data/lib/deepl/resources/translation_memory.rb +4 -1
  23. data/lib/deepl/resources/translation_memory_export.rb +37 -0
  24. data/lib/deepl/resources/translation_memory_import.rb +29 -0
  25. data/lib/deepl/resources/translation_memory_job.rb +142 -0
  26. data/lib/deepl/resources/translation_memory_segments.rb +78 -0
  27. data/lib/deepl/translation_memory_api.rb +293 -1
  28. data/lib/deepl/utils/time_parser.rb +26 -0
  29. data/lib/deepl.rb +31 -0
  30. data/lib/version.rb +1 -1
  31. data/spec/integration_tests/document_api_spec.rb +47 -0
  32. data/spec/integration_tests/integration_test_utils.rb +8 -0
  33. data/spec/integration_tests/translate_api_spec.rb +19 -0
  34. data/spec/integration_tests/translation_memory_api_spec.rb +192 -2
  35. data/spec/integration_tests/translation_memory_error_paths_spec.rb +68 -0
  36. data/spec/requests/document/upload_spec.rb +130 -0
  37. data/spec/requests/translate_spec.rb +55 -0
  38. data/spec/requests/translation_memory/create_export_spec.rb +37 -0
  39. data/spec/requests/translation_memory/create_import_spec.rb +61 -0
  40. data/spec/requests/translation_memory/destroy_spec.rb +36 -0
  41. data/spec/requests/translation_memory/download_export_spec.rb +54 -0
  42. data/spec/requests/translation_memory/find_job_spec.rb +37 -0
  43. data/spec/requests/translation_memory/find_spec.rb +36 -0
  44. data/spec/requests/translation_memory/segments_spec.rb +58 -0
  45. data/spec/requests/translation_memory/upload_file_spec.rb +55 -0
  46. data/spec/resources/translation_memory_export_spec.rb +38 -0
  47. data/spec/resources/translation_memory_import_spec.rb +30 -0
  48. data/spec/resources/translation_memory_job_spec.rb +109 -0
  49. data/spec/resources/translation_memory_segments_spec.rb +78 -0
  50. data/spec/resources/translation_memory_spec.rb +18 -1
  51. data/spec/support/managed_glossary.rb +48 -0
  52. data/spec/support/managed_translation_memory.rb +48 -0
  53. metadata +34 -3
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deepl-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DeepL SE
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2026-06-18 00:00:00.000000000 Z
11
+ date: 2026-08-12 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: juwelier
@@ -108,7 +109,17 @@ files:
108
109
  - lib/deepl/requests/style_rule/update_configured_rules.rb
109
110
  - lib/deepl/requests/style_rule/update_custom_instruction.rb
110
111
  - lib/deepl/requests/translate.rb
112
+ - lib/deepl/requests/translation_memory/base.rb
113
+ - lib/deepl/requests/translation_memory/create_export.rb
114
+ - lib/deepl/requests/translation_memory/create_import.rb
115
+ - lib/deepl/requests/translation_memory/destroy.rb
116
+ - lib/deepl/requests/translation_memory/download_export.rb
117
+ - lib/deepl/requests/translation_memory/find.rb
118
+ - lib/deepl/requests/translation_memory/find_job.rb
111
119
  - lib/deepl/requests/translation_memory/list.rb
120
+ - lib/deepl/requests/translation_memory/segments.rb
121
+ - lib/deepl/requests/translation_memory/storage_base.rb
122
+ - lib/deepl/requests/translation_memory/upload_file.rb
112
123
  - lib/deepl/requests/usage.rb
113
124
  - lib/deepl/resources/base.rb
114
125
  - lib/deepl/resources/document_handle.rb
@@ -119,11 +130,16 @@ files:
119
130
  - lib/deepl/resources/style_rule.rb
120
131
  - lib/deepl/resources/text.rb
121
132
  - lib/deepl/resources/translation_memory.rb
133
+ - lib/deepl/resources/translation_memory_export.rb
134
+ - lib/deepl/resources/translation_memory_import.rb
135
+ - lib/deepl/resources/translation_memory_job.rb
136
+ - lib/deepl/resources/translation_memory_segments.rb
122
137
  - lib/deepl/resources/usage.rb
123
138
  - lib/deepl/style_rule_api.rb
124
139
  - lib/deepl/translation_memory_api.rb
125
140
  - lib/deepl/utils/backoff_timer.rb
126
141
  - lib/deepl/utils/exception_builder.rb
142
+ - lib/deepl/utils/time_parser.rb
127
143
  - lib/http_client_options.rb
128
144
  - lib/version.rb
129
145
  - license_checker.sh
@@ -149,6 +165,7 @@ files:
149
165
  - spec/integration_tests/translation_memory_error_paths_spec.rb
150
166
  - spec/integration_tests/usage_api_spec.rb
151
167
  - spec/integration_tests/usage_error_paths_spec.rb
168
+ - spec/requests/document/upload_spec.rb
152
169
  - spec/requests/extra_body_parameters_types_spec.rb
153
170
  - spec/requests/glossary/create_spec.rb
154
171
  - spec/requests/glossary/destroy_spec.rb
@@ -169,7 +186,15 @@ files:
169
186
  - spec/requests/style_rule/update_custom_instruction_spec.rb
170
187
  - spec/requests/style_rule/update_spec.rb
171
188
  - spec/requests/translate_spec.rb
189
+ - spec/requests/translation_memory/create_export_spec.rb
190
+ - spec/requests/translation_memory/create_import_spec.rb
191
+ - spec/requests/translation_memory/destroy_spec.rb
192
+ - spec/requests/translation_memory/download_export_spec.rb
193
+ - spec/requests/translation_memory/find_job_spec.rb
194
+ - spec/requests/translation_memory/find_spec.rb
172
195
  - spec/requests/translation_memory/list_spec.rb
196
+ - spec/requests/translation_memory/segments_spec.rb
197
+ - spec/requests/translation_memory/upload_file_spec.rb
173
198
  - spec/requests/usage_spec.rb
174
199
  - spec/resources/custom_instruction_spec.rb
175
200
  - spec/resources/glossary_spec.rb
@@ -177,6 +202,10 @@ files:
177
202
  - spec/resources/language_spec.rb
178
203
  - spec/resources/style_rule_spec.rb
179
204
  - spec/resources/text_spec.rb
205
+ - spec/resources/translation_memory_export_spec.rb
206
+ - spec/resources/translation_memory_import_spec.rb
207
+ - spec/resources/translation_memory_job_spec.rb
208
+ - spec/resources/translation_memory_segments_spec.rb
180
209
  - spec/resources/translation_memory_spec.rb
181
210
  - spec/resources/usage_spec.rb
182
211
  - spec/spec_helper.rb
@@ -192,6 +221,7 @@ metadata:
192
221
  changelog_uri: https://github.com/DeepLcom/deepl-rb/blob/main/CHANGELOG.md
193
222
  documentation_uri: https://github.com/DeepLcom/deepl-rb/blob/main/README.md
194
223
  homepage_uri: https://github.com/DeepLcom/deepl-rb
224
+ post_install_message:
195
225
  rdoc_options: []
196
226
  require_paths:
197
227
  - lib
@@ -206,7 +236,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
236
  - !ruby/object:Gem::Version
207
237
  version: '0'
208
238
  requirements: []
209
- rubygems_version: 3.6.2
239
+ rubygems_version: 3.4.10
240
+ signing_key:
210
241
  specification_version: 4
211
242
  summary: Official Ruby library for the DeepL language translation API.
212
243
  test_files: []