svix 1.67.0 → 1.68.0
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/Gemfile.lock +1 -1
- data/lib/svix/svix_http_client.rb +7 -0
- data/lib/svix/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f48080f8b5721901921f9d20359dc5c6b40c5f26307e4b9d308fd35df1f3f05
|
4
|
+
data.tar.gz: 0fbea569df49e4804133ca7bb9fcedf25072238cc54a4abf463e50977ea6da20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 673379cf612ea6af6a78a0c20fcf502ace2f2acbe7dd9b13b6c1d874f7ca4964b41a7eda403ebe01d850937d21d5d9a758ff44bd4513dda0ae16983c00b634ec
|
7
|
+
data.tar.gz: e6550cf80049504f34e9adcc7d1de6bda4d0c16644cfeae136254e44b133a0cb3bf51360a5a505fd9c368f93ba9929f8f5473f1e55e0a2be78d9ed22f00a28dc
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require "uri"
|
3
3
|
require "net/http"
|
4
|
+
require "securerandom"
|
5
|
+
|
4
6
|
|
5
7
|
module Svix
|
6
8
|
class SvixHttpClient
|
@@ -50,6 +52,11 @@ module Svix
|
|
50
52
|
# Add headers
|
51
53
|
headers.each { |key, value| request[key] = value }
|
52
54
|
|
55
|
+
# Check if idempotency-key header already exists
|
56
|
+
if !request.key?("idempotency-key") && method.to_s.upcase == "POST"
|
57
|
+
request["idempotency-key"] = "auto_" + SecureRandom.uuid_v4.to_s
|
58
|
+
end
|
59
|
+
|
53
60
|
# Add body for non-GET requests
|
54
61
|
if %w[POST PUT PATCH].include?(method.to_s.upcase) && !body.nil?
|
55
62
|
request.body = body.to_json
|
data/lib/svix/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.68.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svix
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-25 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|