-
Notifications
You must be signed in to change notification settings - Fork 44
/
temping.gemspec
39 lines (33 loc) · 1.55 KB
/
temping.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
Gem::Specification.new do |s|
s.name = "temping"
s.version = "4.3.0"
s.authors = ["John Pignata"]
s.email = "john@pignata.com"
s.homepage = "https://github.com/jpignata/temping"
s.summary = "Create temporary table-backed ActiveRecord models for use in tests"
s.license = "MIT"
s.files = Dir["lib/**/*.rb"]
s.required_ruby_version = ">= 2.5"
s.add_dependency "activerecord", ">= 6.0", "< 8.1"
s.add_dependency "activesupport", ">= 6.0", "< 8.1"
s.add_development_dependency "appraisal", "~> 2.5"
skipped_adapters = ENV["SKIPPED_ADAPTERS"].to_s.downcase
sqlite_skipped = skipped_adapters.include?("sqlite")
postgresql_skipped = skipped_adapters.include?("postgres")
mysql_skipped = skipped_adapters.include?("mysql")
if RUBY_PLATFORM.include?("java")
s.add_development_dependency "activerecord-jdbcsqlite3-adapter", ">= 60.0" unless sqlite_skipped
unless postgresql_skipped
s.add_development_dependency "activerecord-jdbcpostgresql-adapter", ">= 60.0"
end
s.add_development_dependency "activerecord-jdbcmysql-adapter", ">= 60.0" unless mysql_skipped
else
s.add_development_dependency "sqlite3", ">= 1.3", "< 3.0" unless sqlite_skipped
s.add_development_dependency "pg", ">= 1.2", "< 2.0" unless postgresql_skipped
s.add_development_dependency "mysql2", "~> 0.5" unless mysql_skipped
end
s.add_development_dependency "rspec", "~> 3.13"
s.add_development_dependency "rake", "~> 13.0"
s.add_development_dependency "simplecov", "~> 0.21"
s.add_development_dependency "standard", ">= 0.0.1", "< 2.0"
end