phrase 1.0.12 → 1.0.13
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/README.md +11 -3
- data/docs/ProjectUpdateParameters.md +43 -9
- data/docs/Variable.md +23 -0
- data/docs/VariableCreateParameters.md +19 -0
- data/docs/VariableUpdateParameters.md +19 -0
- data/docs/VariablesApi.md +331 -0
- data/lib/phrase.rb +4 -0
- data/lib/phrase/api/variables_api.rb +378 -0
- data/lib/phrase/models/project_update_parameters.rb +183 -13
- data/lib/phrase/models/variable.rb +221 -0
- data/lib/phrase/models/variable_create_parameters.rb +205 -0
- data/lib/phrase/models/variable_update_parameters.rb +205 -0
- data/lib/phrase/version.rb +1 -1
- data/spec/api/variables_api_spec.rb +95 -0
- data/spec/models/project_update_parameters_spec.rb +103 -1
- data/spec/models/variable_create_parameters_spec.rb +35 -0
- data/spec/models/variable_spec.rb +47 -0
- data/spec/models/variable_update_parameters_spec.rb +35 -0
- metadata +18 -2
data/lib/phrase/version.rb
CHANGED
@@ -0,0 +1,95 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for Phrase::VariablesApi
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'VariablesApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@api_instance = Phrase::VariablesApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of VariablesApi' do
|
18
|
+
it 'should create an instance of VariablesApi' do
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::VariablesApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for variable_create
|
24
|
+
# Create a variable
|
25
|
+
# Create a new variable.
|
26
|
+
# @param project_id Project ID
|
27
|
+
# @param variable_create_parameters
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
30
|
+
# @return [Variable]
|
31
|
+
describe 'variable_create test' do
|
32
|
+
it 'should work' do
|
33
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# unit tests for variable_delete
|
38
|
+
# Delete a variable
|
39
|
+
# Delete an existing variable.
|
40
|
+
# @param project_id Project ID
|
41
|
+
# @param name name
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
44
|
+
# @return [nil]
|
45
|
+
describe 'variable_delete test' 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
|
+
# unit tests for variable_show
|
52
|
+
# Get a single variable
|
53
|
+
# Get details on a single variable for a given project.
|
54
|
+
# @param project_id Project ID
|
55
|
+
# @param name name
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
58
|
+
# @return [Variable]
|
59
|
+
describe 'variable_show test' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# unit tests for variable_update
|
66
|
+
# Update a variable
|
67
|
+
# Update an existing variable.
|
68
|
+
# @param project_id Project ID
|
69
|
+
# @param name name
|
70
|
+
# @param variable_update_parameters
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
73
|
+
# @return [Variable]
|
74
|
+
describe 'variable_update test' do
|
75
|
+
it 'should work' do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# unit tests for variables_list
|
81
|
+
# List variables
|
82
|
+
# List all variables for the current project.
|
83
|
+
# @param project_id Project ID
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
86
|
+
# @option opts [Integer] :page Page number
|
87
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
88
|
+
# @return [Array<Variable>]
|
89
|
+
describe 'variables_list test' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
@@ -20,6 +20,12 @@ describe 'ProjectUpdateParameters' do
|
|
20
20
|
expect(@instance).to be_instance_of(Phrase::ProjectUpdateParameters)
|
21
21
|
end
|
22
22
|
end
|
23
|
+
describe 'test attribute "account_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
|
+
|
23
29
|
describe 'test attribute "name"' do
|
24
30
|
it 'should work' do
|
25
31
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -50,7 +56,103 @@ describe 'ProjectUpdateParameters' do
|
|
50
56
|
end
|
51
57
|
end
|
52
58
|
|
53
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "workflow"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "machine_translation_enabled"' 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
|
+
|
71
|
+
describe 'test attribute "enable_branching"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "protect_master_branch"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "enable_all_data_type_translation_keys_for_translators"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "enable_icu_message_format"' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'test attribute "zero_plural_form_enabled"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test attribute "autotranslate_enabled"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
describe 'test attribute "autotranslate_check_new_translation_keys"' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
describe 'test attribute "autotranslate_check_new_uploads"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe 'test attribute "autotranslate_check_new_locales"' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
describe 'test attribute "autotranslate_mark_as_unverified"' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
describe 'test attribute "autotranslate_use_machine_translation"' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
describe 'test attribute "autotranslate_use_translation_memory"' do
|
138
|
+
it 'should work' do
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
describe 'test attribute "smart_suggest_enabled"' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
describe 'test attribute "smart_suggest_use_glossary"' do
|
150
|
+
it 'should work' do
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
describe 'test attribute "smart_suggest_use_machine_translation"' do
|
54
156
|
it 'should work' do
|
55
157
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
158
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::VariableCreateParameters
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'VariableCreateParameters' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::VariableCreateParameters.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of VariableCreateParameters' do
|
19
|
+
it 'should create an instance of VariableCreateParameters' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::VariableCreateParameters)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "name"' 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 "value"' 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
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::Variable
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'Variable' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::Variable.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of Variable' do
|
19
|
+
it 'should create an instance of Variable' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::Variable)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "name"' 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 "value"' 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
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::VariableUpdateParameters
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'VariableUpdateParameters' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::VariableUpdateParameters.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of VariableUpdateParameters' do
|
19
|
+
it 'should create an instance of VariableUpdateParameters' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::VariableUpdateParameters)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "name"' 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 "value"' 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
|
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: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phrase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -286,6 +286,10 @@ files:
|
|
286
286
|
- docs/User.md
|
287
287
|
- docs/UserPreview.md
|
288
288
|
- docs/UsersApi.md
|
289
|
+
- docs/Variable.md
|
290
|
+
- docs/VariableCreateParameters.md
|
291
|
+
- docs/VariableUpdateParameters.md
|
292
|
+
- docs/VariablesApi.md
|
289
293
|
- docs/VersionsHistoryApi.md
|
290
294
|
- docs/Webhook.md
|
291
295
|
- docs/WebhookCreateParameters.md
|
@@ -325,6 +329,7 @@ files:
|
|
325
329
|
- lib/phrase/api/translations_api.rb
|
326
330
|
- lib/phrase/api/uploads_api.rb
|
327
331
|
- lib/phrase/api/users_api.rb
|
332
|
+
- lib/phrase/api/variables_api.rb
|
328
333
|
- lib/phrase/api/versions_history_api.rb
|
329
334
|
- lib/phrase/api/webhooks_api.rb
|
330
335
|
- lib/phrase/api_client.rb
|
@@ -489,6 +494,9 @@ files:
|
|
489
494
|
- lib/phrase/models/upload_summary.rb
|
490
495
|
- lib/phrase/models/user.rb
|
491
496
|
- lib/phrase/models/user_preview.rb
|
497
|
+
- lib/phrase/models/variable.rb
|
498
|
+
- lib/phrase/models/variable_create_parameters.rb
|
499
|
+
- lib/phrase/models/variable_update_parameters.rb
|
492
500
|
- lib/phrase/models/webhook.rb
|
493
501
|
- lib/phrase/models/webhook_create_parameters.rb
|
494
502
|
- lib/phrase/models/webhook_update_parameters.rb
|
@@ -527,6 +535,7 @@ files:
|
|
527
535
|
- spec/api/translations_api_spec.rb
|
528
536
|
- spec/api/uploads_api_spec.rb
|
529
537
|
- spec/api/users_api_spec.rb
|
538
|
+
- spec/api/variables_api_spec.rb
|
530
539
|
- spec/api/versions_history_api_spec.rb
|
531
540
|
- spec/api/webhooks_api_spec.rb
|
532
541
|
- spec/api_client_spec.rb
|
@@ -690,6 +699,9 @@ files:
|
|
690
699
|
- spec/models/upload_summary_spec.rb
|
691
700
|
- spec/models/user_preview_spec.rb
|
692
701
|
- spec/models/user_spec.rb
|
702
|
+
- spec/models/variable_create_parameters_spec.rb
|
703
|
+
- spec/models/variable_spec.rb
|
704
|
+
- spec/models/variable_update_parameters_spec.rb
|
693
705
|
- spec/models/webhook_create_parameters_spec.rb
|
694
706
|
- spec/models/webhook_spec.rb
|
695
707
|
- spec/models/webhook_update_parameters_spec.rb
|
@@ -739,6 +751,7 @@ test_files:
|
|
739
751
|
- spec/api/jobs_api_spec.rb
|
740
752
|
- spec/api/locales_api_spec.rb
|
741
753
|
- spec/api/keys_api_spec.rb
|
754
|
+
- spec/api/variables_api_spec.rb
|
742
755
|
- spec/api/style_guides_api_spec.rb
|
743
756
|
- spec/api/git_lab_sync_api_spec.rb
|
744
757
|
- spec/api/versions_history_api_spec.rb
|
@@ -759,6 +772,7 @@ test_files:
|
|
759
772
|
- spec/api/members_api_spec.rb
|
760
773
|
- spec/api_client_spec.rb
|
761
774
|
- spec/configuration_spec.rb
|
775
|
+
- spec/models/variable_spec.rb
|
762
776
|
- spec/models/order_confirm_parameters_spec.rb
|
763
777
|
- spec/models/bitbucket_sync_spec.rb
|
764
778
|
- spec/models/job_locale_update_parameters_spec.rb
|
@@ -804,6 +818,7 @@ test_files:
|
|
804
818
|
- spec/models/blacklisted_key_update_parameters_spec.rb
|
805
819
|
- spec/models/glossary_term_translation_update_parameters_spec.rb
|
806
820
|
- spec/models/job_keys_create_parameters_spec.rb
|
821
|
+
- spec/models/variable_create_parameters_spec.rb
|
807
822
|
- spec/models/team_detail_spec.rb
|
808
823
|
- spec/models/keys_untag_parameters_spec.rb
|
809
824
|
- spec/models/member_spaces_spec.rb
|
@@ -915,6 +930,7 @@ test_files:
|
|
915
930
|
- spec/models/translation_exclude_parameters_spec.rb
|
916
931
|
- spec/models/inline_response422_errors_spec.rb
|
917
932
|
- spec/models/distribution_spec.rb
|
933
|
+
- spec/models/variable_update_parameters_spec.rb
|
918
934
|
- spec/models/translation_verify_parameters_spec.rb
|
919
935
|
- spec/models/glossary_update_parameters_spec.rb
|
920
936
|
- spec/models/glossary_spec.rb
|