Skip to content

Commit

Permalink
Drop Ruby 2.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Sep 18, 2021
1 parent bb1d525 commit 367278e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Expand Up @@ -9,7 +9,7 @@ AllCops:
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
TargetRubyVersion: 2.4
TargetRubyVersion: 2.5

Naming/FileName:
Exclude:
Expand Down
4 changes: 2 additions & 2 deletions rubocop-packaging.gemspec
Expand Up @@ -21,12 +21,12 @@ Gem::Specification.new do |spec|
spec.files = Dir["config/default.yml", "lib/**/*", "LICENSE", "README.md"]
spec.require_paths = ["lib"]

spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")

spec.add_development_dependency "bump", "~> 0.8"
spec.add_development_dependency "pry", "~> 0.13"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "yard", "~> 0.9"
spec.add_runtime_dependency "rubocop", ">= 0.89", "< 2.0"
spec.add_runtime_dependency "rubocop", ">= 1.13", "< 2.0"
end
3 changes: 1 addition & 2 deletions spec/rubocop/packaging_spec.rb
Expand Up @@ -50,8 +50,7 @@
end
end

it "has a SupportedStyles for all EnforcedStyle " \
"and EnforcedStyle is valid" do
it "has a SupportedStyles for all EnforcedStyle and EnforcedStyle is valid" do
errors = []
cop_names.each do |name|
enforced_styles = config[name]
Expand Down
3 changes: 1 addition & 2 deletions tasks/cops_documentation.rake
Expand Up @@ -25,8 +25,7 @@ task verify_cops_documentation: :generate_cops_documentation do
# Output diff before raising error
sh("GIT_PAGER=cat git diff docs")

warn "The docs directory is out of sync. " \
"Run `rake generate_cops_documentation` and commit the results."
warn "The docs directory is out of sync. Run `rake generate_cops_documentation` and commit the results."
exit!
end
end

0 comments on commit 367278e

Please sign in to comment.