phrase 2.7.1 → 2.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -21
  3. data/docs/BlacklistedKeyCreateParameters.md +1 -1
  4. data/docs/BlacklistedKeyUpdateParameters.md +1 -1
  5. data/docs/BlacklistedKeysApi.md +20 -20
  6. data/docs/DistributionCreateParameters.md +2 -0
  7. data/docs/DistributionUpdateParameters.md +2 -0
  8. data/docs/GlossariesApi.md +20 -20
  9. data/docs/GlossaryTermTranslationsApi.md +12 -12
  10. data/docs/GlossaryTermsApi.md +20 -20
  11. data/docs/Locale.md +2 -0
  12. data/docs/LocaleCreateParameters.md +2 -0
  13. data/docs/LocaleDetails.md +2 -0
  14. data/docs/LocaleUpdateParameters.md +2 -0
  15. data/docs/VersionsHistoryApi.md +1 -1
  16. data/lib/phrase/api/blacklisted_keys_api.rb +20 -20
  17. data/lib/phrase/api/glossaries_api.rb +20 -20
  18. data/lib/phrase/api/glossary_term_translations_api.rb +12 -12
  19. data/lib/phrase/api/glossary_terms_api.rb +20 -20
  20. data/lib/phrase/api/versions_history_api.rb +2 -2
  21. data/lib/phrase/models/blacklisted_key_create_parameters.rb +1 -1
  22. data/lib/phrase/models/blacklisted_key_update_parameters.rb +1 -1
  23. data/lib/phrase/models/distribution_create_parameters.rb +11 -1
  24. data/lib/phrase/models/distribution_update_parameters.rb +11 -1
  25. data/lib/phrase/models/locale.rb +10 -1
  26. data/lib/phrase/models/locale_create_parameters.rb +11 -1
  27. data/lib/phrase/models/locale_details.rb +10 -1
  28. data/lib/phrase/models/locale_update_parameters.rb +11 -1
  29. data/lib/phrase/version.rb +1 -1
  30. data/spec/api/blacklisted_keys_api_spec.rb +10 -10
  31. data/spec/api/glossaries_api_spec.rb +10 -10
  32. data/spec/api/glossary_term_translations_api_spec.rb +6 -6
  33. data/spec/api/glossary_terms_api_spec.rb +10 -10
  34. data/spec/api/versions_history_api_spec.rb +1 -1
  35. data/spec/models/distribution_create_parameters_spec.rb +6 -0
  36. data/spec/models/distribution_update_parameters_spec.rb +6 -0
  37. data/spec/models/locale_create_parameters_spec.rb +6 -0
  38. data/spec/models/locale_details_spec.rb +6 -0
  39. data/spec/models/locale_spec.rb +6 -0
  40. data/spec/models/locale_update_parameters_spec.rb +6 -0
  41. metadata +200 -200
@@ -18,6 +18,8 @@ module Phrase
18
18
 
19
19
  attr_accessor :source_locale
20
20
 
21
+ attr_accessor :fallback_locale
22
+
21
23
  attr_accessor :created_at
22
24
 
23
25
  attr_accessor :updated_at
@@ -35,6 +37,7 @@ module Phrase
35
37
  :'rtl' => :'rtl',
36
38
  :'plural_forms' => :'plural_forms',
37
39
  :'source_locale' => :'source_locale',
40
+ :'fallback_locale' => :'fallback_locale',
38
41
  :'created_at' => :'created_at',
39
42
  :'updated_at' => :'updated_at',
40
43
  :'statistics' => :'statistics'
@@ -52,6 +55,7 @@ module Phrase
52
55
  :'rtl' => :'Boolean',
53
56
  :'plural_forms' => :'Array<String>',
54
57
  :'source_locale' => :'LocalePreview',
58
+ :'fallback_locale' => :'LocalePreview',
55
59
  :'created_at' => :'DateTime',
56
60
  :'updated_at' => :'DateTime',
57
61
  :'statistics' => :'LocaleStatistics'
@@ -121,6 +125,10 @@ module Phrase
121
125
  self.source_locale = attributes[:'source_locale']
122
126
  end
123
127
 
128
+ if attributes.key?(:'fallback_locale')
129
+ self.fallback_locale = attributes[:'fallback_locale']
130
+ end
131
+
124
132
  if attributes.key?(:'created_at')
125
133
  self.created_at = attributes[:'created_at']
126
134
  end
@@ -160,6 +168,7 @@ module Phrase
160
168
  rtl == o.rtl &&
