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 +4 -4
- data/CHANGELOG.md +10 -2
- data/lib/portage/ucp/decision/model_backends/jev.rb +3 -1
- data/lib/portage/ucp/decision/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: 1478eaace4bed14f5243deed67974b3625abde33f644d5ea5cee60a038b1b7b0
|
|
4
|
+
data.tar.gz: 56725fd94f309ef95a0124d6d67234594698a31846603620842d8720b6830021
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
## [
|
|
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
|
-
##
|
|
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,
|
|
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?
|
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.
|
|
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-
|
|
11
|
+
date: 2026-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|