diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-25 11:03:13 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-25 11:03:13 +0200 |
| commit | 63a6edf1e191cf91fb80717ebae67c78af0d7db5 (patch) | |
| tree | d440c263cdde13719f1560c7de10f81dcf4fca82 | |
| parent | 4837fc882251188cbd028af8eb841503c8308c23 (diff) | |
| parent | f34a0acd23daf07671740eb8a7db1afe68e4f5ac (diff) | |
| download | caxlsx-63a6edf1e191cf91fb80717ebae67c78af0d7db5.tar.gz caxlsx-63a6edf1e191cf91fb80717ebae67c78af0d7db5.zip | |
Merge pull request #258 from tagliala/chore/enable-gemspec-cops
Enable Gemspec cops
| -rw-r--r-- | .rubocop.yml | 3 | ||||
| -rw-r--r-- | .rubocop_todo.yml | 7 | ||||
| -rw-r--r-- | axlsx.gemspec | 6 |
3 files changed, 13 insertions, 3 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 22e574bc..014f6084 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,6 +16,9 @@ AllCops: - 'examples/**/*' - 'vendor/bundle/**/*' +Gemspec: + Enabled: true + Layout: Enabled: true diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index dab9ffb2..bb6a38f9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -7,6 +7,13 @@ # versions of RuboCop, may require this file to be generated again. # This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Severity, Include. +# Include: **/*.gemspec +Gemspec/RequireMFA: + Exclude: + - 'axlsx.gemspec' + +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces Layout/FirstHashElementIndentation: diff --git a/axlsx.gemspec b/axlsx.gemspec index 34942176..83531ce4 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -16,14 +16,14 @@ Gem::Specification.new do |s| eof s.files = Dir.glob("{lib/**/*,examples/**/*.rb,examples/**/*.jpeg}") + %w{LICENSE README.md Rakefile CHANGELOG.md .yardopts .yardopts_guide} - s.add_runtime_dependency 'nokogiri', '~> 1.10', '>= 1.10.4' - s.add_runtime_dependency 'rubyzip', '>= 1.3.0', '< 3' s.add_runtime_dependency "htmlentities", "~> 4.3", '>= 4.3.4' s.add_runtime_dependency "marcel", '~> 1.0' + s.add_runtime_dependency 'nokogiri', '~> 1.10', '>= 1.10.4' + s.add_runtime_dependency 'rubyzip', '>= 1.3.0', '< 3' - s.add_development_dependency 'yard', "~> 0.9.8" s.add_development_dependency 'kramdown', '~> 2.3' s.add_development_dependency 'timecop', "~> 0.9.0" + s.add_development_dependency 'yard', "~> 0.9.8" s.required_ruby_version = '>= 2.6' s.require_path = 'lib' end |
