-
Notifications
You must be signed in to change notification settings - Fork 0
/
rom-mongodb.gemspec
40 lines (31 loc) · 1.58 KB
/
rom-mongodb.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
# frozen_string_literal: true
require_relative 'lib/rom/mongo/version'
Gem::Specification.new do |spec|
spec.name = 'rom-mongodb'
spec.version = ROM::Mongo::VERSION
spec.authors = ['Vladislav Trotsenko']
spec.email = ['admin@bestweb.com.ua']
spec.summary = %(rom-mongodb)
spec.description = 'MongoDB adapter for Ruby Object Mapper'
spec.homepage = 'https://github.com/bestwebua/rom-mongo'
spec.license = 'MIT'
spec.metadata = {
'homepage_uri' => 'https://rom-rb.org',
'changelog_uri' => 'https://github.com/bestwebua/rom-mongo/blob/master/CHANGELOG.md',
'source_code_uri' => 'https://github.com/bestwebua/rom-mongo',
'documentation_uri' => 'https://github.com/bestwebua/rom-mongo/blob/master/README.md',
'bug_tracker_uri' => 'https://github.com/bestwebua/rom-mongo/issues'
}
spec.required_ruby_version = '>= 2.5.0'
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(bin|lib)/|.ruby-version|rom-mongodb.gemspec|LICENSE}) }
spec.require_paths = %w[lib]
current_ruby_version = ::Gem::Version.new(::RUBY_VERSION)
rom_version = current_ruby_version >= ::Gem::Version.new('2.7.0') ? '~> 5.3' : '~> 5.2'
ffaker_version = current_ruby_version >= ::Gem::Version.new('3.0.0') ? '~> 2.23' : '~> 2.21'
spec.add_runtime_dependency 'mongo', '~> 2.19', '>= 2.19.3'
spec.add_runtime_dependency 'rom-core', rom_version
spec.add_development_dependency 'ffaker', ffaker_version
spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'rom-repository', rom_version
spec.add_development_dependency 'rspec', '~> 3.13'
end