phrase 2.13.0 → 2.14.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 +7 -0
- data/README.md +9 -3
- data/docs/Comment.md +5 -1
- data/docs/CommentReactionsApi.md +3 -1
- data/docs/CommentRepliesApi.md +427 -0
- data/docs/CommentsApi.md +5 -1
- data/lib/phrase/api/comment_reactions_api.rb +3 -0
- data/lib/phrase/api/comment_replies_api.rb +523 -0
- data/lib/phrase/api/comments_api.rb +6 -0
- data/lib/phrase/models/comment.rb +24 -4
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +1 -0
- data/spec/api/comment_reactions_api_spec.rb +1 -0
- data/spec/api/comment_replies_api_spec.rb +126 -0
- data/spec/api/comments_api_spec.rb +2 -0
- data/spec/models/comment_spec.rb +12 -0
- metadata +6 -2
@@ -0,0 +1,126 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for Phrase::CommentRepliesApi
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'CommentRepliesApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@api_instance = Phrase::CommentRepliesApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of CommentRepliesApi' do
|
18
|
+
it 'should create an instance of CommentRepliesApi' do
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::CommentRepliesApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for replies_list
|
24
|
+
# List replies
|
25
|
+
# List all replies 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 [Integer] :page Page number
|
32
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
33
|
+
# @option opts [String] :branch specify the branch to use
|
34
|
+
# @return [Array<Comment>]
|
35
|
+
describe 'replies_list test' 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
|
+
# unit tests for reply_create
|
42
|
+
# Create a reply
|
43
|
+
# Create a new reply for a comment.
|
44
|
+
# @param project_id Project ID
|
45
|
+
# @param key_id Translation Key ID
|
46
|
+
# @param comment_id Comment ID
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
49
|
+
# @option opts [String] :branch specify the branch to use
|
50
|
+
# @option opts [String] :message specify the message for the comment
|
51
|
+
# @return [Comment]
|
52
|
+
describe 'reply_create test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for reply_delete
|
59
|
+
# Delete a reply
|
60
|
+
# Delete an existing reply.
|
61
|
+
# @param project_id Project ID
|
62
|
+
# @param key_id Translation Key ID
|
63
|
+
# @param comment_id Comment ID
|
64
|
+
# @param id ID
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
67
|
+
# @option opts [String] :branch specify the branch to use
|
68
|
+
# @return [nil]
|
69
|
+
describe 'reply_delete test' do
|
70
|
+
it 'should work' do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# unit tests for reply_mark_as_read
|
76
|
+
# Mark a reply as read
|
77
|
+
# Mark a reply as read.
|
78
|
+
# @param project_id Project ID
|
79
|
+
# @param key_id Translation Key ID
|
80
|
+
# @param comment_id Comment ID
|
81
|
+
# @param id ID
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
84
|
+
# @option opts [String] :branch specify the branch to use
|
85
|
+
# @return [nil]
|
86
|
+
describe 'reply_mark_as_read test' do
|
87
|
+
it 'should work' do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# unit tests for reply_mark_as_unread
|
93
|
+
# Mark a reply as unread
|
94
|
+
# Mark a reply as unread.
|
95
|
+
# @param project_id Project ID
|
96
|
+
# @param key_id Translation Key ID
|
97
|
+
# @param comment_id Comment ID
|
98
|
+
# @param id ID
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
101
|
+
# @option opts [String] :branch specify the branch to use
|
102
|
+
# @return [nil]
|
103
|
+
describe 'reply_mark_as_unread test' do
|
104
|
+
it 'should work' do
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
# unit tests for reply_show
|
110
|
+
# Get a single reply
|
111
|
+
# Get details on a single reply.
|
112
|
+
# @param project_id Project ID
|
113
|
+
# @param key_id Translation Key ID
|
114
|
+
# @param comment_id Comment ID
|
115
|
+
# @param id ID
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
118
|
+
# @option opts [String] :branch specify the branch to use
|
119
|
+
# @return [Comment]
|
120
|
+
describe 'reply_show test' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
@@ -28,6 +28,8 @@ describe 'CommentsApi' do
|
|
28
28
|
# @param comment_create_parameters
|
29
29
|
# @param [Hash] opts the optional parameters
|
30
30
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
31
|
+
# @option opts [String] :message specify the message for the comment
|
32
|
+
# @option opts [Array<String>] :locale_ids specify the locales for the comment
|
31
33
|
# @return [Comment]
|
32
34
|
describe 'comment_create test' do
|
33
35
|
it 'should work' do
|
data/spec/models/comment_spec.rb
CHANGED
@@ -32,6 +32,12 @@ describe 'Comment' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
describe 'test attribute "has_replies"' 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
|
+
|
35
41
|
describe 'test attribute "user"' do
|
36
42
|
it 'should work' do
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -56,4 +62,10 @@ describe 'Comment' do
|
|
56
62
|
end
|
57
63
|
end
|
58
64
|
|
65
|
+
describe 'test attribute "locales"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
59
71
|
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.
|
4
|
+
version: 2.14.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-08-
|
11
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- docs/CommentMarkReadParameters.md
|
130
130
|
- docs/CommentReaction.md
|
131
131
|
- docs/CommentReactionsApi.md
|
132
|
+
- docs/CommentRepliesApi.md
|
132
133
|
- docs/CommentUpdateParameters.md
|
133
134
|
- docs/CommentsApi.md
|
134
135
|
- docs/CurrentUser.md
|
@@ -354,6 +355,7 @@ files:
|
|
354
355
|
- lib/phrase/api/blacklisted_keys_api.rb
|
355
356
|
- lib/phrase/api/branches_api.rb
|
356
357
|
- lib/phrase/api/comment_reactions_api.rb
|
358
|
+
- lib/phrase/api/comment_replies_api.rb
|
357
359
|
- lib/phrase/api/comments_api.rb
|
358
360
|
- lib/phrase/api/distributions_api.rb
|
359
361
|
- lib/phrase/api/documents_api.rb
|
@@ -610,6 +612,7 @@ files:
|
|
610
612
|
- spec/api/blacklisted_keys_api_spec.rb
|
611
613
|
- spec/api/branches_api_spec.rb
|
612
614
|
- spec/api/comment_reactions_api_spec.rb
|
615
|
+
- spec/api/comment_replies_api_spec.rb
|
613
616
|
- spec/api/comments_api_spec.rb
|
614
617
|
- spec/api/distributions_api_spec.rb
|
615
618
|
- spec/api/documents_api_spec.rb
|
@@ -888,6 +891,7 @@ summary: You can collaborate on language file translation with your team or orde
|
|
888
891
|
test_files:
|
889
892
|
- spec/api/bitbucket_sync_api_spec.rb
|
890
893
|
- spec/api/orders_api_spec.rb
|
894
|
+
- spec/api/comment_replies_api_spec.rb
|
891
895
|
- spec/api/job_comments_api_spec.rb
|
892
896
|
- spec/api/users_api_spec.rb
|
893
897
|
- spec/api/variables_api_spec.rb
|