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
|
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "rbnacl/version"
Gem::Specification.new do |spec|
spec.name = "rbnacl"
spec.version = RbNaCl::VERSION
spec.authors = ["Tony Arcieri", "Jonathan Stott"]
spec.email = ["bascule@gmail.com", "jonathan.stott@gmail.com"]
spec.homepage = "https://github.com/RubyCrypto/rbnacl"
spec.licenses = ["MIT"]
spec.summary = "Ruby binding to the libsodium/NaCl cryptography library"
spec.description = <<-DESCRIPTION.strip.gsub(/\s+/, " ")
The Networking and Cryptography (NaCl) library provides a high-level toolkit for building
cryptographic systems and protocols
DESCRIPTION
spec.metadata = {
"bug_tracker_uri" => "#{spec.homepage}/issues",
"changelog_uri" => "#{spec.homepage}/blob/master/CHANGES.md",
"documentation_uri" => "https://www.rubydoc.info/gems/#{spec.name}/#{spec.version}",
"source_code_uri" => "#{spec.homepage}/tree/v#{spec.version}",
"wiki_uri" => "#{spec.homepage}/wiki"
}
spec.files = Dir.glob("**/*")
spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 2.6.0"
spec.add_runtime_dependency "ffi", "~> 1"
end
|