-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathactiverecord-tenanted.gemspec
More file actions
33 lines (27 loc) · 1.36 KB
/
activerecord-tenanted.gemspec
File metadata and controls
33 lines (27 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true
require_relative "lib/active_record/tenanted/version"
Gem::Specification.new do |spec|
spec.name = "activerecord-tenanted"
spec.version = ActiveRecord::Tenanted::VERSION
spec.authors = [ "Mike Dalessio" ]
spec.email = [ "mike@37signals.com" ]
spec.license = "MIT"
spec.homepage = "https://github.com/basecamp/activerecord-tenanted"
spec.summary = "Enable a Rails application to have separate databases for each tenant."
spec.description = <<~TEXT
Enable a Rails application to have separate databases for each tenant.
This gem primarily extends Active Record, creating a new connection pool for each tenant and
using horizontal sharding to swap between them. It also provides integrations for middleware
tenant selection, Action View Caching, Active Job, Action Cable, Active Storage, Action Mailbox,
and Action Text, with support and documentation for Solid Cache, Solid Queue, Solid Cable, and
Turbo Rails.
TEXT
spec.metadata["homepage_uri"] = spec.homepage
spec.files = Dir.chdir(File.expand_path(__dir__)) do
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
end
rails_requirement = ">= 8.1.beta"
spec.add_dependency "activerecord", rails_requirement
spec.add_dependency "railties", rails_requirement
spec.add_dependency "zeitwerk"
end