phrase 3.0.0 → 3.1.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: 8f07b4c98a950f48e5247f88721f7d992792a5a7960e412f41cfc49b91bfe964
|
|
4
|
+
data.tar.gz: 1fe829e23ddd4a971e6bf03bf48c3d974c82384e014ba1592a78e96e1da22db1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12ea91183ebd235348a63d93ee904d79772c3a76f503b4dc33d83e1ce4f2d47969b9e77c35e487663971e522ede349b63b8329a92ebbd617248d042f7cbed800
|
|
7
|
+
data.tar.gz: 808604ae2041c0b35e52c9b9d075b087b461f0e9beca709683fdefe690d88305dfe69300862fa978bde47d12c9f04d25acf67e21b9705840795b5da2e9983deb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.1.0](https://github.com/phrase/openapi/compare/ruby-v3.0.0...ruby-v3.1.0) (2024-04-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **API:** Add 'update_translation_keys' for Uploads [TSI-2292] ([#578](https://github.com/phrase/openapi/issues/578)) ([4492ec0](https://github.com/phrase/openapi/commit/4492ec0a7c62f9de9ab1c1125071615bddcc26ce))
|
|
9
|
+
|
|
3
10
|
## [3.0.0](https://github.com/phrase/openapi/compare/ruby-v2.26.0...ruby-v3.0.0) (2024-04-23)
|
|
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: 3.
|
|
10
|
+
- Package version: 3.1.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-3.
|
|
59
|
+
gem install ./phrase-3.1.0.gem
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
(for development, run `gem install --dev ./phrase-3.
|
|
62
|
+
(for development, run `gem install --dev ./phrase-3.1.0.gem` to install the development dependencies)
|
|
63
63
|
|
|
64
64
|
## Getting Started
|
|
65
65
|
|
data/docs/KeyCreateParameters.md
CHANGED
|
@@ -35,7 +35,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
|
|
|
35
35
|
data_type: number,
|
|
36
36
|
tags: awesome-feature,needs-proofreading,
|
|
37
37
|
max_characters_allowed: 140,
|
|
38
|
-
screenshot: [B@
|
|
38
|
+
screenshot: [B@171dbfa0,
|
|
39
39
|
remove_screenshot: null,
|
|
40
40
|
unformatted: null,
|
|
41
41
|
default_translation_content: Default translation content,
|
data/docs/KeyUpdateParameters.md
CHANGED
|
@@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
|
|
|
34
34
|
data_type: number,
|
|
35
35
|
tags: awesome-feature,needs-proofreading,
|
|
36
36
|
max_characters_allowed: 140,
|
|
37
|
-
screenshot: [B@
|
|
37
|
+
screenshot: [B@3dfb1cec,
|
|
38
38
|
remove_screenshot: null,
|
|
39
39
|
unformatted: null,
|
|
40
40
|
xml_space_preserve: null,
|
|
@@ -40,7 +40,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
|
|
|
40
40
|
main_format: yml,
|
|
41
41
|
media: Python,
|
|
42
42
|
shares_translation_memory: true,
|
|
43
|
-
project_image: [B@
|
|
43
|
+
project_image: [B@4b2c95ff,
|
|
44
44
|
remove_project_image: null,
|
|
45
45
|
account_id: abcd1234,
|
|
46
46
|
point_of_contact: abcd1234,
|
|
@@ -41,7 +41,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
|
|
|
41
41
|
main_format: yml,
|
|
42
42
|
media: Python,
|
|
43
43
|
shares_translation_memory: true,
|
|
44
|
-
project_image: [B@
|
|
44
|
+
project_image: [B@19266d52,
|
|
45
45
|
remove_project_image: false,
|
|
46
46
|
workflow: review,
|
|
47
47
|
machine_translation_enabled: true,
|
data/docs/UploadsApi.md
CHANGED
|
@@ -44,6 +44,7 @@ opts = {
|
|
|
44
44
|
branch: 'branch_example', # String | specify the branch to use
|
|
45
45
|
tags: 'tags_example', # String | List of tags separated by comma to be associated with the new keys contained in the upload.
|
|
46
46
|
update_translations: true, # Boolean | Indicates whether existing translations should be updated with the file content.
|
|
47
|
+
update_translation_keys: true, # Boolean | Pass `false` here to prevent new keys from being created and existing keys updated.
|
|
47
48
|
update_descriptions: true, # Boolean | Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
|
|
48
49
|
convert_emoji: true, # Boolean | This option is obsolete. Providing the option will cause a bad request error.
|
|
49
50
|
skip_upload_tags: true, # Boolean | Indicates whether the upload should not create upload tags.
|
|
@@ -78,6 +79,7 @@ Name | Type | Description | Notes
|
|
|
78
79
|
**branch** | **String**| specify the branch to use | [optional]
|
|
79
80
|
**tags** | **String**| List of tags separated by comma to be associated with the new keys contained in the upload. | [optional]
|
|
80
81
|
**update_translations** | **Boolean**| Indicates whether existing translations should be updated with the file content. | [optional]
|
|
82
|
+
**update_translation_keys** | **Boolean**| Pass `false` here to prevent new keys from being created and existing keys updated. | [optional] [default to true]
|
|
81
83
|
**update_descriptions** | **Boolean**| Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. | [optional]
|
|
82
84
|
**convert_emoji** | **Boolean**| This option is obsolete. Providing the option will cause a bad request error. | [optional]
|
|
83
85
|
**skip_upload_tags** | **Boolean**| Indicates whether the upload should not create upload tags. | [optional]
|
|
@@ -18,6 +18,7 @@ module Phrase
|
|
|
18
18
|
# @option opts [String] :branch specify the branch to use
|
|
19
19
|
# @option opts [String] :tags List of tags separated by comma to be associated with the new keys contained in the upload.
|
|
20
20
|
# @option opts [Boolean] :update_translations Indicates whether existing translations should be updated with the file content.
|
|
21
|
+
# @option opts [Boolean] :update_translation_keys Pass `false` here to prevent new keys from being created and existing keys updated. (default to true)
|
|
21
22
|
# @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
|
|
22
23
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Providing the option will cause a bad request error.
|
|
23
24
|
# @option opts [Boolean] :skip_upload_tags Indicates whether the upload should not create upload tags.
|
|
@@ -45,6 +46,7 @@ module Phrase
|
|
|
45
46
|
# @option opts [String] :branch specify the branch to use
|
|
46
47
|
# @option opts [String] :tags List of tags separated by comma to be associated with the new keys contained in the upload.
|
|
47
48
|
# @option opts [Boolean] :update_translations Indicates whether existing translations should be updated with the file content.
|
|
49
|
+
# @option opts [Boolean] :update_translation_keys Pass `false` here to prevent new keys from being created and existing keys updated.
|
|
48
50
|
# @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
|
|
49
51
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Providing the option will cause a bad request error.
|
|
50
52
|
# @option opts [Boolean] :skip_upload_tags Indicates whether the upload should not create upload tags.
|
|
@@ -98,6 +100,7 @@ module Phrase
|
|
|
98
100
|
form_params['branch'] = opts[:'branch'] if !opts[:'branch'].nil?
|
|
99
101
|
form_params['tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
|
100
102
|
form_params['update_translations'] = opts[:'update_translations'] if !opts[:'update_translations'].nil?
|
|
103
|
+
form_params['update_translation_keys'] = opts[:'update_translation_keys'] if !opts[:'update_translation_keys'].nil?
|
|
101
104
|
form_params['update_descriptions'] = opts[:'update_descriptions'] if !opts[:'update_descriptions'].nil?
|
|
102
105
|
form_params['convert_emoji'] = opts[:'convert_emoji'] if !opts[:'convert_emoji'].nil?
|
|
103
106
|
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: 3.
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Phrase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-04-
|
|
11
|
+
date: 2024-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|