version_boss.gemspec
# frozen_string_literal: true
require_relative 'lib/version_boss/version'
Gem::Specification.new do |spec|
spec.name = 'version_boss'
spec.version = VersionBoss::VERSION
spec.authors = ['James Couball']
spec.email = ['jcouball@yahoo.com']
spec.summary = 'A Gem to parse and compare SemVer versions AND increment versions for Ruby Gems'
spec.description = <<~DESC
Parse, compare, and increment RubyGem versions with the 'gem-version' CLI
command or the 'VersionBoss::Gem::Version' class.
DESC
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.1.0'
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
# Project links
spec.homepage = "https://github.com/main-branch/#{spec.name}"
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['documentation_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}"
spec.metadata['changelog_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}/file/CHANGELOG.md"
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
end
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.requirements = [
'Platform: Mac, Linux, or Windows',
'Ruby: MRI 3.1 or later, TruffleRuby 24 or later, or JRuby 9.4 or later'
]
spec.add_dependency 'thor', '~> 1.3'
spec.add_development_dependency 'bundler-audit', '~> 0.9'
spec.add_development_dependency 'create_github_release', '~> 2.1'
spec.add_development_dependency 'main_branch_shared_rubocop_config', '~> 0.1'
spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'rspec', '~> 3.12'
spec.add_development_dependency 'rubocop', '~> 1.59'
spec.add_development_dependency 'simplecov', '~> 0.22'
spec.add_development_dependency 'simplecov-lcov', '~> 0.8'
spec.add_development_dependency 'simplecov-rspec', '~> 0.2'
unless RUBY_PLATFORM == 'java'
spec.add_development_dependency 'redcarpet', '~> 3.6'
spec.add_development_dependency 'yard', '~> 0.9', '>= 0.9.28'
spec.add_development_dependency 'yardstick', '~> 0.9'
end
spec.metadata['rubygems_mfa_required'] = 'true'
end