Sign the gem

This commit is contained in:
Alex Kotov 2022-11-15 16:36:16 +04:00
parent c963882a3c
commit 36f97a678e
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 6 additions and 0 deletions

View File

@ -4,7 +4,13 @@ lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "hanami/version"
GEM_CERT = File.expand_path('../gem-public_cert.pem', __dir__).freeze
GEM_KEY = File.expand_path('../gem-private_key.pem', __dir__).freeze
Gem::Specification.new do |spec|
spec.cert_chain = [GEM_CERT] if File.file? GEM_CERT
spec.signing_key = GEM_KEY if File.file? GEM_KEY
spec.name = "hanami"
spec.version = Hanami::VERSION
spec.authors = ["Luca Guidi"]