main
 1# frozen_string_literal: true
 2
 3lib = File.expand_path("lib", __dir__)
 4$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
 5require "minbox/version"
 6
 7Gem::Specification.new do |spec|
 8  spec.name          = "minbox"
 9  spec.version       = Minbox::VERSION
10  spec.authors       = ["mo khan"]
11  spec.email         = ["mo@mokhan.ca"]
12
13  spec.summary       = "A minimal smtp server."
14  spec.description   = "A minimal smtp server."
15  spec.homepage      = "https://www.mokhan.ca/"
16  spec.license       = "MIT"
17
18  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19  # to allow pushing to a single host or delete this section to allow pushing to any host.
20  if spec.respond_to?(:metadata)
21    spec.metadata["homepage_uri"] = spec.homepage
22    spec.metadata["source_code_uri"] = "https://github.com/xlgmokha/minbox"
23  else
24    raise "RubyGems 2.0 or newer is required to protect against " \
25      "public gem pushes."
26  end
27
28  # Specify which files should be added to the gem when it is released.
29  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30  spec.files = Dir.chdir(File.expand_path(__dir__)) do
31    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32  end
33  spec.bindir        = "exe"
34  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35  spec.require_paths = ["lib"]
36
37  spec.add_dependency "base64", "~> 0.3"
38  spec.add_dependency "concurrent-ruby", "~> 1.1"
39  spec.add_dependency "hashie", "~> 3.6"
40  spec.add_dependency "listen", "~> 3.1"
41  spec.add_dependency "logger", "~> 1.0"
42  spec.add_dependency "mail", "~> 2.7"
43  spec.add_dependency "net-smtp", "~> 0.1"
44  spec.add_dependency "openssl", "~> 3.0"
45  spec.add_dependency "thor", "~> 1.0"
46  spec.add_development_dependency "bundler", "~> 2.0"
47  spec.add_development_dependency "faker", "~> 3.0"
48  spec.add_development_dependency "fileutils", "~> 1.0"
49  spec.add_development_dependency "rake", "~> 13.0"
50  spec.add_development_dependency "rspec", "~> 3.0"
51end