coverband.gemspec
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "coverband/version"
Gem::Specification.new do |spec|
spec.name = "coverband"
spec.version = Coverband::VERSION
spec.authors = ["Dan Mayer", "Karl Baum"]
spec.email = %w[dan@mayerdan.com]
spec.description =
"Rack middleware to measure production code usage (LOC runtime usage)"
spec.summary =
"Rack middleware to measure production code usage (LOC runtime usage)"
spec.homepage = "https://github.com/danmayer/coverband"
spec.license = "MIT"
spec.files = `git ls-files`.split("\n").reject { |f| f.start_with?("docs") }
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = %w[lib]
spec.required_ruby_version = ">= 2.7"
spec.metadata = {
"homepage_uri" => "https://github.com/danmayer/coverband",
"bug_tracker_uri" => "https://github.com/danmayer/coverband/issues",
"documentation_uri" => "https://github.com/danmayer/coverband",
"changelog_uri" => "https://github.com/danmayer/coverband/blob/main/changes.md",
"source_code_uri" => "https://github.com/danmayer/coverband"
}
spec.add_development_dependency "benchmark-ips"
spec.add_development_dependency "capybara"
spec.add_development_dependency "m"
spec.add_development_dependency "memory_profiler"
# breaking change in minitest and mocha...
# note: we are also adding 'spy' as mocha doesn't want us to spy on redis calls...
spec.add_development_dependency "spy"
# ^^^ probably need a large test cleanup refactor
spec.add_development_dependency "minitest"
spec.add_development_dependency "minitest-fork_executor"
spec.add_development_dependency "minitest-stub-const"
spec.add_development_dependency "mocha"
spec.add_development_dependency "rack"
spec.add_development_dependency "rack-test"
spec.add_development_dependency "rake"
spec.add_development_dependency "resque"
spec.add_development_dependency "standard", ">= 1.35.1"
# breaking changes in various rubocop versions
spec.add_development_dependency "rubocop"
spec.add_development_dependency "coveralls"
# minitest-profile is not compatible with Rails 7.1.0 setup... dropping it for now
# spec.add_development_dependency "minitest-profile"
spec.add_development_dependency "webmock"
spec.add_development_dependency "dalli" # Default memcached adapter
# TODO: Remove when other production adapters exist
# because the default configuration of redis store, we really do require
# redis now. I was reluctant to add this, but until we offer another production
# quality adapter, I think this is more honest about requirements and reduces confusion
# without this there was a race condition on calling coverband configure before redis was loaded
spec.add_runtime_dependency "redis", ">= 3.0"
end