aptible-api 1.6.5 → 1.8

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: f74e4aec03b8e232c19b3e8eae44aeb9346a3317789607db7c5001adc7652713
4
- data.tar.gz: dd48f3cb485205148b76df27ff80ce77890b300e0ea42d9a659736250872c31c
3
+ metadata.gz: 38788ccd2684d83c77134aa11244ad3e21dd8708db9158234259dffa3144d0ac
4
+ data.tar.gz: 0bfffaba390b065575e651ea177d2e6faaaac7faa29e7f20e7f9221d72ade542
5
5
  SHA512:
6
- metadata.gz: 7d56ce6a4778a5726285ccb71ae38d419e6114386281d13bf47724beeb91ef593abd4e47529c271983458abe976fd52b5b42d8e194c56fb4634392a3e2f52279
7
- data.tar.gz: 4861e08ab34936daca714e8d2bc0907e326329f563f811b7f79e0db8ef6f4ebfa36d3f114042c0a08dc773bfd8a13a979a93f202127f7ae900b15f2acc7cba20
6
+ metadata.gz: '008fa4bf2bee5aac7f58c5020680a3ea830c51416a22dc7876ba8eb832ee1a7331af417cbd69d20cb7276708f0700e6bb166d56ea38c755f020b34e1c13586de'
7
+ data.tar.gz: f75f3dfc64ef26edfd5626c090f6f52fbad541cd647a0164a7a9d37462fa2f8e080cb4f9defce6dad8f9d19b86d230a54dfc650757d78b6a812bea05e10c91ec
@@ -11,7 +11,7 @@ on:
11
11
  jobs:
12
12
  test:
13
13
  name: Run tests on Ruby ${{ matrix.RUBY_VERSION }}
14
- runs-on: ubuntu-20.04
14
+ runs-on: ubuntu-24.04
15
15
  strategy:
16
16
  fail-fast: false
17
17
  matrix:
@@ -71,7 +71,10 @@ module Aptible
71
71
  connection = create_ssh_portal_connection!(ssh_public_key: public_key)
72
72
  certificate = connection.ssh_certificate_body
73
73
 
74
- stack = account.stack
74
+ # Backups can be restored across stacks, and the operation executes
75
+ # on the destiantion stack. Assuming all future cross-stack operations
76
+ # will behave the same way, fingers crossed they'll "just work"
77
+ stack = destination_account.try(&:stack) || account.stack
75
78
  host ||= stack.ssh_portal_host
76
79
  port ||= stack.ssh_portal_port
77
80
  host_key ||= stack.ssh_host_rsa_public_key
@@ -5,6 +5,7 @@ module Aptible
5
5
  belongs_to :lead_instance
6
6
  has_many :instance_layer_memberships
7
7
  has_many :aws_instances
8
+ embeds_one :ami_release
8
9
 
9
10
  field :id
10
11
  field :name
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.6.5'.freeze
3
+ VERSION = '1.8'.freeze
4
4
  end
5
5
  end
@@ -28,6 +28,7 @@ module Aptible
28
28
  field :acme_status
29
29
  field :ip_whitelist
30
30
  field :acme_dns_challenge_host
31
+ field :token_header
31
32
 
32
33
  def account
33
34
  service.account
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: '1.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2025-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-auth