generated from rubocop-lts/rubocop-ruby2_3
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubocop-ruby2_2.gemspec
92 lines (78 loc) · 3.97 KB
/
rubocop-ruby2_2.gemspec
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# frozen_string_literal: true
# Get the GEMFILE_VERSION without *require* "my_gem/version", for code coverage accuracy
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-825171399
load "lib/rubocop/ruby2_2/version.rb"
gem_version = Rubocop::Ruby22::Version::VERSION
Rubocop::Ruby22::Version.send(:remove_const, :VERSION)
Gem::Specification.new do |spec|
spec.name = "rubocop-ruby2_2"
spec.version = gem_version
spec.authors = ["Peter Boling"]
spec.email = ["[email protected]"]
# See CONTRIBUTING.md
spec.cert_chain = ["certs/pboling.pem"]
spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $PROGRAM_NAME.end_with?("gem")
spec.summary = "Rules for Rubies: Rubocop + Standard + Betterlint + Shopify + Gradual"
spec.description = "Configure RuboCop + a bevy of friends to gradually lint Ruby 2.2 code"
spec.homepage = "https://github.com/rubocop-lts/#{spec.name}"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.7"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "#{spec.homepage}/tree/v#{spec.version}"
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md"
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
spec.metadata["funding_uri"] = "https://liberapay.com/pboling"
spec.metadata["wiki_uri"] = "#{spec.homepage}/wiki"
spec.metadata["rubygems_mfa_required"] = "true"
# Specify which files should be added to the gem when it is released.
spec.files = Dir[
# Splats (alphabetical)
"lib/**/*.rake",
"lib/**/*.rb",
"sig/**/*.rbs",
"rubocop-lts/**/*.yml",
# Files (alphabetical)
"CHANGELOG.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"LICENSE.txt",
"README.md",
"rubocop.yml",
"SECURITY.md",
]
spec.bindir = "exe"
spec.executables = []
spec.require_paths = ["lib"]
# Utilities
spec.add_dependency("version_gem", ">= 1.1.3", "< 3") # Ruby >= 2.2.0
# Linting
spec.add_dependency("rubocop-gradual", "~> 0.3", ">= 0.3.4") # Ruby >= 2.6.0
spec.add_dependency("rubocop-md", "~> 1.2", ">= 1.2.1") # Ruby >= 2.6.0
spec.add_dependency("rubocop-rake", "~> 0.6") # Ruby >= 2.5.0
spec.add_dependency("rubocop-shopify", "~> 2.14") # Ruby >= 2.7.0
spec.add_dependency("rubocop-thread_safety", "~> 0.5", ">= 0.5.1") # Ruby >= 2.5.0
spec.add_dependency("standard-rubocop-lts", "~> 1.0", ">= 1.0.9") # Ruby >= 2.6.0
# Internal/Private/Platform-specific development dependencies are specified in Gemfile *only*.
# External/Public development dependencies are specified in gemspec *only*.
# See:
# - https://github.com/rubygems/rubygems/discussions/5065#discussioncomment-7031586
# - https://msp-greg.github.io/rubocop/RuboCop/Cop/Gemspec/DevelopmentDependencies.html
# Utilities
spec.add_development_dependency("rake", "~> 13.1") # Ruby >= 2.3.0
# Code Coverage
# CodeCov + GitHub setup is not via gems: https://github.com/marketplace/actions/codecov
spec.add_development_dependency("kettle-soup-cover", "~> 1.0", ">= 1.0.2")
# Documentation
spec.add_development_dependency("kramdown", "~> 2.4")
spec.add_development_dependency("yard", "~> 0.9", ">= 0.9.34")
spec.add_development_dependency("yard-junk", "~> 0.0", ">= 0.0.9")
# Additional linting gems that are not packaged with rubocop-lts, but are integrated by it.
spec.add_development_dependency("rubocop-packaging", "~> 0.5", ">= 0.5.2") # Ruby >= 2.6.0
spec.add_development_dependency("rubocop-rspec", "~> 2.25") # Ruby >= 2.7.0
# Testing
spec.add_development_dependency("rspec", "~> 3.12")
spec.add_development_dependency("rspec-block_is_expected", "~> 1.0", ">= 1.0.5")
spec.add_development_dependency("rspec_junit_formatter", "~> 0.6")
spec.add_development_dependency("rspec-stubbed_env", "~> 1.0", ">= 1.0.1")
end