forked from influitive/apartment
-
Notifications
You must be signed in to change notification settings - Fork 1
/
apartment.gemspec
61 lines (50 loc) · 2.35 KB
/
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
60
61
# -*- encoding: utf-8 -*-
$: << File.expand_path("../lib", __FILE__)
require "apartment/version"
Gem::Specification.new do |s|
s.name = %q{apartment}
s.version = Apartment::VERSION
s.authors = ["Ryan Brunner", "Brad Robertson"]
s.summary = %q{A Ruby gem for managing database multitenancy}
s.description = %q{Apartment allows Rack applications to deal with database multitenancy through ActiveRecord}
s.email = ["[email protected]", "[email protected]"]
s.files = `git ls-files`.split($/)
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 = %q{https://github.com/influitive/apartment}
s.licenses = ["MIT"]
s.post_install_message = <<-MSG
********************************
Apartment Deprecation Warning
`Apartment::Tenant.process` has been deprecated in favour of `Apartment::Tenant.switch`.
You must now always pass a block to `switch`.
To get the previous `switch` behaviour where you can switch to a tenant
without a block, use `Apartment::Tenant.switch!`.
This is to indicate that your call actually has a side affect of changing
the scope of your queries to that tenant.
********************************
MSG
# must be >= 3.1.2 due to bug in prepared_statements
s.add_dependency 'activerecord', '>= 3.1.2', '< 6.0'
s.add_dependency 'rack', '>= 1.3.6'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'rake', '~> 0.9'
s.add_development_dependency 'rspec', '~> 3.4'
s.add_development_dependency 'rspec-rails', '~> 3.4'
s.add_development_dependency 'capybara', '~> 2.0'
if defined?(JRUBY_VERSION)
s.add_development_dependency 'activerecord-jdbc-adapter'
s.add_development_dependency 'activerecord-jdbcpostgresql-adapter'
s.add_development_dependency 'activerecord-jdbcmysql-adapter'
s.add_development_dependency 'jdbc-postgres', '9.2.1002'
s.add_development_dependency 'jdbc-mysql'
s.add_development_dependency 'jruby-openssl'
else
s.add_development_dependency 'mysql2', '~> 0.3.10'
s.add_development_dependency 'pg', '>= 0.11.0'
s.add_development_dependency 'sqlite3'
s.add_development_dependency 'tiny_tds'
s.add_development_dependency 'activerecord-sqlserver-adapter'
end
end