From a456cb5015e3a1f78503d378f9bd8f5dec8ac7b7 Mon Sep 17 00:00:00 2001 From: Tony Bowden Date: Wed, 10 May 2017 12:00:26 +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 73fb389e4d..79c003dfdb 100644 --- a/scraper.rb +++ b/scraper.rb @@ -47,7 +47,7 @@ def scrape_mp(id) data[:image] = URI.join(url, URI.escape(data[:image])).to_s unless data[:image].to_s.empty? data[:party] = 'Independent' if data[:party].to_s == 'bitərəf' # puts data - ScraperWiki.save_sqlite(%i(id term), data) + ScraperWiki.save_sqlite(%i[id term], data) end ScraperWiki.sqliteexecute('DELETE FROM data') rescue nil