phrase 2.12.0 → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +19 -13
- data/docs/CommentReaction.md +27 -0
- data/docs/CommentReactionsApi.md +287 -0
- data/docs/DistributionCreateParameters.md +1 -1
- data/docs/GitlabSyncHistory.md +2 -2
- data/docs/GitlabSyncHistoryErrors.md +19 -0
- data/docs/JobLocaleUpdateParameters.md +1 -1
- data/docs/JobLocalesApi.md +20 -20
- data/docs/JobLocalesCreateParameters.md +1 -1
- data/docs/LocalesApi.md +2 -2
- data/docs/SpacesApi.md +9 -9
- data/docs/TeamsApi.md +6 -6
- data/docs/UploadCreateParameters.md +1 -1
- data/docs/UploadsApi.md +2 -2
- data/lib/phrase/api/comment_reactions_api.rb +350 -0
- data/lib/phrase/api/job_locales_api.rb +20 -20
- data/lib/phrase/api/locales_api.rb +2 -2
- data/lib/phrase/api/spaces_api.rb +6 -6
- data/lib/phrase/api/teams_api.rb +4 -4
- data/lib/phrase/api/uploads_api.rb +2 -2
- data/lib/phrase/models/comment_reaction.rb +239 -0
- data/lib/phrase/models/distribution_create_parameters.rb +1 -1
- data/lib/phrase/models/gitlab_sync_history.rb +2 -2
- data/lib/phrase/models/gitlab_sync_history_errors.rb +203 -0
- data/lib/phrase/models/job_locale_update_parameters.rb +1 -1
- data/lib/phrase/models/job_locales_create_parameters.rb +1 -1
- data/lib/phrase/models/upload_create_parameters.rb +1 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +3 -0
- data/spec/api/comment_reactions_api_spec.rb +91 -0
- data/spec/api/job_locales_api_spec.rb +10 -10
- data/spec/api/locales_api_spec.rb +1 -1
- data/spec/api/spaces_api_spec.rb +3 -3
- data/spec/api/teams_api_spec.rb +2 -2
- data/spec/api/uploads_api_spec.rb +1 -1
- data/spec/models/comment_reaction_spec.rb +59 -0
- data/spec/models/gitlab_sync_history_errors_spec.rb +35 -0
- metadata +224 -211
@@ -0,0 +1,91 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for Phrase::CommentReactionsApi
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'CommentReactionsApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@api_instance = Phrase::CommentReactionsApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of CommentReactionsApi' do
|
18
|
+
it 'should create an instance of CommentReactionsApi' do
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::CommentReactionsApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for reaction_create
|
24
|
+
# Create a reaction
|
25
|
+
# Create a new reaction for a comment.
|
26
|
+
# @param project_id Project ID
|
27
|
+
# @param key_id Translation Key ID
|
28
|
+
# @param comment_id Comment ID
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
31
|
+
# @option opts [String] :branch specify the branch to use
|
32
|
+
# @return [CommentReaction]
|
33
|
+
describe 'reaction_create test' 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
|
+
# unit tests for reaction_delete
|
40
|
+
# Delete a reaction
|
41
|
+
# Delete an existing reaction.
|
42
|
+
# @param project_id Project ID
|
43
|
+
# @param key_id Translation Key ID
|
44
|
+
# @param comment_id Comment ID
|
45
|
+
# @param id ID
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
48
|
+
# @option opts [String] :branch specify the branch to use
|
49
|
+
# @return [nil]
|
50
|
+
describe 'reaction_delete test' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# unit tests for reaction_show
|
57
|
+
# Get a single reaction
|
58
|
+
# Get details on a single reaction.
|
59
|
+
# @param project_id Project ID
|
60
|
+
# @param key_id Translation Key ID
|
61
|
+
# @param comment_id Comment ID
|
62
|
+
# @param id ID
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
65
|
+
# @option opts [String] :branch specify the branch to use
|
66
|
+
# @return [CommentReaction]
|
67
|
+
describe 'reaction_show test' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# unit tests for reactions_list
|
74
|
+
# List reactions
|
75
|
+
# List all reactions for a comment.
|
76
|
+
# @param project_id Project ID
|
77
|
+
# @param key_id Translation Key ID
|
78
|
+
# @param comment_id Comment ID
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
81
|
+
# @option opts [Integer] :page Page number
|
82
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
83
|
+
# @option opts [String] :branch specify the branch to use
|
84
|
+
# @return [Array<CommentReaction>]
|
85
|
+
describe 'reactions_list test' do
|
86
|
+
it 'should work' do
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
@@ -53,8 +53,8 @@ describe 'JobLocalesApi' do
|
|
53
53
|
end
|
54
54
|
|
55
55
|
# unit tests for job_locale_delete
|
56
|
-
#
|
57
|
-
#
|
56
|
+
# Remove a target locale from a job
|
57
|
+
# Removes a target locale from a job.
|
58
58
|
# @param project_id Project ID
|
59
59
|
# @param job_id Job ID
|
60
60
|
# @param id ID
|
@@ -85,8 +85,8 @@ describe 'JobLocalesApi' do
|
|
85
85
|
end
|
86
86
|
|
87
87
|
# unit tests for job_locale_show
|
88
|
-
#
|
89
|
-
# Get a single
|
88
|
+
# Show single job target locale
|
89
|
+
# Get a single target locale for a given job.
|
90
90
|
# @param project_id Project ID
|
91
91
|
# @param job_id Job ID
|
92
92
|
# @param id ID
|
@@ -101,8 +101,8 @@ describe 'JobLocalesApi' do
|
|
101
101
|
end
|
102
102
|
|
103
103
|
# unit tests for job_locale_update
|
104
|
-
# Update a job locale
|
105
|
-
# Update an existing job locale.
|
104
|
+
# Update a job target locale
|
105
|
+
# Update an existing job target locale.
|
106
106
|
# @param project_id Project ID
|
107
107
|
# @param job_id Job ID
|
108
108
|
# @param id ID
|
@@ -117,8 +117,8 @@ describe 'JobLocalesApi' do
|
|
117
117
|
end
|
118
118
|
|
119
119
|
# unit tests for job_locales_create
|
120
|
-
#
|
121
|
-
#
|
120
|
+
# Add a target locale to a job
|
121
|
+
# Adds a target locale to a job.
|
122
122
|
# @param project_id Project ID
|
123
123
|
# @param job_id Job ID
|
124
124
|
# @param job_locales_create_parameters
|
@@ -132,8 +132,8 @@ describe 'JobLocalesApi' do
|
|
132
132
|
end
|
133
133
|
|
134
134
|
# unit tests for job_locales_list
|
135
|
-
# List job locales
|
136
|
-
# List all
|
135
|
+
# List job target locales
|
136
|
+
# List all target locales for a given job.
|
137
137
|
# @param project_id Project ID
|
138
138
|
# @param job_id Job ID
|
139
139
|
# @param [Hash] opts the optional parameters
|
@@ -86,7 +86,7 @@ describe 'LocalesApi' do
|
|
86
86
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
87
87
|
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
|
88
88
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
89
|
-
# @option opts [Boolean] :use_last_reviewed_version If set to true the last reviewed version of a translation is used. This is only available if the review workflow
|
89
|
+
# @option opts [Boolean] :use_last_reviewed_version If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project.
|
90
90
|
# @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>.
|
91
91
|
# @option opts [String] :source_locale_id Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a <code>tag</code> parameter indicating a specific job.
|
92
92
|
# @return [File]
|
data/spec/api/spaces_api_spec.rb
CHANGED
@@ -93,7 +93,7 @@ describe 'SpacesApi' do
|
|
93
93
|
end
|
94
94
|
|
95
95
|
# unit tests for spaces_projects_create
|
96
|
-
# Add Project
|
96
|
+
# Add Project to Space
|
97
97
|
# Adds an existing project to the space.
|
98
98
|
# @param account_id Account ID
|
99
99
|
# @param space_id Space ID
|
@@ -108,7 +108,7 @@ describe 'SpacesApi' do
|
|
108
108
|
end
|
109
109
|
|
110
110
|
# unit tests for spaces_projects_delete
|
111
|
-
# Remove Project
|
111
|
+
# Remove Project from Space
|
112
112
|
# Removes a specified project from the specified space.
|
113
113
|
# @param account_id Account ID
|
114
114
|
# @param space_id Space ID
|
@@ -123,7 +123,7 @@ describe 'SpacesApi' do
|
|
123
123
|
end
|
124
124
|
|
125
125
|
# unit tests for spaces_projects_list
|
126
|
-
# List Projects
|
126
|
+
# List Projects in Space
|
127
127
|
# List all projects for the specified Space.
|
128
128
|
# @param account_id Account ID
|
129
129
|
# @param space_id Space ID
|
data/spec/api/teams_api_spec.rb
CHANGED
@@ -93,7 +93,7 @@ describe 'TeamsApi' do
|
|
93
93
|
end
|
94
94
|
|
95
95
|
# unit tests for teams_projects_create
|
96
|
-
# Add Project
|
96
|
+
# Add Project to Team
|
97
97
|
# Adds an existing project to the team.
|
98
98
|
# @param account_id Account ID
|
99
99
|
# @param team_id Team ID
|
@@ -108,7 +108,7 @@ describe 'TeamsApi' do
|
|
108
108
|
end
|
109
109
|
|
110
110
|
# unit tests for teams_projects_delete
|
111
|
-
# Remove Project
|
111
|
+
# Remove Project from Team
|
112
112
|
# Removes a specified project from the specified team.
|
113
113
|
# @param account_id Account ID
|
114
114
|
# @param team_id Team ID
|
@@ -40,7 +40,7 @@ describe 'UploadsApi' do
|
|
40
40
|
# @option opts [Object] :locale_mapping Optional, format specific mapping between locale names and the columns the translations to those locales are contained in.
|
41
41
|
# @option opts [Object] :format_options Additional options available for specific formats. See our format guide for complete list.
|
42
42
|
# @option opts [Boolean] :autotranslate If set, translations for the uploaded language will be fetched automatically.
|
43
|
-
# @option opts [Boolean] :mark_reviewed Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow
|
43
|
+
# @option opts [Boolean] :mark_reviewed Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project.
|
44
44
|
# @return [Upload]
|
45
45
|
describe 'upload_create test' do
|
46
46
|
it 'should work' do
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::CommentReaction
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'CommentReaction' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::CommentReaction.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of CommentReaction' do
|
19
|
+
it 'should create an instance of CommentReaction' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::CommentReaction)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' 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 "emoji"' 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 "created_at"' 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
|
+
describe 'test attribute "updated_at"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "comment"' 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
|
+
|
53
|
+
describe 'test attribute "user"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::GitlabSyncHistoryErrors
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'GitlabSyncHistoryErrors' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::GitlabSyncHistoryErrors.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of GitlabSyncHistoryErrors' do
|
19
|
+
it 'should create an instance of GitlabSyncHistoryErrors' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::GitlabSyncHistoryErrors)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "error"' 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 "message"' 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
|
+
end
|