phrase 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e782332fdd45708285d70a00596b2ebd12da15c01917ea9b9277538b188a314d
4
- data.tar.gz: d2a8c86ac88762ebbfd48e2e00f9428e6a8147d4a574fe2ccea48dbef4e05004
3
+ metadata.gz: 9549278e881594adf992f020101b9be6ea9318cf639dd8816a779f49934d530f
4
+ data.tar.gz: c43eafa578715d75eb422c410ed0cab56d950271fca229293999e5d7272e5a68
5
5
  SHA512:
6
- metadata.gz: 109885d9cbf9dd3d4f9a5493848707d453ff29657b8f9f2365e3f6efa78dd0a9f5ec253706751212bfdf5fdad9a081196d71adb705f75282d26e283924bb4a55
7
- data.tar.gz: f76d4f641e8ef2847c7a5836b84bc74da470dda7551dcce8f1afc981112ae935b8cdaac936abc67022b5c31ff357cea4759a06c697a8e077fbbbad150a3a8f0e
6
+ metadata.gz: 5b8ffa0eb61e0401a3aac7d2cb2d63deaeb1018087174da002cf83aedf5639ba948d4ea2dfac7a36787e64ba667a119e0a351c49cefc47c66469fc6b2f58ec29
7
+ data.tar.gz: 3bf6d6c146214e100d4d1e7ab6c4a13217b011b417c965b0482be9d940378a11b3eddb6d2d957965e703e606fb896f8f3b44bf678bdf007b4d373a0e5081bf13
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.1](https://github.com/phrase/openapi/compare/ruby-v3.2.0...ruby-v3.2.1) (2024-06-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add app_min_version and app_max_version param to releases ([#633](https://github.com/phrase/openapi/issues/633)) ([b384301](https://github.com/phrase/openapi/commit/b3843012460ace4c1d34c4373e5158595466adcb))
9
+
3
10
  ## [3.2.0](https://github.com/phrase/openapi/compare/ruby-v3.1.1...ruby-v3.2.0) (2024-06-12)
4
11
 
5
12
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
7
7
  ## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.2.0
10
+ - Package version: 3.2.1
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
13
13
 
@@ -56,10 +56,10 @@ gem build phrase.gemspec
56
56
  Then install the gem locally:
57
57
 
58
58
  ```shell
59
- gem install ./phrase-3.2.0.gem
59
+ gem install ./phrase-3.2.1.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-3.2.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-3.2.1.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -35,7 +35,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
35
35
  data_type: number,
36
36
  tags: awesome-feature,needs-proofreading,
37
37
  max_characters_allowed: 140,
38
- screenshot: [B@68017525,
38
+ screenshot: [B@60274863,
39
39
  remove_screenshot: null,
40
40
  unformatted: null,
41
41
  default_translation_content: Default translation content,
@@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
34
34
  data_type: number,
35
35
  tags: awesome-feature,needs-proofreading,
36
36
  max_characters_allowed: 140,
37
- screenshot: [B@434d5eb9,
37
+ screenshot: [B@b4a76f3,
38
38
  remove_screenshot: null,
39
39
  unformatted: null,
40
40
  xml_space_preserve: null,
@@ -40,7 +40,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
40
40
  main_format: yml,
41
41
  media: Python,
42
42
  shares_translation_memory: true,
43
- project_image: [B@4cec414d,
43
+ project_image: [B@6e5e36ab,
44
44
  remove_project_image: null,
45
45
  account_id: abcd1234,
46
46
  point_of_contact: abcd1234,
@@ -41,7 +41,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
41
41
  main_format: yml,
42
42
  media: Python,
43
43
  shares_translation_memory: true,
44
- project_image: [B@62a939cd,
44
+ project_image: [B@52a72430,
45
45
  remove_project_image: false,
46
46
  workflow: review,
47
47
  machine_translation_enabled: true,
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
8
8
  **platforms** | **Array<String>** | List of platforms the release should support. | [optional]
9
9
  **locale_ids** | **Array<String>** | List of locale ids that will be included in the release. If empty, distribution locales will be used | [optional]
10
10
  **tags** | **Array<String>** | Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided | [optional]
11
+ **app_min_version** | **String** | Minimum version of the app that the release supports in semver format | [optional]
12
+ **app_max_version** | **String** | Maximum version of the app that the release supports in semver format | [optional]
11
13
  **branch** | **String** | Branch used for release | [optional]
12
14
 
13
15
  ## Code Sample
@@ -19,6 +21,8 @@ instance = Phrase::ReleaseCreateParameters.new(description: My first Release,
19
21
  platforms: ["android","ios"],
20
22
  locale_ids: ["abcd1234cdef1234abcd1234cdef1234","fff565db236400772368235db2c6117e"],
21
23
  tags: ["android","feature1"],
24
+ app_min_version: 2.5.0,
25
+ app_max_version: 3.0.0,
22
26
  branch: my-feature-branch)
23
27
  ```
24
28
 
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **description** | **String** | Description of the release | [optional]
8
8
  **platforms** | **Array<String>** | List of platforms the release should support. | [optional]
9
+ **app_min_version** | **String** | Minimum version of the app that the release supports in semver format | [optional]
10
+ **app_max_version** | **String** | Maximum version of the app that the release supports in semver format | [optional]
9
11
  **branch** | **String** | Branch used for release | [optional]
10
12
 
11
13
  ## Code Sample
@@ -15,6 +17,8 @@ require 'Phrase'
15
17
 
16
18
  instance = Phrase::ReleaseUpdateParameters.new(description: My first Release,
17
19
  platforms: ["android","ios"],
20
+ app_min_version: 2.5.0,
21
+ app_max_version: 3.0.0,
18
22
  branch: my-feature-branch)
19
23
  ```
20
24
 
@@ -17,7 +17,7 @@ require 'Phrase'
17
17
  instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
18
18
  name: A screenshot name,
19
19
  description: A screenshot description,
20
- filename: [B@46c9a298)
20
+ filename: [B@7f53c24c)
21
21
  ```
22
22
 
23
23
 
@@ -14,6 +14,12 @@ module Phrase
14
14
  # Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided
15
15
  attr_accessor :tags
16
16
 
17
+ # Minimum version of the app that the release supports in semver format
18
+ attr_accessor :app_min_version
19
+
20
+ # Maximum version of the app that the release supports in semver format
21
+ attr_accessor :app_max_version
22
+
17
23
  # Branch used for release
18
24
  attr_accessor :branch
19
25
 
@@ -24,6 +30,8 @@ module Phrase
24
30
  :'platforms' => :'platforms',
25
31
  :'locale_ids' => :'locale_ids',
26
32
  :'tags' => :'tags',
33
+ :'app_min_version' => :'app_min_version',
34
+ :'app_max_version' => :'app_max_version',
27
35
  :'branch' => :'branch'
28
36
  }
