-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
mongoid.gemspec
50 lines (41 loc) · 1.77 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
46
47
48
49
50
# frozen_string_literal: true
# rubocop:todo all
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require "mongoid/version"
Gem::Specification.new do |s|
s.name = "mongoid"
s.version = Mongoid::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["The MongoDB Ruby Team"]
s.email = "[email protected]"
s.homepage = "https://mongoid.org"
s.summary = "Elegant Persistence in Ruby for MongoDB."
s.description = "Mongoid is an ODM (Object Document Mapper) Framework for MongoDB, written in Ruby."
s.license = "MIT"
s.metadata = {
'bug_tracker_uri' => 'https://jira.mongodb.org/projects/MONGOID',
'changelog_uri' => 'https://github.com/mongodb/mongoid/releases',
'documentation_uri' => 'https://www.mongodb.com/docs/mongoid/',
'homepage_uri' => 'https://mongoid.org/',
'source_code_uri' => 'https://github.com/mongodb/mongoid',
}
if File.exist?('gem-private_key.pem')
s.signing_key = 'gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
else
warn "[#{s.name}] Warning: No private key present, creating unsigned gem."
end
s.required_ruby_version = ">= 2.7"
s.required_rubygems_version = ">= 1.3.6"
# Ruby 3.0 requires ActiveModel 6.0 or higher.
# activemodel 7.0.0 cannot be used due to Class#descendants issue
# See: https://github.com/rails/rails/pull/43951
s.add_dependency("activemodel", ['>=5.1', '<8.1', '!= 7.0.0'])
s.add_dependency("mongo", ['>=2.18.0', '<3.0.0'])
s.add_dependency("concurrent-ruby", ['>= 1.0.5', '< 2.0'])
s.add_development_dependency("bson", '>=4.14.0', '<6.0.0')
s.files = Dir.glob("lib/**/*") + %w(CHANGELOG.md LICENSE README.md Rakefile)
s.test_files = Dir.glob("spec/**/*")
s.require_path = 'lib'
end