From 70f84301685b05b89a5b181232f3cb98faee03cf Mon Sep 17 00:00:00 2001 From: Tony Bowden Date: Wed, 10 May 2017 12:04:28 +0100 Subject: [PATCH] rubocop -a --- Rakefile | 3 ++- scraper.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index f02c220d55..1d50ee26d7 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,7 @@ # frozen_string_literal: true + require 'rubocop/rake_task' RuboCop::RakeTask.new -task default: %w(rubocop) +task default: %w[rubocop] diff --git a/scraper.rb b/scraper.rb index 33d7583c60..53cefb9de7 100644 --- a/scraper.rb +++ b/scraper.rb @@ -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