k9o 1.2.0 → 1.3.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.
data/sig/k9o/region.rbs CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  module K9o
4
4
  module Region
5
- REGION_FREE_ORG_HOST: Regexp
6
- REGION_CODE: Regexp
7
-
8
5
  # The regional origin `location` may name for `host`, or nil.
9
6
  def self.origin_from_location: (String host, String location, String base) -> String?
10
7
  # The origin requests go to: cached regional origin, else the configured base URL. Never raises.
@@ -17,3 +14,17 @@ module K9o
17
14
  attr_accessor regional_origin: String?
18
15
  end
19
16
  end
17
+
18
+ module K9o
19
+ module UrlGrammar
20
+ # The org, family, region and apex of a gateway host (`acme.api-de01.corp.internal`), or nil for any other shape.
21
+ class ApiHost < Struct[untyped]
22
+ attr_reader org_slug: String?
23
+ attr_reader family: String
24
+ attr_reader region: String?
25
+ attr_reader apex: String
26
+ end
27
+
28
+ def self.parse_api_host: (String host) -> ApiHost?
29
+ end
30
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k9o
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kilimanjaro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-25 00:00:00.000000000 Z
11
+ date: 2026-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest