deepl-rb 3.5.0 → 3.6.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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +13 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eac62f1d4905c35c5e4555195f6a913dec6eb9ac3c739f4086ad39b127995843
4
- data.tar.gz: d9cfb63f11fc42bc7301f0316ec8f2707b06ce8d073e28c012ef5042119ff34b
3
+ metadata.gz: 5778d1b4102e5d798b157de8dcaeecd069d55f0f333eb190e510eb6b0593df9f
4
+ data.tar.gz: 117d03157edd90e2da5e6064f5d9c4b8c0ede6beddd009b7016b48d0e2673e19
5
5
  SHA512:
6
- metadata.gz: 27f36601632c94c1acab90683eaa44a60f21545095438e0c67e609092accf5265eb6c23200f0056a1085d09e443e4bf9a2ca759a1673c3ea347f727518ea402b
7
- data.tar.gz: 4508f77f501fa9789a73c86aba21414f73b4664c4baff9c46e5e4e2207f80865147269aaf59f83d42b538423577a3324a64c8cb95c667dfda87b7213a2b38bf3
6
+ metadata.gz: e0b437203711dabb1b30f20a04964d940f17b5e85e41559436ea46dea5a2e093600122c58b15b486e81062831bb12534a146820b8cca69fd262710b8757caab1
7
+ data.tar.gz: c581a473d282486dcd516eacb8a20996302806bf0a40cf4e34467e11ea0f4445660a938addd64f60be5e01b05e32e17d54e3fdea542c14f23ee6b203fd789391
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  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
+ ## [Unreleased]
8
+
9
+ ## [3.6.0] - 2025-12-10
10
+ ### Added
11
+ - Added `tag_handling_version` parameter to `translate()` to specify which version of the tag handling algorithm to use. Options are `v1` and `v2`.
12
+
7
13
  ## [3.5.0] - 2025-12-03
8
14
  ### Added
9
15
  - Added `custom_instructions` parameter to `translate()` to customize translation
@@ -80,6 +86,8 @@ The change in major version is only due to the change in maintainership, there i
80
86
  ### Fixed
81
87
  - Make RequestEntityTooLarge error message more clear
82
88
 
89
+ [Unreleased]: https://github.com/DeepLcom/deepl-rb/compare/v3.6.0...HEAD
90
+ [3.6.0]: https://github.com/DeepLcom/deepl-rb/compare/v3.5.0...v3.6.0
83
91
  [3.5.0]: https://github.com/DeepLcom/deepl-rb/compare/v3.4.0...v3.5.0
84
92
  [3.4.0]: https://github.com/DeepLcom/deepl-rb/compare/v3.3.0...v3.4.0
85
93
  [3.3.0]: https://github.com/DeepLcom/deepl-rb/compare/v3.2.0...v3.3.0
data/README.md CHANGED
@@ -127,6 +127,18 @@ puts translation.text
127
127
  # => "<p>Una muestra</p>"
128
128
  ```
129
129
 
130
+ To specify which version of the tag handling algorithm to use, you can use the `tag_handling_version` parameter:
131
+
132
+ ```rb
133
+ translation = DeepL.translate '<p>A sample</p>', 'EN', 'ES',
134
+ tag_handling: 'xml', tag_handling_version: 'v2'
135
+
136
+ puts translation.text
137
+ # => "<p>Una muestra</p>"
138
+ ```
139
+
140
+ The available values are `'v1'` and `'v2'`.
141
+
130
142
  To translate with context, simply supply the `context` parameter:
131
143
 
132
144
  ```rb
@@ -183,6 +195,7 @@ The following parameters will be automatically converted:
183
195
  | `style_rule` | No conversion applied (can be a string ID or a StyleRule object)
184
196
  | `context` | No conversion applied
185
197
  | `custom_instructions` | No conversion applied
198
+ | `tag_handling_version` | No conversion applied
186
199
  | `extra_body_parameters` | Hash of extra parameters to pass in the body of the HTTP request. Can be used to access beta features, or to override built-in parameters for testing purposes. Extra parameters can override keys explicitly set by the client.
187
200
 
188
201
  ### Rephrase Text
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deepl-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DeepL SE