-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathactiverecord-cockroachdb-adapter.gemspec
More file actions
36 lines (29 loc) · 1.42 KB
/
activerecord-cockroachdb-adapter.gemspec
File metadata and controls
36 lines (29 loc) · 1.42 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
34
35
36
# frozen_string_literal: true
require_relative 'lib/version'
version = ActiveRecord::COCKROACH_DB_ADAPTER_VERSION
Gem::Specification.new do |spec|
spec.name = "activerecord-cockroachdb-adapter"
spec.version = version
spec.licenses = ["Apache-2.0"]
spec.authors = ["Cockroach Labs"]
spec.email = ["[email protected]"]
spec.summary = "CockroachDB adapter for ActiveRecord."
spec.description = "Allows the use of CockroachDB as a backend for ActiveRecord and Rails apps."
spec.homepage = "https://github.com/cockroachdb/activerecord-cockroachdb-adapter"
spec.add_dependency "activerecord", "~> 8.1.0"
spec.add_dependency "pg", "~> 1.5"
spec.add_dependency "rgeo-activerecord", "~> 8.1.0"
spec.add_development_dependency "benchmark-ips", "~> 2.9.1"
# 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.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "https://rubygems.org"
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
end
git_files = `git ls-files -z`.split("\x0")
spec.files = (Dir["lib/**/*.rb"] + %w(LICENSE Rakefile Gemfile)) & git_files
spec.extra_rdoc_files = Dir["**/*.md"] & git_files
spec.test_files = Dir["test/**/*"] & git_files
end