-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdatabase_validations.gemspec
35 lines (31 loc) · 1.65 KB
/
database_validations.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
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'database_validations/version'
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
spec.name = 'database_validations'
spec.version = DatabaseValidations::VERSION
spec.authors = ['Evgeniy Demin']
spec.email = ['[email protected]']
spec.summary = 'Provide compatibility between database constraints
and ActiveRecord validations with better performance and consistency.'
spec.description = "ActiveRecord provides validations on app level but it won't guarantee the
consistent. In some cases, like `validates_uniqueness_of` it executes
additional SQL query to the database and that is not very efficient.
The main goal of the gem is to provide compatibility between database constraints
and ActiveRecord validations with better performance and consistency."
spec.homepage = 'https://github.com/toptal/database_validations'
spec.license = 'MIT'
spec.files = Dir['lib/**/*']
spec.require_paths = ['lib']
spec.add_dependency 'activerecord', '>= 4.2.0'
spec.add_development_dependency 'benchmark-ips', '~> 2.7'
spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'db-query-matchers', '>= 0.9'
spec.add_development_dependency 'mysql2'
spec.add_development_dependency 'pg'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rubocop', '~> 0.60'
spec.add_development_dependency 'rubocop-rspec', '~> 1.30'
spec.add_development_dependency 'sqlite3', '~> 1.3'
end