zeroclick-sellers 0.4.0 → 0.4.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: 21a687776a099cffab368909929c6181de3425e83d6fe94bcfaba52cc40e76a8
4
- data.tar.gz: 15b009873e6410a7703a6385ebdfc0d737f1be8d3d475b18ed22e96683117904
3
+ metadata.gz: 516aac7120c0e979c3d70f57051151667cd4a3e5945ecca29e3202af78ef04df
4
+ data.tar.gz: 65f2ed28d951f1b9108f03c8dd64cead2ee3cf96ed8f4580b710d3d33ad3802e
5
5
  SHA512:
6
- metadata.gz: 10cc75f795e921fa55d77b5dce9f101d1f3c4afadb191fe70546db9bd01dd309fe8453cfedd24de1d1991e1716567de26378b17cb87fb8338866f1132d4e96bd
7
- data.tar.gz: 82a1860e38b1a2b53195b1aa0c17830b60f2c7ad5cdc80efc280c6547678f74771ed799a42ddabaf405c1df3f00f36de6344402e3c104c03078cc94e2d00f90e
6
+ metadata.gz: e07f7f2cc9135b43b93f27babfe4109003ac388503d10f13085378b472c6837ae144542afe66b3c1a725199f96554cf2c73da7fe6a45d95dad76fac9b22a4bd3
7
+ data.tar.gz: ce8aa5c0cab3f67cfec797a1b05da45b581e3c77c96c685ced835e95e411c2585c934dd85215d97cc096b50e76e5399d18ca85e8bc80d2a04186af1e4c6a5b34
@@ -6,6 +6,7 @@ require "uri"
6
6
 
7
7
  require_relative "contracts"
8
8
  require_relative "errors"
9
+ require_relative "version"
9
10
 
10
11
  module ZeroClick
11
12
  module Sellers
@@ -35,13 +36,18 @@ module ZeroClick
35
36
  OpenSSL::SSL::SSLError
36
37
  ].freeze
37
38
 
39
+ # SDK self-identification, most significant token first per RFC 9110:
40
+ # the gem release, then the Ruby runtime.
41
+ USER_AGENT = "zeroclick-sellers-ruby/#{VERSION} ruby/#{RUBY_VERSION}".freeze
42
+
38
43
  module_function
39
44
 
40
45
  def request_headers(api_key)
41
46
  {
42
47
  "accept" => "application/json",
43
48
  "authorization" => "Bearer #{api_key}",
44
- "content-type" => "application/json"
49
+ "content-type" => "application/json",
50
+ "user-agent" => USER_AGENT
45
51
  }
46
52
  end
47
53
 
@@ -4,6 +4,6 @@ module ZeroClick
4
4
  module Sellers
5
5
  # Bump this to publish. The workflow reads it, asks RubyGems whether this
6
6
  # version already exists, and publishes only when it does not.
7
- VERSION = "0.4.0"
7
+ VERSION = "0.4.1"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeroclick-sellers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZeroClick