forked from rails-on-services/apartment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ros-apartment.gemspec
59 lines (52 loc) · 2.48 KB
/
ros-apartment.gemspec
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# frozen_string_literal: true
$LOAD_PATH << File.expand_path('lib', __dir__)
require 'apartment/version'
Gem::Specification.new do |s|
s.name = 'ros-apartment'
s.version = Apartment::VERSION
s.authors = ['Ryan Brunner', 'Brad Robertson', 'Rui Baltazar']
s.summary = 'A Ruby gem for managing database multitenancy. Apartment Gem drop in replacement'
s.description = 'Apartment allows Rack applications to deal with database multitenancy through ActiveRecord'
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been
# added into git.
s.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject do |f|
# NOTE: ignore all test related
f.match(%r{^(test|spec|features|documentation)/})
end
end
s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = ['lib']
s.homepage = 'https://github.com/rails-on-services/apartment'
s.licenses = ['MIT']
s.add_dependency 'activerecord', '>= 7.1'
s.add_dependency 'parallel', '< 2.0'
s.add_dependency 'public_suffix', '>= 2.0.5', '< 5.0'
s.add_dependency 'rack', '>= 1.3.6', '< 3.0'
s.add_development_dependency 'appraisal', '~> 2.2'
s.add_development_dependency 'bundler', '>= 1.3', '< 3.0'
s.add_development_dependency 'guard-rspec', '~> 4.2'
s.add_development_dependency 'pry'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rspec', '~> 3.4'
s.add_development_dependency 'rspec_junit_formatter'
s.add_development_dependency 'rspec-rails', '~> 3.4'
s.add_development_dependency 'rubocop', '~> 0.93'
s.add_development_dependency 'rubocop-performance', '~> 1.10'
s.add_development_dependency 'rubocop-rails', '~> 2.1'
s.add_development_dependency 'rubocop-rspec', '~> 1.44'
if defined?(JRUBY_VERSION)
s.add_development_dependency 'activerecord-jdbc-adapter'
s.add_development_dependency 'activerecord-jdbcmysql-adapter'
s.add_development_dependency 'activerecord-jdbcpostgresql-adapter'
s.add_development_dependency 'jdbc-mysql'
s.add_development_dependency 'jdbc-postgres'
else
s.add_development_dependency 'mysql2', '~> 0.5'
s.add_development_dependency 'pg', '~> 1.2'
s.add_development_dependency 'sqlite3', '~> 1.3.6'
end
end