Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Fix rubocop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfpessoa committed Jan 10, 2019
1 parent 5ea1be2 commit f531f7d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions lib/yavdb/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def save_to_file(database_path, vulns)
.sort_by(&:id)
.map(&:to_map)
.to_yaml(
:Indent => 4,
:SortKeys => true,
:UseHeader => true,
:UseVersion => true,
:Indent => 4,
:SortKeys => true,
:UseHeader => true,
:UseVersion => true,
:ExplicitTypes => true,
:BestWidth => 80,
:UseFold => true,
:UseBlock => true,
:Encoding => :Utf8
:BestWidth => 80,
:UseFold => true,
:UseBlock => true,
:Encoding => :Utf8
)

file.puts(package_vulns_yml_str)
Expand Down
10 changes: 5 additions & 5 deletions lib/yavdb/sources/snyk_io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class Client

PACKAGE_MANAGER_ALIAS = Hash[
'composer' => 'packagist',
'go' => 'go',
'maven' => 'maven',
'npm' => 'npm',
'nuget' => 'nuget',
'pip' => 'pypi',
'go' => 'go',
'maven' => 'maven',
'npm' => 'npm',
'nuget' => 'nuget',
'pip' => 'pypi',
'rubygems' => 'rubygems'
].freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/yavdb/utils/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def self.run(cmd)
puts "[Running] #{cmd}" if Constants::DEBUG
output = `#{cmd}`
{
:output => output,
:output => output,
:success? => $CHILD_STATUS.success?
}
end
Expand Down

0 comments on commit f531f7d

Please sign in to comment.