-
Notifications
You must be signed in to change notification settings - Fork 2
/
activerecord-one.gemspec
24 lines (18 loc) · 1.04 KB
/
activerecord-one.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
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name = "activerecord-one"
spec.version = "1.0.2"
spec.authors = ["Eddie Lebow"]
spec.email = ["elebow@users.noreply.github.com"]
spec.summary = "Provides ActiveRecord::Relation#one! to assert one record and return it."
spec.description = "Provides `ActiveRecord::Relation#one!`, a convenience method that asserts a relation contains exactly one record and returns it. If there are no records or more than one, an `ActiveRecord::NoRecordFound` or `ActiveRecord::MultipleRecordsFound` exception is raised, respectively."
spec.homepage = "https://github.com/elebow/activerecord-one"
spec.license = "public domain"
spec.files = Dir['lib/**/*.rb']
spec.require_paths = ["lib"]
spec.add_dependency "activerecord", ">= 4"
spec.add_development_dependency "minitest"
spec.add_development_dependency "rake"
spec.add_development_dependency "sqlite3"
end