Skip to content

Commit 1877f21

Browse files
authored
Merge pull request #38 from fastruby/fixes/required-ruby-version
Add minimum required ruby version for this gem
2 parents e7742fc + 7895e10 commit 1877f21

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.rubocop_todo.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2019-11-09 15:45:44 -0500 using RuboCop version 0.75.1.
3+
# on 2020-04-05 14:47:50 -0400 using RuboCop version 0.78.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9+
# Offense count: 1
10+
# Configuration parameters: Include.
11+
# Include: **/*.gemspec
12+
Gemspec/RequiredRubyVersion:
13+
Exclude:
14+
- 'skunk.gemspec'
15+
916
# Offense count: 1
1017
# Cop supports --auto-correct.
1118
Layout/ClosingHeredocIndentation:
1219
Exclude:
1320
- 'lib/skunk/cli/commands/status_reporter.rb'
1421

22+
Layout/HeredocIndentation:
23+
Exclude:
24+
- 'lib/skunk/cli/commands/status_reporter.rb'
25+
1526
# Offense count: 1
1627
# Cop supports --auto-correct.
1728
# Configuration parameters: EnforcedStyle.
@@ -33,9 +44,9 @@ Naming/RescuedExceptionsVariableName:
3344
Exclude:
3445
- 'lib/skunk/cli/application.rb'
3546

36-
# Offense count: 7
47+
# Offense count: 14
3748
# Cop supports --auto-correct.
3849
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
3950
# URISchemes: http, https
40-
Metrics/LineLength:
51+
Layout/LineLength:
4152
Max: 96

skunk.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Gem::Specification.new do |spec|
1414
spec.description = "Knows how to calculate the SkunkScore for a set of Ruby modules"
1515
spec.homepage = "https://github.com/fastruby/skunk"
1616

17+
spec.required_ruby_version = ">= 2.4.0"
18+
1719
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
1820
# to allow pushing to a single host or delete this section to allow pushing to any host.
1921
if spec.respond_to?(:metadata)

0 commit comments

Comments
 (0)