-
Notifications
You must be signed in to change notification settings - Fork 578
Expand file tree
/
Copy pathsimplecov.gemspec
More file actions
66 lines (61 loc) · 2.49 KB
/
Copy pathsimplecov.gemspec
File metadata and controls
66 lines (61 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# frozen_string_literal: true
$LOAD_PATH.push File.expand_path("lib", __dir__)
# Why oh why oh what is this?
# See spec/sandbox/minitest_basic_spec.rb, which sets the variable.
# Basically to really reproduce #877 we needed a gemspec that doesn't
# (indirectly) define a SimpleCov module... so this is the workaround.
version =
if ENV["SIMPLECOV_NO_REQUIRE_VERSION"]
ENV["SIMPLECOV_NO_REQUIRE_VERSION"]
else
require "simplecov/version"
SimpleCov::VERSION
end
Gem::Specification.new do |gem|
gem.name = "simplecov"
gem.version = version
gem.platform = Gem::Platform::RUBY
gem.authors = [
"Erik Berlin",
"Benjamin Fleischer",
"Akira Matsuda",
"Christoph Olszowka",
"Tobias Pfeiffer",
"David Rodríguez",
"Xavier Shay"
]
gem.email = [
"sferik@gmail.com",
"github@benjaminfleischer.com",
"ronnie@dio.jp",
"christoph@olszowka.de",
"pragtob@gmail.com",
"deivid.rodriguez@gmail.com",
"xavier@rhnh.net"
]
gem.homepage = "https://github.com/simplecov-ruby/simplecov"
gem.summary = "Code coverage for Ruby"
gem.description = "Code coverage for Ruby with a powerful configuration library " \
"and automatic merging of coverage across test suites"
gem.license = "MIT"
gem.metadata = {
"bug_tracker_uri" => "https://github.com/simplecov-ruby/simplecov/issues",
"changelog_uri" => "https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md",
"documentation_uri" => "https://www.rubydoc.info/gems/simplecov/#{gem.version}",
"mailing_list_uri" => "https://groups.google.com/forum/#!forum/simplecov",
"source_code_uri" => "https://github.com/simplecov-ruby/simplecov/tree/v#{gem.version}",
"rubygems_mfa_required" => "true"
}
gem.required_ruby_version = ">= 3.2"
# The changelog is intentionally not packaged — it grows every release and is
# the gem's largest avoidable payload. The `changelog_uri` metadata above
# points readers at the GitHub copy instead.
# sig/internal holds skeleton signatures for internal classes so Steep can
# type-check the whole codebase; only the public API signature file ships.
# The schemas/ directory is also not packaged. Nothing reads it at runtime,
# the JSON formatter refers consumers to the canonical schema URL on GitHub.
gem.files = Dir["lib/**/*.*", "exe/*", "man/*", "LICENSE", "README.md", "sig/simplecov.rbs"]
gem.bindir = "exe"
gem.executables = ["simplecov"]
gem.require_paths = ["lib"]
end