29
37
  end
@@ -35,6 +43,8 @@ module Phrase
35
43
  :'platforms' => :'Array<String>',
36
44
  :'locale_ids' => :'Array<String>',
37
45
  :'tags' => :'Array<String>',
46
+ :'app_min_version' => :'String',
47
+ :'app_max_version' => :'String',
38
48
  :'branch' => :'String'
39
49
  }
40
50
  end
@@ -82,6 +92,14 @@ module Phrase
82
92
  end
83
93
  end
84
94
 
95
+ if attributes.key?(:'app_min_version')
96
+ self.app_min_version = attributes[:'app_min_version']
97
+ end
98
+
99
+ if attributes.key?(:'app_max_version')
100
+ self.app_max_version = attributes[:'app_max_version']
101
+ end
102
+
85
103
  if attributes.key?(:'branch')
86
104
  self.branch = attributes[:'branch']
87
105
  end
@@ -109,6 +127,8 @@ module Phrase
109
127
  platforms == o.platforms &&
110
128
  locale_ids == o.locale_ids &&
111
129
  tags == o.tags &&
130
+ app_min_version == o.app_min_version &&
131
+ app_max_version == o.app_max_version &&
112
132
  branch == o.branch
113
133
  end
114
134
 
@@ -121,7 +141,7 @@ module Phrase
121
141
  # Calculates hash code according to all attributes.
122
142
  # @return [Integer] Hash code
123
143
  def hash
124
- [description, platforms, locale_ids, tags, branch].hash
144
+ [description, platforms, locale_ids, tags, app_min_version, app_max_version, branch].hash
125
145
  end
126
146
 
127
147
  # Builds the object from hash
@@ -8,6 +8,12 @@ module Phrase
8
8
  # List of platforms the release should support.
9
9
  attr_accessor :platforms
10
10
 
11
+ # Minimum version of the app that the release supports in semver format
12
+ attr_accessor :app_min_version
13
+
14
+ # Maximum version of the app that the release supports in semver format
15
+ attr_accessor :app_max_version
16
+
11
17
  # Branch used for release
12
18
  attr_accessor :branch
13
19
 
@@ -16,6 +22,8 @@ module Phrase
16
22
  {
17
23
  :'description' => :'description',
18
24
  :'platforms' => :'platforms',
25
+ :'app_min_version' => :'app_min_version',
26
+ :'app_max_version' => :'app_max_version',
19
27
  :'branch' => :'branch'
20
28
  }
21
29
  end
@@ -25,6 +33,8 @@ module Phrase
25
33
  {
26
34
  :'description' => :'String',
27
35
  :'platforms' => :'Array<String>',
36
+ :'app_min_version' => :'String',
37
+ :'app_max_version' => :'String',
28
38
  :'branch' => :'String'
29
39
  }
30
40
  end
@@ -60,6 +70,14 @@ module Phrase
60
70
  end
61
71
  end
62
72
 
73
+ if attributes.key?(:'app_min_version')
74
+ self.app_min_version = attributes[:'app_min_version']
75
+ end
76
+
77
+ if attributes.key?(:'app_max_version')
78
+ self.app_max_version = attributes[:'app_max_version']
79
+ end
80
+
63
81
  if attributes.key?(:'branch')
64
82
  self.branch = attributes[:'branch']
65
83
  end
@@ -85,6 +103,8 @@ module Phrase
85
103
  self.class == o.class &&
86
104
  description == o.description &&
87
105
  platforms == o.platforms &&
106
+ app_min_version == o.app_min_version &&
107
+ app_max_version == o.app_max_version &&
88
108
  branch == o.branch
89
109
  end
90
110
 
@@ -97,7 +117,7 @@ module Phrase
97
117
  # Calculates hash code according to all attributes.
98
118
  # @return [Integer] Hash code
99
119
  def hash
100
- [description, platforms, branch].hash
120
+ [description, platforms, app_min_version, app_max_version, branch].hash
101
121
  end
102
122
 
103
123
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '3.2.0'
2
+ VERSION = '3.2.1'
3
3
  end
@@ -44,6 +44,18 @@ describe 'ReleaseCreateParameters' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "app_min_version"' 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 "app_max_version"' 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
+
47
59
  describe 'test attribute "branch"' do
48
60
  it 'should work' do
49
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,6 +32,18 @@ describe 'ReleaseUpdateParameters' do
32
32
  end
33
33
  end
34
34
 
35
+ describe 'test attribute "app_min_version"' 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 "app_max_version"' 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
+
35
47
  describe 'test attribute "branch"' do
36
48
  it 'should work' do
37
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-12 00:00:00.000000000 Z
11
+ date: 2024-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus