-
Notifications
You must be signed in to change notification settings - Fork 5
/
mongoid-embedded-errors.gemspec
executable file
·32 lines (29 loc) · 1.63 KB
/
mongoid-embedded-errors.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
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'mongoid/embedded_errors/version'
Gem::Specification.new do |gem|
gem.name = 'mongoid-embedded-errors'
gem.version = Mongoid::EmbeddedErrors::VERSION.dup
gem.authors = ['Mark Bates', 'Kristijan Novoselić']
gem.email = ['[email protected]', '[email protected]']
gem.description = 'Embedded documents in Mongoid can be really useful. '\
'However, when one of those embedded documents is '\
'invalid, Mongoid does not say which validation has '\
'failed. Instead of just saying that an embedded '\
'document is invalid, this gem modifies Mongoid '\
'behavior so it explicitly provides validation errors '\
'on a per-field basis for embedded documents, the '\
'same way it does for parent documents.'
gem.summary = 'Easily bubble up errors from embedded '\
'documents in Mongoid.'
gem.homepage = 'https://github.com/glooko/mongoid-embedded-errors'
gem.licenses = ['MIT']
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
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.add_dependency 'mongoid', '>=7.0', '<9.0.0'
gem.add_development_dependency 'rubocop', '~> 0.92'
gem.add_development_dependency 'rubocop-rspec', '~> 1.43'
end