Skip to content

Commit 560272f

Browse files
committed
Fix rubocop warnings
1 parent b865cd9 commit 560272f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
ruby-version: ["3.0", "3.1", "3.2", "3.3"]
15+
ruby-version: ["3.1", "3.2", "3.3"]
1616

1717
steps:
1818
- uses: actions/checkout@v4

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ AllCops:
22
DisplayCopNames: true
33
NewCops: enable
44
SuggestExtensions: false
5+
TargetRubyVersion: 3.1
56
Exclude:
67
- "*.gemspec"
78
- spec/**/*

lib/prawn/markup/builders/nestable_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def normalize_cell_hash(hash, cell_width, style_options = {})
2727
end
2828

2929
def text_options
30-
(options[:text] || {})
30+
options[:text] || {}
3131
end
3232

3333
def compute_image_width(hash, max_width)

lib/prawn/markup/builders/table_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def normalize_cell_hash(node, width, style_options)
133133
if width.nil? && total_width
134134
width = total_width - column_width_sum - ((columns_without_width - 1) * MIN_COL_WIDTH)
135135
end
136-
super(node, width, style_options)
136+
super
137137
end
138138

139139
def compute_column_widths

0 commit comments

Comments
 (0)