From cd1c1eab344609cc65a7dade4f5e913d212fa063 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Fri, 20 Oct 2023 14:19:48 +0200 Subject: Fix minor safe offenses to gemspec - Style/ExpandPathArguments - Style/PercentLiteralDelimiters --- .rubocop_todo.yml | 6 ------ axlsx.gemspec | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 00f831d9..62856182 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -133,11 +133,6 @@ Style/Documentation: - 'lib/axlsx/workbook/worksheet/row_breaks.rb' - 'lib/axlsx/workbook/worksheet/sheet_format_pr.rb' -# This cop supports safe autocorrection (--autocorrect). -Style/ExpandPathArguments: - Exclude: - - 'axlsx.gemspec' - # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns. # SupportedStyles: annotated, template, unannotated @@ -220,7 +215,6 @@ Style/ParallelAssignment: # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: - - 'axlsx.gemspec' - 'lib/axlsx/drawing/d_lbls.rb' - 'lib/axlsx/drawing/pic.rb' - 'lib/axlsx/drawing/view_3D.rb' diff --git a/axlsx.gemspec b/axlsx.gemspec index 7951b416..bcf90636 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -1,6 +1,6 @@ # frozen_string_literal: true -require File.expand_path('../lib/axlsx/version', __FILE__) +require File.expand_path('lib/axlsx/version', __dir__) Gem::Specification.new do |s| s.name = 'caxlsx' @@ -14,7 +14,7 @@ Gem::Specification.new do |s| s.description = <<~MSG xlsx spreadsheet generation with charts, images, automated column width, customizable styles and full schema validation. Axlsx helps you create beautiful Office Open XML Spreadsheet documents (Excel, Google Spreadsheets, Numbers, LibreOffice) without having to understand the entire ECMA specification. Check out the README for some examples of how easy it is. Best of all, you can validate your xlsx file before serialization so you know for sure that anything generated is going to load on your client's machine. MSG - s.files = Dir.glob("{lib/**/*,examples/**/*.rb,examples/**/*.jpeg}") + %w{LICENSE README.md Rakefile CHANGELOG.md .yardopts .yardopts_guide} + s.files = Dir.glob("{lib/**/*,examples/**/*.rb,examples/**/*.jpeg}") + %w[LICENSE README.md Rakefile CHANGELOG.md .yardopts .yardopts_guide] s.metadata = { 'rubygems_mfa_required' => 'true' } -- cgit v1.2.3