8f73e1e1be
To keep as much of this as we can in the `fizzy-saas` gem, this PR opts to store console/audits models in a separate database, and so: - the gem contains the migrations and the database config - the app contains a separate schema file distinctly for SaaS concerns - Rails' current behavior prevents us from easily keeping this file in the gem Also note that the stock `audits1984` schema is updated to reference the auditor via a UUID foreign key. Finally, in order for the database schema file to be located in the gem directory (and not the application directory), it's necessary to monkeypatch `AR::DatabaseTasks.schema_dump_path` to support absolute paths. This functionality has been proposed upstream in https://github.com/rails/rails/pull/56290 but is awaiting a decision from the core team. ref: https://app.fizzy.do/5986089/cards/2469 ref: #17
41 lines
1.7 KiB
Ruby
41 lines
1.7 KiB
Ruby
require_relative "lib/fizzy/saas/version"
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = "fizzy-saas"
|
|
spec.version = Fizzy::Saas::VERSION
|
|
spec.authors = [ "Mike Dalessio" ]
|
|
spec.email = [ "mike@37signals.com" ]
|
|
spec.homepage = "https://github.com/basecamp/fizzy-saas"
|
|
spec.summary = "37signals SaaS companion for Fizzy"
|
|
spec.description = "Rails engine that bundles with Fizzy to offer the hosted version at https://app.fizzy.do"
|
|
spec.license = "O'Saasy"
|
|
|
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
|
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
|
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
spec.metadata["source_code_uri"] = "https://github.com/basecamp/fizzy-saas"
|
|
|
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
Dir["{app,config,db,lib,test}/**/*", "LICENSE.md", "Rakefile", "README.md"]
|
|
end
|
|
|
|
spec.add_dependency "rails", ">= 8.1.0.beta1"
|
|
spec.add_dependency "queenbee"
|
|
spec.add_dependency "rails_structured_logging"
|
|
spec.add_dependency "sentry-ruby"
|
|
spec.add_dependency "sentry-rails"
|
|
spec.add_dependency "yabeda"
|
|
spec.add_dependency "yabeda-actioncable"
|
|
spec.add_dependency "yabeda-activejob"
|
|
spec.add_dependency "yabeda-gc"
|
|
spec.add_dependency "yabeda-http_requests"
|
|
spec.add_dependency "yabeda-prometheus-mmap"
|
|
spec.add_dependency "yabeda-puma-plugin"
|
|
spec.add_dependency "yabeda-rails", ">= 0.10"
|
|
spec.add_dependency "prometheus-client-mmap", "~> 1.4.0"
|
|
spec.add_dependency "console1984"
|
|
spec.add_dependency "audits1984"
|
|
end
|