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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17ab187d0d8484dd265cfac945586c664d730ca1811aca90e1893b3e0391c105
4
- data.tar.gz: aad5669289a1e94dfb79716174ccd74c8b92997d7d6e2755f289bf8905bb33e9
3
+ metadata.gz: dd5f320b574521ccbd0cead1343c3f706496e4ea0f5b3e988ab0ea6b4bbc94f7
4
+ data.tar.gz: 0ee659a75fe41a166fbc620a17dea9b15f500b3054af02cea26f8663abbf9460
5
5
  SHA512:
6
- metadata.gz: 60707a28abd0e762e42035159d383662ed710de5ff80f73005a34787a66be2adf0ccd81004ae388b64554bc437a1e80310489d16d9ebcf163a2235e6cbef2f4a
7
- data.tar.gz: c992077004bfcc947ec6e211703916bee3a57d8078f594d5f8b2cd723071b9695b8d15da3e7673cecb2160f974648c20214b4340e5e6cba5fcf9f5286cad7641
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.0
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.10.0.gem
59
+ gem install ./phrase-2.11.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-2.10.0.gem` to install the development dependencies)
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
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '2.10.0'
2
+ VERSION = '2.11.0'
3
3
  end
@@ -44,4 +44,10 @@ describe 'IcuSkeletonParameters' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "cldr_version"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  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: 2.10.0
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-20 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus