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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ee59312f9329dd85344eda376dfd14c854dc35cc4dc202570422b8491dbcfd3
4
- data.tar.gz: ee61abb9396d7c7f339d44501c4c163f6e29484930030907364f4c59fbba8758
3
+ metadata.gz: 8f07b4c98a950f48e5247f88721f7d992792a5a7960e412f41cfc49b91bfe964
4
+ data.tar.gz: 1fe829e23ddd4a971e6bf03bf48c3d974c82384e014ba1592a78e96e1da22db1
5
5
  SHA512:
6
- metadata.gz: 0fac1bf4668800fca47cd9950d1816ceb9b26f196623f0673314bc073bca7bc923c71910144ee2983944f4421aef2e811770354df5902fe636efca8dab4e7e60
7
- data.tar.gz: 9b97d1f7dfa45416f19cb80555226d74ae65e538231f296091b0c14b29e3cd28c359daa4d5a0ad78f6fe06e1c18b84e7d02c20eaafb2a0b62660af97e303c251
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.0.0
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.0.0.gem
59
+ gem install ./phrase-3.1.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-3.0.0.gem` to install the development dependencies)
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
 
@@ -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@4c57acc5,
38
+ screenshot: [B@171dbfa0,
39
39
  remove_screenshot: null,
40
40
  unformatted: null,
41
41
  default_translation_content: Default translation content,
@@ -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@1d57b043,
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@f33b8fc,
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@697714d8,
44
+ project_image: [B@19266d52,
45
45
  remove_project_image: false,
46
46
  workflow: review,
47
47
  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@5eb11bb7)
20
+ filename: [B@38b14624)
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_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?
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '3.0.0'
2
+ VERSION = '3.1.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: 3.0.0
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-23 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus