uploadcare-ruby 5.0.0 → 5.0.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/uploadcare/api/upload.rb +2 -1
- data/lib/uploadcare/internal/user_agent.rb +1 -1
- data/lib/uploadcare/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b00b913c8479a90ace5e4c44800bec64fe8ff94f2c04d50de2abfcdd627d44d3
|
|
4
|
+
data.tar.gz: 5b00dd30f553d1b300fe5a0013f3890de574ab48221a5735cb049ae5f62c62f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c92a051097323fc96ebfe5cd798faf6d82cbf20cdceb683529f19d0311cd68fff3d5f2c53f20ebb6d9f14fcadada16e0c5ea892122dce2846e35a9fdfdb590e
|
|
7
|
+
data.tar.gz: 9720e878e6c6a29baf5ec7be621a46598f431da9ddd06b84ab75627eaa3256bd226ec768ce1d3c024c915c7937ee7a0fe29802ae1c6c3331e8c8415e71e222e6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.0.1 — 2026-06-09
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
* Upload API requests now send the SDK-generated `User-Agent` instead of Faraday's default header.
|
|
8
|
+
* Multipart upload part requests to presigned URLs now include the same SDK-generated `User-Agent`.
|
|
9
|
+
|
|
3
10
|
## 5.0.0 — 2026-05-17
|
|
4
11
|
|
|
5
12
|
v5 is stable.
|
|
@@ -159,7 +159,7 @@ class Uploadcare::Api::Upload
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
def prepare_headers(req, _method, _uri, headers)
|
|
162
|
-
req.headers['User-Agent']
|
|
162
|
+
req.headers['User-Agent'] = Uploadcare::Internal::UserAgent.call(config: config)
|
|
163
163
|
req.headers.merge!(headers)
|
|
164
164
|
end
|
|
165
165
|
|
|
@@ -243,6 +243,7 @@ class Uploadcare::Api::Upload
|
|
|
243
243
|
def upload_part_request(conn:, request_uri:, data:, timeout:, open_timeout:)
|
|
244
244
|
conn.put(request_uri) do |req|
|
|
245
245
|
req.headers['Content-Type'] = 'application/octet-stream'
|
|
246
|
+
req.headers['User-Agent'] = Uploadcare::Internal::UserAgent.call(config: config)
|
|
246
247
|
req.options.timeout = timeout if timeout
|
|
247
248
|
req.options.open_timeout = open_timeout if open_timeout
|
|
248
249
|
req.body = data
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
#
|
|
8
8
|
# @example
|
|
9
9
|
# Uploadcare::Internal::UserAgent.call(config: config)
|
|
10
|
-
# # => "UploadcareRuby/5.0.
|
|
10
|
+
# # => "UploadcareRuby/5.0.1/demopublickey (Ruby/3.3.0)"
|
|
11
11
|
class Uploadcare::Internal::UserAgent
|
|
12
12
|
# Build a User-Agent string.
|
|
13
13
|
#
|
data/lib/uploadcare/version.rb
CHANGED