1 # frozen_string_literal: true
2
3 require_relative 'lib/email/version'
4
5 Gem::Specification.new do |spec|
6 spec.name = 'smbcloud-email'
7 spec.version = Email::VERSION
8 spec.authors = ['Seto Elkahfi']
9 spec.email = ['seto@smbcloud.xyz']
10
11 spec.summary = 'Ruby bindings for the smbCloud transactional email API.'
12 spec.description = 'Send transactional email from a verified domain and read delivery status, powered by the shared Rust SDK and a native Magnus extension.'
13 spec.homepage = 'https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/email'
14 spec.license = 'MIT'
15 spec.required_ruby_version = '>= 3.1.0'
16 spec.required_rubygems_version = '>= 3.3.11'
17
18 spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19 spec.metadata['homepage_uri'] = spec.homepage
20 spec.metadata['source_code_uri'] = 'https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/email'
21 spec.metadata['changelog_uri'] = 'https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/email/CHANGELOG.md'
22
23 gemspec = File.basename(__FILE__)
24 spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
25 ls.readlines("\x0", chomp: true).reject do |f|
26 (f == gemspec) ||
27 f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])
28 end
29 end
30 spec.bindir = 'exe'
31 spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32 spec.require_paths = ['lib']
33 spec.extensions = ['ext/email/extconf.rb']
34
35 spec.add_dependency 'json'
36 spec.add_dependency 'rb_sys', '~> 0.9.91'
37 end