mocktools/ruby-smtp-mock

View on GitHub
.circleci/gemspecs/compatible

Summary

Maintainability
Test Coverage
# 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'

  current_ruby_version = ::Gem::Version.new(::RUBY_VERSION)
  dry_struct_version = current_ruby_version >= ::Gem::Version.new('2.7.0') ? '~> 1.6' : '~> 1.4'

  spec.required_ruby_version = '>= 2.5.0'
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
  spec.executables = %w[smtp_mock]
  spec.require_paths = %w[lib]

  spec.add_runtime_dependency 'dry-struct', dry_struct_version

  spec.add_development_dependency 'ffaker'
  spec.add_development_dependency 'net-smtp' if current_ruby_version >= ::Gem::Version.new('3.1.0')
  spec.add_development_dependency 'rake'
  spec.add_development_dependency 'rspec'
end