Skip to content

Commit 556f2c3

Browse files
committed
Deal with Rubocop offences in gemspec.
Allow development dependencies in the gemspec for now.
1 parent 247d463 commit 556f2c3

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ AllCops:
1111
TargetRubyVersion: 3.0
1212
NewCops: enable
1313

14+
Gemspec/DevelopmentDependencies:
15+
EnforcedStyle: gemspec
16+
1417
Layout/LineLength:
1518
Max: 120
1619

.rubocop_todo.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
# `rubocop --auto-gen-config`
33
# on 2025-02-08 19:37:20 UTC using RuboCop version 1.61.0.
44

5-
# Offense count: 7
6-
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
7-
# SupportedStyles: Gemfile, gems.rb, gemspec
8-
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
9-
Gemspec/DevelopmentDependencies:
10-
Exclude:
11-
- 'rubyzip-bzip2.gemspec'
12-
135
# Offense count: 11
146
# This cop supports safe autocorrection (--autocorrect).
157
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
@@ -28,7 +20,6 @@ Layout/LeadingCommentSpace:
2820
Layout/LineContinuationSpacing:
2921
Exclude:
3022
- 'lib/zip/bzip2/errors.rb'
31-
- 'rubyzip-bzip2.gemspec'
3223

3324
# Offense count: 3
3425
# This cop supports unsafe autocorrection (--autocorrect-all).
@@ -54,12 +45,6 @@ Style/OptionalBooleanParameter:
5445
Exclude:
5546
- 'lib/zip/bzip2/libbz2.rb'
5647

57-
# Offense count: 1
58-
# This cop supports safe autocorrection (--autocorrect).
59-
Style/RedundantConstantBase:
60-
Exclude:
61-
- 'rubyzip-bzip2.gemspec'
62-
6348
# Offense count: 1
6449
# This cop supports safe autocorrection (--autocorrect).
6550
# Configuration parameters: AllowMultipleReturnValues.

rubyzip-bzip2.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ require_relative 'lib/zip/bzip2/version'
44

55
Gem::Specification.new do |spec|
66
spec.name = 'rubyzip-bzip2'
7-
spec.version = ::Zip::Bzip2::VERSION
7+
spec.version = Zip::Bzip2::VERSION
88
spec.authors = [
99
'Jan-Joost Spanjers', 'Robert Haines'
1010
]
1111

1212
spec.summary = 'Extension of rubyzip to read bzip2 compressed files'
1313
spec.description =
14-
'The rubyzip-bzip2 gem provides an extension of the rubyzip gem '\
14+
'The rubyzip-bzip2 gem provides an extension of the rubyzip gem ' \
1515
'for reading zip files compressed with bzip2 compression'
1616
spec.homepage = 'http://github.com/rubyzip/rubyzip-bzip2'
1717
spec.license = 'BSD 2-Clause'

0 commit comments

Comments
 (0)