-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
71 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
# -*- encoding: utf-8 -*- | ||
lib = File.expand_path('../lib', __FILE__) | ||
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.name = 'paranoia_uniqueness_validator' | ||
gem.version = ParanoiaUniquenessValidator::VERSION | ||
gem.licenses = ['MIT'] | ||
gem.authors = ["Anthony Smith"] | ||
gem.email = ["anthony@sticksnleaves.com"] | ||
gem.description = %q{Adds the validates_uniqueness_without_deleted validator to ignore deleted fields when validating for uniqueness.} | ||
gem.summary = %q{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.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.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.require_paths = ['lib'] | ||
|
||
gem.add_dependency "activerecord", ">= 5.2.0", "< 7.1" | ||
gem.add_dependency 'activerecord', '>= 5.2.0', '< 7.2' | ||
|
||
gem.add_development_dependency "paranoia", "~> 2.3" | ||
gem.add_development_dependency "database_cleaner", "~> 2.0" | ||
gem.add_development_dependency "rspec-rails", "~> 5.0" | ||
gem.add_development_dependency 'database_cleaner', '~> 2.0' | ||
gem.add_development_dependency 'paranoia', '~> 2.3' | ||
gem.add_development_dependency 'rspec-rails', '~> 5.0' | ||
end |