phrase 4.36.0 → 4.37.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 +7 -0
- data/README.md +3 -3
- data/docs/RepoSyncEvent.md +3 -1
- data/lib/phrase/models/repo_sync_event.rb +12 -2
- data/lib/phrase/version.rb +1 -1
- data/spec/models/repo_sync_event_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e168b205e58e6688d53c8031fc78ceccaee85fb0935b374ae2ce272df00b2df7
|
|
4
|
+
data.tar.gz: ee9392b885ec71a5c61e35542fe1c3310faa92dd46842e30cf2b474f09bd74fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 478768bc1e448fe8ff95075d7df97015a8c43919d39402c4644f21afd8652429b06cfbf6589ccb2ebe5f05615994c04fefc428241c83fc51a97cf87dc53bbe20
|
|
7
|
+
data.tar.gz: 38a15d5f6f8659fb2b743090d28439b6d5f9dca08e1b5fac364c5e6ff259acedf497cf3ded8f415a036f9b51311363a90a2e583d650e656e090396f267356b33
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.37.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.36.0...ruby-v4.37.0) (2026-11-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **API:** add automatic field to repo sync event responses, deprecate auto_import #STRINGS-4942 ([#1393](https://github.com/phrase/strings-openapi/issues/1393)) ([f63d8e9](https://github.com/phrase/strings-openapi/commit/f63d8e9e6ecb37878007c0e1ef5c079337ab4134))
|
|
9
|
+
|
|
3
10
|
## [4.36.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.35.0...ruby-v4.36.0) (2026-11-24)
|
|
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.
|
|
10
|
+
- Package version: 4.37.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.37.0.gem
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
(for development, run `gem install --dev ./phrase-4.
|
|
62
|
+
(for development, run `gem install --dev ./phrase-4.37.0.gem` to install the development dependencies)
|
|
63
63
|
|
|
64
64
|
## Getting Started
|
|
65
65
|
|
data/docs/RepoSyncEvent.md
CHANGED
|
@@ -8,8 +8,9 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**type** | **String** | | [optional]
|
|
9
9
|
**created_at** | **Time** | | [optional]
|
|
10
10
|
**status** | **String** | | [optional]
|
|
11
|
+
**automatic** | **Boolean** | When `true`, the sync was triggered automatically (for example by a Zero Touch Localization rule or an automation). When `false`, it was triggered manually. | [optional]
|
|
11
12
|
**pull_request_url** | **String** | URL of the pull request created on export | [optional]
|
|
12
|
-
**auto_import** | **Boolean** |
|
|
13
|
+
**auto_import** | **Boolean** | **Deprecated.** Use `automatic` instead. Only present on import events. Indicates whether the import was triggered automatically. | [optional]
|
|
13
14
|
**errors** | **Array<String>** | List of error messages, in case of failure | [optional]
|
|
14
15
|
**uploads** | [**Array<RepoSyncEventUploadsInner>**](RepoSyncEventUploadsInner.md) | The uploads associated with this import event, or `null` if no upload batch has been created yet. Each entry identifies a single file upload by its public code (`id`) and its current public state (`state`). Present on show responses only; absent from list responses. Possible `state` values: `initialized`, `waiting_for_preview`, `processing`, `success`, `error`. | [optional]
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ instance = Phrase::RepoSyncEvent.new(id: nil,
|
|
|
22
23
|
type: nil,
|
|
23
24
|
created_at: nil,
|
|
24
25
|
status: nil,
|
|
26
|
+
automatic: nil,
|
|
25
27
|
pull_request_url: nil,
|
|
26
28
|
auto_import: nil,
|
|
27
29
|
errors: nil,
|
|
@@ -10,10 +10,13 @@ module Phrase
|
|
|
10
10
|
|
|
11
11
|
attr_accessor :status
|
|
12
12
|
|
|
13
|
+
# When `true`, the sync was triggered automatically (for example by a Zero Touch Localization rule or an automation). When `false`, it was triggered manually.
|
|
14
|
+
attr_accessor :automatic
|
|
15
|
+
|
|
13
16
|
# URL of the pull request created on export
|
|
14
17
|
attr_accessor :pull_request_url
|
|
15
18
|
|
|
16
|
-
#
|
|
19
|
+
# **Deprecated.** Use `automatic` instead. Only present on import events. Indicates whether the import was triggered automatically.
|
|
17
20
|
attr_accessor :auto_import
|
|
18
21
|
|
|
19
22
|
# List of error messages, in case of failure
|
|
@@ -51,6 +54,7 @@ module Phrase
|
|
|
51
54
|
:'type' => :'type',
|
|
52
55
|
:'created_at' => :'created_at',
|
|
53
56
|
:'status' => :'status',
|
|
57
|
+
:'automatic' => :'automatic',
|
|
54
58
|
:'pull_request_url' => :'pull_request_url',
|
|
55
59
|
:'auto_import' => :'auto_import',
|
|
56
60
|
:'errors' => :'errors',
|
|
@@ -65,6 +69,7 @@ module Phrase
|
|
|
65
69
|
:'type' => :'String',
|
|
66
70
|
:'created_at' => :'DateTime',
|
|
67
71
|
:'status' => :'String',
|
|
72
|
+
:'automatic' => :'Boolean',
|
|
68
73
|
:'pull_request_url' => :'String',
|
|
69
74
|
:'auto_import' => :'Boolean',
|
|
70
75
|
:'errors' => :'Array<String>',
|
|
@@ -110,6 +115,10 @@ module Phrase
|
|
|
110
115
|
self.status = attributes[:'status']
|
|
111
116
|
end
|
|
112
117
|
|
|
118
|
+
if attributes.key?(:'automatic')
|
|
119
|
+
self.automatic = attributes[:'automatic']
|
|
120
|
+
end
|
|
121
|
+
|
|
113
122
|
if attributes.key?(:'pull_request_url')
|
|
114
123
|
self.pull_request_url = attributes[:'pull_request_url']
|
|
115
124
|
end
|
|
@@ -177,6 +186,7 @@ module Phrase
|
|
|
177
186
|
type == o.type &&
|
|
178
187
|
created_at == o.created_at &&
|
|
179
188
|
status == o.status &&
|
|
189
|
+
automatic == o.automatic &&
|
|
180
190
|
pull_request_url == o.pull_request_url &&
|
|
181
191
|
auto_import == o.auto_import &&
|
|
182
192
|
errors == o.errors &&
|
|
@@ -192,7 +202,7 @@ module Phrase
|
|
|
192
202
|
# Calculates hash code according to all attributes.
|
|
193
203
|
# @return [Integer] Hash code
|
|
194
204
|
def hash
|
|
195
|
-
[id, type, created_at, status, pull_request_url, auto_import, errors, uploads].hash
|
|
205
|
+
[id, type, created_at, status, automatic, pull_request_url, auto_import, errors, uploads].hash
|
|
196
206
|
end
|
|
197
207
|
|
|
198
208
|
# Builds the object from hash
|
data/lib/phrase/version.rb
CHANGED
|
@@ -52,6 +52,12 @@ describe 'RepoSyncEvent' do
|
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
describe 'test attribute "automatic"' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
55
61
|
describe 'test attribute "pull_request_url"' do
|
|
56
62
|
it 'should work' do
|
|
57
63
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|