Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rubocop warnings #59

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.0", "3.1", "3.2", "3.3"]
ruby-version: ["3.1", "3.2", "3.3"]

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ AllCops:
DisplayCopNames: true
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.1
Exclude:
- "*.gemspec"
- spec/**/*
Expand Down
2 changes: 1 addition & 1 deletion lib/prawn/markup/builders/nestable_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def normalize_cell_hash(hash, cell_width, style_options = {})
end

def text_options
(options[:text] || {})
options[:text] || {}
end

def compute_image_width(hash, max_width)
Expand Down
2 changes: 1 addition & 1 deletion lib/prawn/markup/builders/table_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def normalize_cell_hash(node, width, style_options)
if width.nil? && total_width
width = total_width - column_width_sum - ((columns_without_width - 1) * MIN_COL_WIDTH)
end
super(node, width, style_options)
super
end

def compute_column_widths
Expand Down
Loading