- update, files and the 6 /api catalog controllers now live in the engine on a new WarpEngine::ApiController base (same rescue/mime behavior as host) - engine routes serve /update, /file/*path, /api/software*, /api/builds*, /api/image/:id, /api/download at unchanged public paths via the root mount; host routes keep only TTG endpoints (events, members, wiki, rss, swagger) - /update secret comes from WarpEngine.config.update_secret and an unconfigured secret now rejects every request (previously an empty UPDATE_SECRET env accepted empty secrets) - apipie-rails is an engine dependency (DSL in engine controllers); dummy app configures apipie with validation off, mirroring the host - engine request specs: catalog controller specs moved from host plus new /update auth contract spec Verified: engine suite 53 green, host suite 6 green, /api/software and /api/builds byte-identical to baselines, /update 401/400 behavior intact, admin and TTG endpoints OK. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
25 lines
998 B
Ruby
25 lines
998 B
Ruby
require_relative "lib/warp_engine/version"
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = "warp_engine"
|
|
spec.version = WarpEngine::VERSION
|
|
spec.authors = [ "Teletype Games" ]
|
|
spec.summary = "Retro software catalog engine with a CI-callable release updater"
|
|
spec.description = "Mountable Rails engine providing a software catalog (softwares, releases, " \
|
|
"release assets, images, platform links), a pipeline-callable update endpoint, " \
|
|
"a public read-only JSON API and ActiveAdmin resources for a host-owned admin."
|
|
spec.license = "MIT"
|
|
spec.homepage = "https://teletypegames.org"
|
|
|
|
spec.required_ruby_version = ">= 3.2"
|
|
|
|
spec.metadata["allowed_push_host"] = "https://git.teletypegames.org"
|
|
|
|
spec.files = Dir["{app,config,db,lib}/**/*", "README.md"]
|
|
|
|
spec.add_dependency "rails", ">= 8.0"
|
|
spec.add_dependency "blueprinter"
|
|
spec.add_dependency "rubyzip", "~> 2.3"
|
|
spec.add_dependency "apipie-rails"
|
|
end
|