-
Notifications
You must be signed in to change notification settings - Fork 19
/
consistency_fail.gemspec
32 lines (28 loc) · 1.28 KB
/
consistency_fail.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
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "consistency_fail/version"
Gem::Specification.new do |s|
s.name = "consistency_fail"
s.version = ConsistencyFail::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Colin Jones"]
s.email = ["[email protected]"]
s.homepage = "http://github.com/trptcolin/consistency_fail"
s.summary = %q{A tool to detect missing unique indexes}
s.description = <<-EOF
With more than one application server, validates_uniqueness_of becomes a lie.
Two app servers -> two requests -> two near-simultaneous uniqueness checks ->
two processes that commit to the database independently, violating this faux
constraint. You'll need a database-level constraint for cases like these.
consistency_fail will find your missing unique indexes, so you can add them and
stop ignoring the C in ACID.
EOF
s.license = "MIT"
s.add_development_dependency "activerecord", "~>5.0"
s.add_development_dependency "sqlite3", "~>1.3"
s.add_development_dependency "rspec", "~>3.2"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
end