-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathparanoia_uniqueness_validator.gemspec
26 lines (22 loc) · 1.23 KB
/
paranoia_uniqueness_validator.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
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'paranoia_uniqueness_validator/version'
Gem::Specification.new do |gem|
gem.name = 'paranoia_uniqueness_validator'
gem.version = ParanoiaUniquenessValidator::VERSION
gem.licenses = ['MIT']
gem.authors = ['Anthony Smith']
gem.email = ['anthony@sticksnleaves.com']
gem.description = 'Adds the validates_uniqueness_without_deleted validator to ignore deleted fields when validating for uniqueness.'
gem.summary = 'Validate unique fields without letting those pesky deleted records get in the way. Great for use with Paranoia.'
gem.homepage = 'https://github.com/anthonator/paranoia_uniqueness_validator'
gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ['lib']
gem.required_ruby_version = '>= 3.1'
gem.add_dependency 'activerecord', '>= 7.0', '< 8.1'
gem.add_development_dependency 'database_cleaner', '~> 2.0'
gem.add_development_dependency 'paranoia', '~> 3.0'
gem.add_development_dependency 'rspec-rails', '~> 7.0'
end