phrase 2.10.0 → 2.11.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/README.md +3 -3
- data/docs/IcuSkeletonParameters.md +3 -1
- data/lib/phrase/models/icu_skeleton_parameters.rb +14 -4
- data/lib/phrase/version.rb +1 -1
- data/spec/models/icu_skeleton_parameters_spec.rb +6 -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: dd5f320b574521ccbd0cead1343c3f706496e4ea0f5b3e988ab0ea6b4bbc94f7
|
4
|
+
data.tar.gz: 0ee659a75fe41a166fbc620a17dea9b15f500b3054af02cea26f8663abbf9460
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372688e95fdf497b3fd362fc0ac39669570d683447dc4582bf84e9f9166281c982239dab96ffb8e0b33d40a430a0afae70a309b7c9cd6c3df6618841d135f997
|
7
|
+
data.tar.gz: a0a11a4acb392ac3c24849ade0b12f8753503c92ed1b341d4e4b2bae7182a85be11255696c54625a00473e2e3b4d8f634a82ef0943cb2d39d7a545e33aff2cae
|
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: 2.
|
10
|
+
- Package version: 2.11.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-2.
|
59
|
+
gem install ./phrase-2.11.0.gem
|
60
60
|
```
|
61
61
|
|
62
|
-
(for development, run `gem install --dev ./phrase-2.
|
62
|
+
(for development, run `gem install --dev ./phrase-2.11.0.gem` to install the development dependencies)
|
63
63
|
|
64
64
|
## Getting Started
|
65
65
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**locale_codes** | **Array<String>** | Locale codes | [optional]
|
9
9
|
**keep_content** | **Boolean** | Keep the content and add missing plural forms for each locale | [optional]
|
10
10
|
**zero_form_enabled** | **Boolean** | Indicates whether the zero form should be included or excluded in the returned skeletons | [optional]
|
11
|
+
**cldr_version** | **String** | Strings supports two CLDR variants, when it comes to pluralization rules. \\ You can choose which one you want to use when constructing the skeletons. Possible values \\ are `legacy` and `cldr_41`. Default value is `legacy`. | [optional]
|
11
12
|
|
12
13
|
## Code Sample
|
13
14
|
|
@@ -17,7 +18,8 @@ require 'Phrase'
|
|
17
18
|
instance = Phrase::IcuSkeletonParameters.new(content: {number, plural, one {One} other {%{n}}},
|
18
19
|
locale_codes: ["en"],
|
19
20
|
keep_content: null,
|
20
|
-
zero_form_enabled: null
|
21
|
+
zero_form_enabled: null,
|
22
|
+
cldr_version: cldr_41)
|
21
23
|
```
|
22
24
|
|
23
25
|
|
@@ -14,13 +14,17 @@ module Phrase
|
|
14
14
|
# Indicates whether the zero form should be included or excluded in the returned skeletons
|
15
15
|
attr_accessor :zero_form_enabled
|
16
16
|
|
17
|
+
# Strings supports two CLDR variants, when it comes to pluralization rules. \\ You can choose which one you want to use when constructing the skeletons. Possible values \\ are `legacy` and `cldr_41`. Default value is `legacy`.
|
18
|
+
attr_accessor :cldr_version
|
19
|
+
|
17
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
21
|
def self.attribute_map
|
19
22
|
{
|
20
23
|
:'content' => :'content',
|
21
24
|
:'locale_codes' => :'locale_codes',
|
22
25
|
:'keep_content' => :'keep_content',
|
23
|
-
:'zero_form_enabled' => :'zero_form_enabled'
|
26
|
+
:'zero_form_enabled' => :'zero_form_enabled',
|
27
|
+
:'cldr_version' => :'cldr_version'
|
24
28
|
}
|
25
29
|
end
|
26
30
|
|
@@ -30,7 +34,8 @@ module Phrase
|
|
30
34
|
:'content' => :'String',
|
31
35
|
:'locale_codes' => :'Array<String>',
|
32
36
|
:'keep_content' => :'Boolean',
|
33
|
-
:'zero_form_enabled' => :'Boolean'
|
37
|
+
:'zero_form_enabled' => :'Boolean',
|
38
|
+
:'cldr_version' => :'String'
|
34
39
|
}
|
35
40
|
end
|
36
41
|
|
@@ -72,6 +77,10 @@ module Phrase
|
|
72
77
|
if attributes.key?(:'zero_form_enabled')
|
73
78
|
self.zero_form_enabled = attributes[:'zero_form_enabled']
|
74
79
|
end
|
80
|
+
|
81
|
+
if attributes.key?(:'cldr_version')
|
82
|
+
self.cldr_version = attributes[:'cldr_version']
|
83
|
+
end
|
75
84
|
end
|
76
85
|
|
77
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -95,7 +104,8 @@ module Phrase
|
|
95
104
|
content == o.content &&
|
96
105
|
locale_codes == o.locale_codes &&
|
97
106
|
keep_content == o.keep_content &&
|
98
|
-
zero_form_enabled == o.zero_form_enabled
|
107
|
+
zero_form_enabled == o.zero_form_enabled &&
|
108
|
+
cldr_version == o.cldr_version
|
99
109
|
end
|
100
110
|
|
101
111
|
# @see the `==` method
|
@@ -107,7 +117,7 @@ module Phrase
|
|
107
117
|
# Calculates hash code according to all attributes.
|
108
118
|
# @return [Integer] Hash code
|
109
119
|
def hash
|
110
|
-
[content, locale_codes, keep_content, zero_form_enabled].hash
|
120
|
+
[content, locale_codes, keep_content, zero_form_enabled, cldr_version].hash
|
111
121
|
end
|
112
122
|
|
113
123
|
# Builds the object from hash
|
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: 2.
|
4
|
+
version: 2.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phrase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|