gitlab-customer-support-operations_zendesk 1.0.1 → 1.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3866827c038f98fbd54a1b71910a4879c8e1b453e354364e785c79136b32a59d
|
4
|
+
data.tar.gz: 7b578daede367dd9b41b2ab25bdacc9b8fc2f2c05bfaa1503496138c59735c9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0c41961837a5422cb340271cbd6317b1aad67a48af07c467d57af6bd027786d257427aae39375ef42c6f483c77de3154a5f81e4ca8f7b0eb680266b9bcf66bc
|
7
|
+
data.tar.gz: 613e30a49535a4fed963f52b045a9dd176fb2653922431c9a78077880e67b2f959dd8aab6391f61295d0fec01c91fde17cc660762bdff9e85915ddaae4fb7351
|
@@ -446,12 +446,12 @@ module SupportOps
|
|
446
446
|
data = {
|
447
447
|
'uploaded_data' => ::Faraday::UploadIO.new(self.zipfile, 'application.zip')
|
448
448
|
}
|
449
|
-
response = self.client.
|
449
|
+
response = self.client.upload_connection.post('apps/uploads', data)
|
450
450
|
body = Oj.load(response.body)
|
451
451
|
raise "Unable to update app #{self.id} (upload) => #{body}" unless response.status == 201
|
452
452
|
data = {
|
453
453
|
'upload_id' => body['id']
|
454
|
-
}
|
454
|
+
}.to_json
|
455
455
|
response = self.client.connection.put("apps/#{self.id}", data)
|
456
456
|
body = Oj.load(response.body)
|
457
457
|
raise "Unable to update app #{self.id} => #{body}" unless response.status == 202
|
@@ -473,4 +473,3 @@ module SupportOps
|
|
473
473
|
end
|
474
474
|
end
|
475
475
|
end
|
476
|
-
#save!
|
@@ -14,10 +14,15 @@ module SupportOps
|
|
14
14
|
class RequestError < Error; end
|
15
15
|
class ResourceNotFound < Error; end
|
16
16
|
|
17
|
-
attr_reader :connection
|
17
|
+
attr_reader :connection, :upload_connection
|
18
18
|
|
19
19
|
def initialize(config = SupportOps::Zendesk::Configuration.new)
|
20
20
|
@connection = determine_connnection(config)
|
21
|
+
@upload_connection = if config[:connection_type] != 'upload'
|
22
|
+
generate_upload_connection(config)
|
23
|
+
else
|
24
|
+
nil
|
25
|
+
end
|
21
26
|
end
|
22
27
|
|
23
28
|
def retry_options(config)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-customer-support-operations_zendesk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Colyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|