phrase 4.16.0 → 4.16.1
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 +7 -0
- data/README.md +3 -3
- data/docs/Translation.md +3 -1
- data/docs/TranslationDetails.md +3 -3
- data/lib/phrase/models/translation.rb +13 -4
- data/lib/phrase/models/translation_details.rb +13 -13
- data/lib/phrase/version.rb +1 -1
- data/spec/models/translation_details_spec.rb +3 -3
- data/spec/models/translation_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: fdf67e291a3de5a9f390ba8409f9abbee00924daa3ee48689d058c374308713a
|
|
4
|
+
data.tar.gz: f940f8c3578141a05c48bf67d8f5075ac86528aa199927393536c03305c07e5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 175514cc053f304d2006e666c70e2a069bf4a35c4137b3ebef9c523a1b2569de74c3433a158b48b4daf63b93cac7ac1534fd48a392755ab0f42e36e718f8dd98
|
|
7
|
+
data.tar.gz: 82ef9bde3b0b7bc757e8de5fa851f612f0949faad7e29ef29551a3c466c4ebef432d17ec6f311571fed65a39b234fdd8111cdc17810f8fc592f3ef722dba6be9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.16.1](https://github.com/phrase/strings-openapi/compare/ruby-v4.16.0...ruby-v4.16.1) (2026-01-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **API:** Add linked_translation to translation type ([#1005](https://github.com/phrase/strings-openapi/issues/1005)) ([b18e64c](https://github.com/phrase/strings-openapi/commit/b18e64c948d40a9e5f996e8fdf6dee07d1812b02))
|
|
9
|
+
|
|
3
10
|
## [4.16.0](https://github.com/phrase/openapi/compare/ruby-v4.15.0...ruby-v4.16.0) (2026-01-09)
|
|
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.16.
|
|
10
|
+
- Package version: 4.16.1
|
|
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.16.
|
|
59
|
+
gem install ./phrase-4.16.1.gem
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
(for development, run `gem install --dev ./phrase-4.16.
|
|
62
|
+
(for development, run `gem install --dev ./phrase-4.16.1.gem` to install the development dependencies)
|
|
63
63
|
|
|
64
64
|
## Getting Started
|
|
65
65
|
|
data/docs/Translation.md
CHANGED
|
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**state** | **String** | | [optional]
|
|
16
16
|
**created_at** | **Time** | | [optional]
|
|
17
17
|
**updated_at** | **Time** | | [optional]
|
|
18
|
+
**linked_translation** | [**TranslationParent**](TranslationParent.md) | | [optional]
|
|
18
19
|
|
|
19
20
|
## Code Sample
|
|
20
21
|
|
|
@@ -31,7 +32,8 @@ instance = Phrase::Translation.new(id: null,
|
|
|
31
32
|
placeholders: null,
|
|
32
33
|
state: null,
|
|
33
34
|
created_at: null,
|
|
34
|
-
updated_at: null
|
|
35
|
+
updated_at: null,
|
|
36
|
+
linked_translation: null)
|
|
35
37
|
```
|
|
36
38
|
|
|
37
39
|
|
data/docs/TranslationDetails.md
CHANGED
|
@@ -15,9 +15,9 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**state** | **String** | | [optional]
|
|
16
16
|
**created_at** | **Time** | | [optional]
|
|
17
17
|
**updated_at** | **Time** | | [optional]
|
|
18
|
+
**linked_translation** | [**TranslationParent**](TranslationParent.md) | | [optional]
|
|
18
19
|
**user** | [**UserPreview**](UserPreview.md) | | [optional]
|
|
19
20
|
**word_count** | **Integer** | | [optional]
|
|
20
|
-
**linked_translation** | [**TranslationParent**](TranslationParent.md) | | [optional]
|
|
21
21
|
|
|
22
22
|
## Code Sample
|
|
23
23
|
|
|
@@ -35,9 +35,9 @@ instance = Phrase::TranslationDetails.new(id: null,
|
|
|
35
35
|
state: null,
|
|
36
36
|
created_at: null,
|
|
37
37
|
updated_at: null,
|
|
38
|
+
linked_translation: null,
|
|
38
39
|
user: null,
|
|
39
|
-
word_count: null
|
|
40
|
-
linked_translation: null)
|
|
40
|
+
word_count: null)
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
|
|
@@ -24,6 +24,8 @@ module Phrase
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :updated_at
|
|
26
26
|
|
|
27
|
+
attr_accessor :linked_translation
|
|
28
|
+
|
|
27
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
30
|
def self.attribute_map
|
|
29
31
|
{
|
|
@@ -37,7 +39,8 @@ module Phrase
|
|
|
37
39
|
:'placeholders' => :'placeholders',
|
|
38
40
|
:'state' => :'state',
|
|
39
41
|
:'created_at' => :'created_at',
|
|
40
|
-
:'updated_at' => :'updated_at'
|
|
42
|
+
:'updated_at' => :'updated_at',
|
|
43
|
+
:'linked_translation' => :'linked_translation'
|
|
41
44
|
}
|
|
42
45
|
end
|
|
43
46
|
|
|
@@ -54,7 +57,8 @@ module Phrase
|
|
|
54
57
|
:'placeholders' => :'Array<String>',
|
|
55
58
|
:'state' => :'String',
|
|
56
59
|
:'created_at' => :'DateTime',
|
|
57
|
-
:'updated_at' => :'DateTime'
|
|
60
|
+
:'updated_at' => :'DateTime',
|
|
61
|
+
:'linked_translation' => :'TranslationParent'
|
|
58
62
|
}
|
|
59
63
|
end
|
|
60
64
|
|
|
@@ -124,6 +128,10 @@ module Phrase
|
|
|
124
128
|
if attributes.key?(:'updated_at')
|
|
125
129
|
self.updated_at = attributes[:'updated_at']
|
|
126
130
|
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'linked_translation')
|
|
133
|
+
self.linked_translation = attributes[:'linked_translation']
|
|
134
|
+
end
|
|
127
135
|
end
|
|
128
136
|
|
|
129
137
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -154,7 +162,8 @@ module Phrase
|
|
|
154
162
|
placeholders == o.placeholders &&
|
|
155
163
|
state == o.state &&
|
|
156
164
|
created_at == o.created_at &&
|
|
157
|
-
updated_at == o.updated_at
|
|
165
|
+
updated_at == o.updated_at &&
|
|
166
|
+
linked_translation == o.linked_translation
|
|
158
167
|
end
|
|
159
168
|
|
|
160
169
|
# @see the `==` method
|
|
@@ -166,7 +175,7 @@ module Phrase
|
|
|
166
175
|
# Calculates hash code according to all attributes.
|
|
167
176
|
# @return [Integer] Hash code
|
|
168
177
|
def hash
|
|
169
|
-
[id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at].hash
|
|
178
|
+
[id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at, linked_translation].hash
|
|
170
179
|
end
|
|
171
180
|
|
|
172
181
|
# Builds the object from hash
|
|
@@ -24,12 +24,12 @@ module Phrase
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :updated_at
|
|
26
26
|
|
|
27
|
+
attr_accessor :linked_translation
|
|
28
|
+
|
|
27
29
|
attr_accessor :user
|
|
28
30
|
|
|
29
31
|
attr_accessor :word_count
|
|
30
32
|
|
|
31
|
-
attr_accessor :linked_translation
|
|
32
|
-
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
34
|
def self.attribute_map
|
|
35
35
|
{
|
|
@@ -44,9 +44,9 @@ module Phrase
|
|
|
44
44
|
:'state' => :'state',
|
|
45
45
|
:'created_at' => :'created_at',
|
|
46
46
|
:'updated_at' => :'updated_at',
|
|
47
|
+
:'linked_translation' => :'linked_translation',
|
|
47
48
|
:'user' => :'user',
|
|
48
|
-
:'word_count' => :'word_count'
|
|
49
|
-
:'linked_translation' => :'linked_translation'
|
|
49
|
+
:'word_count' => :'word_count'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -64,9 +64,9 @@ module Phrase
|
|
|
64
64
|
:'state' => :'String',
|
|
65
65
|
:'created_at' => :'DateTime',
|
|
66
66
|
:'updated_at' => :'DateTime',
|
|
67
|
+
:'linked_translation' => :'TranslationParent',
|
|
67
68
|
:'user' => :'UserPreview',
|
|
68
|
-
:'word_count' => :'Integer'
|
|
69
|
-
:'linked_translation' => :'TranslationParent'
|
|
69
|
+
:'word_count' => :'Integer'
|
|
70
70
|
}
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -144,6 +144,10 @@ module Phrase
|
|
|
144
144
|
self.updated_at = attributes[:'updated_at']
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
+
if attributes.key?(:'linked_translation')
|
|
148
|
+
self.linked_translation = attributes[:'linked_translation']
|
|
149
|
+
end
|
|
150
|
+
|
|
147
151
|
if attributes.key?(:'user')
|
|
148
152
|
self.user = attributes[:'user']
|
|
149
153
|
end
|
|
@@ -151,10 +155,6 @@ module Phrase
|
|
|
151
155
|
if attributes.key?(:'word_count')
|
|
152
156
|
self.word_count = attributes[:'word_count']
|
|
153
157
|
end
|
|
154
|
-
|
|
155
|
-
if attributes.key?(:'linked_translation')
|
|
156
|
-
self.linked_translation = attributes[:'linked_translation']
|
|
157
|
-
end
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -186,9 +186,9 @@ module Phrase
|
|
|
186
186
|
state == o.state &&
|
|
187
187
|
created_at == o.created_at &&
|
|
188
188
|
updated_at == o.updated_at &&
|
|
189
|
+
linked_translation == o.linked_translation &&
|
|
189
190
|
user == o.user &&
|
|
190
|
-
word_count == o.word_count
|
|
191
|
-
linked_translation == o.linked_translation
|
|
191
|
+
word_count == o.word_count
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
# @see the `==` method
|
|
@@ -200,7 +200,7 @@ module Phrase
|
|
|
200
200
|
# Calculates hash code according to all attributes.
|
|
201
201
|
# @return [Integer] Hash code
|
|
202
202
|
def hash
|
|
203
|
-
[id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at, user, word_count
|
|
203
|
+
[id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at, linked_translation, user, word_count].hash
|
|
204
204
|
end
|
|
205
205
|
|
|
206
206
|
# Builds the object from hash
|
data/lib/phrase/version.rb
CHANGED
|
@@ -86,19 +86,19 @@ describe 'TranslationDetails' do
|
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
describe 'test attribute "
|
|
89
|
+
describe 'test attribute "linked_translation"' do
|
|
90
90
|
it 'should work' do
|
|
91
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
92
|
end
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
-
describe 'test attribute "
|
|
95
|
+
describe 'test attribute "user"' do
|
|
96
96
|
it 'should work' do
|
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
describe 'test attribute "
|
|
101
|
+
describe 'test attribute "word_count"' do
|
|
102
102
|
it 'should work' do
|
|
103
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
104
|
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.16.
|
|
4
|
+
version: 4.16.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Phrase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|