Skip to content

Commit

Permalink
make rubocop (and travis) happy (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Burkhard Vogel-Kreykenbohm committed Jul 19, 2017
1 parent 827639a commit ec2d24d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
20 changes: 10 additions & 10 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Metrics/ModuleLength:
Metrics/PerceivedComplexity:
Enabled: false

Style/AlignParameters:
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation

# We need to reference non-ascii characters when testing and explaining
Expand All @@ -43,16 +43,16 @@ Style/Documentation:
Style/Encoding:
EnforcedStyle: never

Style/FirstArrayElementLineBreak:
Layout/FirstArrayElementLineBreak:
Enabled: true

Style/FirstHashElementLineBreak:
Layout/FirstHashElementLineBreak:
Enabled: true

Style/FirstMethodArgumentLineBreak:
Layout/FirstMethodArgumentLineBreak:
Enabled: true

Style/FirstParameterIndentation:
Layout/FirstParameterIndentation:
EnforcedStyle: consistent

Style/GuardClause:
Expand All @@ -63,16 +63,16 @@ Style/GuardClause:
Style/IfUnlessModifier:
Enabled: false

Style/IndentArray:
Layout/IndentArray:
EnforcedStyle: consistent

Style/IndentHash:
Layout/IndentHash:
EnforcedStyle: consistent

Style/MultilineMethodCallIndentation:
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Style/MultilineOperationIndentation:
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Exclude:
- prawn-templates.gemspec
Expand All @@ -90,7 +90,7 @@ Style/PercentLiteralDelimiters:
'%W': '[]'
'%x': '()'

Style/SpaceAroundOperators:
Layout/SpaceAroundOperators:
AllowForAlignment: false

Style/WhileUntilModifier:
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'rake'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

task default: [:spec, :rubocop]
task default: %i[spec rubocop]

desc 'Run all rspec files'
RSpec::Core::RakeTask.new('spec') do |c|
Expand Down
2 changes: 1 addition & 1 deletion lib/pdf/core/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def init_new_page(options)
Contents: content
)

resources[:ProcSet] = [:PDF, :Text, :ImageB, :ImageC, :ImageI]
resources[:ProcSet] = %i[PDF Text ImageB ImageC ImageI]
end
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/prawn/templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def import_page(input, page_num)
load_object_graph(hash, ref).identifier
)
end

rescue PDF::Reader::MalformedPDFError,
PDF::Reader::InvalidObjectError => e
msg = 'Error reading template file. If you are sure it\'s a valid PDF,'\
Expand Down

0 comments on commit ec2d24d

Please sign in to comment.