Skip to content

Commit

Permalink
rubocop -a
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed May 10, 2017
1 parent c2282b7 commit 70f8430
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Rakefile
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'rubocop/rake_task'

RuboCop::RakeTask.new

task default: %w(rubocop)
task default: %w[rubocop]
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -100,7 +100,7 @@ def scrape_person(url)
}
data[:image] = URI.join(url, data[:image]).to_s unless data[:image].to_s.empty?
data[:alternate_names] = alt_name unless alt_name.to_s.empty?
ScraperWiki.save_sqlite(%i(id term), data)
ScraperWiki.save_sqlite(%i[id term], data)
end

ScraperWiki.sqliteexecute('DROP TABLE data') rescue nil
Expand Down

0 comments on commit 70f8430

Please sign in to comment.