phrase 4.8.0 → 4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47e153737c6cf0b7338cc8a2cc7593587af87e186f64523e04d9cb610bf6dd4b
4
- data.tar.gz: 26707ecb1cf18465c05a7d755549c84b3b0186d80f6e6ba92518cbdf6b01d3c0
3
+ metadata.gz: 409fc307ec1cf1fe89bd1944ca88b9a7998ec360ee909ab4d0c6944d78f7ffa6
4
+ data.tar.gz: dc6493d8a07d03cdaf7713ee90e2a323bff7baac98e9a596a0ac27a1126cab66
5
5
  SHA512:
6
- metadata.gz: e73894d2b783cbdfe8d3bc7dd5147c093d0d4fe8eb6d272c8adcac4403fe199be804172857e5ad79b3456e73d2c54af7e25b92e09a697bc9645fb0fe700b2152
7
- data.tar.gz: d7bee789a42ceefbaba8b89acb0bc3ca06761b7b7f1ce92eb503e4b3b1f9f9a6cd475afa1c42620f40d5fc3548fab18d5d139d08508d5599bcfcacc196411106
6
+ metadata.gz: 0211d3d1ab6721de5775140a05496a1995c99bb42af00952884edd3aff4546c34810427783c74af787d284b68b5c2ec47feb582410af5241b178914c93b560e5
7
+ data.tar.gz: 4a1a9d7b2ae64db7802b7c5502db5cb8710e85509083e01d937d78c2a04b281d3e1411e499a4a46f24d1a722b1d340481b7aa8c2033a703787bd51ff78a16d7e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.9.0](https://github.com/phrase/openapi/compare/ruby-v4.8.0...ruby-v4.9.0) (2025-08-01)
4
+
5
+
6
+ ### Features
7
+
8
+ * **API:** Add support for `update_custom_metadata` option on upload ([#882](https://github.com/phrase/openapi/issues/882)) ([5b486ea](https://github.com/phrase/openapi/commit/5b486eabf30c84402a8e31911a5ba6fe3b343a89))
9
+
3
10
  ## [4.8.0](https://github.com/phrase/openapi/compare/ruby-v4.7.0...ruby-v4.8.0) (2025-07-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: 4.8.0
10
+ - Package version: 4.9.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.8.0.gem
59
+ gem install ./phrase-4.9.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.8.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.9.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -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@3e6b4f51,
41
+ screenshot: [B@307b954,
42
42
  remove_screenshot: null,
43
43
  unformatted: null,
44
44
  default_translation_content: Default translation content,
@@ -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@3ca07d9,
39
+ screenshot: [B@52fd6b76,
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@298517d1,
40
+ project_image: [B@3feafba2,
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@3a00f386,
42
+ project_image: [B@602621bb,
43
43
  remove_project_image: false,
44
44
  workflow: review,
45
45
  machine_translation_enabled: true,
@@ -17,7 +17,7 @@ require 'Phrase'
17
17
  instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
18
18
  name: A screenshot name,
19
19
  description: A screenshot description,
20
- filename: [B@3f51fcf5)
20
+ filename: [B@6bd87866)
21
21
  ```
22
22
 
23
23
 
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_custom_metadata: true, # Boolean | Indicates whether existing custom metadata properties should be updated with the file content
47
48
  update_translation_keys: true, # Boolean | Pass `false` here to prevent new keys from being created and existing keys updated.
48
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.
49
50
  update_descriptions: true, # Boolean | Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -82,6 +83,7 @@ Name | Type | Description | Notes
82
83
  **branch** | **String**| specify the branch to use | [optional]
83
84
  **tags** | **String**| List of tags separated by comma to be associated with the new keys contained in the upload. | [optional]
84
85
  **update_translations** | **Boolean**| Indicates whether existing translations should be updated with the file content. | [optional]
86
+ **update_custom_metadata** | **Boolean**| Indicates whether existing custom metadata properties should be updated with the file content | [optional] [default to true]
85
87
  **update_translation_keys** | **Boolean**| Pass `false` here to prevent new keys from being created and existing keys updated. | [optional] [default to true]
86
88
  **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]
87
89
  **update_descriptions** | **Boolean**| Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. | [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_custom_metadata Indicates whether existing custom metadata properties should be updated with the file content (default to true)
21
22
  # @option opts [Boolean] :update_translation_keys Pass `false` here to prevent new keys from being created and existing keys updated. (default to true)
22
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)
23
24
  # @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -49,6 +50,7 @@ module Phrase
49
50
  # @option opts [String] :branch specify the branch to use
50
51
  # @option opts [String] :tags List of tags separated by comma to be associated with the new keys contained in the upload.
51
52
  # @option opts [Boolean] :update_translations Indicates whether existing translations should be updated with the file content.
53
+ # @option opts [Boolean] :update_custom_metadata Indicates whether existing custom metadata properties should be updated with the file content
52
54
  # @option opts [Boolean] :update_translation_keys Pass `false` here to prevent new keys from being created and existing keys updated.
53
55
  # @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.
54
56
  # @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -106,6 +108,7 @@ module Phrase
106
108
  form_params['branch'] = opts[:'branch'] if !opts[:'branch'].nil?
107
109
  form_params['tags'] = opts[:'tags'] if !opts[:'tags'].nil?
108
110
  form_params['update_translations'] = opts[:'update_translations'] if !opts[:'update_translations'].nil?
111
+ form_params['update_custom_metadata'] = opts[:'update_custom_metadata'] if !opts[:'update_custom_metadata'].nil?
109
112
  form_params['update_translation_keys'] = opts[:'update_translation_keys'] if !opts[:'update_translation_keys'].nil?
110
113
  form_params['update_translations_on_source_match'] = opts[:'update_translations_on_source_match'] if !opts[:'update_translations_on_source_match'].nil?
111
114
  form_params['update_descriptions'] = opts[:'update_descriptions'] if !opts[:'update_descriptions'].nil?
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.8.0'
2
+ VERSION = '4.9.0'
3
3
  end
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.8.0
4
+ version: 4.9.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-07-24 00:00:00.000000000 Z
11
+ date: 2025-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus