portage-ucp-decision 0.1.0 → 0.1.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: 76adc7a80bc65b5fc181bc69c773cea60c9ad1f11a6bb3028add71d895321683
4
- data.tar.gz: e6048995c2bbadb78389342bfebe78c25eafefb04a95a158747ba2a97f2120ba
3
+ metadata.gz: 1478eaace4bed14f5243deed67974b3625abde33f644d5ea5cee60a038b1b7b0
4
+ data.tar.gz: 56725fd94f309ef95a0124d6d67234594698a31846603620842d8720b6830021
5
5
  SHA512:
6
- metadata.gz: 6b95c193adcc3c78e19bf01ebdc88eb88b681b5414c081af1d84438a93c025be438e78735637a136e791dc7ca5931d6689451421b2fb7d8062c81a99fc7ed2b1
7
- data.tar.gz: b7d76577b2e68e0cea4f5e8701cdcdf8fad1e799fefcb594668e7764fe6d368676e6278b2ede5115d536b34c2c2bf4d44a0e1c237286ab298c9aa2e379fdc9e0
6
+ metadata.gz: 9dcb039281f232630fcc3ebf5aa4c7296e87ef5e81850b0cf77ebe41ac17c0be2f7df2b524433272fe85e9c04ac2177d3e87365effb74ef899c03b67913c9243
7
+ data.tar.gz: 0ba917c7f086c39011b573755fcc3e9653676c85b5966aa5fb52d284ac97f1b9c716a644ab5f9015391c0c101fecef4055441030661a9ae8af0eec426f9fb356
data/CHANGELOG.md CHANGED
@@ -4,7 +4,15 @@ All notable changes to this project are documented here. Format loosely follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.0.0/); this project is
5
5
  pre-1.0, so APIs may still shift between minor versions.
6
6
 
7
- ## [Unreleased]
7
+ ## [0.1.1] - 2026-09-24
8
+
9
+ - The Jev backend's Faraday connection now sends its own User-Agent,
10
+ `portage-ucp-decision/<ver> (+https://github.com/tomtom87/Portage)`,
11
+ instead of Faraday's default.
12
+
13
+ ## [0.1.0] - 2026-09-23
14
+
15
+ First publish to RubyGems. It ships the skeleton below plus these changes.
8
16
 
9
17
  - `OfferRanking` and `EscalationPolicy` now delegate to
10
18
  `portage-ucp`'s `Support::OfferRanking` and `Support::Escalation`, the
@@ -39,7 +47,7 @@ pre-1.0, so APIs may still shift between minor versions.
39
47
  - `Jev#configuration_problem` joins `Laya#configuration_problem` (now
40
48
  public): the reason a backend can't answer yet, for a setup check.
41
49
 
42
- ## [0.1.0] - 2026-09-23
50
+ ## 0.1.0 skeleton (never published)
43
51
 
44
52
  - First skeleton: `OfferRanking`, `EscalationPolicy`, `ConfidenceGate`, and
45
53
  `PolicyCheck` as typed decisions, per
@@ -21,6 +21,7 @@ module Portage
21
21
  # to two minutes on a hung connection.
22
22
  OPEN_TIMEOUT = 5
23
23
  TIMEOUT = 15
24
+ USER_AGENT = "portage-ucp-decision/#{VERSION} (+https://github.com/tomtom87/Portage)".freeze
24
25
  ENV_KEY = "JEV_API_KEY".freeze
25
26
  FALLBACK_ENV_KEY = "TYPESAFE_API_KEY".freeze
26
27
 
@@ -32,7 +33,8 @@ module Portage
32
33
  @api_key = api_key
33
34
  @model = model
34
35
  @connection = connection ||
35
- Faraday.new(url: BASE_URL, request: { open_timeout: OPEN_TIMEOUT, timeout: TIMEOUT })
36
+ Faraday.new(url: BASE_URL, headers: { "User-Agent" => USER_AGENT },
37
+ request: { open_timeout: OPEN_TIMEOUT, timeout: TIMEOUT })
36
38
  end
37
39
 
38
40
  def configured? = configuration_problem.nil?
@@ -1,7 +1,7 @@
1
1
  module Portage
2
2
  module Ucp
3
3
  module Decision
4
- VERSION = "0.1.0".freeze
4
+ VERSION = "0.1.1".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portage-ucp-decision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Whitbread
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-23 00:00:00.000000000 Z
11
+ date: 2026-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday