sidekiq-unique-jobs.gemspec in sidekiq-unique-jobs-6.0.8 vs sidekiq-unique-jobs.gemspec in sidekiq-unique-jobs-6.0.9

- old
+ new

@@ -1,42 +1,63 @@ # 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 'sidekiq_unique_jobs/version' +require "sidekiq_unique_jobs/version" Gem::Specification.new do |spec| - spec.name = 'sidekiq-unique-jobs' - spec.version = SidekiqUniqueJobs::VERSION - spec.authors = ['Mikael Henriksson'] - spec.email = ['mikael@zoolutions.se'] + spec.name = "sidekiq-unique-jobs" + spec.version = SidekiqUniqueJobs::VERSION + spec.authors = ["Mikael Henriksson"] + spec.email = ["mikael@zoolutions.se"] + spec.homepage = "https://mhenrixon.github.io/sidekiq-unique-jobs" + spec.license = "MIT" + spec.summary = <<~SUMMARY + Sidekiq middleware that prevents duplicates jobs + SUMMARY + spec.description = <<~DESCRIPTION + Prevents simultaneous Sidekiq jobs with the same unique arguments to run. + Highly configurable to suite your specific needs. + DESCRIPTION - spec.summary = 'Uniqueness for Sidekiq Jobs' - spec.description = 'Handles various types of unique jobs for Sidekiq' - spec.homepage = 'https://github.com/mhenrixon/sidekiq-unique-jobs' - spec.license = 'MIT' + if spec.respond_to?(:metadata) + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["bug_tracker_uri"] = "https://github.com/mhenrixon/sidekiq-unique-jobs/issues" + spec.metadata["documentation_uri"] = "https://mhenrixon.github.io/sidekiq-unique-jobs" + spec.metadata["source_code_uri"] = "https://github.com/mhenrixon/sidekiq-unique-jobs" + spec.metadata["changelog_uri"] = "https://github.com/mhenrixon/sidekiq-unique-jobs/CHANGELOG.md" + else + raise "RubyGems 2.0 or newer is required to protect against " \ + "public gem pushes." + end - spec.bindir = 'bin' + spec.bindir = "bin" spec.executables = %w[uniquejobs] - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do + spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject do |file| file.match(%r{^(test|spec|features|gemfiles|pkg|rails_example|tmp)/}) end end - spec.require_paths = ['lib'] - spec.add_dependency 'concurrent-ruby', '~> 1.0', '>= 1.0.5' - spec.add_dependency 'sidekiq', '>= 4.0', '< 6.0' - spec.add_dependency 'thor', '~> 0' + spec.require_paths = ["lib"] + spec.add_dependency "concurrent-ruby", "~> 1.0", ">= 1.0.5" + spec.add_dependency "sidekiq", ">= 4.0", "< 6.0" + spec.add_dependency "thor", "~> 0" - spec.add_development_dependency 'bundler', '>= 1.16' - spec.add_development_dependency 'rspec', '~> 3.7' - spec.add_development_dependency 'rake', '~> 12.3' - spec.add_development_dependency 'timecop', '~> 0.9' - spec.add_development_dependency 'yard', '~> 0.9' - spec.add_development_dependency 'gem-release', '~> 1.0' - spec.add_development_dependency 'awesome_print', '~> 1.8' - spec.add_development_dependency 'rack-test' - spec.add_development_dependency 'sinatra' + spec.add_development_dependency "bundler", ">= 2.0" + spec.add_development_dependency "rack-test" + spec.add_development_dependency "rake", "~> 12.3" + spec.add_development_dependency "rspec", "~> 3.7" + spec.add_development_dependency "sinatra" + spec.add_development_dependency "timecop", "~> 0.9" + + # ===== Documentation ===== + spec.add_development_dependency "yard", "~> 0.9.18" + spec.add_development_dependency "redcarpet", "~> 3.4" + spec.add_development_dependency "github-markup", "~> 3.0" + spec.add_development_dependency "github_changelog_generator", "~> 1.14" + + # ===== Release Management ===== + spec.add_development_dependency "gem-release", ">= 2.0" end