-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
smtp_mock.gemspec
41 lines (32 loc) · 1.95 KB
/
smtp_mock.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
# frozen_string_literal: true
require_relative 'lib/smtp_mock/version'
Gem::Specification.new do |spec|
spec.name = 'smtp_mock'
spec.version = SmtpMock::VERSION
spec.authors = ['Vladislav Trotsenko']
spec.email = %w[admin@bestweb.com.ua]
spec.summary = %(💎 Ruby SMTP mock. Mimic any SMTP server behavior for your test environment)
spec.description = %(💎 Ruby SMTP mock. Mimic any SMTP server behavior for your test environment.)
spec.homepage = 'https://github.com/mocktools/ruby-smtp-mock'
spec.license = 'MIT'
spec.metadata = {
'homepage_uri' => 'https://github.com/mocktools/ruby-smtp-mock',
'changelog_uri' => 'https://github.com/mocktools/ruby-smtp-mock/blob/master/CHANGELOG.md',
'source_code_uri' => 'https://github.com/mocktools/ruby-smtp-mock',
'documentation_uri' => 'https://github.com/mocktools/ruby-smtp-mock/blob/master/README.md',
'bug_tracker_uri' => 'https://github.com/mocktools/ruby-smtp-mock/issues'
}
current_ruby_version = ::Gem::Version.new(::RUBY_VERSION)
dry_struct_version = current_ruby_version >= ::Gem::Version.new('2.7.0') ? '~> 1.6' : '~> 1.4'
ffaker_version = current_ruby_version >= ::Gem::Version.new('3.0.0') ? '~> 2.23' : '~> 2.21'
spec.required_ruby_version = '>= 2.5.0'
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(bin|lib|tmp)/|.ruby-version|smtp_mock.gemspec|LICENSE}) }
spec.executables = %w[smtp_mock]
spec.require_paths = %w[lib]
spec.post_install_message = 'smtpmock is required system dependency. For more details run: `bundle exec smtp_mock -h`'
spec.add_runtime_dependency 'dry-struct', dry_struct_version
spec.add_development_dependency 'ffaker', ffaker_version
spec.add_development_dependency 'net-smtp', '~> 0.5.0' if current_ruby_version >= ::Gem::Version.new('3.1.0')
spec.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1'
spec.add_development_dependency 'rspec', '~> 3.13'
end