phrase 4.12.0 → 4.13.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +3 -3
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/UploadsApi.md +2 -0
- data/lib/phrase/api/uploads_api.rb +3 -0
- data/lib/phrase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 258aa32d6708a1c9acd84448fe6d176fd61682b19e0e8b863e036b1922f9b2b2
|
|
4
|
+
data.tar.gz: 7393196d9287b16c3566d2afc32b2a2c6ac5df26e37adbf6d70d5cf8e764067c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e30bff1db6c850389d4d90bb7d27538899bea929f7e054d436fb30fd4f84da250c0a69a0b06444857a2f3be56c4c7dff4d4f1c3316dad9769c46bba6a51ea23a
|
|
7
|
+
data.tar.gz: 341d38001cbd158de08fcc172fe8fa099a65885e0ab6eb4e3753724702a8bbd7555be3ad038f69d0e2f1251abf9dde97a4e2832be575cbd43445c1725017f43e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.13.0](https://github.com/phrase/openapi/compare/ruby-v4.12.0...ruby-v4.13.0) (2025-10-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **API:** Support source_locale_id param in uploads ([#935](https://github.com/phrase/openapi/issues/935)) ([304a406](https://github.com/phrase/openapi/commit/304a4061aaac8001a3a9e10c5cf985b04c31dab2))
|
|
9
|
+
|
|
3
10
|
## [4.12.0](https://github.com/phrase/openapi/compare/ruby-v4.11.0...ruby-v4.12.0) (2025-10-16)
|
|
4
11
|
|
|
5
12
|
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
|
|
|
7
7
|
## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 4.
|
|
10
|
+
- Package version: 4.13.0
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
|
|
13
13
|
|
|
@@ -56,10 +56,10 @@ gem build phrase.gemspec
|
|
|
56
56
|
Then install the gem locally:
|
|
57
57
|
|
|
58
58
|
```shell
|
|
59
|
-
gem install ./phrase-4.
|
|
59
|
+
gem install ./phrase-4.13.0.gem
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
(for development, run `gem install --dev ./phrase-4.
|
|
62
|
+
(for development, run `gem install --dev ./phrase-4.13.0.gem` to install the development dependencies)
|
|
63
63
|
|
|
64
64
|
## Getting Started
|
|
65
65
|
|
data/docs/KeyCreateParameters.md
CHANGED
|
@@ -38,7 +38,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
|
|
|
38
38
|
data_type: number,
|
|
39
39
|
tags: awesome-feature,needs-proofreading,
|
|
40
40
|
max_characters_allowed: 140,
|
|
41
|
-
screenshot: [B@
|
|
41
|
+
screenshot: [B@70143ee4,
|
|
42
42
|
remove_screenshot: null,
|
|
43
43
|
unformatted: null,
|
|
44
44
|
default_translation_content: Default translation content,
|
data/docs/KeyUpdateParameters.md
CHANGED
|
@@ -36,7 +36,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
|
|
|
36
36
|
data_type: number,
|
|
37
37
|
tags: awesome-feature,needs-proofreading,
|
|
38
38
|
max_characters_allowed: 140,
|
|
39
|
-
screenshot: [B@
|
|
39
|
+
screenshot: [B@74f1c9b9,
|
|
40
40
|
remove_screenshot: null,
|
|
41
41
|
unformatted: null,
|
|
42
42
|
xml_space_preserve: null,
|
|
@@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
|
|
|
37
37
|
main_format: yml,
|
|
38
38
|
media: Python,
|
|
39
39
|
shares_translation_memory: true,
|
|
40
|
-
project_image: [B@
|
|
40
|
+
project_image: [B@1607b56b,
|
|
41
41
|
remove_project_image: null,
|
|
42
42
|
account_id: abcd1234,
|
|
43
43
|
point_of_contact: abcd1234,
|
|
@@ -39,7 +39,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
|
|
|
39
39
|
main_format: yml,
|
|
40
40
|
media: Python,
|
|
41
41
|
shares_translation_memory: true,
|
|
42
|
-
project_image: [B@
|
|
42
|
+
project_image: [B@1963b057,
|
|
43
43
|
remove_project_image: false,
|
|
44
44
|
workflow: review,
|
|
45
45
|
machine_translation_enabled: true,
|
data/docs/UploadsApi.md
CHANGED
|
@@ -47,6 +47,7 @@ opts = {
|
|
|
47
47
|
update_custom_metadata: true, # Boolean | Determines whether to update custom metadata values when uploading a file. If set to true, existing metadata can be changed or removed. Passing an empty value deletes the corresponding metadata property.
|
|
48
48
|
update_translation_keys: true, # Boolean | Pass `false` here to prevent new keys from being created and existing keys updated.
|
|
49
49
|
update_translations_on_source_match: true, # Boolean | Update target translations only if the source translations of the uploaded multilingual file match the stored translations.
|
|
50
|
+
source_locale_id: 'source_locale_id_example', # String | Specifies the source locale for multilingual files. Can be the name or id of the locale. Preferred is id.
|
|
50
51
|
update_descriptions: true, # Boolean | Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
|
|
51
52
|
convert_emoji: true, # Boolean | This option is obsolete. Providing the option will cause a bad request error.
|
|
52
53
|
skip_upload_tags: true, # Boolean | Indicates whether the upload should not create upload tags.
|
|
@@ -86,6 +87,7 @@ Name | Type | Description | Notes
|
|
|
86
87
|
**update_custom_metadata** | **Boolean**| Determines whether to update custom metadata values when uploading a file. If set to true, existing metadata can be changed or removed. Passing an empty value deletes the corresponding metadata property. | [optional] [default to true]
|
|
87
88
|
**update_translation_keys** | **Boolean**| Pass `false` here to prevent new keys from being created and existing keys updated. | [optional] [default to true]
|
|
88
89
|
**update_translations_on_source_match** | **Boolean**| Update target translations only if the source translations of the uploaded multilingual file match the stored translations. | [optional] [default to false]
|
|
90
|
+
**source_locale_id** | **String**| Specifies the source locale for multilingual files. Can be the name or id of the locale. Preferred is id. | [optional]
|
|
89
91
|
**update_descriptions** | **Boolean**| Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. | [optional]
|
|
90
92
|
**convert_emoji** | **Boolean**| This option is obsolete. Providing the option will cause a bad request error. | [optional]
|
|
91
93
|
**skip_upload_tags** | **Boolean**| Indicates whether the upload should not create upload tags. | [optional]
|
|
@@ -21,6 +21,7 @@ module Phrase
|
|
|
21
21
|
# @option opts [Boolean] :update_custom_metadata Determines whether to update custom metadata values when uploading a file. If set to true, existing metadata can be changed or removed. Passing an empty value deletes the corresponding metadata property. (default to true)
|
|
22
22
|
# @option opts [Boolean] :update_translation_keys Pass `false` here to prevent new keys from being created and existing keys updated. (default to true)
|
|
23
23
|
# @option opts [Boolean] :update_translations_on_source_match Update target translations only if the source translations of the uploaded multilingual file match the stored translations. (default to false)
|
|
24
|
+
# @option opts [String] :source_locale_id Specifies the source locale for multilingual files. Can be the name or id of the locale. Preferred is id.
|
|
24
25
|
# @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
|
|
25
26
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Providing the option will cause a bad request error.
|
|
26
27
|
# @option opts [Boolean] :skip_upload_tags Indicates whether the upload should not create upload tags.
|
|
@@ -53,6 +54,7 @@ module Phrase
|
|
|
53
54
|
# @option opts [Boolean] :update_custom_metadata Determines whether to update custom metadata values when uploading a file. If set to true, existing metadata can be changed or removed. Passing an empty value deletes the corresponding metadata property.
|
|
54
55
|
# @option opts [Boolean] :update_translation_keys Pass `false` here to prevent new keys from being created and existing keys updated.
|
|
55
56
|
# @option opts [Boolean] :update_translations_on_source_match Update target translations only if the source translations of the uploaded multilingual file match the stored translations.
|
|
57
|
+
# @option opts [String] :source_locale_id Specifies the source locale for multilingual files. Can be the name or id of the locale. Preferred is id.
|
|
56
58
|
# @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
|
|
57
59
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Providing the option will cause a bad request error.
|
|
58
60
|
# @option opts [Boolean] :skip_upload_tags Indicates whether the upload should not create upload tags.
|
|
@@ -111,6 +113,7 @@ module Phrase
|
|
|
111
113
|
form_params['update_custom_metadata'] = opts[:'update_custom_metadata'] if !opts[:'update_custom_metadata'].nil?
|
|
112
114
|
form_params['update_translation_keys'] = opts[:'update_translation_keys'] if !opts[:'update_translation_keys'].nil?
|
|
113
115
|
form_params['update_translations_on_source_match'] = opts[:'update_translations_on_source_match'] if !opts[:'update_translations_on_source_match'].nil?
|
|
116
|
+
form_params['source_locale_id'] = opts[:'source_locale_id'] if !opts[:'source_locale_id'].nil?
|
|
114
117
|
form_params['update_descriptions'] = opts[:'update_descriptions'] if !opts[:'update_descriptions'].nil?
|
|
115
118
|
form_params['convert_emoji'] = opts[:'convert_emoji'] if !opts[:'convert_emoji'].nil?
|
|
116
119
|
form_params['skip_upload_tags'] = opts[:'skip_upload_tags'] if !opts[:'skip_upload_tags'].nil?
|
data/lib/phrase/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phrase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Phrase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10-
|
|
11
|
+
date: 2025-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|