bard-api 0.7.0 → 0.7.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: 8d3a962a491b792f640982845bad5d5b46aa8706c42c90fa535e4fb9bc2368d3
4
- data.tar.gz: 67d6ef64e755766f4303f404736735bcccbd1fdcdb9260ca9f7204e55dba74c0
3
+ metadata.gz: '079e1d8cd0c0dce4b230289d239e1fa66ec8f83579de882f8fe52bad2e2247e5'
4
+ data.tar.gz: baf8c4e974bb28d30e074e9fd1a7e89fcbf97d51bcae30093818602ce94a4c1a
5
5
  SHA512:
6
- metadata.gz: 03e502b74a416d3d2fc309b5925e3ce708d97e272990ba72f0ae59ff26ce285cfaf7ed1b3b627f9fa19d2beda59ed75d90c6777ab3dc7b02ef8625bb0785a85c
7
- data.tar.gz: e761c08bf627e729bbaa25658c82e54fab2367fb4f9a330d8859dedc62ec929a7a07f26ad53b637e53bac5087a420637a5950d662107d66f35a276e2471ad120
6
+ metadata.gz: e08d9a6e2c204f28fc7f5c489565675464ec37b305d6441cc0b166296fb1b3a34482a3255f82827251fe67d688e4c1dc7ea5e4543c820afeac2ea5dfc7518000
7
+ data.tar.gz: db5019904bb2dcecd03f3fa12582f6fb1f1725df4f44c97774786a62e5ed7a139d60f2ac7532d520a5da2d8485dd6be29670afa6fbad63950b3027049df1f29e
data/lib/bard/api/app.rb CHANGED
@@ -4,7 +4,6 @@ require "rack"
4
4
  require "json"
5
5
  require "bundler"
6
6
  require_relative "auth"
7
- require "bard/backup"
8
7
 
9
8
  module Bard
10
9
  module Api
@@ -106,6 +105,8 @@ module Bard
106
105
  end
107
106
 
108
107
  def create_backup(request)
108
+ # Loaded per endpoint: bard-backup pulls in ActiveRecord via backhoe, which a database-less app can't boot with.
109
+ require "bard/backup"
109
110
  with_auth(request) do |payload|
110
111
  s3 = payload["s3"].transform_keys(&:to_sym)
111
112
  project_name = Bard::Config.current.project_name
@@ -138,6 +139,7 @@ module Bard
138
139
  end
139
140
 
140
141
  def latest_backup(request)
142
+ require "bard/backup"
141
143
  with_auth(request) do
142
144
  backup = Bard::Backup.latest
143
145
  json_response(200, backup.as_json)
@@ -147,6 +149,7 @@ module Bard
147
149
  end
148
150
 
149
151
  def config(request)
152
+ require "bard/backup"
150
153
  with_auth(request) do
151
154
  json_response(200, serialize_config(Bard::Config.current))
152
155
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bard
4
4
  module Api
5
- VERSION = "0.7.0"
5
+ VERSION = "0.7.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-08-08 00:00:00.000000000 Z
10
+ date: 2026-10-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: jwt