161
169
  plural_forms == o.plural_forms &&
162
170
  source_locale == o.source_locale &&
171
+ fallback_locale == o.fallback_locale &&
163
172
  created_at == o.created_at &&
164
173
  updated_at == o.updated_at &&
165
174
  statistics == o.statistics
@@ -174,7 +183,7 @@ module Phrase
174
183
  # Calculates hash code according to all attributes.
175
184
  # @return [Integer] Hash code
176
185
  def hash
177
- [id, name, code, default, main, rtl, plural_forms, source_locale, created_at, updated_at, statistics].hash
186
+ [id, name, code, default, main, rtl, plural_forms, source_locale, fallback_locale, created_at, updated_at, statistics].hash
178
187
  end
179
188
 
180
189
  # Builds the object from hash
@@ -23,6 +23,9 @@ module Phrase
23
23
  # Source locale. Can be the name or public id of the locale. Preferred is the public id.
24
24
  attr_accessor :source_locale_id
25
25
 
26
+ # Fallback locale for empty translations. Can be a locale name or id.
27
+ attr_accessor :fallback_locale_id
28
+
26
29
  # Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Advanced Workflows</a> feature.
27
30
  attr_accessor :unverify_new_translations
28
31
 
@@ -42,6 +45,7 @@ module Phrase
42
45
  :'main' => :'main',
43
46
  :'rtl' => :'rtl',
44
47
  :'source_locale_id' => :'source_locale_id',
48
+ :'fallback_locale_id' => :'fallback_locale_id',
45
49
  :'unverify_new_translations' => :'unverify_new_translations',
46
50
  :'unverify_updated_translations' => :'unverify_updated_translations',
47
51
  :'autotranslate' => :'autotranslate'
@@ -58,6 +62,7 @@ module Phrase
58
62
  :'main' => :'Boolean',
59
63
  :'rtl' => :'Boolean',
60
64
  :'source_locale_id' => :'String',
65
+ :'fallback_locale_id' => :'String',
61
66
  :'unverify_new_translations' => :'Boolean',
62
67
  :'unverify_updated_translations' => :'Boolean',
63
68
  :'autotranslate' => :'Boolean'
@@ -113,6 +118,10 @@ module Phrase
113
118
  self.source_locale_id = attributes[:'source_locale_id']
114
119
  end
115
120
 
121
+ if attributes.key?(:'fallback_locale_id')
122
+ self.fallback_locale_id = attributes[:'fallback_locale_id']
123
+ end
124
+
116
125
  if attributes.key?(:'unverify_new_translations')
117
126
  self.unverify_new_translations = attributes[:'unverify_new_translations']
118
127
  end
@@ -151,6 +160,7 @@ module Phrase
151
160
  main == o.main &&
152
161
  rtl == o.rtl &&
153
162
  source_locale_id == o.source_locale_id &&
163
+ fallback_locale_id == o.fallback_locale_id &&
154
164
  unverify_new_translations == o.unverify_new_translations &&
155
165
  unverify_updated_translations == o.unverify_updated_translations &&
156
166
  autotranslate == o.autotranslate
@@ -165,7 +175,7 @@ module Phrase
165
175
  # Calculates hash code according to all attributes.
166
176
  # @return [Integer] Hash code
167
177
  def hash
168
- [branch, name, code, default, main, rtl, source_locale_id, unverify_new_translations, unverify_updated_translations, autotranslate].hash
178
+ [branch, name, code, default, main, rtl, source_locale_id, fallback_locale_id, unverify_new_translations, unverify_updated_translations, autotranslate].hash
169
179
  end
170
180
 
171
181
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '2.7.1'
2
+ VERSION = '2.7.2'
3
3
  end
@@ -21,8 +21,8 @@ describe 'BlacklistedKeysApi' do
21
21
  end
22
22
 
23
23
  # unit tests for blacklisted_key_create
24
- # Create a blacklisted key
25
- # Create a new rule for blacklisting keys.
24
+ # Create a blocked key
25
+ # Create a new rule for blocking keys.
26
26
  # @param project_id Project ID
27
27
  # @param blacklisted_key_create_parameters
28
28
  # @param [Hash] opts the optional parameters
@@ -35,8 +35,8 @@ describe 'BlacklistedKeysApi' do
35
35
  end
36
36
 
37
37
  # unit tests for blacklisted_key_delete
