Skip to content

Commit

Permalink
Fix RuboCop violations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppostma committed Dec 6, 2024
1 parent 3f430f6 commit 06fb407
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ AllCops:
NewCops: enable


Gemspec/DevelopmentDependencies:
Enabled: false


Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent

Expand Down
5 changes: 2 additions & 3 deletions lib/omnikassa2/helpers/csv_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ def initialize(config)

def serialize(object)
objects = object.is_a?(Array) ? object : [object]
parts = []
objects.each do |item|
parts << extract_fields(item).join(',')
parts = objects.map do |item|
extract_fields(item).join(',')
end
parts.join(',')
end
Expand Down
2 changes: 1 addition & 1 deletion lib/omnikassa2/responses/base_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def success?
def to_s
value = ''
value += "Status: #{code}: #{message}\n"
value += "Body: #{(body ? body.to_s : 'nil')}"
value += "Body: #{body ? body.to_s : 'nil'}"
value
end
end
Expand Down
4 changes: 3 additions & 1 deletion omnikassa2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Gem::Specification.new do |spec|
spec.description = "Omnikassa2 is a gem for Rabobank's Omnikassa 2.0"
spec.homepage = 'https://github.com/KentaaNL/omnikassa2'

spec.files = `git ls-files -z`.split("\x0").reject do |f|
spec.metadata['rubygems_mfa_required'] = 'true'

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end

Expand Down

0 comments on commit 06fb407

Please sign in to comment.