Skip to content

Commit

Permalink
Rubocop: fix five cops in the Gemspec.
Browse files Browse the repository at this point in the history
* Layout/ExtraSpacing
* Layout/HashAlignment
* Layout/LineContinuationSpacing
* Layout/LineEndStringConcatenationIndentation
* Layout/SpaceAroundOperators
  • Loading branch information
hainesr committed Apr 30, 2023
1 parent b95b745 commit 037c65d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 54 deletions.
41 changes: 0 additions & 41 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Exclude:
- 'ucf.gemspec'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Exclude:
- 'ucf.gemspec'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, no_space
Layout/LineContinuationSpacing:
Exclude:
- 'ucf.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/LineEndStringConcatenationIndentation:
Exclude:
- 'ucf.gemspec'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
Expand All @@ -47,14 +14,6 @@ Layout/MultilineOperationIndentation:
Exclude:
- 'examples/ucfinfo'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
# SupportedStylesForExponentOperator: space, no_space
Layout/SpaceAroundOperators:
Exclude:
- 'ucf.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
Expand Down
28 changes: 15 additions & 13 deletions ucf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,25 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/hainesr/ruby-ucf'
s.platform = Gem::Platform::RUBY
s.summary = 'Universal Container Format (UCF) Ruby Library'
s.description = 'A Ruby library for working with Universal Container '\
'Format files - a type of EPUB document. See the UCF specification '\
'(https://learn.adobe.com/wiki/display/PDFNAV/Universal+Container+Format) '\
'for details. They are very similar, although not as restrictive, as '\
'the EPUB Open Container Format (OCF) '\
s.description =
'A Ruby library for working with Universal Container ' \
'Format files - a type of EPUB document. See the UCF specification ' \
'(https://learn.adobe.com/wiki/display/PDFNAV/Universal+Container+Format) ' \
'for details. They are very similar, although not as restrictive, as ' \
'the EPUB Open Container Format (OCF) ' \
'(http://www.idpf.org/epub/30/spec/epub30-ocf.html).'
s.license = 'BSD'
s.require_paths = ['lib']
s.files = `git ls-files -z`.split("\x0").reject do |f|

s.license = 'BSD'
s.require_paths = ['lib']
s.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end

s.metadata = {
'bug_tracker_uri' => 'https://github.com/hainesr/ruby-ucf/issues',
'changelog_uri' => "https://github.com/hainesr/ruby-ucf/blob/v#{s.version}/Changelog.md",
'documentation_uri' => 'https://hainesr.github.io/ruby-ucf',
'source_code_uri' => "https://github.com/hainesr/ruby-ucf/tree/v#{s.version}",
s.metadata = {
'bug_tracker_uri' => 'https://github.com/hainesr/ruby-ucf/issues',
'changelog_uri' => "https://github.com/hainesr/ruby-ucf/blob/v#{s.version}/Changelog.md",
'documentation_uri' => 'https://hainesr.github.io/ruby-ucf',
'source_code_uri' => "https://github.com/hainesr/ruby-ucf/tree/v#{s.version}",
'rubygems_mfa_required' => 'true'
}

Expand Down

0 comments on commit 037c65d

Please sign in to comment.