38
- # Delete a blacklisted key
39
- # Delete an existing rule for blacklisting keys.
38
+ # Delete a blocked key
39
+ # Delete an existing rule for blocking keys.
40
40
  # @param project_id Project ID
41
41
  # @param id ID
42
42
  # @param [Hash] opts the optional parameters
@@ -49,8 +49,8 @@ describe 'BlacklistedKeysApi' do
49
49
  end
50
50
 
51
51
  # unit tests for blacklisted_key_show
52
- # Get a single blacklisted key
53
- # Get details on a single rule for blacklisting keys for a given project.
52
+ # Get a single blocked key
53
+ # Get details on a single rule for blocking keys for a given project.
54
54
  # @param project_id Project ID
55
55
  # @param id ID
56
56
  # @param [Hash] opts the optional parameters
@@ -63,8 +63,8 @@ describe 'BlacklistedKeysApi' do
63
63
  end
64
64
 
65
65
  # unit tests for blacklisted_key_update
66
- # Update a blacklisted key
67
- # Update an existing rule for blacklisting keys.
66
+ # Update a blocked key
67
+ # Update an existing rule for blocking keys.
68
68
  # @param project_id Project ID
69
69
  # @param id ID
70
70
  # @param blacklisted_key_update_parameters
@@ -78,8 +78,8 @@ describe 'BlacklistedKeysApi' do
78
78
  end
79
79
 
80
80
  # unit tests for blacklisted_keys_list
81
- # List blacklisted keys
82
- # List all rules for blacklisting keys for the given project.
81
+ # List blocked keys
82
+ # List all rules for blocking keys for the given project.
83
83
  # @param project_id Project ID
84
84
  # @param [Hash] opts the optional parameters
85
85
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -21,8 +21,8 @@ describe 'GlossariesApi' do
21
21
  end
22
22
 
23
23
  # unit tests for glossaries_list
24
- # List glossaries
25
- # List all glossaries the current user has access to.
24
+ # List term bases
25
+ # List all term bases (previously: glossaries) the current user has access to.
26
26
  # @param account_id Account ID
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -36,8 +36,8 @@ describe 'GlossariesApi' do
36
36
  end
37
37
 
38
38
  # unit tests for glossary_create
39
- # Create a glossary
40
- # Create a new glossary.
39
+ # Create a term base
40
+ # Create a new term base (previously: glossary).
41
41
  # @param account_id Account ID
42
42
  # @param glossary_create_parameters
43
43
  # @param [Hash] opts the optional parameters
@@ -50,8 +50,8 @@ describe 'GlossariesApi' do
50
50
  end
51
51
 
52
52
  # unit tests for glossary_delete
53
- # Delete a glossary
54
- # Delete an existing glossary.
53
+ # Delete a term base
54
+ # Delete an existing term base (previously: glossary).
55
55
  # @param account_id Account ID
56
56
  # @param id ID
57
57
  # @param [Hash] opts the optional parameters
@@ -64,8 +64,8 @@ describe 'GlossariesApi' do
64
64
  end
65
65
 
66
66
  # unit tests for glossary_show
67
- # Get a single glossary
68
- # Get details on a single glossary.
67
+ # Get a single term base
68
+ # Get details on a single term base (previously: glossary).
69
69
  # @param account_id Account ID
70
70
  # @param id ID
71
71
  # @param [Hash] opts the optional parameters
@@ -78,8 +78,8 @@ describe 'GlossariesApi' do
78
78
  end
79
79
 
80
80
  # unit tests for glossary_update
81
- # Update a glossary
82
- # Update an existing glossary.
81
+ # Update a term base
82
+ # Update an existing term base (previously: glossary).
83
83
  # @param account_id Account ID
84
84
  # @param id ID
85
85
  # @param glossary_update_parameters
@@ -21,8 +21,8 @@ describe 'GlossaryTermTranslationsApi' do
21
21
  end
22
22
 
23
23
  # unit tests for glossary_term_translation_create
24
- # Create a glossary term translation
25
- # Create a new glossary term translation.
24
+ # Create a translation for a term
25
+ # Create a new translation for a term in a term base (previously: glossary).
26
26
  # @param account_id Account ID
27
27
  # @param glossary_id Glossary ID
28
28
  # @param term_id Term ID
@@ -37,8 +37,8 @@ describe 'GlossaryTermTranslationsApi' do
37
37
  end
38
38
 
39
39
  # unit tests for glossary_term_translation_delete
40
- # Delete a glossary term translation
41
- # Delete an existing glossary term translation.
40
+ # Delete a translation for a term
41
+ # Delete an existing translation of a term in a term base (previously: glossary).
42
42
  # @param account_id Account ID
