phrase 4.16.1 → 4.17.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 +139 -123
- data/README.md +8 -3
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/LocaleDownloadCreateParameters.md +2 -2
- data/docs/LocalePreview1.md +1 -3
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/RepoSyncExportParameters.md +17 -0
- data/docs/RepoSyncImportParameters.md +17 -0
- data/docs/RepoSyncsApi.md +10 -4
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/UploadBatch.md +29 -0
- data/docs/UploadBatchesApi.md +72 -0
- data/docs/UploadBatchesCreateParameters.md +21 -0
- data/docs/VersionsHistoryApi.md +5 -3
- data/lib/phrase/api/repo_syncs_api.rb +13 -2
- data/lib/phrase/api/upload_batches_api.rb +84 -0
- data/lib/phrase/api/versions_history_api.rb +6 -3
- data/lib/phrase/configuration.rb +5 -1
- data/lib/phrase/models/locale_download_create_parameters.rb +1 -1
- data/lib/phrase/models/locale_preview1.rb +4 -13
- data/lib/phrase/models/repo_sync_export_parameters.rb +197 -0
- data/lib/phrase/models/repo_sync_import_parameters.rb +197 -0
- data/lib/phrase/models/upload_batch.rb +288 -0
- data/lib/phrase/models/upload_batches_create_parameters.rb +224 -0
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +5 -0
- data/spec/api/repo_syncs_api_spec.rb +3 -0
- data/spec/api/upload_batches_api_spec.rb +37 -0
- data/spec/api/versions_history_api_spec.rb +2 -1
- data/spec/models/locale_preview1_spec.rb +0 -6
- data/spec/models/repo_sync_export_parameters_spec.rb +29 -0
- data/spec/models/repo_sync_import_parameters_spec.rb +29 -0
- data/spec/models/upload_batch_spec.rb +69 -0
- data/spec/models/upload_batches_create_parameters_spec.rb +41 -0
- metadata +258 -238
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# Unit tests for Phrase::UploadBatch
|
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
7
|
+
# Please update as you see appropriate
|
|
8
|
+
describe 'UploadBatch' do
|
|
9
|
+
before do
|
|
10
|
+
# run before each test
|
|
11
|
+
@instance = Phrase::UploadBatch.new
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
after do
|
|
15
|
+
# run after each test
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of UploadBatch' do
|
|
19
|
+
it 'should create an instance of UploadBatch' do
|
|
20
|
+
expect(@instance).to be_instance_of(Phrase::UploadBatch)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "state"' do
|
|
24
|
+
it 'should work' do
|
|
25
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["started", "done"])
|
|
27
|
+
# validator.allowable_values.each do |value|
|
|
28
|
+
# expect { @instance.state = value }.not_to raise_error
|
|
29
|
+
# end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "delete_unmentioned_keys"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "created_at"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "updated_at"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
describe 'test attribute "project"' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
describe 'test attribute "user"' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
describe 'test attribute "uploads"' do
|
|
64
|
+
it 'should work' do
|
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# Unit tests for Phrase::UploadBatchesCreateParameters
|
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
7
|
+
# Please update as you see appropriate
|
|
8
|
+
describe 'UploadBatchesCreateParameters' do
|
|
9
|
+
before do
|
|
10
|
+
# run before each test
|
|
11
|
+
@instance = Phrase::UploadBatchesCreateParameters.new
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
after do
|
|
15
|
+
# run after each test
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of UploadBatchesCreateParameters' do
|
|
19
|
+
it 'should create an instance of UploadBatchesCreateParameters' do
|
|
20
|
+
expect(@instance).to be_instance_of(Phrase::UploadBatchesCreateParameters)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "branch"' 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
|
+
describe 'test attribute "delete_unmentioned_keys"' do
|
|
30
|
+
it 'should work' do
|
|
31
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
describe 'test attribute "upload_ids"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
end
|