phrase 4.30.0 → 4.30.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f4aeadca0ca8f0b8e6a19168104c082db94a8ec3387c9a929d9587f2fcf5039
4
- data.tar.gz: 2b6dac4eeebb2edda00d1a9d6e851dedebe1690e98e6c40af35aede041d8eff2
3
+ metadata.gz: dffc1bec606f4465ddd43c467c10550b2668c56fef9deb7ff7d3e97f7d1aad31
4
+ data.tar.gz: 6ab6524e76df4a7ccea73e89bb8c5c61dbce675ab1023a2915fc5dce52820564
5
5
  SHA512:
6
- metadata.gz: b778f0c0e4bf5487d00ab1b7ced5ca00f8bf23a69aa08f097359f5cb8694e33e5a725633cc5c09a3a125185a18100cea38ac48f2c26a243a5e859337325603e0
7
- data.tar.gz: cf5079b74f1b5b02d9f09d6284b37372600f26c2f5a9cb28d47daac835219fb872ba155bc2b89e74ce1bf74fb74c08706aa29bf96e06e7bc7010036bc83d21c4
6
+ metadata.gz: a3368ab3ee17d15f156eb26695cefdad43b6f40d6023cf51cb6049d65be1f35733ac304f3ced4a9fe20e00b758801c8bfb470ab98c25199cf431de86415b3ffb
7
+ data.tar.gz: fbe0f6b9d21403a6a946b93e0a6c67521cbc42b971ab1b4fd4b93392cd7d72f6f0736a6baff9ddd7fdad5af2d464c7ec826158f0e0c332640893569441212ed0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.30.1](https://github.com/phrase/strings-openapi/compare/ruby-v4.30.0...ruby-v4.30.1) (2026-10-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **API:** move job update branch param from body to query #STRINGS-3488 ([#1306](https://github.com/phrase/strings-openapi/issues/1306)) ([a8f2673](https://github.com/phrase/strings-openapi/commit/a8f267314ff1b1a3e3848df1b15cc5647ba434cb))
9
+
3
10
  ## [4.30.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.29.0...ruby-v4.30.0) (2026-10-05)
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: 4.30.0
10
+ - Package version: 4.30.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-4.30.0.gem
59
+ gem install ./phrase-4.30.1.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.30.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.30.1.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -4,7 +4,6 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **branch** | **String** | specify the branch to use | [optional]
8
7
  **name** | **String** | Job name | [optional]
9
8
  **briefing** | **String** | Briefing for the translators | [optional]
10
9
  **due_date** | **Time** | Date the job should be finished | [optional]
@@ -17,8 +16,7 @@ Name | Type | Description | Notes
17
16
  ```ruby
18
17
  require 'phrase'
19
18
 
20
- instance = Phrase::JobUpdateParameters.new(branch: 'my-feature-branch',
21
- name: 'de',
19
+ instance = Phrase::JobUpdateParameters.new(name: 'de',
22
20
  briefing: 'de-DE',
23
21
  due_date: nil,
24
22
  ticket_url: 'https://example.atlassian.net/browse/FOO',
data/docs/JobsApi.md CHANGED
@@ -699,7 +699,8 @@ project_id = 'project_id_example' # String | Project ID
699
699
  id = 'id_example' # String | ID
700
700
  job_update_parameters = Phrase::JobUpdateParameters.new # JobUpdateParameters |
701
701
  opts = {
702
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
702
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
703
+ branch: 'my-feature-branch' # String | Branch to use
703
704
  }
704
705
 
705
706
  begin
@@ -720,6 +721,7 @@ Name | Type | Description | Notes
720
721
  **id** | **String**| ID |
721
722
  **job_update_parameters** | [**JobUpdateParameters**](JobUpdateParameters.md)| |
722
723
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
724
+ **branch** | **String**| Branch to use | [optional]
723
725
 
724
726
  ### Return type
725
727
 
@@ -792,6 +792,7 @@ module Phrase
792
792
  # @param job_update_parameters [JobUpdateParameters]
793
793
  # @param [Hash] opts the optional parameters
794
794
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
795
+ # @option opts [String] :branch Branch to use
795
796
  # @return [JobDetails]
796
797
  def job_update(project_id, id, job_update_parameters, opts = {})
797
798
  data, _status_code, _headers = job_update_with_http_info(project_id, id, job_update_parameters, opts)
@@ -805,6 +806,7 @@ module Phrase
805
806
  # @param job_update_parameters [JobUpdateParameters]
806
807
  # @param [Hash] opts the optional parameters
807
808
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
809
+ # @option opts [String] :branch Branch to use
808
810
  # @return [Array<(Response<(JobDetails)>, Integer, Hash)>] Response<(JobDetails)> data, response status code and response headers
809
811
  def job_update_with_http_info(project_id, id, job_update_parameters, opts = {})
810
812
  if @api_client.config.debugging
@@ -827,6 +829,7 @@ module Phrase
827
829
 
828
830
  # query parameters
829
831
  query_params = opts[:query_params] || {}
832
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
830
833
 
831
834
  # header parameters
832
835
  header_params = opts[:header_params] || {}
@@ -2,9 +2,6 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class JobUpdateParameters
5
- # specify the branch to use
6
- attr_accessor :branch
7
-
8
5
  # Job name
9
6
  attr_accessor :name
10
7
 
@@ -26,7 +23,6 @@ module Phrase
26
23
  # Attribute mapping from ruby-style variable name to JSON key.
27
24
  def self.attribute_map
28
25
  {
29
- :'branch' => :'branch',
30
26
  :'name' => :'name',
31
27
  :'briefing' => :'briefing',
32
28
  :'due_date' => :'due_date',
@@ -39,7 +35,6 @@ module Phrase
39
35
  # Attribute type mapping.
40
36
  def self.openapi_types
41
37
  {
42
- :'branch' => :'String',
43
38
  :'name' => :'String',
44
39
  :'briefing' => :'String',
45
40
  :'due_date' => :'DateTime',
@@ -71,10 +66,6 @@ module Phrase
71
66
  h[k.to_sym] = v
72
67
  }
73
68
 
74
- if attributes.key?(:'branch')
75
- self.branch = attributes[:'branch']
76
- end
77
-
78
69
  if attributes.key?(:'name')
79
70
  self.name = attributes[:'name']
80
71
  end
@@ -120,7 +111,6 @@ module Phrase
120
111
  def ==(o)
121
112
  return true if self.equal?(o)
122
113
  self.class == o.class &&
123
- branch == o.branch &&
124
114
  name == o.name &&
125
115
  briefing == o.briefing &&
126
116
  due_date == o.due_date &&
@@ -138,7 +128,7 @@ module Phrase
138
128
  # Calculates hash code according to all attributes.
139
129
  # @return [Integer] Hash code
140
130
  def hash
141
- [branch, name, briefing, due_date, ticket_url, target_locale_ids, autotranslate].hash
131
+ [name, briefing, due_date, ticket_url, target_locale_ids, autotranslate].hash
142
132
  end
143
133
 
144
134
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.30.0'
2
+ VERSION = '4.30.1'
3
3
  end
@@ -179,6 +179,7 @@ describe 'JobsApi' do
179
179
  # @param job_update_parameters
180
180
  # @param [Hash] opts the optional parameters
181
181
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
182
+ # @option opts [String] :branch Branch to use
182
183
  # @return [JobDetails]
183
184
  describe 'job_update test' do
184
185
  it 'should work' do
@@ -20,12 +20,6 @@ describe 'JobUpdateParameters' do
20
20
  expect(@instance).to be_instance_of(Phrase::JobUpdateParameters)
21
21
  end
22
22
  end
23
- describe 'test attribute "branch"' 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
23
  describe 'test attribute "name"' do
30
24
  it 'should work' do
31
25
  # 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: 4.30.0
4
+ version: 4.30.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-05 00:00:00.000000000 Z
11
+ date: 2026-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus