worker-glass.gemspec in worker-glass-0.2.4 vs worker-glass.gemspec in worker-glass-0.2.5
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-lib = File.expand_path('../lib', __FILE__)
+lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'worker_glass/version'
Gem::Specification.new do |spec|
@@ -12,15 +12,20 @@
spec.authors = ['Maciej Mensfeld', 'Pavlo Vavruk']
spec.email = %w[maciej@coditsu.io pavlo.vavruk@gmail.com]
spec.summary = 'Timeout and Reentrancy for your background processing workers!'
spec.description = 'Background worker wrappers that provides optional timeout and reentrancy'
spec.homepage = 'https://github.com/karafka/worker-glass'
- spec.license = 'MIT'
- spec.required_ruby_version = '>= 2.2.0'
+ spec.license = 'LGPL-3.0'
+ spec.required_ruby_version = '>= 2.5.0'
- spec.add_dependency 'null-logger'
spec.add_dependency 'activesupport'
+ spec.add_dependency 'null-logger'
+ if $PROGRAM_NAME.end_with?('gem')
+ spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
+ end
+
+ spec.cert_chain = %w[certs/mensfeld.pem]
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = %w[lib]
end