phrase 4.15.0 → 4.16.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 +12 -0
- data/README.md +3 -3
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/LocalePreview1.md +1 -3
- data/docs/LocalesApi.md +1 -5
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectDetails.md +29 -1
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/lib/phrase/api/locales_api.rb +0 -6
- data/lib/phrase/models/locale_preview1.rb +1 -10
- data/lib/phrase/models/project_details.rb +130 -4
- data/lib/phrase/version.rb +1 -1
- data/spec/models/locale_preview1_spec.rb +0 -6
- data/spec/models/project_details_spec.rb +84 -0
- 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: e432e2a3c0ac7f4cca0314049e1906aa7912174d09139c6bbb8aa335edf45a66
|
|
4
|
+
data.tar.gz: 2a94bb0a932a12cd5a507538e7813e39e84f8b59a6b8129585c44b92adaef2ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bddc49ef3bf05e764e2fe0c9a3945634e9af1fde4edae3b82c348ce3064894718f13eef5604a32183e7c814608928c00a2475f59c839d5191f035859f716668
|
|
7
|
+
data.tar.gz: 5c0f0ce78bebcd554a9b9720fda609301bc8d4f8f2158f9afff5ddcdcd3883524d006f0162b3c9c6bb3131c5b9eddfff9710debaf35e50afd2d5fa3f6e8f7cac
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.16.0](https://github.com/phrase/openapi/compare/ruby-v4.15.0...ruby-v4.16.0) (2026-01-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **API:** Add missing project flags to project details schema #SCD-141 ([#993](https://github.com/phrase/openapi/issues/993)) ([93fbdd7](https://github.com/phrase/openapi/commit/93fbdd76150ed94374ef888ac92c0c9b626de7c8))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **API:** drop invalid account locale params ([#992](https://github.com/phrase/openapi/issues/992)) ([87af83c](https://github.com/phrase/openapi/commit/87af83c94fd7e47340b5393847e93a31127abbe8))
|
|
14
|
+
|
|
3
15
|
## [4.15.0](https://github.com/phrase/openapi/compare/ruby-v4.14.1...ruby-v4.15.0) (2025-12-11)
|
|
4
16
|
|
|
5
17
|
|
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.16.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.16.0.gem
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
(for development, run `gem install --dev ./phrase-4.
|
|
62
|
+
(for development, run `gem install --dev ./phrase-4.16.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@3c148f23,
|
|
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@6fe8e276,
|
|
40
40
|
remove_screenshot: null,
|
|
41
41
|
unformatted: null,
|
|
42
42
|
xml_space_preserve: null,
|
data/docs/LocalePreview1.md
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**id** | **String** | | [optional]
|
|
8
7
|
**name** | **String** | | [optional]
|
|
9
8
|
**code** | **String** | | [optional]
|
|
10
9
|
**project** | [**ProjectShort**](ProjectShort.md) | | [optional]
|
|
@@ -14,8 +13,7 @@ Name | Type | Description | Notes
|
|
|
14
13
|
```ruby
|
|
15
14
|
require 'Phrase'
|
|
16
15
|
|
|
17
|
-
instance = Phrase::LocalePreview1.new(
|
|
18
|
-
name: null,
|
|
16
|
+
instance = Phrase::LocalePreview1.new(name: null,
|
|
19
17
|
code: null,
|
|
20
18
|
project: null)
|
|
21
19
|
```
|
data/docs/LocalesApi.md
CHANGED
|
@@ -41,9 +41,7 @@ end
|
|
|
41
41
|
api_instance = Phrase::LocalesApi.new
|
|
42
42
|
id = 'id_example' # String | ID
|
|
43
43
|
opts = {
|
|
44
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example'
|
|
45
|
-
page: 1, # Integer | Page number
|
|
46
|
-
per_page: 25 # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
44
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
begin
|
|
@@ -62,8 +60,6 @@ Name | Type | Description | Notes
|
|
|
62
60
|
------------- | ------------- | ------------- | -------------
|
|
63
61
|
**id** | **String**| ID |
|
|
64
62
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
65
|
-
**page** | **Integer**| Page number | [optional]
|
|
66
|
-
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
|
67
63
|
|
|
68
64
|
### Return type
|
|
69
65
|
|
|
@@ -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@1d05cbae,
|
|
41
41
|
remove_project_image: null,
|
|
42
42
|
account_id: abcd1234,
|
|
43
43
|
point_of_contact: abcd1234,
|
data/docs/ProjectDetails.md
CHANGED
|
@@ -16,6 +16,20 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**created_at** | **Time** | | [optional]
|
|
17
17
|
**updated_at** | **Time** | | [optional]
|
|
18
18
|
**shares_translation_memory** | **Boolean** | | [optional]
|
|
19
|
+
**machine_translation_enabled** | **Boolean** | | [optional]
|
|
20
|
+
**zero_plural_form_enabled** | **Boolean** | | [optional]
|
|
21
|
+
**enable_all_data_type_translation_keys_for_translators** | **Boolean** | | [optional]
|
|
22
|
+
**enable_icu_message_format** | **Boolean** | | [optional]
|
|
23
|
+
**enable_branching** | **Boolean** | | [optional]
|
|
24
|
+
**protect_master_branch** | **Boolean** | | [optional]
|
|
25
|
+
**autotranslate_enabled** | **Boolean** | | [optional]
|
|
26
|
+
**autotranslate_check_new_translation_keys** | **Boolean** | | [optional]
|
|
27
|
+
**autotranslate_check_new_uploads** | **Boolean** | | [optional]
|
|
28
|
+
**autotranslate_check_new_locales** | **Boolean** | | [optional]
|
|
29
|
+
**autotranslate_mark_as_unverified** | **Boolean** | | [optional]
|
|
30
|
+
**autotranslate_use_machine_translation** | **Boolean** | | [optional]
|
|
31
|
+
**autotranslate_use_translation_memory** | **Boolean** | | [optional]
|
|
32
|
+
**default_encoding** | **String** | | [optional]
|
|
19
33
|
|
|
20
34
|
## Code Sample
|
|
21
35
|
|
|
@@ -33,7 +47,21 @@ instance = Phrase::ProjectDetails.new(id: null,
|
|
|
33
47
|
point_of_contact: null,
|
|
34
48
|
created_at: null,
|
|
35
49
|
updated_at: null,
|
|
36
|
-
shares_translation_memory: null
|
|
50
|
+
shares_translation_memory: null,
|
|
51
|
+
machine_translation_enabled: true,
|
|
52
|
+
zero_plural_form_enabled: true,
|
|
53
|
+
enable_all_data_type_translation_keys_for_translators: false,
|
|
54
|
+
enable_icu_message_format: false,
|
|
55
|
+
enable_branching: false,
|
|
56
|
+
protect_master_branch: false,
|
|
57
|
+
autotranslate_enabled: false,
|
|
58
|
+
autotranslate_check_new_translation_keys: false,
|
|
59
|
+
autotranslate_check_new_uploads: false,
|
|
60
|
+
autotranslate_check_new_locales: false,
|
|
61
|
+
autotranslate_mark_as_unverified: false,
|
|
62
|
+
autotranslate_use_machine_translation: false,
|
|
63
|
+
autotranslate_use_translation_memory: true,
|
|
64
|
+
default_encoding: UTF-8)
|
|
37
65
|
```
|
|
38
66
|
|
|
39
67
|
|
|
@@ -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@69075512,
|
|
43
43
|
remove_project_image: false,
|
|
44
44
|
workflow: review,
|
|
45
45
|
machine_translation_enabled: true,
|
|
@@ -12,8 +12,6 @@ module Phrase
|
|
|
12
12
|
# @param id [String] ID
|
|
13
13
|
# @param [Hash] opts the optional parameters
|
|
14
14
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
15
|
-
# @option opts [Integer] :page Page number
|
|
16
|
-
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
17
15
|
# @return [Array<LocalePreview1>]
|
|
18
16
|
def account_locales(id, opts = {})
|
|
19
17
|
data, _status_code, _headers = account_locales_with_http_info(id, opts)
|
|
@@ -25,8 +23,6 @@ module Phrase
|
|
|
25
23
|
# @param id [String] ID
|
|
26
24
|
# @param [Hash] opts the optional parameters
|
|
27
25
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
28
|
-
# @option opts [Integer] :page Page number
|
|
29
|
-
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
30
26
|
# @return [Array<(Response<(Array<LocalePreview1>)>, Integer, Hash)>] Response<(Array<LocalePreview1>)> data, response status code and response headers
|
|
31
27
|
def account_locales_with_http_info(id, opts = {})
|
|
32
28
|
if @api_client.config.debugging
|
|
@@ -41,8 +37,6 @@ module Phrase
|
|
|
41
37
|
|
|
42
38
|
# query parameters
|
|
43
39
|
query_params = opts[:query_params] || {}
|
|
44
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
45
|
-
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
46
40
|
|
|
47
41
|
# header parameters
|
|
48
42
|
header_params = opts[:header_params] || {}
|
|
@@ -2,8 +2,6 @@ require 'date'
|
|
|
2
2
|
|
|
3
3
|
module Phrase
|
|
4
4
|
class LocalePreview1
|
|
5
|
-
attr_accessor :id
|
|
6
|
-
|
|
7
5
|
attr_accessor :name
|
|
8
6
|
|
|
9
7
|
attr_accessor :code
|
|
@@ -13,7 +11,6 @@ module Phrase
|
|
|
13
11
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
14
12
|
def self.attribute_map
|
|
15
13
|
{
|
|
16
|
-
:'id' => :'id',
|
|
17
14
|
:'name' => :'name',
|
|
18
15
|
:'code' => :'code',
|
|
19
16
|
:'project' => :'project'
|
|
@@ -23,7 +20,6 @@ module Phrase
|
|
|
23
20
|
# Attribute type mapping.
|
|
24
21
|
def self.openapi_types
|
|
25
22
|
{
|
|
26
|
-
:'id' => :'String',
|
|
27
23
|
:'name' => :'String',
|
|
28
24
|
:'code' => :'String',
|
|
29
25
|
:'project' => :'ProjectShort'
|
|
@@ -51,10 +47,6 @@ module Phrase
|
|
|
51
47
|
h[k.to_sym] = v
|
|
52
48
|
}
|
|
53
49
|
|
|
54
|
-
if attributes.key?(:'id')
|
|
55
|
-
self.id = attributes[:'id']
|
|
56
|
-
end
|
|
57
|
-
|
|
58
50
|
if attributes.key?(:'name')
|
|
59
51
|
self.name = attributes[:'name']
|
|
60
52
|
end
|
|
@@ -86,7 +78,6 @@ module Phrase
|
|
|
86
78
|
def ==(o)
|
|
87
79
|
return true if self.equal?(o)
|
|
88
80
|
self.class == o.class &&
|
|
89
|
-
id == o.id &&
|
|
90
81
|
name == o.name &&
|
|
91
82
|
code == o.code &&
|
|
92
83
|
project == o.project
|
|
@@ -101,7 +92,7 @@ module Phrase
|
|
|
101
92
|
# Calculates hash code according to all attributes.
|
|
102
93
|
# @return [Integer] Hash code
|
|
103
94
|
def hash
|
|
104
|
-
[
|
|
95
|
+
[name, code, project].hash
|
|
105
96
|
end
|
|
106
97
|
|
|
107
98
|
# Builds the object from hash
|
|
@@ -26,6 +26,34 @@ module Phrase
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :shares_translation_memory
|
|
28
28
|
|
|
29
|
+
attr_accessor :machine_translation_enabled
|
|
30
|
+
|
|
31
|
+
attr_accessor :zero_plural_form_enabled
|
|
32
|
+
|
|
33
|
+
attr_accessor :enable_all_data_type_translation_keys_for_translators
|
|
34
|
+
|
|
35
|
+
attr_accessor :enable_icu_message_format
|
|
36
|
+
|
|
37
|
+
attr_accessor :enable_branching
|
|
38
|
+
|
|
39
|
+
attr_accessor :protect_master_branch
|
|
40
|
+
|
|
41
|
+
attr_accessor :autotranslate_enabled
|
|
42
|
+
|
|
43
|
+
attr_accessor :autotranslate_check_new_translation_keys
|
|
44
|
+
|
|
45
|
+
attr_accessor :autotranslate_check_new_uploads
|
|
46
|
+
|
|
47
|
+
attr_accessor :autotranslate_check_new_locales
|
|
48
|
+
|
|
49
|
+
attr_accessor :autotranslate_mark_as_unverified
|
|
50
|
+
|
|
51
|
+
attr_accessor :autotranslate_use_machine_translation
|
|
52
|
+
|
|
53
|
+
attr_accessor :autotranslate_use_translation_memory
|
|
54
|
+
|
|
55
|
+
attr_accessor :default_encoding
|
|
56
|
+
|
|
29
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
58
|
def self.attribute_map
|
|
31
59
|
{
|
|
@@ -40,7 +68,21 @@ module Phrase
|
|
|
40
68
|
:'point_of_contact' => :'point_of_contact',
|
|
41
69
|
:'created_at' => :'created_at',
|
|
42
70
|
:'updated_at' => :'updated_at',
|
|
43
|
-
:'shares_translation_memory' => :'shares_translation_memory'
|
|
71
|
+
:'shares_translation_memory' => :'shares_translation_memory',
|
|
72
|
+
:'machine_translation_enabled' => :'machine_translation_enabled',
|
|
73
|
+
:'zero_plural_form_enabled' => :'zero_plural_form_enabled',
|
|
74
|
+
:'enable_all_data_type_translation_keys_for_translators' => :'enable_all_data_type_translation_keys_for_translators',
|
|
75
|
+
:'enable_icu_message_format' => :'enable_icu_message_format',
|
|
76
|
+
:'enable_branching' => :'enable_branching',
|
|
77
|
+
:'protect_master_branch' => :'protect_master_branch',
|
|
78
|
+
:'autotranslate_enabled' => :'autotranslate_enabled',
|
|
79
|
+
:'autotranslate_check_new_translation_keys' => :'autotranslate_check_new_translation_keys',
|
|
80
|
+
:'autotranslate_check_new_uploads' => :'autotranslate_check_new_uploads',
|
|
81
|
+
:'autotranslate_check_new_locales' => :'autotranslate_check_new_locales',
|
|
82
|
+
:'autotranslate_mark_as_unverified' => :'autotranslate_mark_as_unverified',
|
|
83
|
+
:'autotranslate_use_machine_translation' => :'autotranslate_use_machine_translation',
|
|
84
|
+
:'autotranslate_use_translation_memory' => :'autotranslate_use_translation_memory',
|
|
85
|
+
:'default_encoding' => :'default_encoding'
|
|
44
86
|
}
|
|
45
87
|
end
|
|
46
88
|
|
|
@@ -58,7 +100,21 @@ module Phrase
|
|
|
58
100
|
:'point_of_contact' => :'UserPreview',
|
|
59
101
|
:'created_at' => :'DateTime',
|
|
60
102
|
:'updated_at' => :'DateTime',
|
|
61
|
-
:'shares_translation_memory' => :'Boolean'
|
|
103
|
+
:'shares_translation_memory' => :'Boolean',
|
|
104
|
+
:'machine_translation_enabled' => :'Boolean',
|
|
105
|
+
:'zero_plural_form_enabled' => :'Boolean',
|
|
106
|
+
:'enable_all_data_type_translation_keys_for_translators' => :'Boolean',
|
|
107
|
+
:'enable_icu_message_format' => :'Boolean',
|
|
108
|
+
:'enable_branching' => :'Boolean',
|
|
109
|
+
:'protect_master_branch' => :'Boolean',
|
|
110
|
+
:'autotranslate_enabled' => :'Boolean',
|
|
111
|
+
:'autotranslate_check_new_translation_keys' => :'Boolean',
|
|
112
|
+
:'autotranslate_check_new_uploads' => :'Boolean',
|
|
113
|
+
:'autotranslate_check_new_locales' => :'Boolean',
|
|
114
|
+
:'autotranslate_mark_as_unverified' => :'Boolean',
|
|
115
|
+
:'autotranslate_use_machine_translation' => :'Boolean',
|
|
116
|
+
:'autotranslate_use_translation_memory' => :'Boolean',
|
|
117
|
+
:'default_encoding' => :'String'
|
|
62
118
|
}
|
|
63
119
|
end
|
|
64
120
|
|
|
@@ -137,6 +193,62 @@ module Phrase
|
|
|
137
193
|
if attributes.key?(:'shares_translation_memory')
|
|
138
194
|
self.shares_translation_memory = attributes[:'shares_translation_memory']
|
|
139
195
|
end
|
|
196
|
+
|
|
197
|
+
if attributes.key?(:'machine_translation_enabled')
|
|
198
|
+
self.machine_translation_enabled = attributes[:'machine_translation_enabled']
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if attributes.key?(:'zero_plural_form_enabled')
|
|
202
|
+
self.zero_plural_form_enabled = attributes[:'zero_plural_form_enabled']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.key?(:'enable_all_data_type_translation_keys_for_translators')
|
|
206
|
+
self.enable_all_data_type_translation_keys_for_translators = attributes[:'enable_all_data_type_translation_keys_for_translators']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'enable_icu_message_format')
|
|
210
|
+
self.enable_icu_message_format = attributes[:'enable_icu_message_format']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'enable_branching')
|
|
214
|
+
self.enable_branching = attributes[:'enable_branching']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'protect_master_branch')
|
|
218
|
+
self.protect_master_branch = attributes[:'protect_master_branch']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'autotranslate_enabled')
|
|
222
|
+
self.autotranslate_enabled = attributes[:'autotranslate_enabled']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'autotranslate_check_new_translation_keys')
|
|
226
|
+
self.autotranslate_check_new_translation_keys = attributes[:'autotranslate_check_new_translation_keys']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'autotranslate_check_new_uploads')
|
|
230
|
+
self.autotranslate_check_new_uploads = attributes[:'autotranslate_check_new_uploads']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'autotranslate_check_new_locales')
|
|
234
|
+
self.autotranslate_check_new_locales = attributes[:'autotranslate_check_new_locales']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'autotranslate_mark_as_unverified')
|
|
238
|
+
self.autotranslate_mark_as_unverified = attributes[:'autotranslate_mark_as_unverified']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'autotranslate_use_machine_translation')
|
|
242
|
+
self.autotranslate_use_machine_translation = attributes[:'autotranslate_use_machine_translation']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'autotranslate_use_translation_memory')
|
|
246
|
+
self.autotranslate_use_translation_memory = attributes[:'autotranslate_use_translation_memory']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'default_encoding')
|
|
250
|
+
self.default_encoding = attributes[:'default_encoding']
|
|
251
|
+
end
|
|
140
252
|
end
|
|
141
253
|
|
|
142
254
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -168,7 +280,21 @@ module Phrase
|
|
|
168
280
|
point_of_contact == o.point_of_contact &&
|
|
169
281
|
created_at == o.created_at &&
|
|
170
282
|
updated_at == o.updated_at &&
|
|
171
|
-
shares_translation_memory == o.shares_translation_memory
|
|
283
|
+
shares_translation_memory == o.shares_translation_memory &&
|
|
284
|
+
machine_translation_enabled == o.machine_translation_enabled &&
|
|
285
|
+
zero_plural_form_enabled == o.zero_plural_form_enabled &&
|
|
286
|
+
enable_all_data_type_translation_keys_for_translators == o.enable_all_data_type_translation_keys_for_translators &&
|
|
287
|
+
enable_icu_message_format == o.enable_icu_message_format &&
|
|
288
|
+
enable_branching == o.enable_branching &&
|
|
289
|
+
protect_master_branch == o.protect_master_branch &&
|
|
290
|
+
autotranslate_enabled == o.autotranslate_enabled &&
|
|
291
|
+
autotranslate_check_new_translation_keys == o.autotranslate_check_new_translation_keys &&
|
|
292
|
+
autotranslate_check_new_uploads == o.autotranslate_check_new_uploads &&
|
|
293
|
+
autotranslate_check_new_locales == o.autotranslate_check_new_locales &&
|
|
294
|
+
autotranslate_mark_as_unverified == o.autotranslate_mark_as_unverified &&
|
|
295
|
+
autotranslate_use_machine_translation == o.autotranslate_use_machine_translation &&
|
|
296
|
+
autotranslate_use_translation_memory == o.autotranslate_use_translation_memory &&
|
|
297
|
+
default_encoding == o.default_encoding
|
|
172
298
|
end
|
|
173
299
|
|
|
174
300
|
# @see the `==` method
|
|
@@ -180,7 +306,7 @@ module Phrase
|
|
|
180
306
|
# Calculates hash code according to all attributes.
|
|
181
307
|
# @return [Integer] Hash code
|
|
182
308
|
def hash
|
|
183
|
-
[id, name, slug, main_format, project_image_url, media, account, space, point_of_contact, created_at, updated_at, shares_translation_memory].hash
|
|
309
|
+
[id, name, slug, main_format, project_image_url, media, account, space, point_of_contact, created_at, updated_at, shares_translation_memory, machine_translation_enabled, zero_plural_form_enabled, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, enable_branching, protect_master_branch, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, default_encoding].hash
|
|
184
310
|
end
|
|
185
311
|
|
|
186
312
|
# Builds the object from hash
|
data/lib/phrase/version.rb
CHANGED
|
@@ -20,12 +20,6 @@ describe 'LocalePreview1' do
|
|
|
20
20
|
expect(@instance).to be_instance_of(Phrase::LocalePreview1)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
describe 'test attribute "id"' do
|
|
24
|
-
it 'should work' do
|
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
|
|
29
23
|
describe 'test attribute "name"' do
|
|
30
24
|
it 'should work' do
|
|
31
25
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -92,4 +92,88 @@ describe 'ProjectDetails' do
|
|
|
92
92
|
end
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
+
describe 'test attribute "machine_translation_enabled"' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
describe 'test attribute "zero_plural_form_enabled"' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
describe 'test attribute "enable_all_data_type_translation_keys_for_translators"' do
|
|
108
|
+
it 'should work' do
|
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
describe 'test attribute "enable_icu_message_format"' do
|
|
114
|
+
it 'should work' do
|
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
describe 'test attribute "enable_branching"' do
|
|
120
|
+
it 'should work' do
|
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
describe 'test attribute "protect_master_branch"' do
|
|
126
|
+
it 'should work' do
|
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
describe 'test attribute "autotranslate_enabled"' do
|
|
132
|
+
it 'should work' do
|
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
describe 'test attribute "autotranslate_check_new_translation_keys"' do
|
|
138
|
+
it 'should work' do
|
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
describe 'test attribute "autotranslate_check_new_uploads"' do
|
|
144
|
+
it 'should work' do
|
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
describe 'test attribute "autotranslate_check_new_locales"' do
|
|
150
|
+
it 'should work' do
|
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
describe 'test attribute "autotranslate_mark_as_unverified"' do
|
|
156
|
+
it 'should work' do
|
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
describe 'test attribute "autotranslate_use_machine_translation"' do
|
|
162
|
+
it 'should work' do
|
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
describe 'test attribute "autotranslate_use_translation_memory"' do
|
|
168
|
+
it 'should work' do
|
|
169
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
describe 'test attribute "default_encoding"' do
|
|
174
|
+
it 'should work' do
|
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
95
179
|
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.
|
|
4
|
+
version: 4.16.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Phrase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|