43
43
  # @param glossary_id Glossary ID
44
44
  # @param term_id Term ID
@@ -53,8 +53,8 @@ describe 'GlossaryTermTranslationsApi' do
53
53
  end
54
54
 
55
55
  # unit tests for glossary_term_translation_update
56
- # Update a glossary term translation
57
- # Update an existing glossary term translation.
56
+ # Update a translation for a term
57
+ # Update an existing translation for a term in a term base (previously: glossary).
58
58
  # @param account_id Account ID
59
59
  # @param glossary_id Glossary ID
60
60
  # @param term_id Term ID
@@ -21,8 +21,8 @@ describe 'GlossaryTermsApi' do
21
21
  end
22
22
 
23
23
  # unit tests for glossary_term_create
24
- # Create a glossary term
25
- # Create a new glossary term.
24
+ # Create a term
25
+ # Create a new term in a term base (previously: glossary).
26
26
  # @param account_id Account ID
27
27
  # @param glossary_id Glossary ID
28
28
  # @param glossary_term_create_parameters
@@ -36,8 +36,8 @@ describe 'GlossaryTermsApi' do
36
36
  end
37
37
 
38
38
  # unit tests for glossary_term_delete
39
- # Delete a glossary term
40
- # Delete an existing glossary term.
39
+ # Delete a term
40
+ # Delete an existing term in a term base (previously: glossary).
41
41
  # @param account_id Account ID
42
42
  # @param glossary_id Glossary ID
43
43
  # @param id ID
@@ -51,8 +51,8 @@ describe 'GlossaryTermsApi' do
51
51
  end
52
52
 
53
53
  # unit tests for glossary_term_show
54
- # Get a single glossary term
55
- # Get details on a single glossary term.
54
+ # Get a single term
55
+ # Get details for a single term in the term base (previously: glossary).
56
56
  # @param account_id Account ID
57
57
  # @param glossary_id Glossary ID
58
58
  # @param id ID
@@ -66,8 +66,8 @@ describe 'GlossaryTermsApi' do
66
66
  end
67
67
 
68
68
  # unit tests for glossary_term_update
69
- # Update a glossary term
70
- # Update an existing glossary term.
69
+ # Update a term
70
+ # Update an existing term in a term base (previously: glossary).
71
71
  # @param account_id Account ID
72
72
  # @param glossary_id Glossary ID
73
73
  # @param id ID
@@ -82,8 +82,8 @@ describe 'GlossaryTermsApi' do
82
82
  end
83
83
 
84
84
  # unit tests for glossary_terms_list
85
- # List glossary terms
86
- # List all glossary terms the current user has access to.
85
+ # List terms
86
+ # List all terms in term bases (previously: glossary) that the current user has access to.
87
87
  # @param account_id Account ID
88
88
  # @param glossary_id Glossary ID
89
89
  # @param [Hash] opts the optional parameters
@@ -38,7 +38,7 @@ describe 'VersionsHistoryApi' do
38
38
 
39
39
  # unit tests for versions_list
40
40
  # List all versions
41
- # List all versions for the given translation.
41
+ # List all changes done to a given translation.
42
42
  # @param project_id Project ID
43
43
  # @param translation_id Translation ID
44
44
  # @param [Hash] opts the optional parameters
@@ -50,6 +50,12 @@ describe 'DistributionCreateParameters' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "fallback_locales_enabled"' 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
+
53
59
  describe 'test attribute "fallback_to_non_regional_locale"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,6 +50,12 @@ describe 'DistributionUpdateParameters' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "fallback_locales_enabled"' 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
+
53
59
  describe 'test attribute "fallback_to_non_regional_locale"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -62,6 +62,12 @@ describe 'LocaleCreateParameters' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "fallback_locale_id"' 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
+
65
71
  describe 'test attribute "unverify_new_translations"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -68,6 +68,12 @@ describe 'LocaleDetails' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "fallback_locale"' 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
+
71
77
  describe 'test attribute "created_at"' do
72
78
  it 'should work' do
73
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -68,6 +68,12 @@ describe 'Locale' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "fallback_locale"' 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
+
71
77
  describe 'test attribute "created_at"' do
72
78
  it 'should work' do
73
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -62,6 +62,12 @@ describe 'LocaleUpdateParameters' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "fallback_locale_id"' 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
+
65
71
  describe 'test attribute "unverify_new_translations"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers