forked from tablecheck/mongoid-ultra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmongoid.gemspec
45 lines (36 loc) · 1.8 KB
/
mongoid.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
33
34
35
36
37
38
39
40
41
42
43
44
45
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'mongoid/version'
Gem::Specification.new do |s|
s.name = Mongoid::GEM_NAME
s.version = Mongoid::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['TableCheck Inc.', 'Durran Jordan', 'The MongoDB Ruby Team']
s.email = '[email protected]'
s.homepage = 'https://mongoid.org'
s.summary = 'Mongoid: Ultra Edition'
s.description = 'Ruby ODM (Object Document Mapper) Framework for MongoDB. Maintained by the community, for the community.'
s.license = 'MIT'
s.metadata = {
'rubygems_mfa_required' => 'true',
'bug_tracker_uri' => 'https://github.com/tablecheck/mongoid/issues',
'changelog_uri' => 'https://github.com/tablecheck/mongoid/releases',
'documentation_uri' => 'https://www.mongodb.com/docs/mongoid/',
'homepage_uri' => 'https://github.com/tablecheck/mongoid',
'source_code_uri' => 'https://github.com/tablecheck/mongoid'
}
s.required_ruby_version = '>= 2.7'
# activemodel 7.0.0 cannot be used due to Class#descendants issue
# See: https://github.com/rails/rails/pull/43951
s.add_dependency('activemodel', ['>= 6.0', '< 7.1', '!= 7.0.0'])
s.add_dependency('mongo', ['>= 2.18.0', '< 3.0.0'])
s.add_dependency('concurrent-ruby', ['>= 1.0.5', '< 2.0'])
# The ruby2_keywords gem normalizes Ruby 2.7's arg delegation.
# It can be removed when Ruby 2.7 is removed.
# See: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/#delegation
s.add_dependency('ruby2_keywords', '~> 0.0.5')
s.add_development_dependency('bson', ['>= 4.14.0', '< 5.0.0'])
s.files = Dir.glob('lib/**/*') + %w[LICENSE README.md Rakefile]
s.require_path = 'lib'
end