-
Notifications
You must be signed in to change notification settings - Fork 6
/
dbview_cti.gemspec
32 lines (27 loc) · 1.12 KB
/
dbview_cti.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
$:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "db_view_cti/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "dbview_cti"
s.version = DBViewCTI::VERSION
s.authors = ["Michaël Van Damme"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/mvdamme/dbview_cti"
s.summary = "Class Table Inheritance (CTI) for Rails."
s.description = "This gem implements Class Table Inheritance (CTI) for Rails using database views."
s.license = 'MIT'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.add_dependency "rails", ">= 3.2.0"
if !ENV["RAILS_VERSION"] || ENV["RAILS_VERSION"][0].to_i <= 5
s.add_development_dependency "rspec-rails", "~> 3.5"
elsif ENV["RAILS_VERSION"][0].to_i == 6
s.add_development_dependency "rspec-rails", "~> 4.0"
else
s.add_development_dependency "rspec-rails"
end
if ENV["RAILS_VERSION"] && ENV["RAILS_VERSION"][0].to_i < 5
s.add_development_dependency "foreigner"
end
end