summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-10-20 14:19:48 +0200
committerGeremia Taglialatela <[email protected]>2023-10-20 14:19:48 +0200
commitcd1c1eab344609cc65a7dade4f5e913d212fa063 (patch)
treec341e1f80a1a262faacb8c1e3e1f8cdf09701cf6
parentf476d99cc69f71150a7074ec2d3a0d54ca71a332 (diff)
downloadcaxlsx-cd1c1eab344609cc65a7dade4f5e913d212fa063.tar.gz
caxlsx-cd1c1eab344609cc65a7dade4f5e913d212fa063.zip
Fix minor safe offenses to gemspec
- Style/ExpandPathArguments - Style/PercentLiteralDelimiters
-rw-r--r--.rubocop_todo.yml6
-rw-r--r--axlsx.gemspec4
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
@@ -134,11 +134,6 @@ Style/Documentation:
- '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
Style/FormatStringToken:
@@ -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' }